/* ============================================
   Store UI - Glassmorphism Design System
   Ocean Teal Blue Theme
   ============================================ */

/* ============================================
   CSS Variables - Light Mode (Default)
   ============================================ */
:root {
    /* Ocean teal-blue palette */
    --primary: #0f766e;
    --primary-light: #14b8a6;
    --primary-dark: #0d9488;
    --primary-bg: rgba(14,118,110,0.08);
    --primary-50: rgba(14,118,110,0.05);
    --accent: #0284c7;
    --accent-light: #38bdf8;
    --highlight: #4f46e5;
    --highlight-light: #818cf8;

    /* Status colors */
    --success: #10b981;
    --success-bg: rgba(16,185,129,0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239,68,68,0.08);
    --warning: #f59e0b;
    --warning-bg: rgba(245,158,11,0.1);
    --info: #0ea5e9;
    --info-bg: rgba(14,165,233,0.08);

    /* Background & surface */
    --bg: #f0f9ff;
    --bg-gradient: linear-gradient(135deg, #f0f9ff, #e0f2fe, #ede9fe);
    --card: rgba(255,255,255,0.6);
    --card-bg: rgba(255,255,255,0.6);
    --card-bg-solid: #ffffff;
    --glass-bg: rgba(255,255,255,0.6);
    --glass-border: rgba(255,255,255,0.8);
    --glass-blur: 12px;

    /* Text */
    --text: #0f172a;
    --text-2: #334155;
    --text-3: #64748b;
    --text-4: #94a3b8;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Borders */
    --border: rgba(0,0,0,0.06);
    --border-light: rgba(0,0,0,0.03);
    --border-strong: rgba(0,0,0,0.1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 16px 60px rgba(0,0,0,0.1);
    --shadow-primary: 0 4px 16px rgba(14,118,110,0.2);
    --shadow-glow: 0 0 20px rgba(14,165,233,0.15);

    /* Radius */
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   CSS Variables - Dark Mode
   ============================================ */
[data-theme="dark"] {
    --primary: #14b8a6;
    --primary-light: #2dd4bf;
    --primary-dark: #0f766e;
    --primary-bg: rgba(20,184,166,0.1);
    --primary-50: rgba(20,184,166,0.06);
    --accent: #38bdf8;
    --accent-light: #7dd3fc;
    --highlight: #818cf8;
    --highlight-light: #a5b4fc;

    --success-bg: rgba(16,185,129,0.12);
    --danger-bg: rgba(239,68,68,0.12);
    --warning-bg: rgba(245,158,11,0.12);
    --info-bg: rgba(14,165,233,0.12);

    --bg: #0a0f1e;
    --bg-gradient: linear-gradient(135deg, #0a0f1e, #0f172a, #0a1628);
    --card: rgba(255,255,255,0.04);
    --card-bg: rgba(255,255,255,0.04);
    --card-bg-solid: #111827;
    --glass-bg: rgba(255,255,255,0.04);
    --glass-border: rgba(255,255,255,0.08);
    --glass-blur: 16px;

    --text: #e2e8f0;
    --text-2: #cbd5e1;
    --text-3: #94a3b8;
    --text-4: #64748b;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light: #64748b;

    --border: rgba(255,255,255,0.06);
    --border-light: rgba(255,255,255,0.03);
    --border-strong: rgba(255,255,255,0.12);

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
    --shadow-xl: 0 16px 60px rgba(0,0,0,0.5);
    --shadow-primary: 0 4px 16px rgba(20,184,166,0.25);
    --shadow-glow: 0 0 30px rgba(20,184,166,0.2);
}

/* ============================================
   Reset & Base
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ============================================
   Particles Background (Dark Mode)
   ============================================ */
.particles-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

[data-theme="dark"] .particles-bg {
    opacity: 1;
}

.particles-bg::before,
.particles-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: float-particle 20s ease-in-out infinite;
}

.particles-bg::before {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14,165,233,0.08) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particles-bg::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%);
    bottom: 10%;
    right: 5%;
    animation-delay: -10s;
}

@keyframes float-particle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.05); }
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.page-with-nav {
    padding-bottom: 80px;
}

