/* ═══════════════════════════════════════════════════════════════════════
   COURSERA MASTER — Design System
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    /* Core palette */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --bg-input: #0d0d14;
    --bg-elevated: #1e1e2a;

    /* Accent — Purple/Violet */
    --accent: #8b5cf6;
    --accent-hover: #a78bfa;
    --accent-dim: rgba(139, 92, 246, 0.15);
    --accent-glow: rgba(139, 92, 246, 0.3);

    /* Text */
    --text-primary: #e8e8f0;
    --text-secondary: #8888a0;
    --text-muted: #55556a;

    /* Borders */
    --border: #25253a;
    --border-hover: #35355a;

    /* Status colors */
    --status-pending: #f59e0b;
    --status-checking: #3b82f6;
    --status-working: #8b5cf6;
    --status-completed: #10b981;
    --error: #ef4444;
    --success: #10b981;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 50%, #0a0a0f 100%);
    --gradient-accent: linear-gradient(135deg, #7c3aed 0%, #a78bfa 50%, #c084fc 100%);
    --gradient-card: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);

    /* Sizing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

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

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   LANDING PAGE — NAVBAR
   ═══════════════════════════════════════════════════════════════ */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    font-size: 28px;
}

.nav-title {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-accent);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-btn:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.nav-btn-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gradient-accent);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.nav-btn-login {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

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

/* ═══════════════════════════════════════════════════════════════
   LANDING PAGE — HERO
   ═══════════════════════════════════════════════════════════════ */
.landing-page {
    min-height: 100vh;
    background: var(--gradient-hero);
}

.landing-hero {
    min-height: 100vh;
    padding: 100px 40px 60px;
    position: relative;
    overflow: hidden;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite 2s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #a855f7 0%, transparent 70%);
    top: 50%;
    left: 40%;
    animation: float 12s ease-in-out infinite 4s;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeIn 0.8s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-dim);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 40px;
    color: var(--accent-hover);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--gradient-accent);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-hover);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   LANDING PAGE — FORM CARD
   ═══════════════════════════════════════════════════════════════ */
.hero-form-wrapper {
    animation: slideUp 0.8s ease-out 0.3s backwards;
}

