/* ==========================================
   CSS Design System — 33rd RUN FOR PANGSILATHONG SUKSA
   Theme: Soft UI Evolution (Light/Dark)
   ========================================== */

:root {
    --primary: #1C1917;
    --on-primary: #FFFFFF;
    --secondary: #44403C;
    --accent: #A16207;
    --bg: #FAFAF9;
    --surface: #FFFFFF;
    --text: #0C0A09;
    --text-muted: #78716C;
    --border: #D6D3D1;
    --input-bg: #FFFFFF;
    --card-bg: rgba(255,255,255,0.95);
    --glass-border: rgba(255,255,255,0.8);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --overlay-gradient: linear-gradient(135deg, rgba(250,250,249,0.9) 0%, rgba(255,255,255,0.7) 100%);
    --radius: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Prompt', 'Kanit', sans-serif !important;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    transition: var(--transition);
}

/* Utilities */
.flex-center { display: flex; align-items: center; }
.gap-2 { gap: 8px; }
.icon-inline { width: 1.2em; height: 1.2em; vertical-align: text-bottom; }
.icon-sm { width: 1.1em; height: 1.1em; }

/* ==========================================
   Loading & Toast
   ========================================== */
.loading-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(5px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 20px; color: white;
}
.loader-spinner {
    width: 50px; height: 50px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast-container { position: fixed; top: 90px; right: 20px; z-index: 9998; display: flex; flex-direction: column; gap: 10px; }
.toast {
    padding: 14px 24px; border-radius: 12px; color: white; font-weight: 500;
    box-shadow: var(--shadow-md); animation: slideIn 0.3s ease; min-width: 280px;
    display: flex; align-items: center; gap: 10px;
}
.toast.success { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.toast.error { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.toast.info { background: linear-gradient(135deg, #3498db, #2980b9); }
@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ==========================================
   Header
   ========================================== */
.app-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 24px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.logo-container {
    display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.header-logo { height: 42px; width: auto; object-fit: contain; }
.brand-text {
    font-size: 1.3rem; font-weight: 700; color: var(--primary);
    letter-spacing: 1px;
}
.controls { display: flex; gap: 8px; align-items: center; }
.icon-btn {
    background: var(--input-bg); border: 1px solid var(--border); color: var(--text);
    padding: 8px 12px; border-radius: 10px; cursor: pointer; font-weight: 600;
    transition: var(--transition); font-size: 0.85rem;
}
.icon-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.btn { padding: 8px 16px; border-radius: 10px; cursor: pointer; font-weight: 500; border: none; transition: var(--transition); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }

/* ==========================================
   Layout
   ========================================== */
.container { width: 100%; max-width: 960px; margin: 30px auto; padding: 0 20px; }
.view { display: none; }
.view.active { display: block; animation: scaleFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes scaleFadeUp { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.hidden { display: none !important; }

/* ==========================================
   Form Card
   ========================================== */
.form-card {
    background: var(--card-bg); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
    padding: 40px; box-shadow: var(--shadow-md); color: var(--text);
}
.card-sm { max-width: 480px; margin: 0 auto; }
.form-card h1 { text-align: center; margin-bottom: 10px; font-size: 1.6rem; color: var(--primary); }
.form-card h2 { text-align: center; margin-bottom: 25px; font-size: 1.4rem; color: var(--primary); }

/* Card Hero (Login page) */
.card-hero { text-align: center; margin-bottom: 30px; }
.hero-logo { width: 100px; height: auto; margin-bottom: 10px; }
.card-hero h1 {
    font-size: 2rem; font-weight: 800; letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.subtitle { color: var(--text-muted); font-size: 0.95rem; margin-top: 5px; }
.event-date {
    display: inline-block; margin-top: 10px; padding: 6px 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
    letter-spacing: 0.5px;
}
.card-hero h1 sup { font-size: 0.5em; vertical-align: super; }
.vcard-header h2 sup { font-size: 0.5em; vertical-align: super; }

/* Input with Icon */
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; }
.input-icon input { padding-left: 42px !important; }

/* ==========================================
   Form Elements
   ========================================== */
.form-group { margin-bottom: 18px; }
.form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.form-group.half { flex: 1; min-width: 220px; }
label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.92rem; }

input[type="text"], input[type="email"], input[type="tel"],
input[type="date"], input[type="number"], input[type="datetime-local"],
input[type="password"], select {
    width: 100%; padding: 12px 16px;
    border: 2px solid var(--border); border-radius: var(--radius);
    background: var(--input-bg); color: var(--text);
    transition: var(--transition); font-size: 0.95rem;
    font-family: 'Prompt', 'Kanit', sans-serif;
}
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(28,25,23,0.15); }

input[type="file"] {
    width: 100%; padding: 12px;
    background: var(--input-bg); border: 2px dashed var(--border);
    border-radius: var(--radius); color: var(--text); cursor: pointer;
}
input[type="file"]:hover { border-color: var(--secondary); }

/* Profile Upload */
.profile-upload-area {
    width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 15px;
    border: 3px dashed var(--border); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; transition: var(--transition); background: var(--input-bg);
}
.profile-upload-area:hover { border-color: var(--secondary); transform: scale(1.03); }
.profile-preview { width: 100%; height: 100%; object-fit: cover; }
.profile-placeholder { text-align: center; color: var(--text-muted); }
.profile-placeholder span { font-size: 2rem; display: block; }
.profile-placeholder p { font-size: 0.75rem; margin-top: 4px; }

/* Section Divider */
.section-divider {
    display: flex; align-items: center; margin: 30px 0 20px; gap: 12px;
}
.section-divider::before, .section-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}
.section-divider span { font-weight: 600; font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }

/* Step Indicator */
.step-indicator { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; }
.step {
    display: flex; align-items: center; gap: 6px; padding: 6px 14px;
    border-radius: 20px; font-size: 0.8rem; font-weight: 500;
    background: var(--input-bg); color: var(--text-muted); border: 1px solid var(--border);
}
.step span { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; background: var(--border); color: var(--text-muted); }
.step.active { background: var(--primary); color: white; border-color: var(--primary); }
.step.active span { background: rgba(255,255,255,0.3); color: white; }
.step.done { background: var(--secondary); color: white; border-color: var(--secondary); }
.step.done span { background: rgba(255,255,255,0.3); color: white; }

/* Race Cards */
.race-cards { display: flex; gap: 16px; }
.race-card { flex: 1; cursor: pointer; }
.race-card input { display: none; }
.card-content {
    border: 2px solid var(--border); border-radius: var(--radius);
    padding: 20px; text-align: center; background: var(--input-bg);
    transition: var(--transition); position: relative;
}
.card-content h3 { font-size: 2rem; margin: 8px 0 4px; }
.card-content .price { font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.race-badge {
    display: inline-block; padding: 2px 10px; border-radius: 20px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
}
.race-badge.fun { background: var(--bg); color: var(--secondary); }
.race-badge.mini { background: var(--bg); color: var(--accent); }
.race-card input:checked + .card-content {
    border-color: var(--primary); background: var(--surface);
    transform: translateY(-3px); box-shadow: var(--shadow-md);
}

/* Size Grid */
.size-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.size-option { cursor: pointer; }
.size-option input { display: none; }
.size-option span {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 10px 8px; border: 2px solid var(--border); border-radius: 10px;
    font-weight: 600; font-size: 0.9rem; transition: var(--transition);
    background: var(--input-bg);
}
.size-option span small { font-size: 0.7rem; font-weight: 400; color: var(--text-muted); }
.size-option input:checked + span { border-color: var(--primary); background: var(--surface); color: var(--primary); }

/* Checkbox */
.checkbox-label { display: flex; align-items: flex-start; cursor: pointer; font-weight: 400; margin-bottom: 12px; gap: 10px; position: relative; }
.checkbox-label input { position: absolute; opacity: 0; width: 1px; height: 1px; left: 0; top: 0; z-index: -1; }
.custom-checkbox {
    width: 22px; height: 22px; min-width: 22px; border: 2px solid var(--border);
    border-radius: 6px; display: flex; align-items: center; justify-content: center;
    transition: var(--transition); margin-top: 2px;
}
.checkbox-label input:checked + .custom-checkbox { background: var(--secondary); border-color: var(--secondary); }
.checkbox-label input:checked + .custom-checkbox::after { content: '✓'; color: white; font-size: 13px; font-weight: bold; }

/* Terms */
.terms-box { margin: 10px 0 15px; }
.terms-content {
    background: var(--input-bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 14px; font-size: 0.85rem; color: var(--text-muted);
    max-height: 130px; overflow-y: auto; margin-top: 8px; line-height: 1.6;
}

/* Agreements */
.agreements { margin-top: 10px; }

/* ==========================================
   Buttons
   ========================================== */
.btn-row { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.submit-btn, .cancel-btn {
    width: 100%; padding: 14px; border: none; border-radius: 30px;
    font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: var(--transition); font-family: 'Prompt', 'Kanit', sans-serif;
    display: flex; justify-content: center; align-items: center; gap: 8px;
}
.submit-btn {
    background: var(--accent);
    color: white; box-shadow: var(--shadow-sm);
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); opacity: 0.9; }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.cancel-btn { background: transparent; color: var(--text-muted); border: 2px solid var(--border); }
.cancel-btn:hover { border-color: var(--text-muted); }
.back-link-btn {
    background: transparent; border: none; color: var(--text-muted); font-size: 0.9rem;
    font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px 6px 0; border-radius: 8px; transition: all 0.2s ease; font-family: inherit;
}
.back-link-btn:hover {
    color: var(--primary); transform: translateX(-4px);
}

/* Links */
.links { text-align: center; margin-top: 24px; font-size: 0.88rem; }
.links a { color: var(--secondary); text-decoration: none; font-weight: 500; }
.links a:hover { text-decoration: underline; }
.sep { margin: 0 8px; color: var(--text-muted); }
.admin-link-container { text-align: center; margin-top: 35px; }
.admin-link { color: var(--text-muted); text-decoration: none; font-size: 0.8rem; opacity: 0.7; transition: var(--transition); }
.admin-link:hover { opacity: 1; color: var(--primary); }

/* Review Box */
.review-box {
    background: var(--input-bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 25px; margin-bottom: 20px;
}
.review-box .review-row {
    display: flex; justify-content: space-between; padding: 8px 0;
    border-bottom: 1px solid var(--border); font-size: 0.93rem;
}
.review-box .review-row:last-child { border-bottom: none; }
.review-box .review-label { font-weight: 500; color: var(--text-muted); }
.review-box .review-value { font-weight: 600; text-align: right; }

/* ==========================================
   Dashboard
   ========================================== */
.dashboard-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 840px) { 
    .dashboard-layout { grid-template-columns: 1fr; justify-items: center; } 
    .dash-info-panel { width: 100%; min-width: 0; }
}

/* Virtual Card */
.vcard-section {
    background: linear-gradient(145deg, #1a1a2e, #16213e, #0f3460);
    border-radius: var(--radius-lg); padding: 0; color: white;
    box-shadow: var(--shadow-lg); overflow: hidden;
    position: relative;
}
.vcard-section::before {
    content: ''; position: absolute; top: -40%; right: -20%; width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.vcard-header {
    display: flex; align-items: center; gap: 12px; padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.vcard-event-logo { height: 36px; width: auto; }
.vcard-header h2 { font-size: 1.1rem; letter-spacing: 1px; font-weight: 700; }
.vcard-subtitle { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.vcard-body { padding: 24px; text-align: center; }
.vcard-pic {
    width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--secondary); margin: 0 auto 12px; display: block;
}
.vcard-bib-number {
    font-size: 3rem; font-weight: 900; letter-spacing: 4px; line-height: 1;
    background: linear-gradient(135deg, #fff, #ddd);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    margin-bottom: 8px;
}
.vcard-runner-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; color: #fff; }
.vcard-details { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.vcard-detail-item {
    display: flex; justify-content: space-between; padding: 4px 12px;
    background: rgba(255,255,255,0.06); border-radius: 8px; font-size: 0.85rem;
}
.detail-label { color: rgba(255,255,255,0.5); }
.detail-value { font-weight: 600; }
.vcard-qr-wrap { text-align: center; }
.vcard-qr { background: white; padding: 8px; border-radius: 10px; display: inline-block; }
.vcard-qr canvas, .vcard-qr img { max-width: 90px; height: auto; }
.vcard-qr-wrap small { display: block; margin-top: 6px; color: rgba(255,255,255,0.4); font-size: 0.7rem; }

/* Info Panel */
.dash-info-panel { display: flex; flex-direction: column; gap: 20px; }
.info-card {
    background: var(--card-bg); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
    padding: 24px; box-shadow: var(--shadow-sm);
}
.info-card h3 { font-size: 1rem; margin-bottom: 15px; color: var(--text); }

/* Status Box */
.status-box {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px; border-radius: var(--radius); font-weight: 700; font-size: 1rem;
    margin-bottom: 15px;
}
.status-icon { font-size: 1.4rem; line-height: 1; display: flex; }
.status-box.unpaid { background: rgba(220,38,38,0.08); color: #DC2626; border: 1.5px solid rgba(220,38,38,0.3); }
.status-box.pending { background: rgba(161,98,7,0.08); color: #A16207; border: 1.5px solid rgba(161,98,7,0.3); }
.status-box.paid { background: rgba(22,163,74,0.08); color: #16A34A; border: 1.5px solid rgba(22,163,74,0.3); }

/* Rewards Grid */
.rewards-grid { display: flex; flex-direction: column; gap: 8px; }
.reward-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    background: var(--input-bg); border-radius: 10px; font-size: 0.9rem;
    border: 1px solid var(--border); transition: var(--transition);
}
.reward-item:hover { border-color: var(--secondary); transform: translateX(4px); }
.reward-icon { font-size: 1.2rem; }

/* ==========================================
   Payment
   ========================================== */
.bank-details {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--input-bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; margin-bottom: 20px; gap: 20px;
    flex-wrap: wrap;
}
.bank-name { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 4px; }
.bank-account { font-size: 0.9rem; }
.pay-amount-box {
    text-align: center; padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius); color: white;
}
.pay-amount-box small { font-size: 0.75rem; opacity: 0.9; color: #fff; }
.pay-amount-box h2 { font-size: 1.8rem; font-weight: 800; color: #ffffff !important; margin: 5px 0 0 0; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); }

/* ==========================================
   Admin Panel
   ========================================== */
.admin-card { max-width: 100%; }
.admin-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.admin-header h2 { margin-bottom: 0; text-align: left; }
.admin-actions { display: flex; gap: 8px; }

/* Admin Tabs */
.admin-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tab-btn {
    padding: 8px 16px; border: 2px solid var(--border); border-radius: 10px;
    background: var(--input-bg); color: var(--text-muted);
    cursor: pointer; font-weight: 500; font-size: 0.85rem;
    transition: var(--transition); font-family: 'Prompt', 'Kanit', sans-serif;
    display: flex; align-items: center; gap: 6px;
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Admin Search */
.admin-search { margin-bottom: 16px; }
.admin-search input {
    width: 100%; padding: 10px 16px; border: 2px solid var(--border);
    border-radius: var(--radius); background: var(--input-bg); color: var(--text);
    font-size: 0.9rem;
}

/* Admin Table */
.admin-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th {
    padding: 12px 14px; text-align: left; font-weight: 600;
    background: var(--input-bg); border-bottom: 2px solid var(--border);
    white-space: nowrap; color: var(--text-muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tbody tr { transition: var(--transition); }
.admin-table tbody tr:hover { background: rgba(46,196,182,0.04); }

/* Admin Status Badges */
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600;
}
.badge-unpaid { background: rgba(255,71,87,0.1); color: #ff4757; }
.badge-pending { background: rgba(255,165,0,0.1); color: #f0932b; }
.badge-paid { background: rgba(46,204,113,0.1); color: #2ecc71; }
.badge-rejected { background: rgba(150,150,150,0.1); color: #999; }

/* Action Buttons */
.action-btn {
    padding: 5px 12px; border: none; border-radius: 6px;
    cursor: pointer; font-weight: 600; font-size: 0.8rem;
    transition: var(--transition); font-family: 'Prompt', 'Kanit', sans-serif;
}
.action-btn.approve { background: #2ecc71; color: white; }
.action-btn.approve:hover { background: #27ae60; }
.action-btn.reject { background: #ff4757; color: white; margin-left: 4px; }
.action-btn.reject:hover { background: #e74c3c; }

.result-msg { margin-top: 15px; text-align: center; font-weight: 500; padding: 10px; border-radius: 10px; }

/* ==========================================
   Footer
   ========================================== */
.app-footer {
    text-align: center; padding: 30px 20px; color: var(--text-muted);
    font-size: 0.8rem; border-top: 1px solid var(--border);
    margin-top: 50px;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 640px) {
    .form-card { padding: 24px 18px; }
    .race-cards { flex-direction: column; }
    .size-grid { grid-template-columns: repeat(3, 1fr); }
    .step-indicator { flex-wrap: wrap; }
    .bank-details { flex-direction: column; text-align: center; }
    .admin-tabs { flex-direction: column; }
    .brand-text { display: none; }
    .vcard-bib-number { font-size: 2.2rem; }
}


/* ==========================================
   SPLIT LAYOUT (LANDING PAGE)
   ========================================== */
body {
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.split-card {
    display: flex;
    flex-direction: row;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    margin: auto;
    min-height: 500px;
}
.split-left {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.split-right {
    flex: 1;
    background: var(--bg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--border);
}
.split-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}
.split-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.action-btn {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
}
.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.action-btn.primary-action {
    border-color: var(--accent);
    background: linear-gradient(to right, rgba(161, 98, 7, 0.05), transparent);
}
.action-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(161, 98, 7, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}
.action-icon {
    width: 24px;
    height: 24px;
}
.action-text {
    flex: 1;
}
.action-title {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.action-desc {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.action-arrow {
    color: var(--text-muted);
    width: 20px;
    height: 20px;
    transition: var(--transition);
}
.action-btn:hover .action-arrow {
    transform: translateX(4px);
    color: var(--accent);
}
@media (max-width: 768px) {
    .split-card {
        flex-direction: column-reverse;
    }
    .split-right {
        border-left: none;
        border-bottom: 1px solid var(--border);
        padding: 30px 20px;
    }
    .split-left {
        padding: 30px 20px;
    }
}

/* Mega Admin Styles */
.btn-outline { background: transparent; color: var(--text-main); border: 1px solid #ddd; box-shadow: none; }
.btn-outline:hover { background: #f1f5f9; }
.btn-sm { padding: 6px 12px; font-size: 0.85em; }
.info-card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* 
==========================================
GLOBAL FONT OVERRIDE (Excluding Icons)
==========================================
*/
body, input, button, select, textarea, option, h1, h2, h3, h4, h5, h6, p, div, span, a, label, strong, b, td, th, li {
    font-family: 'Prompt', 'Kanit', sans-serif !important;
}

/* Explicitly restore icon fonts to prevent square boxes */
i, [data-lucide], .lucide, .fas, .far, .fal, .fab, .fa, .fa-solid, .fa-brands, .fa-regular {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome', 'lucide' !important;
}

/* Status Timeline */
.timeline-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 10px 0 20px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.timeline-wrapper::-webkit-scrollbar { display: none; }
.status-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    min-width: 750px;
}
.status-timeline::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: var(--glass-border);
    z-index: 1;
    border-radius: 2px;
}
.timeline-progress {
    position: absolute;
    top: 22px;
    left: 10%;
    height: 4px;
    background: #10b981;
    z-index: 1;
    transition: width 0.4s ease;
    border-radius: 2px;
    width: 0%; /* updated by JS */
}
.timeline-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
    text-align: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}
.ts-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 3px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    color: var(--text-muted);
}
.ts-text {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}
.ts-text small {
    font-size: 0.7rem;
    line-height: 1.1;
    opacity: 0.8;
    white-space: nowrap;
    font-weight: 400;
    display: block;
    margin-top: 2px;
}
/* Active/Completed States */
.timeline-step.completed .ts-icon {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
    box-shadow: 0 0 10px rgba(0,200,83,0.3);
}
.timeline-step.completed .ts-text {
    color: var(--text);
}
.timeline-step.current .ts-icon {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 10px rgba(255,107,107,0.3);
}
.timeline-step.current .ts-text {
    color: var(--accent);
    font-weight: 700;
}
.timeline-step.processing .ts-icon {
    border-color: var(--warning, #f39c12);
    color: var(--warning, #f39c12);
    background: rgba(243, 156, 18, 0.1);
}
.timeline-step.processing .ts-text {
    color: var(--warning, #f39c12);
}
