/* ============================================================
   DataTrust Public Marketplace - Main Stylesheet
   A modern, professional light-theme design for data marketplace
   ============================================================ */

/* ============================================================
   1. CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
    /* Brand Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-hover: #3b82f6;
    --secondary: #64748b;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #06b6d4;
    --info-light: #cffafe;
    --dark: #0f172a;

    /* Gray Scale */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 4px 14px rgba(37, 99, 235, 0.25);
    --shadow-card-hover: 0 12px 24px -4px rgba(0, 0, 0, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.08);

    /* Border Radius */
    --radius: 12px;
    --radius-lg: 16px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* Layout */
    --nav-height: 64px;
    --container-max: 1280px;
}


/* ============================================================
   2. Base & Typography
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

::selection {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}


/* ============================================================
   3. Navbar (.public-nav)
   ============================================================ */
.public-nav {
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200);
    height: var(--nav-height);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

.public-nav.scrolled {
    box-shadow: var(--shadow-md);
}

.public-nav .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1.1rem;
    text-decoration: none;
}

.public-nav .brand-logo {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.public-nav .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.public-nav .brand-text .brand-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-900);
}

.public-nav .brand-text .brand-sub {
    font-size: 0.7rem;
    color: var(--gray-400);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.public-nav .nav-link {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color var(--transition-fast);
}

.public-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: width var(--transition-base);
}

.public-nav .nav-link:hover {
    color: var(--primary);
}

.public-nav .nav-link:hover::after,
.public-nav .nav-link.active::after {
    width: 60%;
}

.public-nav .nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.public-nav .btn-login {
    border: 1.5px solid var(--gray-300);
    color: var(--gray-700);
    padding: 6px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    background: transparent;
}

.public-nav .btn-login:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.public-nav .btn-register {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 6px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-primary);
}

.public-nav .btn-register:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    color: #fff;
}

.public-nav .user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.public-nav .user-avatar:hover {
    transform: scale(1.05);
}

.public-nav .dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 200px;
    margin-top: 8px !important;
}

.public-nav .dropdown-item {
    border-radius: var(--radius-xs);
    padding: 8px 12px;
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: background var(--transition-fast);
}

.public-nav .dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.public-nav .dropdown-item i {
    width: 20px;
    margin-right: 8px;
    font-size: 0.9rem;
    color: var(--gray-400);
}

.public-nav .dropdown-item:hover i {
    color: var(--primary);
}

.public-nav .dropdown-divider {
    margin: 0.35rem 0;
    border-color: var(--gray-200);
}


/* ============================================================
   4. Hero Section (.hero)
   ============================================================ */
.hero {
    background: var(--gradient-hero);
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero h1 span {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero .btn-hero {
    background: #ffffff;
    color: var(--primary);
    border: none;
    padding: 14px 36px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero .btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}

.hero .btn-hero-outline {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    padding: 14px 36px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero .btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
    transform: translateY(-2px);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ============================================================
   5. Stats Bar (.stats-bar)
   ============================================================ */
.stats-bar {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding: 0 1rem;
    margin-bottom: 3rem;
}

.stats-bar .stat-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.stats-bar .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

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

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

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

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

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

.stats-bar .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 6px;
    transition: all 0.6s ease;
}

.stats-bar .stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}


/* ============================================================
   6. Data Cards (.data-card)
   ============================================================ */
.data-card {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.data-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary-light);
}

