@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Premium Dark Theme variables (default for User Side) */
    --bg-color: #070709;
    --bg-secondary: #0f0f11;
    --card-color: #121215;
    --card-hover: #19191d;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.04);
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.15);
    --primary-gold: #f59e0b;
    --dark-gold: #d97706;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --success-color: #10b981;
    --success-light: rgba(16, 185, 129, 0.15);
    --danger-color: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.15);
    --warning-color: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.15);
    --info-color: #3b82f6;
    --info-light: rgba(59, 130, 246, 0.15);

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.7);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --sidebar-width: 260px;
    --header-height: 64px;
}

.admin-panel {
    /* Premium Light Theme variables (for Admin Panel) */
    --bg-color: #f5f7fa;
    --bg-secondary: #ffffff;
    --card-color: #ffffff;
    --card-hover: #f8f9fc;
    --border-color: #e2e8f0;
    --border-light: #edf2f7;
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-gold: #f59e0b;
    --dark-gold: #d97706;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --success-color: #10b981;
    --success-light: #ecfdf5;
    --danger-color: #ef4444;
    --danger-light: #fef2f2;
    --warning-color: #f59e0b;
    --warning-light: #fffbeb;
    --info-color: #3b82f6;
    --info-light: #eff6ff;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

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

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

/* Cards */
.card-premium {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.card-premium:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(79, 70, 229, 0.25);
    transform: translateY(-2px);
}

.glass-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.glass-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(79, 70, 229, 0.25);
    transform: translateY(-2px);
}

/* Stat Cards */
.stat-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-gold));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.stat-icon-primary {
    background: var(--primary-light);
    color: var(--primary-color);
}

.stat-icon-success {
    background: var(--success-light);
    color: var(--success-color);
}

.stat-icon-warning {
    background: var(--warning-light);
    color: var(--warning-color);
}

.stat-icon-danger {
    background: var(--danger-light);
    color: var(--danger-color);
}

.stat-icon-info {
    background: var(--info-light);
    color: var(--info-color);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Buttons */
.btn-primary-custom {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    border: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary-custom:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-gold {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    color: #fff;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #fbbf24 0%, var(--primary-gold) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
    color: #fff;
}

.btn-outline-gold {
    background: transparent;
    color: var(--primary-gold);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--primary-gold);
    transition: all 0.2s ease;
}

.btn-outline-gold:hover {
    background: var(--primary-gold);
    color: #fff;
    border-color: var(--primary-gold);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--primary-color);
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    background: var(--bg-color);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Form Controls */
.form-premium {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.form-premium:focus {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    color: var(--text-primary);
    outline: none;
}

.form-premium::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: 6px;
}

/* Tables */
.table-premium {
    color: var(--text-primary);
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table-premium thead th {
    background: var(--bg-color);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.table-premium tbody td {
    background: var(--card-color);
    border-bottom: 1px solid var(--border-light);
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 0.875rem;
}

.table-premium tbody tr:hover td {
    background: var(--card-hover);
}

.table-premium tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.badge-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
}

.badge-pending {
    background: var(--warning-light);
    color: var(--warning-color);
}

.badge-approved,
.badge-active,
.badge-answered {
    background: var(--success-light);
    color: var(--success-color);
}

.badge-rejected,
.badge-banned,
.badge-closed {
    background: var(--danger-light);
    color: var(--danger-color);
}

.badge-open {
    background: var(--info-light);
    color: var(--info-color);
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 1045;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-gold));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

.sidebar-brand-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.sidebar-brand-text span {
    color: var(--primary-color);
}

.sidebar-brand-badge {
    font-size: 0.625rem;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    padding: 20px 16px;
    flex: 1;
}

.sidebar-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 16px 12px 8px;
    margin-top: 12px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 6px;
    gap: 12px;
    position: relative;
}

.sidebar-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    transition: transform 0.2s ease;
}

.sidebar-link:hover {
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.04);
}

.sidebar-link:hover i {
    transform: translateX(2px);
}

.sidebar-link.active {
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.08);
    font-weight: 600;
}

.sidebar-link.active i {
    color: var(--primary-color);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    background: var(--primary-color);
    border-radius: 0 4px 4px 0;
}

.sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px 12px;
}

.sidebar-footer {
    padding: 20px 16px;
    border-top: 1px solid var(--border-color);
}

/* Main Content */
.admin-main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
    flex: 1 1 auto;
    width: calc(100% - var(--sidebar-width));
    min-width: 0;
}

/* Top Header */
.admin-header {
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.admin-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.admin-header-breadcrumb {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

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

.admin-header-breadcrumb a:hover {
    color: var(--primary-color);
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    cursor: pointer;
}

.header-btn:hover {
    background: var(--bg-color);
    color: var(--text-primary);
    border-color: #cbd5e1;
}

.admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-gold));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Main Content Area */
.admin-content {
    padding: 24px;
    flex: 1;
}

/* Page Header */
.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.page-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Alerts */
.alert-premium {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.alert-success {
    background: var(--success-light);
    color: var(--success-color);
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger-color);
    border: 1px solid #fecaca;
}

.alert-warning {
    background: var(--warning-light);
    color: var(--warning-color);
    border: 1px solid #fde68a;
}

.alert-info {
    background: var(--info-light);
    color: var(--info-color);
    border: 1px solid #bfdbfe;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.empty-state-text {
    font-size: 0.875rem;
}

/* Modal Overrides */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

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

.modal-body {
    padding: 24px;
}

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

/* Settings Page Styles */
.settings-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.settings-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.settings-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-card-title i {
    color: var(--primary-color);
}

.settings-card-body {
    padding: 24px;
}