/* ============================================
   Header - Glass Card
   ============================================ */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-lg);
    padding: 20px 20px 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.4s var(--transition) both;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--highlight));
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header .links {
    display: flex;
    gap: 8px;
}

.header .links a {
    font-size: 13px;
    color: var(--text-3);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition);
    border: 1px solid var(--border-light);
}

.header .links a:hover {
    color: var(--primary);
    background: var(--primary-bg);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-glow);
}

/* Notice */
.notice {
    margin-top: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(14,118,110,0.08), rgba(14,165,233,0.06));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
    border: 1px solid rgba(14,118,110,0.12);
    animation: fadeIn 0.5s ease;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.notice::before {
    content: "📢";
    flex-shrink: 0;
    font-size: 14px;
}

[data-theme="dark"] .notice {
    color: #94a3b8;
    background: linear-gradient(135deg, rgba(14,118,110,0.12), rgba(14,165,233,0.08));
    border-color: rgba(14,118,110,0.2);
}

/* ============================================
   Order Section Cards - Glass
   ============================================ */
.order-page { display: flex; flex-direction: column; gap: 12px; }

.order-section {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-slow);
    position: relative;
    animation: fadeInUp 0.4s ease both;
}

.order-section:hover {
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}

.order-section.step-disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(0.3);
}

.order-section h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-section h2::before {
    content: '';
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 2px;
    flex-shrink: 0;
}

/* ============================================
   Category Pills - Glass Capsules
   ============================================ */
.category-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.category-pill {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-3);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    border: 1.5px solid var(--glass-border);
    user-select: none;
}

.category-pill:hover {
    color: var(--primary);
    border-color: var(--primary-light);
    background: var(--primary-bg);
    box-shadow: 0 0 12px rgba(14,165,233,0.1);
}

.category-pill.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 14px rgba(14,118,110,0.35), 0 0 20px rgba(14,165,233,0.15);
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

/* ============================================
   Search Input - Glass
   ============================================ */
.search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    outline: none;
    transition: all var(--transition);
    margin-bottom: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
}

.search-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(14,165,233,0.12), var(--shadow-glow);
    background-color: var(--glass-bg);
}

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

[data-theme="dark"] .search-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

/* ============================================
   Custom Select - Full Glass
   ============================================ */
.cs-wrapper {
    position: relative;
    margin-bottom: 12px;
    z-index: 10;
}

.cs-open.cs-wrapper {
    z-index: 50;
}

.cs-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cs-input {
    width: 100%;
    padding: 12px 70px 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    background: var(--card-bg-solid);
    outline: none;
    transition: all var(--transition);
    font-family: inherit;
}

.cs-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(14,165,233,0.12), var(--shadow-glow);
}

.cs-input::placeholder { color: var(--text-4); }

.cs-arrow {
    position: absolute;
    right: 12px;
    color: var(--text-4);
    pointer-events: none;
    transition: transform var(--transition);
    display: flex;
    align-items: center;
}

.cs-open .cs-arrow {
    transform: rotate(180deg);
}

.cs-clear {
    position: absolute;
    right: 36px;
    color: var(--text-4);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all var(--transition);
}

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

.cs-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--card-bg-solid);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
}

.cs-open .cs-panel {
    max-height: 320px;
    opacity: 1;
}

.cs-list {
    max-height: 310px;
    overflow-y: auto;
    padding: 4px;
}

.cs-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 14px;
    color: var(--text-2);
}

.cs-item:hover,
.cs-item.cs-highlight {
    background: var(--primary-bg);
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(14,165,233,0.1);
}

.cs-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-item-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-left: 12px;
    flex-shrink: 0;
}

.cs-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-4);
    font-size: 13px;
}

/* ============================================
   Product Info Bar
   ============================================ */
.product-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--primary-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-2);
    border-left: 3px solid var(--primary);
    transition: all var(--transition);
}