.data-card .card-header-custom {
    padding: 20px 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.data-card .card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.data-card .card-title-wrap {
    flex: 1;
    min-width: 0;
}

.data-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.data-card .card-provider {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 400;
}

.data-card .card-body-custom {
    padding: 16px 20px;
    flex: 1;
}

.data-card .card-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.data-card .card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.data-card .card-tag {
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    color: var(--gray-500);
    font-weight: 500;
}

.data-card .card-footer-custom {
    padding: 14px 20px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ============================================================
   7. Grade Badges
   ============================================================ */
.grade-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.grade-S {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.grade-A {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.grade-B\+ {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.grade-B {
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    color: #115e59;
    border: 1px solid #5eead4;
}

.grade-C {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #9a3412;
    border: 1px solid #fdba74;
}

.grade-D {
    background: var(--gray-100);
    color: var(--gray-500);
    border: 1px solid var(--gray-300);
}


/* ============================================================
   8. Price Tag (.price-tag)
   ============================================================ */
.price-tag {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

.price-tag .price-amount {
    font-size: 1.2rem;
    font-weight: 800;
}

.price-tag .price-unit {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 500;
}

.price-tag-bg {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.price-free {
    color: var(--success);
    font-weight: 600;
}


/* ============================================================
   9. Catalog Tabs (.catalog-tabs)
   ============================================================ */
.catalog-tabs {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.catalog-tabs .tab-item {
    padding: 8px 20px;
    border-radius: var(--radius-xs);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    background: transparent;
    white-space: nowrap;
}

.catalog-tabs .tab-item:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.6);
}

.catalog-tabs .tab-item.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}


/* ============================================================
   10. Filter Panel (.filter-panel)
   ============================================================ */
.filter-panel {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.filter-panel .filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
}

.filter-panel .form-select,
.filter-panel .form-control {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    padding: 8px 14px;
    color: var(--gray-700);
    background-color: var(--gray-50);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    max-width: 180px;
}

.filter-panel .form-select:focus,
.filter-panel .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: #ffffff;
}

.filter-panel .search-input {
    flex: 1;
    min-width: 200px;
    max-width: none;
}

.filter-panel .btn-filter {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background var(--transition-fast);
}

.filter-panel .btn-filter:hover {
    background: var(--primary-dark);
}


/* ============================================================
   11. Auth Pages (.auth-container)
   ============================================================ */
.auth-container {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
}

.auth-brand {
    flex: 1;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.auth-brand-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 420px;
}

.auth-brand-content h2 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.auth-brand-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.7;
}

.auth-brand-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}

.auth-brand-features li {
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-brand-features li i {
    color: #60a5fa;
    font-size: 1.1rem;
}

.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: #ffffff;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
}

.auth-form-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.auth-form-wrapper .auth-subtitle {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.auth-form-wrapper .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.auth-form-wrapper .form-control {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-form-wrapper .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-form-wrapper .btn-auth {
    width: 100%;
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-primary);
}

.auth-form-wrapper .btn-auth:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.auth-form-wrapper .auth-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.auth-form-wrapper .auth-link a {
    color: var(--primary);
    font-weight: 600;
}

.auth-form-wrapper .auth-link a:hover {
    text-decoration: underline;
}

.auth-form-wrapper .form-check {
    margin-bottom: 1rem;
}

.auth-form-wrapper .form-check-label {
    font-size: 0.85rem;
    color: var(--gray-600);
}


/* ============================================================
   12. Dashboard (.dashboard)
   ============================================================ */
.dashboard {
    padding: 2rem 0;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.dashboard-header p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.dashboard .stat-card-dash {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.dashboard .stat-card-dash.highlight {
    background: var(--gradient-primary);
    border: none;
    color: #ffffff;
}

.dashboard .stat-card-dash.highlight .stat-label-dash {
    color: rgba(255, 255, 255, 0.75);
}

.dashboard .stat-card-dash.highlight .stat-value-dash {
    color: #ffffff;
}

.dashboard .stat-label-dash {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dashboard .stat-value-dash {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
}

.dashboard .stat-change {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 4px;
}

.dashboard .stat-change.up {
    color: var(--success);
}

.dashboard .stat-change.down {
    color: var(--danger);
}

.dashboard .chart-container {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 1.5rem;
}

.dashboard .chart-container h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--gray-800);
}


/* ============================================================
   13. API Key Card (.key-card)
   ============================================================ */
.key-card {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color var(--transition-base);
}

.key-card:hover {
    border-color: var(--primary-light);
}

.key-card .key-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.key-card .key-info {
    flex: 1;
    min-width: 0;
}

.key-card .key-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.key-card .key-prefix {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.82rem;
    color: var(--gray-500);
    background: var(--gray-50);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--gray-200);
    display: inline-block;
}

.key-card .key-meta {
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-top: 4px;
}

.key-card .key-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.key-card .btn-key {
    padding: 6px 14px;
    border-radius: var(--radius-xs);
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--gray-200);
    background: #fff;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.key-card .btn-key:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.key-card .btn-key.btn-revoke:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-light);
}

.key-status {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.key-status.active {
    background: var(--success-light);
    color: #065f46;
}

.key-status.revoked {
    background: var(--gray-100);
    color: var(--gray-500);
}


/* ============================================================
   14. Pricing Section (.pricing-section)
   ============================================================ */
.pricing-section {
    padding: 4rem 0;
}

.pricing-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-section .section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.pricing-section .section-header p {
    color: var(--gray-500);
    font-size: 1.05rem;
}

.pricing-card {
    background: #ffffff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    position: relative;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
    transform: scale(1.03);
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-4px);
}

.pricing-card .popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 20px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pricing-card .plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.pricing-card .plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.pricing-card .plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-500);
}