.settings-row {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.settings-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.settings-row:first-child {
    padding-top: 0;
}

.settings-label {
    flex: 0 0 200px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    padding-top: 8px;
}

.settings-description {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.settings-control {
    flex: 1;
}

.settings-control .form-premium {
    width: 100%;
    max-width: 400px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.2s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked+.toggle-slider {
    background-color: var(--primary-color);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(22px);
}

/* Activity Log */
.activity-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.activity-text strong {
    font-weight: 600;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Chat Thread */
.chat-thread {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 16px;
    max-height: 500px;
    overflow-y: auto;
}

.chat-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.chat-bubble-admin {
    background: var(--primary-color);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-bubble-user {
    background: var(--card-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.chat-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    padding: 0 4px;
}

.chat-meta-admin {
    text-align: right;
}

/* Responsive */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-main-content {
        margin-left: 0;
        width: 100%;
    }

    .admin-content {
        padding: 16px;
    }

    .settings-row {
        flex-direction: column;
        gap: 12px;
    }

    .settings-label {
        flex: none;
    }

    .settings-control .form-premium {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .stat-value {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .admin-header {
        padding: 0 16px;
    }
}

/* Utility Classes */
.text-gold {
    color: var(--primary-gold);
}

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

.text-success {
    color: var(--success-color);
}

.text-danger {
    color: var(--danger-color);
}

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

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

.bg-gold {
    background-color: var(--primary-gold);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-success {
    background-color: var(--success-color);
}

.bg-danger {
    background-color: var(--danger-color);
}

.fw-semibold {
    font-weight: 600;
}

.fw-bold {
    font-weight: 700;
}

.fs-7 {
    font-size: 0.8125rem;
}

.fs-8 {
    font-size: 0.75rem;
}

.rounded-pill {
    border-radius: 50px;
}

/* Custom User-Side Premium Styles */
.navbar-premium {
    background: rgba(7, 7, 9, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-premium .nav-link {
    color: rgba(255, 255, 255, 0.65) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.navbar-premium .nav-link:hover,
.navbar-premium .nav-link.active {
    color: var(--primary-gold) !important;
}

.navbar-premium .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary-gold);
    transform: scaleX(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.navbar-premium .nav-link:hover::after,
.navbar-premium .nav-link.active::after {
    transform: scaleX(1);
}

.bg-gold-gradient {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%) !important;
}

.text-gold-gradient {
    background: linear-gradient(135deg, #fbbf24 0%, var(--primary-gold) 50%, var(--dark-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-box {
    padding: 30px 24px;
    text-align: center;
    border-radius: var(--radius-md);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}

.hover-glow:hover {
    color: var(--primary-gold) !important;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.nav-link-custom {
    position: relative;
    transition: color 0.2s ease;
}

.nav-link-custom:hover {
    color: var(--primary-gold) !important;
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(15, 15, 17, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    z-index: 1000;
}

@media (max-width: 991.98px) {
    .mobile-bottom-nav {
        display: flex;
        align-items: center;
    }

    body {
        padding-bottom: 64px;
        /* avoid overlap */
    }
}

.mobile-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    flex: 1;
    height: 100%;
    gap: 4px;
    transition: all 0.2s ease;
}

.mobile-bottom-link i {
    font-size: 1.25rem;
}

.mobile-bottom-link:hover,
.mobile-bottom-link.active {
    color: var(--primary-gold);
}

/* Card Storefront Page Styles */
.cards-page-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header & Balance styling */
.store-header-row {
    margin-bottom: 2rem;
}

.wallet-balance-badge {
    background: #0f0f11;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.wallet-balance-badge .balance-value {
    color: var(--primary-gold);
    font-weight: 700;
}

/* Horizontal Filter Bar Styling */
.horizontal-filter-bar {
    background: #0f0f11;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.filter-input-group {
    position: relative;
}

.filter-input-group .filter-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.filter-input-group .form-premium {
    padding-left: 40px !important;
}

.filter-input-price {
    max-width: 100px;
    text-align: center;
}

.filter-select-premium {
    background-color: var(--bg-secondary) !important;
    border: 1.5px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 14px !important;
    font-size: 0.875rem !important;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px 12px !important;
    padding-right: 40px !important;
}

.filter-select-premium:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
    outline: none;
}

/* Card item grid and container styling */
.card-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .card-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .card-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .card-grid-container {
        grid-template-columns: 1fr;
    }
}

/* Premium Card Design matching reference image */
.credit-card-item {
    background: #121215;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.credit-card-item:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}

/* Active / glow card status style */
.credit-card-item.featured-glow {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.card-top-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.card-type-icon {
    width: 36px;
    height: 36px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--primary-gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.card-identity {
    flex-grow: 1;
}

.card-identity-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.2;
}

.card-identity-number {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* Network badges */
.network-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: capitalize;
    letter-spacing: 0.2px;
}

.network-badge.mastercard {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.network-badge.visa {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.network-badge.amex {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.network-badge.other {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Card details table/grid */
.card-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
    margin-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 14px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    line-height: 1.4;
}

.detail-lbl {
    color: var(--text-secondary);
}

.detail-val {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

.detail-val.val-green {
    color: #10b981;
}

/* Card Purchase section */
.card-price-buy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    margin-top: auto;
}

.price-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-gold);
}

.btn-buy-card {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    color: #fff;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    border: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
}

.btn-buy-card:hover:not(:disabled) {
    background: linear-gradient(135deg, #fbbf24 0%, var(--primary-gold) 100%);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.35);
    transform: translateY(-1px);
    color: #fff;
}

.btn-buy-card:disabled {
    background: #27272a;
    color: #71717a;
    box-shadow: none;
    cursor: not-allowed;
}