.product-info-bar:hover {
    box-shadow: var(--shadow-glow);
}

.product-info-bar .price {
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Product Content Box
   ============================================ */
.product-content-box {
    margin-top: 10px;
    padding: 14px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-2);
    transition: all var(--transition);
}

.product-content-box:hover {
    box-shadow: var(--shadow-sm);
}

.product-content-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-content-title::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E") no-repeat center;
}

[data-theme="dark"] .product-content-title::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E") no-repeat center;
}

/* ============================================
   Form Elements - Glass
   ============================================ */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 6px;
}

.form-group label small {
    color: var(--text-4);
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    outline: none;
    transition: all var(--transition);
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(14,165,233,0.12), var(--shadow-glow);
    background: var(--glass-bg);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-4); }

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

/* ============================================
   Buttons - Glass & Gradient
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::after {
    opacity: 1;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 2px 12px rgba(14,118,110,0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 20px rgba(14,118,110,0.4), var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0) scale(0.97); }

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16,185,129,0.25);
}

.btn-success:hover {
    box-shadow: 0 4px 16px rgba(16,185,129,0.35);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 2px 8px rgba(239,68,68,0.25);
}

.btn-danger:hover {
    box-shadow: 0 4px 16px rgba(239,68,68,0.35);
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245,158,11,0.25);
}

.btn-warning:hover {
    box-shadow: 0 4px 16px rgba(245,158,11,0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-2);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--primary-bg);
    color: var(--primary);
    border-color: var(--primary-light);
    box-shadow: 0 0 12px rgba(14,165,233,0.1);
}

.btn-block { display: flex; width: 100%; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ============================================
   Course List - Glass Cards
   ============================================ */
.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 10px;
}

.select-all-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.select-all-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.course-count {
    font-size: 13px;
    color: var(--text-3);
}

.course-count strong {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-list {
    max-height: 360px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    border: 1.5px solid var(--glass-border);
    animation: fadeIn 0.2s ease;
}

.course-item:hover {
    border-color: var(--primary-light);
    background: var(--primary-bg);
    box-shadow: 0 0 12px rgba(14,165,233,0.08);
}

.course-item.selected,
.course-item:has(input:checked) {
    opacity: 1;
    background: linear-gradient(135deg, rgba(14,118,110,0.08), rgba(14,165,233,0.06));
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 0 16px rgba(14,165,233,0.15), var(--shadow-sm);
    animation: glow-border 2s ease-in-out infinite;
}

.course-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.course-detail { flex: 1; }

.course-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.course-teacher {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 2px;
}

/* ============================================
   Result Boxes - Glass
   ============================================ */
.result-box {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition);
}

.result-box.success {
    background: rgba(16,185,129,0.1);
    color: #065f46;
    border: 1px solid rgba(16,185,129,0.2);
}

.result-box.error {
    background: rgba(239,68,68,0.08);
    color: #991b1b;
    border: 1px solid rgba(239,68,68,0.15);
}

.result-box.warning {
    background: rgba(245,158,11,0.1);
    color: #92400e;
    border: 1px solid rgba(245,158,11,0.15);
}

.result-box.info {
    background: rgba(14,165,233,0.08);
    color: #0c4a6e;
    border: 1px solid rgba(14,165,233,0.15);
}