.pricing-card .plan-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.pricing-card .plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
    flex: 1;
}

.pricing-card .plan-features li {
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-card .plan-features li i {
    color: var(--success);
    font-size: 0.9rem;
}

.pricing-card .plan-features li.disabled {
    color: var(--gray-400);
}

.pricing-card .plan-features li.disabled i {
    color: var(--gray-300);
}

.pricing-card .btn-plan {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-base);
}

.pricing-card .btn-plan-primary {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-primary);
}

.pricing-card .btn-plan-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.pricing-card .btn-plan-outline {
    background: transparent;
    border: 1.5px solid var(--gray-300);
    color: var(--gray-700);
}

.pricing-card .btn-plan-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* Per-call pricing table */
.pricing-table {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 3rem;
}

.pricing-table-header {
    background: var(--gray-50);
    padding: 20px 28px;
    border-bottom: 1px solid var(--gray-200);
}

.pricing-table-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

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

.pricing-table th {
    background: var(--gray-50);
    padding: 12px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.pricing-table td {
    padding: 14px 20px;
    font-size: 0.875rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

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

.pricing-table tr:hover td {
    background: var(--gray-50);
}


/* ============================================================
   15. API Docs (.docs-section)
   ============================================================ */
.docs-section {
    display: flex;
    min-height: calc(100vh - var(--nav-height));
}

.docs-sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid var(--gray-200);
    padding: 24px 0;
    position: sticky;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    flex-shrink: 0;
}

.docs-sidebar .sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0 24px;
    margin-bottom: 8px;
    margin-top: 20px;
}

.docs-sidebar .sidebar-title:first-child {
    margin-top: 0;
}

.docs-sidebar .sidebar-link {
    display: block;
    padding: 8px 24px;
    font-size: 0.875rem;
    color: var(--gray-600);
    transition: all var(--transition-fast);
    border-left: 2px solid transparent;
}

.docs-sidebar .sidebar-link:hover {
    color: var(--primary);
    background: var(--gray-50);
}

.docs-sidebar .sidebar-link.active {
    color: var(--primary);
    background: var(--primary-light);
    border-left-color: var(--primary);
    font-weight: 600;
}

.docs-content {
    flex: 1;
    padding: 32px 48px;
    max-width: 900px;
}

.docs-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding-top: 1rem;
}

.docs-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.docs-content p {
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--gray-600);
}

.docs-endpoint {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 1.5rem 0;
}

.docs-endpoint .endpoint-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.docs-endpoint .method-badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'SF Mono', 'Consolas', monospace;
    text-transform: uppercase;
}

.docs-endpoint .method-badge.get {
    background: #dbeafe;
    color: #1d4ed8;
}

.docs-endpoint .method-badge.post {
    background: #d1fae5;
    color: #065f46;
}

.docs-endpoint .method-badge.put {
    background: #fef3c7;
    color: #92400e;
}

.docs-endpoint .method-badge.delete {
    background: #fee2e2;
    color: #991b1b;
}

.docs-endpoint .endpoint-url {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.docs-endpoint .endpoint-body {
    padding: 20px;
}

.docs-code-block {
    background: var(--gray-900);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 1rem 0;
    overflow-x: auto;
    position: relative;
}

.docs-code-block code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.82rem;
    color: #e2e8f0;
    line-height: 1.7;
}