.form-card {
    background: rgba(22, 22, 31, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(139, 92, 246, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

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

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--gradient-accent);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.spinner-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

.form-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 520px;
    width: 100%;
    position: relative;
    animation: fadeInScale 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Pricing Modal */
.pricing-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.pricing-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.pricing-item.highlight {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.pricing-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.pricing-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-hover);
    margin-bottom: 4px;
}

.pricing-note {
    font-size: 12px;
    color: var(--text-muted);
}

.pricing-info {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.pricing-info h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.pricing-info ol {
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pricing-promo {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.pricing-promo p {
    font-size: 14px;
    color: var(--text-secondary);
}

.promo-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
}

.promo-link:hover {
    text-decoration: underline;
}

/* Success Modal */
.modal-success {
    text-align: center;
}

.success-icon-wrapper {
    margin-bottom: 20px;
}

.success-icon {
    font-size: 64px;
    display: inline-block;
    animation: successPop 0.5s ease;
}

.modal-success h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--success);
}

.modal-success p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.success-note {
    font-size: 14px;
    color: var(--accent-hover) !important;
    font-weight: 500;
}

.btn-modal-close {
    margin-top: 24px;
    padding: 14px 32px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-close:hover {
    background: var(--accent-hover);
}

/* Confirm Modal */
.modal-confirm {
    text-align: center;
}

.modal-confirm h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.modal-confirm p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-confirm-yes {
    padding: 12px 28px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-confirm-yes:hover {
    background: var(--accent-hover);
}

.btn-confirm-no {
    padding: 12px 28px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-confirm-no:hover {
    border-color: var(--error);
    color: var(--error);
}

/* ═══════════════════════════════════════════════════════════════
   LOGIN SCREEN
   ═══════════════════════════════════════════════════════════════ */
.login-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 500;
}

.login-container {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 420px;
    text-align: center;
    animation: fadeInScale 0.3s ease;
}

.login-logo {
    font-size: 48px;
    margin-bottom: 16px;
}

.login-container h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.login-container > p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 28px;
}

.login-container input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s;
}

.login-container input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

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

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary-red {
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--error);
    background: transparent;
    color: var(--error);
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary-red:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-secondary-green {
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--success);
    background: transparent;
    color: var(--success);
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary-green:hover {
    background: rgba(16, 185, 129, 0.1);
}

.error-msg {
    color: var(--error);
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
}

.btn-back-landing {
    margin-top: 20px;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-back-landing:hover {
    color: var(--accent-hover);
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD — SHARED
   ═══════════════════════════════════════════════════════════════ */
.dashboard {
    min-height: 100vh;
    background: var(--bg-primary);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.dashboard-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-logo {
    font-size: 28px;
}

.dashboard-header h1 {
    font-size: 20px;
    font-weight: 600;
}

.dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-name {
    color: var(--text-secondary);
    font-size: 14px;
}

.role-badge {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.staff {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-hover);
}

.role-badge.user {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.btn-logout {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--error);
    color: var(--error);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: var(--error);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD — TABS
   ═══════════════════════════════════════════════════════════════ */
.dashboard-tabs {
    display: flex;
    gap: 4px;
    padding: 16px 32px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.tab-btn.active {
    color: var(--accent-hover);
    border-bottom-color: var(--accent);
}

.tab-content {
    padding: 24px 32px;
    animation: fadeIn 0.3s ease;
}

.section-title {
    margin-bottom: 24px;
}

.section-title h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   ORDERS LIST & CARDS
   ═══════════════════════════════════════════════════════════════ */
.orders-list {
    display: grid;
    gap: 16px;
}

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.order-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.order-customer-name {
    font-size: 18px;
    font-weight: 600;
}

.order-date {
    font-size: 12px;
    color: var(--text-muted);
}

.order-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.order-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-detail-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.order-detail-value {
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-all;
}

.order-detail-value a {
    color: var(--accent-hover);
    text-decoration: none;
}

.order-detail-value a:hover {
    text-decoration: underline;
}

.order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.btn-claim {
    padding: 10px 24px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-claim:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-action {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-primary);
    transition: all 0.2s;
}

.btn-action:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.btn-action.danger {
    border-color: var(--error);
    color: var(--error);
}

.btn-action.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-action.primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn-action.primary:hover {
    background: var(--accent-hover);
}

.btn-small {
    padding: 6px 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
}

.btn-small:hover {
    background: var(--accent-hover);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--status-pending);
}

.status-badge.checking {
    background: rgba(59, 130, 246, 0.15);
    color: var(--status-checking);
}

.status-badge.working {
    background: rgba(139, 92, 246, 0.15);
    color: var(--status-working);
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--status-completed);
}

/* Account Info Box */
.account-info-box {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 12px;
}

.account-info-box h4 {
    font-size: 13px;
    color: var(--accent-hover);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.account-info-row span:first-child {
    color: var(--text-secondary);
    font-size: 13px;
}

.account-info-row span:last-child {
    font-family: 'Consolas', monospace;
    font-size: 14px;
    color: var(--text-primary);
    user-select: all;
}

/* Mooc Section */
.mooc-section {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

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

.mooc-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mooc-input {
    width: 60px;
    padding: 6px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    text-align: center;
}

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

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.cert-item.has-cert {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.cert-name {
    font-size: 14px;
    font-weight: 500;
}

.cert-actions {
    display: flex;
    gap: 6px;
}

.cert-status {
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   FINANCE SECTION
   ═══════════════════════════════════════════════════════════════ */
.finance-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.finance-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.finance-card.highlight {
    border-color: var(--accent);
    background: var(--gradient-card);
}

.finance-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.finance-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-hover);
    margin-bottom: 4px;
}

.finance-unit {
    font-size: 12px;
    color: var(--text-muted);
}

.commission-input {
    width: 60px;
    padding: 4px 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

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

.completed-orders-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.orders-list.compact .order-card {
    padding: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   USER DASHBOARD
   ═══════════════════════════════════════════════════════════════ */
.user-dashboard-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px;
}

.user-status-section,
.user-progress-section,
.user-certificates-section,
.user-staff-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    animation: fadeIn 0.4s ease;
}

.user-status-section h2,
.user-progress-section h2,
.user-certificates-section h2,
.user-staff-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Status Timeline */
.status-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
}

.timeline-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 3px solid var(--border);
    transition: all 0.3s;
    position: relative;
}

.timeline-step.active .timeline-dot {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.timeline-step.completed .timeline-dot {
    border-color: var(--success);
    background: var(--success);
}

.timeline-step.completed .timeline-dot::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.timeline-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.timeline-step.active .timeline-label,
.timeline-step.completed .timeline-label {
    color: var(--text-primary);
}

.timeline-connector {
    width: 60px;
    height: 3px;
    background: var(--border);
    margin-bottom: 28px;
}

.timeline-connector.active {
    background: var(--accent);
}

/* Progress Bar */
.progress-info {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.progress-info span {
    color: var(--accent-hover);
    font-size: 24px;
}

.progress-bar-wrapper {
    width: 100%;
    height: 12px;
    background: var(--bg-elevated);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-accent);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: right;
}

/* Certificates Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.certificate-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s;
}

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

.certificate-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.certificate-card .cert-label {
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* Staff Contact Card */
.staff-contact-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.staff-contact-card .staff-name-display {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.staff-contact-card .staff-facebook {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-sm);
    margin-top: 8px;
    transition: all 0.2s;
}

.staff-contact-card .staff-facebook:hover {
    background: rgba(59, 130, 246, 0.2);
}

.staff-contact-note {
    margin-top: 16px;
    padding: 12px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state.large {
    padding: 80px 20px;
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.empty-state h2 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 15px;
    max-width: 400px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   LOADING OVERLAY
   ═══════════════════════════════════════════════════════════════ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 9999;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-overlay p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ═══════════════════════════════════════════════════════════════
   STATUS SELECTOR
   ═══════════════════════════════════════════════════════════════ */
.status-select {
    padding: 6px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

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

/* ═══════════════════════════════════════════════════════════════
   FILE INPUT STYLED
   ═══════════════════════════════════════════════════════════════ */
.file-input-wrapper {
    position: relative;
    display: inline-block;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Payment input */
.payment-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.payment-input {
    width: 120px;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
}

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

.payment-unit {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .landing-nav {
        padding: 12px 20px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 12px;
    }

    .nav-actions {
        justify-content: center;
        width: 100%;
        gap: 12px;
    }

    .nav-btn-badge {
        display: none;
    }

    .landing-hero {
        padding: 80px 20px 40px;
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    .dashboard-header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .dashboard-header h1 {
        font-size: 16px;
    }

    .dashboard-tabs {
        padding: 12px 16px 0;
        overflow-x: auto;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .tab-content {
        padding: 16px;
    }

    .order-details {
        grid-template-columns: 1fr;
    }

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

    .user-dashboard-content {
        padding: 16px;
    }

    .pricing-table {
        grid-template-columns: 1fr;
    }

    .status-timeline {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .timeline-step {
        flex-direction: row;
        gap: 16px;
    }

    .timeline-connector {
        width: 3px;
        height: 30px;
        margin-left: 16px;
        margin-bottom: 0;
    }
}

@media (max-width: 500px) {
    .form-card {
        padding: 24px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .finance-overview {
        grid-template-columns: 1fr;
    }

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

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 6px;
}

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

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

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

/* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════ */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    animation: slideUp 0.3s ease;
    min-width: 280px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.toast.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.toast.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

.toast.info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

/* ═══════════════════════════════════════════════════════════════
   CONFIRM INPUT WRAPPER
   ═══════════════════════════════════════════════════════════════ */
.confirm-input-wrapper {
    margin-top: 16px;
}

.confirm-input-wrapper input {
    margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN DASHBOARD
   ═══════════════════════════════════════════════════════════════ */
.admin-badge {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
    color: white !important;
}

/* Admin Stats Bar */
.admin-stats-bar {
    display: flex;
    gap: 16px;
    padding: 16px 32px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.admin-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    flex: 1;
    transition: all 0.2s;
}

.admin-stat:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.admin-stat-icon {
    font-size: 24px;
}

.admin-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-hover);
}

.admin-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Admin Actions */
.admin-actions {
    gap: 8px;
    flex-wrap: wrap;
}

/* Admin Staff Orders Dropdown */
.admin-staff-orders {
    margin-top: 12px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.admin-staff-orders summary {
    cursor: pointer;
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    padding: 8px 0;
    user-select: none;
}

.admin-staff-orders summary:hover {
    color: var(--accent-hover);
}

.admin-sub-orders {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.admin-sub-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

/* Purge Button (danger) */
.admin-purge-btn {
    background: rgba(220, 38, 38, 0.1) !important;
    border-color: #dc2626 !important;
    color: #dc2626 !important;
    font-weight: 600;
}

.admin-purge-btn:hover {
    background: rgba(220, 38, 38, 0.25) !important;
}

/* Admin Settings */
.admin-settings-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive Admin */
@media (max-width: 900px) {
    .admin-stats-bar {
        flex-direction: column;
        padding: 12px 16px;
        gap: 8px;
    }

    .admin-stat {
        padding: 10px 16px;
    }

    .admin-stat-value {
        font-size: 22px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL-DRIVEN DEMO SECTION
   ═══════════════════════════════════════════════════════════════ */
.scroll-demo-section {
    position: relative;
    padding: 0 0 80px;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.03) 30%, rgba(139, 92, 246, 0.06) 60%, transparent 100%);
}

/* Section Header */
.scroll-demo-header {
    text-align: center;
    padding: 80px 40px 60px;
    position: relative;
}

.scroll-demo-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent-dim);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 40px;
    color: var(--accent-hover);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.scroll-demo-header h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.scroll-demo-header p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 500px;
    margin: 0 auto 32px;
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-hint-icon {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Scroll Container Layout */
.scroll-demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

/* LEFT: Sticky Dashboard */
.scroll-demo-left {
    position: sticky;
    top: 100px;
    height: fit-content;
    align-self: start;
}

.mock-dashboard {
    background: rgba(22, 22, 31, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 0;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(139, 92, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: box-shadow 0.5s ease;
}

.mock-dashboard.glow-success {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(16, 185, 129, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
}

/* Mock Header */
.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.mock-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mock-logo { font-size: 22px; }

.mock-title {
    font-size: 15px;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mock-role-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    letter-spacing: 0.5px;
}

.mock-header-right {
    display: flex;
    align-items: center;
}

.mock-user-email {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Consolas', monospace;
}

/* Mock Sections */
.mock-section {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(37, 37, 58, 0.5);
    transition: all 0.5s ease;
}

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

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

/* Mock Timeline */
.mock-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 10px 0;
}

.mock-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mock-timeline-step span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.4s ease;
}

.mock-timeline-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2.5px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
}

.mock-timeline-step.active .mock-timeline-dot {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
}

.mock-timeline-step.active span {
    color: var(--accent-hover);
    font-weight: 600;
}

.mock-timeline-step.completed .mock-timeline-dot {
    border-color: var(--success);
    background: var(--success);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.mock-timeline-step.completed .mock-timeline-dot::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: bold;
}

.mock-timeline-step.completed span {
    color: var(--success);
}

.mock-timeline-connector {
    width: 45px;
    height: 2.5px;
    background: var(--border);
    margin-bottom: 22px;
    transition: background 0.4s ease;
    border-radius: 2px;
}

.mock-timeline-connector.active {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.mock-timeline-connector.completed {
    background: var(--success);
}

/* Mock Progress */
.mock-progress-info {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.mock-progress-info span {
    color: var(--accent-hover);
    font-size: 20px;
}

.mock-progress-bar-wrapper {
    width: 100%;
    height: 10px;
    background: var(--bg-elevated);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 6px;
}

.mock-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-accent);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    border-radius: 5px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.mock-progress-bar.complete {
    background: linear-gradient(135deg, #10b981, #34d399, #6ee7b7);
}

.mock-progress-text {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
    transition: color 0.4s ease;
}

.mock-progress-text.complete {
    color: var(--success);
    font-weight: 600;
}

/* Mock Certificates Grid */
.mock-certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mock-cert-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mock-cert-card.visible {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.mock-cert-card.visible {
    border-color: rgba(139, 92, 246, 0.3);
}

.mock-cert-final.visible {
    border-color: var(--success) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.mock-cert-img {
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mock-cert-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mock-cert-placeholder {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
    padding: 8px;
}

.mock-cert-final .mock-cert-placeholder {
    font-size: 12px;
    color: var(--success);
}

/* Mock Staff */
.mock-staff-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}

.mock-staff-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.mock-staff-fb {
    font-size: 13px;
    color: #60a5fa;
    font-weight: 500;
}

/* RIGHT: Scroll Story Steps */
.scroll-demo-right {
    padding: 20px 0;
}

.scroll-step {
    padding: 60px 40px;
    margin-bottom: 40px;
    background: rgba(22, 22, 31, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 37, 58, 0.6);
    border-radius: 20px;
    position: relative;
    opacity: 0.3;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-step.in-view {
    opacity: 1;
    transform: translateY(0);
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.scroll-step-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.scroll-step h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.scroll-step p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.scroll-step-detail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.scroll-step-detail.success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
    color: var(--success);
}

.detail-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.detail-dot.checking {
    background: var(--status-checking);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.detail-dot.working {
    background: var(--status-working);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

.detail-dot.live {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    animation: ping-dot 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.detail-dot.completed {
    background: var(--status-completed);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

@keyframes ping-dot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.scroll-step-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    background: var(--accent-dim);
    color: var(--accent-hover);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scroll-step-tag.final {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.scroll-step-cta {
    margin-top: 20px;
}

.scroll-cta-btn {
    padding: 14px 32px;
    background: var(--gradient-accent);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE SCROLL DEMO — Full-Page Dashboard + Overlay Notes
   ═══════════════════════════════════════════════════════════════ */

/* Mobile scroll trigger spacers (invisible, just for scroll detection) */
.mobile-scroll-triggers {
    display: none;
}

/* Mobile overlay note — floating card at bottom */
.mobile-note-overlay {
    display: none;
}

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

@keyframes mobileNoteOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.97);
    }
}

@keyframes mobileNotePulse {
    0%, 100% { box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 0 rgba(139, 92, 246, 0.2); }
    50% { box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 6px rgba(139, 92, 246, 0); }
}

/* Responsive Scroll Demo — Mobile */
@media (max-width: 1000px) {
    .scroll-demo-section {
        padding-bottom: 150px;
    }

    .scroll-demo-container {
        display: block;
        padding: 0;
        position: relative;
    }

    /* Dashboard: full-width, sticky, NO scale-down */
    .scroll-demo-left {
        position: sticky;
        top: 56px;
        z-index: 10;
        padding: 0 12px;
        transform: none;
        margin-bottom: 0;
    }

    .mock-dashboard {
        border-radius: 16px;
        box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.6),
            0 0 30px rgba(139, 92, 246, 0.06);
    }

    .mock-header {
        padding: 12px 16px;
    }

    .mock-logo { font-size: 20px; }
    .mock-title { font-size: 14px; }
    .mock-user-email { font-size: 11px; }

    .mock-section {
        padding: 14px 16px;
    }

    .mock-section h3 {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .mock-timeline-dot {
        width: 26px;
        height: 26px;
    }

    .mock-timeline-step span {
        font-size: 11px;
    }

    .mock-timeline-connector {
        width: 40px;
        margin-bottom: 20px;
    }

    .mock-timeline-step.completed .mock-timeline-dot::after {
        font-size: 12px;
    }

    .mock-progress-info {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .mock-progress-info span {
        font-size: 18px;
    }

    .mock-progress-bar-wrapper {
        height: 8px;
        margin-bottom: 5px;
    }

    .mock-progress-text {
        font-size: 11px;
    }

    .mock-certs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .mock-cert-img {
        aspect-ratio: 16/10;
    }

    .mock-cert-placeholder {
        font-size: 10px;
        padding: 6px;
    }

    .mock-cert-final .mock-cert-placeholder {
        font-size: 11px;
    }

    .mock-staff-card {
        padding: 12px;
    }

    .mock-staff-name {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .mock-staff-fb {
        font-size: 12px;
    }

    .scroll-demo-header {
        padding: 60px 20px 30px;
    }

    .scroll-demo-header h2 {
        font-size: 28px;
    }

    .scroll-demo-header p {
        font-size: 15px;
    }

    /* Hide desktop scroll steps on mobile */
    .scroll-demo-right {
        display: none;
    }

    /* Show mobile scroll triggers */
    .mobile-scroll-triggers {
        display: block;
        position: relative;
        z-index: 5;
    }

    .mobile-scroll-trigger {
        height: 70vh;
        pointer-events: none;
    }

    .mobile-scroll-trigger:last-child {
        height: 40vh;
    }

    /* Show mobile overlay note */
    .mobile-note-overlay {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 12px;
        right: 12px;
        z-index: 50;
        pointer-events: none;
    }

    .mobile-note {
        background: rgba(20, 20, 30, 0.93);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(139, 92, 246, 0.35);
        border-radius: 16px;
        padding: 16px 20px;
        pointer-events: auto;
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow:
            0 8px 40px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(139, 92, 246, 0.08);
    }

    .mobile-note.visible {
        opacity: 1;
        transform: translateY(0) scale(1);
        animation: mobileNotePulse 2.5s ease-in-out 0.5s;
    }

    .mobile-note-step {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 6px;
    }

    .mobile-note-step-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--accent);
        box-shadow: 0 0 8px var(--accent-glow);
        flex-shrink: 0;
    }

    .mobile-note-step-label {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        color: var(--accent-hover);
    }

    .mobile-note-title {
        font-size: 15px;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .mobile-note-desc {
        font-size: 12px;
        color: var(--text-secondary);
        line-height: 1.5;
    }

    .mobile-note.note-success {
        border-color: rgba(16, 185, 129, 0.4);
        box-shadow:
            0 8px 40px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(16, 185, 129, 0.1);
    }

    .mobile-note.note-success .mobile-note-step-dot {
        background: var(--success);
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    }

    .mobile-note.note-success .mobile-note-step-label {
        color: var(--success);
    }

    /* Scroll indicator dots */
    .mobile-scroll-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
    }

    .mobile-scroll-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--border);
        transition: all 0.3s ease;
    }

    .mobile-scroll-dot.active {
        background: var(--accent);
        box-shadow: 0 0 6px var(--accent-glow);
        transform: scale(1.3);
    }

    /* CTA button in mobile note */
    .mobile-note-cta {
        display: inline-block;
        margin-top: 10px;
        padding: 10px 24px;
        background: var(--gradient-accent);
        background-size: 200% 200%;
        animation: gradientShift 3s ease infinite;
        color: white;
        border: none;
        border-radius: 10px;
        font-family: inherit;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .mobile-note-cta:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 16px var(--accent-glow);
    }
}

@media (max-width: 500px) {
    .scroll-demo-left {
        padding: 0 8px;
    }

    .scroll-demo-header h2 {
        font-size: 24px;
    }

    .scroll-demo-header p {
        font-size: 14px;
    }

    .mock-header {
        padding: 10px 12px;
    }

    .mock-section {
        padding: 12px;
    }

    .mock-section h3 {
        font-size: 12px;
    }

    .mock-timeline-dot {
        width: 22px;
        height: 22px;
    }

    .mock-timeline-step span {
        font-size: 10px;
    }

    .mock-timeline-connector {
        width: 32px;
    }

    .mock-certs-grid {
        gap: 5px;
    }

    .mock-cert-placeholder {
        font-size: 9px;
        padding: 4px;
    }

    .mobile-note-overlay {
        bottom: 16px;
        left: 8px;
        right: 8px;
    }

    .mobile-note {
        padding: 14px 16px;
        border-radius: 14px;
    }

    .mobile-note-title {
        font-size: 14px;
    }

    .mobile-note-desc {
        font-size: 11px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PAGINATION CONTROLS
   ═══════════════════════════════════════════════════════════════ */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 0;
    margin-top: 12px;
}

.btn-page {
    padding: 8px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-page:hover:not(:disabled) {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent-hover);
}

.btn-page:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.page-info {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   UNCLAIMED ORDER HIGHLIGHT
   ═══════════════════════════════════════════════════════════════ */
.unclaimed-highlight {
    border-left: 3px solid #f59e0b !important;
    animation: unclaimedGlow 2.5s ease-in-out infinite;
}

@keyframes unclaimedGlow {
    0%, 100% { box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
    50% { box-shadow: 0 2px 12px rgba(245, 158, 11, 0.12), 0 0 20px rgba(245, 158, 11, 0.06); }
}

.claimed-card {
    opacity: 0.7;
    border-left: 3px solid var(--border) !important;
}

.pulse-badge {
    animation: pulseBadge 1.5s ease-in-out infinite;
}

@keyframes pulseBadge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.status-badge.assigned {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════════
   QR PAYMENT MODAL
   ═══════════════════════════════════════════════════════════════ */
.modal-qr {
    max-width: 480px;
    width: 90%;
}

.modal-qr .modal-header {
    text-align: center;
    padding: 24px 24px 16px;
}

.modal-qr .modal-header .modal-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 8px;
}

.modal-qr .modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-qr .modal-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.qr-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
}

.qr-image {
    width: 260px;
    height: 260px;
    border-radius: 12px;
    background: white;
    padding: 8px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.qr-info {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
}

.qr-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(37, 37, 58, 0.5);
}

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

.qr-info-row span:first-child {
    color: var(--text-muted);
}

.qr-note {
    text-align: center;
    font-size: 12px;
    color: #f59e0b;
    padding: 12px 24px 0;
    line-height: 1.6;
}

.btn-modal-close {
    display: block;
    width: calc(100% - 48px);
    margin: 16px 24px 24px;
    padding: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-modal-close:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   PAYMENT QR SECTION (in order card)
   ═══════════════════════════════════════════════════════════════ */
.payment-qr-section {
    background: rgba(139, 92, 246, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 8px 0;
}

.payment-qr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.payment-qr-header h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.payment-confirmed-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
    font-weight: 600;
}

.payment-qr-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.qr-amount-display {
    font-size: 14px;
    font-weight: 700;
    color: var(--success);
}

.qr-content-display {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
}

.payment-qr-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   WALLET CARDS (Staff Finance Tab)
   ═══════════════════════════════════════════════════════════════ */
.wallet-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.03)) !important;
    border-color: rgba(245, 158, 11, 0.25) !important;
}

.wallet-card .finance-label {
    color: #fbbf24 !important;
}

.wallet-card .finance-value {
    color: #f59e0b !important;
    font-size: 32px !important;
}

.wallet-tx-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.wallet-tx-card:hover {
    border-color: rgba(139, 92, 246, 0.2);
}

.wallet-tx-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wallet-tx-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.wallet-tx-desc {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.wallet-tx-amount {
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.wallet-tx-meta {
    display: flex;
    gap: 16px;
    margin-top: 6px;
    padding-left: 28px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   RECONCILIATION STYLES
   ═══════════════════════════════════════════════════════════════ */
.reconciliation-upload-zone {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.reconciliation-upload-zone.drag-over {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.06);
}

.upload-zone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-icon {
    font-size: 48px;
}

.upload-zone-inner p {
    color: var(--text-secondary);
    font-size: 14px;
}

.upload-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.upload-note {
    font-size: 12px !important;
    color: var(--text-muted) !important;
    max-width: 400px;
    line-height: 1.6;
}

.recon-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.recon-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.recon-card.success { border-color: rgba(52, 211, 153, 0.3); }
.recon-card.warning { border-color: rgba(245, 158, 11, 0.3); }
.recon-card.danger { border-color: rgba(239, 68, 68, 0.3); }
.recon-card.info { border-color: rgba(59, 130, 246, 0.3); }

.recon-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.recon-card.success .recon-card-value { color: #34d399; }
.recon-card.warning .recon-card-value { color: #f59e0b; }
.recon-card.danger .recon-card-value { color: #ef4444; }
.recon-card.info .recon-card-value { color: #60a5fa; }

.recon-card-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.recon-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.recon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 8px;
    gap: 12px;
    flex-wrap: wrap;
}

.recon-item.success { border-left: 3px solid #34d399; }
.recon-item.warning { border-left: 3px solid #f59e0b; }
.recon-item.danger { border-left: 3px solid #ef4444; }
.recon-item.info { border-left: 3px solid #60a5fa; }

.recon-item code {
    font-size: 11px;
    padding: 1px 6px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 4px;
    color: #a78bfa;
}