[data-theme="dark"] .result-box.success { background: rgba(16,185,129,0.12); color: #6ee7b7; border-color: rgba(16,185,129,0.25); }
[data-theme="dark"] .result-box.error { background: rgba(239,68,68,0.1); color: #fca5a5; border-color: rgba(239,68,68,0.2); }
[data-theme="dark"] .result-box.warning { background: rgba(245,158,11,0.1); color: #fcd34d; border-color: rgba(245,158,11,0.2); }
[data-theme="dark"] .result-box.info { background: rgba(14,165,233,0.1); color: #7dd3fc; border-color: rgba(14,165,233,0.2); }

.result-box pre {
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 12px;
    margin-top: 8px;
    padding: 10px;
    background: rgba(0,0,0,0.04);
    border-radius: var(--radius-sm);
    max-height: 150px;
    overflow-y: auto;
}

[data-theme="dark"] .result-box pre {
    background: rgba(255,255,255,0.04);
}

/* ============================================
   Card Section - Glass
   ============================================ */
.card-section {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid var(--glass-border);
    transition: all var(--transition);
}

.card-section:hover {
    box-shadow: var(--shadow-sm);
}

.card-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-2);
}

.card-input-row {
    display: flex;
    gap: 8px;
}

.card-input-row input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: var(--glass-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    outline: none;
    transition: all var(--transition);
    font-family: inherit;
}

.card-input-row input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}

.card-info-box {
    margin-top: 10px;
    padding: 12px 14px;
    background: rgba(16,185,129,0.1);
    color: #065f46;
    border-radius: var(--radius-sm);
    font-size: 13px;
    border: 1px solid rgba(16,185,129,0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.card-info-box.error {
    background: rgba(239,68,68,0.08);
    color: #991b1b;
    border: 1px solid rgba(239,68,68,0.15);
}

[data-theme="dark"] .card-info-box { color: #6ee7b7; }
[data-theme="dark"] .card-info-box.error { color: #fca5a5; }

/* ============================================
   Payment Options - Glass + Glow
   ============================================ */
.pay-options {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.pay-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition);
}

.pay-option:hover {
    border-color: var(--primary-light);
    box-shadow: 0 0 12px rgba(14,165,233,0.08);
}

.pay-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-bg);
    color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 0 20px rgba(14,165,233,0.15);
    animation: glow-border 2s ease-in-out infinite;
}

.pay-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* ============================================
   Order Summary - Glass
   ============================================ */
.order-summary {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid var(--glass-border);
    transition: all var(--transition);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-2);
    border-bottom: 1px solid var(--border-light);
}

.summary-row:last-child { border-bottom: none; }

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 10px;
    border-top: 1.5px solid var(--border);
    color: var(--danger);
}

.summary-row .deduct { color: var(--success); font-weight: 700; }

/* ============================================
   Pay Button - Gradient Glow
   ============================================ */
.btn-pay {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--highlight));
    color: #fff;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(14,118,110,0.3);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-pay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-pay:hover::before {
    transform: translateX(100%);
}

.btn-pay:hover {
    box-shadow: 0 6px 28px rgba(14,118,110,0.4), 0 0 30px rgba(14,165,233,0.15);
    transform: translateY(-2px);
}

.btn-pay:active {
    transform: translateY(0) scale(0.98);
}

.btn-pay:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================
   Loading Spinner
   ============================================ */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: var(--text-4);
}

/* ============================================
   Bottom Navigation - Glass + Glow Indicator
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    z-index: 100;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.06);
    border-top: 1px solid var(--glass-border);
}

[data-theme="dark"] .bottom-nav {
    background: rgba(10,15,30,0.7);
    border-top-color: rgba(255,255,255,0.06);
    box-shadow: 0 -2px 20px rgba(0,0,0,0.3);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    font-size: 11px;
    font-weight: 500;
    transition: all var(--transition);
    gap: 2px;
    position: relative;
    text-decoration: none;
}

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

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

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 8px rgba(14,165,233,0.4);
}

.nav-icon {
    font-size: 20px;
    line-height: 1;
    transition: transform var(--transition-bounce);
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

/* ============================================
   Alert - Glass
   ============================================ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition);
}

.alert-success {
    background: rgba(16,185,129,0.1);
    color: #065f46;
    border: 1px solid rgba(16,185,129,0.2);
}

.alert-danger {
    background: rgba(239,68,68,0.08);
    color: #991b1b;
    border: 1px solid rgba(239,68,68,0.15);
}

[data-theme="dark"] .alert-success { color: #6ee7b7; }
[data-theme="dark"] .alert-danger { color: #fca5a5; }

/* ============================================
   Result Card - Glass
   ============================================ */