.docs-code-block .code-label {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
}

.docs-code-block .code-keyword {
    color: #c084fc;
}

.docs-code-block .code-string {
    color: #86efac;
}

.docs-code-block .code-number {
    color: #fbbf24;
}

.docs-code-block .code-comment {
    color: #64748b;
    font-style: italic;
}


/* ============================================================
   16. Footer (.public-footer)
   ============================================================ */
.public-footer {
    background: var(--gray-800);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
    margin-top: 4rem;
}

.public-footer .footer-brand h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.public-footer .footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.6;
}

.public-footer .footer-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.public-footer .footer-links li {
    margin-bottom: 10px;
}

.public-footer .footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.public-footer .footer-links a:hover {
    color: #ffffff;
}

.public-footer .footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.public-footer .footer-contact-item i {
    color: var(--primary-hover);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.public-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.public-footer .footer-bottom p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    margin: 0;
}


/* ============================================================
   17. Utility Classes
   ============================================================ */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary-gradient {
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-primary);
}

.btn-primary-gradient:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.section-padding {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.bg-white-card {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
}

.divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 1.5rem 0;
}

.text-mono {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

.animate-slide-up {
    animation: slideUp 0.5s ease;
}

.animate-count-up {
    animation: countUp 0.6s ease;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }


/* ============================================================
   18. Pagination
   ============================================================ */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.pagination .page-item .page-link {
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 14px;
    margin: 0 2px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    background: #ffffff;
}

.pagination .page-item .page-link:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: var(--shadow-primary);
}

.pagination .page-item.disabled .page-link {
    background: var(--gray-50);
    color: var(--gray-400);
    border-color: var(--gray-200);
}


/* ============================================================
   19. Tables (.data-table)
   ============================================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.data-table thead th {
    background: var(--gray-50);
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--gray-200);
    text-align: left;
    white-space: nowrap;
}

.data-table tbody td {
    padding: 14px 16px;
    font-size: 0.875rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

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

.data-table tbody tr:hover td {
    background: var(--gray-50);
}

.data-table .td-mono {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.82rem;
    color: var(--gray-600);
}

.data-table .td-amount {
    font-weight: 600;
    font-family: 'SF Mono', 'Consolas', monospace;
}

.data-table .td-amount.positive {
    color: var(--success);
}

.data-table .td-amount.negative {
    color: var(--danger);
}

.table-card {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.table-card .table-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-card .table-card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.table-card .data-table {
    border: none;
    border-radius: 0;
}

/* Status badges for tables */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    gap: 4px;
}

.status-badge.success {
    background: var(--success-light);
    color: #065f46;
}

.status-badge.warning {
    background: var(--warning-light);
    color: #92400e;
}

.status-badge.danger {
    background: var(--danger-light);
    color: #991b1b;
}

.status-badge.info {
    background: var(--info-light);
    color: #155e75;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}


/* ============================================================
   20. Topup Page
   ============================================================ */
.topup-section {
    padding: 2rem 0;
}

.topup-section .topup-header {
    margin-bottom: 2rem;
}

.topup-section .topup-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 1.5rem;
}

.amount-btn {
    background: #ffffff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.amount-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.amount-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.amount-btn .amount-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    display: block;
}

.amount-btn .amount-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 4px;
    display: block;
}

.amount-btn .amount-bonus {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gradient-gold);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.custom-amount-input {
    background: #ffffff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-amount-input label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
}

.custom-amount-input input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.custom-amount-input input::placeholder {
    color: var(--gray-300);
}

.order-info-card {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 1.5rem;
}

.order-info-card h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--gray-800);
}

.order-info-card .order-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
}

.order-info-card .order-row:last-child {
    border-bottom: none;
}

.order-info-card .order-row .label {
    color: var(--gray-500);
}

.order-info-card .order-row .value {
    color: var(--gray-800);
    font-weight: 600;
}

.order-info-card .order-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0 0;
    margin-top: 8px;
    border-top: 2px solid var(--gray-200);
    font-size: 1rem;
}

.order-info-card .order-total .total-label {
    font-weight: 600;
    color: var(--gray-800);
}

