/**
 * FRPTheme.net - Client Area Theme
 * Exact clone of BestUnlocker client dashboard style
 */

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #0d111c;
    --bg-card: rgba(22, 27, 40, 0.85);
    --bg-glass: rgba(22, 27, 40, 0.7);
    --border-color: rgba(48, 54, 61, 0.6);
    --border-light: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-cyan: #00d4ff;
    --accent-cyan-dark: #00a8cc;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-orange: #f97316;
    --accent-yellow: #eab308;
    --accent-purple: #8b5cf6;
    --gradient-purple: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    --gradient-red: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(124, 58, 237, 0.03) 0%, transparent 40%);
    color: var(--text-primary);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
}

/* ============================================================
   CLIENT NAVBAR
   ============================================================ */
.client-navbar {
    background: rgba(13, 17, 28, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.client-navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
}

.navbar-brand img {
    height: 36px;
}

.brand-text {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link i {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Dropdown Menu */
.dropdown-menu {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    min-width: 260px;
    box-shadow: var(--shadow-card);
    margin-top: 0.5rem;
}

.dropdown-item {
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 0.6rem 0.875rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
}

.dropdown-divider {
    border-color: var(--border-color);
    margin: 0.4rem 0;
}

/* Navbar Right Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-join {
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-join:hover {
    background: var(--accent-cyan);
    color: #000;
}

.btn-settings {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-settings:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* User Profile Chip */
.user-profile-chip {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile-chip:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: #000;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-badge {
    font-size: 0.6rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-wallet {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.btn-add-balance {
    background: var(--accent-orange);
    color: #fff;
    border: none;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Profile Dropdown Panel */
.profile-dropdown-panel {
    width: 320px;
    padding: 0;
}

.profile-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-dropdown-user {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.75rem;
}

.profile-dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #000;
}

.profile-dropdown-info h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.profile-dropdown-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.profile-wallet-box {
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 0.75rem;
}

.profile-wallet-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-wallet-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.profile-dropdown-section {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-dropdown-section:last-child {
    border-bottom: none;
}

.profile-dropdown-title {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: all 0.15s ease;
    text-decoration: none;
}

.profile-dropdown-item:hover {
    background: rgba(0, 212, 255, 0.05);
    color: var(--accent-cyan);
}

.profile-dropdown-item i {
    width: 18px;
    text-align: center;
}

.profile-dropdown-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-last-login {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.btn-signout {
    color: var(--accent-red);
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.btn-signout:hover {
    text-decoration: underline;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.client-main {
    padding: 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent-cyan);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 1.5rem;
}

.welcome-greeting {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.welcome-greeting span {
    color: var(--accent-cyan);
}

.welcome-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.welcome-meta i {
    margin-right: 0.4rem;
    color: var(--accent-cyan);
}

/* ============================================================
   CARDS & COMPONENTS
   ============================================================ */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* 2FA Banner */
.twofa-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.twofa-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.twofa-icon {
    width: 44px;
    height: 44px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    font-size: 1.125rem;
}

.twofa-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.twofa-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.btn-enable {
    background: var(--accent-cyan);
    color: #000;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-enable:hover {
    background: var(--accent-cyan-dark);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Balance Cards */
.balance-card {
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    flex-direction: column;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.balance-card.purple {
    background: var(--gradient-purple);
}

.balance-card.red {
    background: var(--gradient-red);
}

.balance-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.balance-amount {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: auto;
    position: relative;
    z-index: 1;
}

.balance-actions {
    display: flex;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.btn-balance {
    padding: 0.4rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-balance.dark {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

.btn-balance.dark:hover {
    background: rgba(0, 0, 0, 0.5);
}

.btn-balance.light {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-balance.light:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Stats Card (Total/Locked) */
.stats-wide-card {
    display: flex;
    padding: 1rem 1.25rem;
}

.stat-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.stat-section:first-child {
    border-right: 1px solid var(--border-color);
    padding-left: 0;
}

.stat-section:last-child {
    padding-right: 0;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.stat-icon.blue {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

.stat-icon.orange {
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-orange);
}

/* Order Status Cards */
.status-card {
    padding: 1rem;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.status-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.status-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.status-icon.success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.status-icon.pending {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

.status-icon.rejected {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.status-count {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.status-total {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.status-bar {
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.status-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.status-bar-fill.success {
    background: linear-gradient(90deg, var(--accent-green), #4ade80);
}

.status-bar-fill.pending {
    background: linear-gradient(90deg, #06b6d4, var(--accent-cyan));
}

.status-bar-fill.rejected {
    background: linear-gradient(90deg, var(--accent-red), #f87171);
}

/* App CTA Cards */
.app-cta-card {
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 80px;
}

.app-cta-card.android {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.app-cta-card.telegram {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.app-cta-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.app-cta-text h5 {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 0.125rem;
    letter-spacing: 0.5px;
}

.app-cta-text p {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* News Card */
.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.news-title {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-title i {
    color: var(--accent-cyan);
}

.news-badge {
    background: var(--accent-red);
    color: #fff;
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.news-list {
    flex: 1;
    overflow-y: auto;
    max-height: 680px;
    padding: 0.5rem 0;
}

.news-item {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.15s ease;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.news-item-title {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.news-item-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ============================================================
   SEARCH & FILTERS
   ============================================================ */
.search-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.625rem 0.875rem;
    margin-bottom: 1.5rem;
}

.filter-select {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.875rem;
    color: var(--text-primary);
    font-size: 0.8rem;
    min-width: 140px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.search-input {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.875rem;
    color: var(--text-primary);
    font-size: 0.8rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    white-space: nowrap;
}

.filter-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-cyan);
}

/* ============================================================
   SERVICE GRID
   ============================================================ */
.category-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.875rem;
    padding: 0.625rem 0.875rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.category-icon {
    width: 28px;
    height: 28px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 0.8rem;
}

.category-name {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge {
    margin-left: auto;
    background: var(--accent-green);
    color: #fff;
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
    margin-bottom: 2rem;
}

.service-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    gap: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.service-left-strip {
    width: 4px;
    background: var(--accent-cyan);
    border-radius: 2px;
    flex-shrink: 0;
}

.service-content {
    flex: 1;
    min-width: 0;
}

.service-id {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: monospace;
    margin-bottom: 0.25rem;
}

.service-title {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.service-tag {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 500;
}

.service-tag.category {
    background: rgba(0, 212, 255, 0.12);
    color: var(--accent-cyan);
}

.service-tag.price {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.service-tag.time {
    background: rgba(234, 179, 8, 0.15);
    color: var(--accent-yellow);
}

.service-tag.new {
    background: var(--accent-red);
    color: #fff;
}

.service-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.service-icon {
    width: 32px;
    height: 32px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================================
   ORDERS TABLE
   ============================================================ */
.table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn-table-action {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.875rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.btn-table-action:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.table-filter-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--bg-primary);
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    vertical-align: middle;
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0.625rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-badge.success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.status-badge.pending {
    background: rgba(234, 179, 8, 0.15);
    color: var(--accent-yellow);
}

.status-badge.rejected {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.status-badge.processing {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

.auto-refresh-label {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ============================================================
   PROFILE TABS
   ============================================================ */
.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    background: var(--bg-glass);
}

.profile-tab {
    padding: 0.875rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.profile-tab:hover {
    color: var(--text-primary);
}

.profile-tab.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}

.profile-form {
    padding: 1.5rem;
}

.form-label-cyan {
    color: var(--accent-cyan);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.375rem;
}

.btn-verify {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--accent-cyan);
    padding: 0.5rem 0.875rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-save {
    background: var(--accent-cyan);
    color: #000;
    border: none;
    padding: 0.625rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-save:hover {
    background: var(--accent-cyan-dark);
}

.btn-close-account {
    color: var(--accent-red);
    font-size: 0.8rem;
    text-decoration: none;
}

.btn-close-account:hover {
    text-decoration: underline;
}

/* ============================================================
   FOOTER WIDGETS
   ============================================================ */
.footer-widgets {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    margin-top: 3rem;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-widget-brand img {
    height: 40px;
    margin-bottom: 0.75rem;
}

.footer-widget-brand p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.trustpilot-widget {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.trustpilot-stars {
    color: #00b67a;
    font-size: 0.875rem;
}

.trustpilot-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.btn-subscribe {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-widget-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-list li {
    margin-bottom: 0.625rem;
}

.footer-widget-list a {
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.footer-widget-list a:hover {
    color: var(--accent-cyan);
}

.footer-widget-list i {
    width: 16px;
    font-size: 0.8rem;
}

.payment-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.payment-icon {
    width: 40px;
    height: 26px;
    background: var(--bg-primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-muted);
}

.footer-bottom {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================================
   CHAT WIDGET
   ============================================================ */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.chat-button {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-dark));
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    transition: all 0.2s ease;
}

.chat-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.5);
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

.modal-title {
    font-size: 1rem;
    font-weight: 600;
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

.btn-close-white {
    filter: invert(1);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-widgets-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991.98px) {
    /* Navbar spacing optimizations */
    .client-navbar {
        padding: 0.5rem 0.75rem !important;
    }

    .navbar-brand img {
        height: 32px !important;
    }

    .client-navbar .container-fluid {
        flex-wrap: wrap !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
    
    .client-navbar .navbar-collapse {
        flex-basis: 100%;
        flex-grow: 1;
        margin-top: 1rem;
    }
    
    .client-navbar .navbar-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 0.5rem !important;
        display: flex !important;
    }
    
    .client-navbar .nav-link {
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        border-radius: var(--radius-sm);
    }
    
    .client-navbar .navbar-nav .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        background: rgba(0, 0, 0, 0.2) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        box-shadow: none !important;
        margin-top: 0.25rem !important;
        padding: 0.5rem !important;
    }
    
    /* Profile Chip Compact Mode */
    .user-profile-chip {
        padding: 0.375rem !important;
        gap: 0 !important;
        border-radius: 50% !important;
        border-color: var(--border-color) !important;
    }
    
    .user-profile-chip .user-info,
    .user-profile-chip .btn-add-balance {
        display: none !important;
    }
    
    .user-profile-chip .user-avatar {
        margin: 0 !important;
    }
    
    /* Profile Dropdown Panel on Mobile - Floating solid container */
    .profile-dropdown-panel {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        width: calc(100vw - 24px) !important;
        max-width: 340px !important;
        background: #0d111c !important; /* solid background to prevent transparency */
        border: 1px solid var(--border-color) !important;
        border-radius: var(--radius-md) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        padding: 0 !important;
        margin-top: 0.75rem !important;
        z-index: 1050 !important;
        backdrop-filter: none !important; /* Disable backdrop filter to avoid bleed-through glitches */
    }

    .profile-dropdown-header {
        padding: 1rem !important;
    }

    .profile-dropdown-section {
        padding: 0.5rem 0 !important;
    }

    .profile-dropdown-item {
        padding: 0.6rem 1rem !important;
        font-size: 0.8rem !important;
    }

    .profile-dropdown-footer {
        padding: 0.75rem 1rem !important;
    }
    
    /* Scrollable Profile Tabs on Mobile */
    .profile-tabs {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .profile-tabs::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 767px) {
    .client-main {
        padding: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-widgets-grid {
        grid-template-columns: 1fr;
    }

    .search-filter-bar {
        flex-direction: column;
    }

    .filter-select,
    .search-input {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    /* Stats Wide Card */
    .stats-wide-card {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }
    
    .stat-section {
        padding: 0 0.5rem !important;
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    .stat-section:first-child {
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        padding-bottom: 1rem !important;
        padding-left: 0 !important;
    }
}

/* ============================================================
   GLOBAL FORM & UI FIXES
   ============================================================ */
.form-control,
.form-select,
.search-input,
.filter-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
    background-color: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: 1.25rem !important;
    /* Slightly more margin */
}

/* Ensure input-group itself has margin if it contains a text box */
.input-group {
    margin-bottom: 1.25rem !important;
}

/* Remove margin from control when inside input-group to avoid double spacing */
.input-group .form-control {
    margin-bottom: 0 !important;
}

.form-label {
    margin-bottom: 0.5rem !important;
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
}

h5,
h6 {
    margin-bottom: 1.25rem !important;
    font-weight: 600;
}

p {
    margin-bottom: 1rem !important;
}

.glass-card {
    padding: 1.75rem !important;
    /* More breathing room */
}

/* Fix icon spacing */
i.me-2,
i.me-1 {
    margin-right: 0.5rem !important;
}

.list-unstyled li {
    margin-bottom: 0.75rem !important;
    display: flex;
    align-items: center;
}

.list-unstyled li i {
    margin-right: 0.75rem !important;
    width: 16px;
    text-align: center;
}

.form-control:focus,
.form-select:focus,
.search-input:focus,
input:focus,
textarea:focus {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 212, 255, 0.1) !important;
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.6;
}

pre {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid var(--border-color) !important;
    padding: 1.25rem !important;
    /* Increased padding */
    margin: 1rem 0 !important;
    /* Added vertical margin */
    border-radius: var(--radius-md) !important;
    overflow-x: auto;
}

code {
    color: var(--accent-cyan) !important;
    font-family: 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.9em;
}

/* Global Text Legibility Overrides */
.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

small {
    color: var(--text-muted);
}

.data-table th {
    color: var(--text-secondary) !important;
    font-weight: 700 !important;
}

.input-group-text {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
}

.alert {
    border-radius: var(--radius-md);
    font-size: 0.85rem;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Fix for invisible text in dropdown options */
select option,
.form-control option,
.form-select option {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Global Table Transparency & Styling Overrides for Bootstrap Tables in Dark Theme */
.table {
    --bs-table-bg: transparent !important;
    --bs-table-color: var(--text-primary) !important;
    --bs-table-border-color: var(--border-color) !important;
    background-color: transparent !important;
    color: var(--text-primary) !important;
}

.table th,
.table td {
    background-color: transparent !important;
    color: var(--text-primary) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.table thead th {
    color: var(--text-muted) !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08) !important;
}

.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

/* ============================================================
   ORDER DETAIL MODAL PREMIUM STYLING
   ============================================================ */
.order-detail-modal .modal-dialog {
    max-width: 650px;
}

.order-detail-modal .modal-content {
    background: rgba(13, 17, 28, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.1);
}

.order-detail-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 1.5rem 1rem;
}

.order-detail-modal .modal-title-custom {
    font-size: 1.25rem;
    font-weight: 700;
    color: #a78bfa; /* Light violet */
    background: linear-gradient(135deg, #c084fc 0%, #818cf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.order-detail-modal .modal-body {
    padding: 1.5rem;
}

.order-detail-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem 1.5rem;
}

/* Info Grid Row */
.order-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.order-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.order-info-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-purple);
}

.order-info-card-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-info-card-title i {
    font-size: 0.8rem;
}

.order-info-card-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    word-break: break-all;
}

.order-info-card-value.price {
    color: #f472b6; /* Pink accent */
}

/* Replied Section Header */
.order-replied-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.order-replied-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-replied-title i {
    font-size: 0.85rem;
}

.order-copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.order-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Reply Box (result) */
.order-reply-box {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 1.25rem;
    word-break: break-all;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Bottom 4-Column Grid */
.order-bottom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.order-bottom-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 75px;
}

.order-bottom-card-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.order-bottom-card-value {
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
}

.order-bottom-card-value.replied-in {
    color: #38bdf8; /* Blue */
    font-weight: 600;
}

.order-status-badge-custom {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.order-status-badge-custom.success {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 0 10px rgba(34, 197, 150, 0.3);
}

.order-status-badge-custom.pending {
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.order-status-badge-custom.processing {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.order-status-badge-custom.rejected {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.order-status-badge-custom.cancelled {
    background: #6b7280;
    color: #fff;
}

/* Responsiveness */
@media (max-width: 768px) {
    .order-info-row {
        grid-template-columns: 1fr;
    }
    .order-bottom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Header Visual Re-ordering (Profile Chip to Right Side) */
@media (min-width: 992px) {
    .client-navbar .container-fluid {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0.75rem !important;
    }
    
    .client-navbar .navbar-brand {
        order: 1 !important;
        margin-right: 0 !important;
    }
    
    .client-navbar .nav-search-form {
        order: 2 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .client-navbar .navbar-collapse {
        order: 3 !important;
        flex-grow: 0 !important;
        margin-left: auto !important;
    }
    
    .client-navbar .navbar-actions-always {
        order: 4 !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    
    .client-navbar .navbar-actions {
        order: 5 !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }
}

/* Mobile Optimization Upgrades */
@media (max-width: 767.98px) {
    /* Responsive Table optimizations for client view */
    .table th, 
    .table td {
        padding: 0.6rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    .table td div {
        max-width: 160px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

@media (max-width: 575.98px) {
    /* Place Order Modal padding adjustments for mobile screen optimization */
    .modal-body-futuristic {
        padding: 1.25rem 1rem !important;
    }
    
    .modal-content-futuristic .btn-close {
        top: 16px !important;
        right: 16px !important;
    }
    
    .page-header {
        margin-bottom: 1rem !important;
    }
    
    .welcome-section {
        margin-bottom: 1rem !important;
    }
    
    .welcome-greeting {
        font-size: 1.4rem !important;
    }
    
    .client-main {
        padding: 0.75rem 0.5rem !important;
    }
}

/* ============================================================
   LIGHT THEME SYSTEM OVERRIDES
   ============================================================ */
:root[data-theme="light"],
body.theme-light {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-color: #cbd5e1;
    --border-light: rgba(0, 0, 0, 0.05);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --accent-cyan: #0284c7;
    --accent-cyan-dark: #0369a1;
    --accent-green: #15803d;
    --accent-red: #b91c1c;
    --accent-orange: #c2410c;
    --accent-yellow: #a16207;
    --accent-purple: #6d28d9;
    --gradient-purple: linear-gradient(135deg, #6d28d9 0%, #0284c7 100%);
    --gradient-red: linear-gradient(135deg, #b91c1c 0%, #c2410c 100%);
    --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.08);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Base resets & general overrides in light mode */
html[data-theme="light"] body,
body.theme-light {
    background: #f8fafc !important;
    background-image: radial-gradient(ellipse at 20% 0%, rgba(2, 132, 199, 0.04) 0%, transparent 50%),
                      radial-gradient(ellipse at 80% 100%, rgba(109, 40, 217, 0.03) 0%, transparent 40%) !important;
    color: #0f172a !important;
}

/* Global input controls */
html[data-theme="light"] .form-control,
html[data-theme="light"] .form-select,
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] .form-control:focus,
html[data-theme="light"] .form-select:focus,
html[data-theme="light"] input:focus,
html[data-theme="light"] select:focus {
    border-color: var(--accent-purple) !important;
    box-shadow: 0 0 0 2.5px rgba(109, 40, 217, 0.15) !important;
}
html[data-theme="light"] label,
html[data-theme="light"] .form-label {
    color: #475569 !important;
}

/* Card components */
html[data-theme="light"] .card,
html[data-theme="light"] .dashboard-card,
html[data-theme="light"] .widget-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
html[data-theme="light"] .card-header,
html[data-theme="light"] .card-footer {
    background: #f8fafc !important;
    border-bottom: 1px solid #cbd5e1 !important;
    border-top: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] .card-title,
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6 {
    color: #0f172a !important;
}

/* Dropdown styling */
html[data-theme="light"] .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}
html[data-theme="light"] .dropdown-item {
    color: #334155 !important;
}
html[data-theme="light"] .dropdown-item:hover {
    background-color: #f1f5f9 !important;
    color: var(--accent-purple) !important;
}

/* Navbar styling */
html[data-theme="light"] .client-navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02) !important;
}
html[data-theme="light"] .client-navbar .nav-link {
    color: #334155 !important;
}
html[data-theme="light"] .client-navbar .nav-link:hover,
html[data-theme="light"] .client-navbar .nav-link.active {
    color: var(--accent-purple) !important;
}
html[data-theme="light"] .user-profile-chip {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] .user-name {
    color: #0f172a !important;
}
html[data-theme="light"] .user-wallet {
    color: #15803d !important;
}

/* UI Alert styling mirroring user screenshot */
html[data-theme="light"] .alert-success,
html[data-theme="light"] .success-container {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #166534 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03) !important;
}
html[data-theme="light"] .alert-danger,
html[data-theme="light"] .error-container {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
}

/* Table styling */
html[data-theme="light"] .table {
    color: #334155 !important;
}
html[data-theme="light"] .table-dark {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}
html[data-theme="light"] tr {
    border-bottom: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] tr:hover {
    background-color: rgba(241, 245, 249, 0.5) !important;
}

/* Lists */
html[data-theme="light"] .list-group-item {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}
html[data-theme="light"] .list-group-item-action {
    color: #334155 !important;
}
html[data-theme="light"] .list-group-item-action:hover {
    background-color: #f1f5f9 !important;
}
html[data-theme="light"] .list-group-item-action.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(14, 165, 233, 0.08)) !important;
    color: var(--accent-purple) !important;
    border: 1px solid rgba(124, 58, 237, 0.2) !important;
}

/* Sidebar and drawer filters */
html[data-theme="light"] .list-group-item.active {
    background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
    color: #ffffff !important;
}

/* Public front page overrides for light mode */
html[data-theme="light"] .navbar-futuristic {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] .nav-link-futuristic {
    color: #334155 !important;
}
html[data-theme="light"] .nav-link-futuristic:hover {
    color: var(--accent-purple) !important;
}
html[data-theme="light"] .frp-logo-text-unlocker {
    fill: #0f172a !important;
}
html[data-theme="light"] .footer-section {
    background: #f1f5f9 !important;
    border-top: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}
html[data-theme="light"] .btn-neon-outline {
    border-color: var(--accent-purple) !important;
    color: var(--accent-purple) !important;
}
html[data-theme="light"] .btn-neon-outline:hover {
    background: var(--accent-purple) !important;
    color: #ffffff !important;
}

/* Fix static colors in admin tables/drawers */
html[data-theme="light"] td,
html[data-theme="light"] th {
    color: #334155 !important;
}
html[data-theme="light"] .text-white {
    color: #0f172a !important;
}
html[data-theme="light"] .text-muted {
    color: #64748b !important;
}
html[data-theme="light"] code {
    background-color: #f1f5f9 !important;
    color: #ea580c !important;
}
html[data-theme="light"] pre {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

/* Breadcrumb styling */
html[data-theme="light"] .breadcrumb a {
    color: var(--accent-purple) !important;
}
html[data-theme="light"] .breadcrumb-separator,
html[data-theme="light"] .breadcrumb span {
    color: #64748b !important;
}

/* ============================================================
   LIGHT MODE OVERRIDES FOR ORDER DETAIL MODAL
   ============================================================ */
html[data-theme="light"] .order-detail-modal .modal-content,
body.theme-light .order-detail-modal .modal-content,
.theme-light .order-detail-modal .modal-content,
[data-theme="light"] .order-detail-modal .modal-content {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 40px rgba(139, 92, 246, 0.04) !important;
}

html[data-theme="light"] .order-detail-modal .modal-header,
body.theme-light .order-detail-modal .modal-header,
.theme-light .order-detail-modal .modal-header,
[data-theme="light"] .order-detail-modal .modal-header {
    border-bottom: 1px solid #f1f5f9 !important;
}

html[data-theme="light"] .order-detail-modal .modal-footer,
body.theme-light .order-detail-modal .modal-footer,
.theme-light .order-detail-modal .modal-footer,
[data-theme="light"] .order-detail-modal .modal-footer {
    border-top: 1px solid #f1f5f9 !important;
}

html[data-theme="light"] .order-detail-modal .modal-title-custom,
body.theme-light .order-detail-modal .modal-title-custom,
.theme-light .order-detail-modal .modal-title-custom,
[data-theme="light"] .order-detail-modal .modal-title-custom {
    color: #7c3aed !important;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

html[data-theme="light"] .order-info-card,
body.theme-light .order-info-card,
.theme-light .order-info-card,
[data-theme="light"] .order-info-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .order-info-card-value,
body.theme-light .order-info-card-value,
.theme-light .order-info-card-value,
[data-theme="light"] .order-info-card-value {
    color: #0f172a !important;
}

html[data-theme="light"] .order-info-card-value.price,
body.theme-light .order-info-card-value.price,
.theme-light .order-info-card-value.price,
[data-theme="light"] .order-info-card-value.price {
    color: #db2777 !important;
}

html[data-theme="light"] .order-info-card-title,
body.theme-light .order-info-card-title,
.theme-light .order-info-card-title,
[data-theme="light"] .order-info-card-title,
html[data-theme="light"] .order-replied-title,
body.theme-light .order-replied-title,
.theme-light .order-replied-title,
[data-theme="light"] .order-replied-title,
html[data-theme="light"] .order-bottom-card-title,
body.theme-light .order-bottom-card-title,
.theme-light .order-bottom-card-title,
[data-theme="light"] .order-bottom-card-title {
    color: #7c3aed !important;
}

html[data-theme="light"] .order-copy-btn,
body.theme-light .order-copy-btn,
.theme-light .order-copy-btn,
[data-theme="light"] .order-copy-btn {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

html[data-theme="light"] .order-copy-btn:hover,
body.theme-light .order-copy-btn:hover,
.theme-light .order-copy-btn:hover,
[data-theme="light"] .order-copy-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

html[data-theme="light"] .order-reply-box,
body.theme-light .order-reply-box,
.theme-light .order-reply-box,
[data-theme="light"] .order-reply-box {
    background: rgba(13, 110, 253, 0.04) !important;
    border: 1px solid rgba(13, 110, 253, 0.15) !important;
    color: #0f172a !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .order-bottom-card,
body.theme-light .order-bottom-card,
.theme-light .order-bottom-card,
[data-theme="light"] .order-bottom-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .order-bottom-card-value,
body.theme-light .order-bottom-card-value,
.theme-light .order-bottom-card-value,
[data-theme="light"] .order-bottom-card-value {
    color: #334155 !important;
}

html[data-theme="light"] .order-bottom-card-value.replied-in,
body.theme-light .order-bottom-card-value.replied-in,
.theme-light .order-bottom-card-value.replied-in,
[data-theme="light"] .order-bottom-card-value.replied-in {
    color: #0284c7 !important;
}

html[data-theme="light"] .order-detail-modal .btn-close-white,
body.theme-light .order-detail-modal .btn-close-white,
.theme-light .order-detail-modal .btn-close-white,
[data-theme="light"] .order-detail-modal .btn-close-white {
    filter: invert(1) grayscale(1) brightness(0) !important;
}

/* ============================================================
   UNIFIED SEARCH & FILTER PANEL (Futuristic & Light Theme support)
   ============================================================ */
.search-filter-panel {
    display: flex !important;
    align-items: center !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto 1.25rem !important;
    background: rgba(21, 17, 47, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    padding: 0 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
    transform: translateZ(0) !important;
    gap: 12px !important;
    height: 48px !important;
}

.search-filter-panel select.filter-select-field,
.search-filter-panel input.search-input-field {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.search-input-wrapper {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0 12px !important;
    height: 34px !important;
    background: #0c091d !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease !important;
}

.search-input-wrapper:hover,
.category-select-wrapper:hover {
    border-color: rgba(0, 212, 255, 0.25);
}

.search-input-wrapper:focus-within,
.category-select-wrapper:focus-within {
    border-color: var(--accent-cyan, #00d4ff) !important;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.15);
}

.search-icon {
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.search-input-field {
    width: 100%;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 0.94rem;
    font-family: 'Outfit', sans-serif;
    outline: none !important;
    padding: 6px 0;
}

.search-input-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.panel-divider {
    display: none;
}

.category-select-wrapper {
    flex: 0 0 200px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 12px !important;
    height: 34px !important;
    background: #0c091d !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease !important;
}

.select-icon {
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.7;
}

.filter-select-field {
    width: 100%;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    appearance: none !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    padding-right: 24px !important;
    font-family: 'Outfit', sans-serif !important;
    outline: none !important;
}

.filter-select-field option {
    background: #0c091d;
    color: #fff;
}

/* Light mode overrides */
html[data-theme="light"] .search-filter-panel {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

html[data-theme="light"] .search-input-wrapper,
html[data-theme="light"] .category-select-wrapper {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

html[data-theme="light"] .search-input-wrapper:hover,
html[data-theme="light"] .category-select-wrapper:hover {
    border-color: #94a3b8 !important;
}

html[data-theme="light"] .search-input-wrapper:focus-within,
html[data-theme="light"] .category-select-wrapper:focus-within {
    border-color: #0d6efd !important;
    background: #ffffff !important;
    box-shadow: 0 0 8px rgba(13, 110, 253, 0.15) !important;
}

html[data-theme="light"] .search-icon,
html[data-theme="light"] .select-icon {
    color: #64748b !important;
    opacity: 0.8 !important;
}

html[data-theme="light"] .search-input-field {
    color: #0f172a !important;
}

html[data-theme="light"] .search-input-field::placeholder {
    color: #94a3b8 !important;
}

html[data-theme="light"] .filter-select-field {
    color: #334155 !important;
}

html[data-theme="light"] .filter-select-field option {
    background: #ffffff !important;
    color: #0f172a !important;
}