.result-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    animation: fadeInUp 0.5s ease both;
}

.result-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    transition: all var(--transition);
}

.result-icon.success {
    background: rgba(16,185,129,0.12);
    color: var(--success);
    box-shadow: 0 0 20px rgba(16,185,129,0.15);
}

.result-icon.pending {
    background: rgba(245,158,11,0.12);
    color: var(--warning);
    box-shadow: 0 0 20px rgba(245,158,11,0.15);
}

.result-icon.expired {
    background: rgba(148,163,184,0.12);
    color: var(--text-3);
    box-shadow: 0 0 20px rgba(148,163,184,0.15);
}

.result-info {
    text-align: left;
    max-width: 360px;
    margin: 0 auto 24px;
}

.result-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ============================================
   Status Badge - Glass
   ============================================ */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all var(--transition);
}

.status-0 {
    background: rgba(245,158,11,0.12);
    color: #92400e;
    border: 1px solid rgba(245,158,11,0.2);
}

.status-1 {
    background: rgba(14,165,233,0.1);
    color: #0c4a6e;
    border: 1px solid rgba(14,165,233,0.2);
}

.status-2 {
    background: rgba(239,68,68,0.1);
    color: #991b1b;
    border: 1px solid rgba(239,68,68,0.15);
}

.status-6 {
    background: rgba(148,163,184,0.12);
    color: #475569;
    border: 1px solid rgba(148,163,184,0.2);
}