.order-info-card .order-total .total-value {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.3rem;
}

.btn-topup-submit {
    width: 100%;
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-primary);
}

.btn-topup-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}


/* ============================================================
   21. Animations
   ============================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}


/* ============================================================
   22. Responsive Design
   ============================================================ */

/* Tablets and smaller desktops */
@media (max-width: 992px) {
    .docs-sidebar {
        display: none;
    }

    .docs-content {
        padding: 24px;
        max-width: 100%;
    }

    .auth-brand {
        display: none;
    }

    .auth-form-side {
        padding: 40px 24px;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-4px);
    }
}

/* Mobile landscape and tablets */
@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .hero {
        min-height: 400px;
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .stats-bar {
        margin-top: -40px;
    }

    .stats-bar .stat-card {
        padding: 20px 16px;
    }

    .stats-bar .stat-number {
        font-size: 1.5rem;
    }

    .filter-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-panel .form-select,
    .filter-panel .form-control {
        max-width: none;
    }

    .catalog-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .catalog-tabs::-webkit-scrollbar {
        display: none;
    }

    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-padding {
        padding: 2.5rem 0;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .pricing-section .section-header h2 {
        font-size: 1.5rem;
    }

    .key-card {
        flex-wrap: wrap;
    }

    .key-card .key-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid var(--gray-100);
    }

    .public-footer {
        padding: 40px 0 0;
    }

    .data-table {
        font-size: 0.82rem;
    }

    .data-table thead th,
    .data-table tbody td {
        padding: 10px 12px;
    }
}

/* Small phones */
@media (max-width: 576px) {
    body {
        font-size: 0.9rem;
    }

    .hero {
        min-height: 360px;
        padding: 48px 0;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .hero .btn-hero,
    .hero .btn-hero-outline {
        padding: 12px 28px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .stats-bar .stat-card {
        padding: 16px 12px;
    }

    .stats-bar .stat-number {
        font-size: 1.25rem;
    }

    .stats-bar .stat-label {
        font-size: 0.75rem;
    }

    .data-card .card-header-custom {
        padding: 16px 16px 0;
    }

    .data-card .card-body-custom {
        padding: 12px 16px;
    }

    .data-card .card-footer-custom {
        padding: 12px 16px;
    }

    .auth-form-side {
        padding: 32px 20px;
    }

    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .amount-btn {
        padding: 16px 12px;
    }

    .amount-btn .amount-value {
        font-size: 1.2rem;
    }

    .public-nav .brand-text .brand-sub {
        display: none;
    }

    .docs-code-block {
        padding: 14px;
        border-radius: var(--radius-xs);
    }

    .docs-code-block code {
        font-size: 0.75rem;
    }

    .pricing-card {
        padding: 24px 20px;
    }

    .pricing-card .plan-price {
        font-size: 2rem;
    }

    .pagination .page-item .page-link {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}


/* ============================================================
   23. Miscellaneous & Overrides
   ============================================================ */

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1100;
}

.toast-custom {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--gray-700);
    min-width: 280px;
    animation: slideUp 0.3s ease;
}

.toast-custom.toast-success {
    border-left: 3px solid var(--success);
}

.toast-custom.toast-error {
    border-left: 3px solid var(--danger);
}

.toast-custom.toast-warning {
    border-left: 3px solid var(--warning);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .empty-icon {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.empty-state h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.9rem;
    color: var(--gray-400);
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(2px);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Bootstrap overrides */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.alert {
    border-radius: var(--radius-sm);
    border: none;
    font-size: 0.875rem;
}

.alert-info {
    background: var(--info-light);
    color: #155e75;
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
}

.alert-danger {
    background: var(--danger-light);
    color: #991b1b;
}

.modal-content {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
}

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

.modal-body {
    padding: 24px;
}

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

/* Card list layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

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

/* Breadcrumb */
.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    padding: 12px 0;
    margin-bottom: 1rem;
}

.breadcrumb-custom a {
    color: var(--gray-500);
}

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

.breadcrumb-custom .separator {
    color: var(--gray-300);
}

.breadcrumb-custom .current {
    color: var(--gray-700);
    font-weight: 500;
}