[data-theme="dark"] .status-0 { color: #fcd34d; }
[data-theme="dark"] .status-1 { color: #7dd3fc; }
[data-theme="dark"] .status-2 { color: #fca5a5; }
[data-theme="dark"] .status-6 { color: #94a3b8; }

/* ============================================
   Pagination - Glass + Glow
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
}

.pagination a,
.pagination span.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    background: var(--glass-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--glass-border);
    transition: all var(--transition);
    text-decoration: none;
}

.pagination a:hover {
    background: var(--primary-bg);
    color: var(--primary);
    border-color: var(--primary-light);
    box-shadow: 0 0 10px rgba(14,165,233,0.1);
    transform: translateY(-1px);
}

.pagination span.current {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(14,118,110,0.3), 0 0 16px rgba(14,165,233,0.15);
}

/* ============================================
   Toast Component - Glass
   ============================================ */
.ui-toast {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    transition: top 0.35s cubic-bezier(0.4,0,0.2,1);
    white-space: nowrap;
    max-width: 90vw;
}

[data-theme="dark"] .ui-toast {
    background: rgba(15,23,42,0.85);
    border-color: rgba(255,255,255,0.08);
    color: #e2e8f0;
}

.ui-toast-show {
    top: 24px;
}

.ui-toast-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ui-toast-success { color: #10b981; }
.ui-toast-error { color: #ef4444; }
.ui-toast-warning { color: #f59e0b; }
.ui-toast-info { color: #0ea5e9; }

/* ============================================
   Modal Component - Glass
   ============================================ */
.ui-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

[data-theme="dark"] .ui-modal-overlay {
    background: rgba(0,0,0,0.55);
}

.ui-modal-show {
    opacity: 1;
    pointer-events: auto;
}

.ui-modal-box {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-xl);
    padding: 28px 24px 20px;
    max-width: 360px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--glass-border);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.ui-modal-show .ui-modal-box {
    transform: scale(1);
}

.ui-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.ui-modal-msg {
    font-size: 14px;
    color: var(--text-3);
    line-height: 1.6;
    margin-bottom: 24px;
}

.ui-modal-btns {
    display: flex;
    gap: 10px;
}

.ui-modal-btn {
    flex: 1;
    padding: 11px 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.ui-modal-cancel {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-2);
    border: 1px solid var(--glass-border);
}

.ui-modal-cancel:hover {
    background: var(--border-light);
}

.ui-modal-confirm {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 2px 8px rgba(14,118,110,0.25);
}

.ui-modal-confirm:hover {
    box-shadow: 0 4px 12px rgba(14,118,110,0.35), var(--shadow-glow);
    transform: translateY(-1px);
}

/* ============================================
   Loading Component - Glass
   ============================================ */
.ui-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(240,249,255,0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

[data-theme="dark"] .ui-loading-overlay {
    background: rgba(10,15,30,0.65);
}

.ui-loading-show {
    opacity: 1;
    pointer-events: auto;
}

.ui-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ============================================
   Step Indicator
   ============================================ */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
    padding: 0 10px;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: var(--glass-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--text-4);
    border: 2px solid var(--glass-border);
    transition: all var(--transition);
    flex-shrink: 0;
}

.step-dot.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(14,165,233,0.3), 0 0 16px rgba(14,118,110,0.2);
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

.step-dot.done {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
    box-shadow: 0 0 10px rgba(16,185,129,0.25);
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 6px;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.step-line.active {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 0 8px rgba(14,165,233,0.2);
}

.step-line.active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: scanline 2s linear infinite;
}

/* Step panel visibility */
.step-panel {
    animation: fadeIn 0.3s ease;
}

/* ============================================
   Skeleton Loading
   ============================================ */
.skeleton-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    border: 1px solid var(--border);
    padding: 16px;
    overflow: hidden;
}

.skeleton-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.skeleton-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-line {
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(90deg, var(--bg) 25%, var(--border-light) 50%, var(--bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-line.skeleton-title { width: 60%; height: 18px; }
.skeleton-line.skeleton-short { width: 40%; }
.skeleton-line.skeleton-medium { width: 75%; }
.skeleton-badge { width: 52px; height: 22px; border-radius: 11px; background: linear-gradient(90deg, var(--bg) 25%, var(--border-light) 50%, var(--bg) 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; }

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

/* ============================================
   Status Pulse Dot
   ============================================ */
.status-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    margin-right: 6px;
    vertical-align: middle;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.status-completed .status-pulse { display: none; }
.status-error .status-pulse { display: none; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* ============================================
   Scroll to Top Button
   ============================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    font-size: 18px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top-btn:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================================
   Shake Animation (form validation)
   ============================================ */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.shake {
    animation: shake 0.5s ease;
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15) !important;
}

/* ============================================
   Custom Scrollbar (Dark Mode)
   ============================================ */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: transparent;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,0.2);
    border-radius: 3px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(148,163,184,0.35);
}

[data-theme="dark"] {
    scrollbar-width: thin;
    scrollbar-color: rgba(148,163,184,0.2) transparent;
}

/* ============================================
   Course List Stagger
   ============================================ */
.course-item-stagger {
    opacity: 0;
    transform: translateY(12px);
    animation: courseItemIn 0.35s ease forwards;
}

@keyframes courseItemIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Payment Countdown
   ============================================ */
.countdown-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background: var(--info-bg);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-2);
}

.countdown-ring {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 480px) {
    .container { padding: 12px; }
    .header { padding: 16px; }
    .header h1 { font-size: 18px; }
    .order-section { padding: 14px; }
    .order-section:hover { transform: none; }
}

/* ============================================
   Keyframe Animations
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes neon-pulse {
    0% { box-shadow: 0 0 5px rgba(14,165,233,0.3), 0 0 15px rgba(14,165,233,0.1); }
    100% { box-shadow: 0 0 10px rgba(56,189,248,0.5), 0 0 30px rgba(14,165,233,0.2), 0 0 60px rgba(99,102,241,0.1); }
}

@keyframes glow-border {
    0%, 100% { border-color: rgba(14,165,233,0.2); }
    50% { border-color: rgba(56,189,248,0.5); }
}

@keyframes stagger-in {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes scanline {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Apply stagger to order sections and course items */
.order-section:nth-child(1) { animation-delay: 0s; }
.order-section:nth-child(2) { animation-delay: 0.05s; }
.order-section:nth-child(3) { animation-delay: 0.1s; }
.order-section:nth-child(4) { animation-delay: 0.15s; }
.order-section:nth-child(5) { animation-delay: 0.2s; }
