:root { --primary: #4f46e5; --sidebar: #1e293b; --bg: #f8fafc; --card: #ffffff; --text: #334155; --border: #e2e8f0; --success: #22c55e; --danger: #ef4444; --warning: #f59e0b; --muted: #64748b; } * { box-sizing: border-box; margin: 0; padding: 0; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; } body { background: var(--bg); color: var(--text); display: flex; height: 100vh; overflow: hidden; } #app-root { display: flex; width: 100%; min-width: 0; min-height: 100vh; } button, input, select, textarea { font: inherit; } aside { width: 260px; background: var(--sidebar); color: #fff; display: flex; flex-direction: column; z-index: 10; } main { flex: 1; display: flex; flex-direction: column; overflow-y: auto; position: relative; } header { height: 70px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 25px; position: sticky; top: 0; z-index: 5; } .brand { padding: 25px; font-size: 1.4rem; font-weight: 700; border-bottom: 1px solid #334155; display: flex; align-items: center; gap: 10px; } .nav-group { padding: 20px 0; flex: 1; overflow-y: auto; } .nav-item { padding: 12px 25px; cursor: pointer; display: flex; align-items: center; gap: 12px; color: #94a3b8; transition: 0.2s; text-decoration: none; font-size: 0.95rem; border: 0; background: transparent; width: 100%; text-align: left; } .nav-item:hover { background: #334155; color: #fff; } .nav-item.active { background: #334155; color: #fff; border-left: 4px solid var(--primary); } .nav-item.master-only { border-left: 4px solid var(--warning); color: #fcd34d; } .container { padding: 25px; max-width: 1200px; margin: 0 auto; width: 100%; } .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 30px; } .card { background: #fff; padding: 20px; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); } .btn { padding: 10px 18px; border-radius: 8px; border: 0; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.85rem; min-height: 40px; } .btn:disabled { opacity: 0.65; cursor: not-allowed; } .btn-primary { background: var(--primary); color: #fff; } .btn-success { background: var(--success); color: #fff; } .btn-danger { background: var(--danger); color: #fff; } .btn-outline { background: #fff; border: 1px solid var(--border); color: var(--text); } table { width: 100%; border-collapse: collapse; margin-top: 15px; background: #fff; border-radius: 8px; overflow: hidden; } th { background: #f1f5f9; text-align: left; padding: 15px; font-size: 0.8rem; text-transform: uppercase; color: var(--muted); } td { padding: 15px; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: top; } label { display: block; margin-bottom: 5px; font-size: 0.85rem; font-weight: 600; } input, select, textarea { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; background: #fff; color: var(--text); } textarea { resize: vertical; } .form-group { margin-bottom: 15px; } .modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); display: none; align-items: center; justify-content: center; z-index: 2500; padding: 20px; } .modal-overlay.open { display: flex; } .modal { background: #fff; width: 100%; max-width: 650px; border-radius: 16px; padding: 30px; max-height: 90vh; overflow-y: auto; } .backup-process-modal { max-width: 760px; } .backup-progress-track { width: 100%; height: 12px; background: #e2e8f0; border-radius: 999px; overflow: hidden; } .backup-progress-bar { height: 100%; width: 0; background: var(--primary); border-radius: inherit; transition: width 0.2s ease; } .backup-progress-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--muted); font-size: 0.86rem; } .backup-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; } .backup-stat { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: #f8fafc; min-width: 0; } .backup-stat small { display: block; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; font-weight: 700; } .backup-stat strong { display: block; margin-top: 4px; font-size: 1rem; overflow-wrap: anywhere; } .backup-alert { margin-top: 14px; border: 1px solid #fde68a; background: #fffbeb; color: #78350f; border-radius: 8px; padding: 12px; display: grid; gap: 8px; font-size: 0.9rem; } #auth-screen { position: fixed; inset: 0; background: #020617; z-index: 2000; overflow-y: auto; overflow-x: hidden; padding: 0; } .auth-page-shell { width: min(1120px, calc(100% - 32px)); min-height: 100vh; margin: 0 auto; color: #fff; } .auth-public-header { position: sticky; top: 0; z-index: 5; isolation: isolate; display: grid; grid-template-columns: minmax(220px, auto) minmax(0, 1fr) auto; align-items: center; gap: 28px; height: auto; min-height: 96px; } .auth-public-header::before { content: ""; position: absolute; inset: 0 auto 0 50%; z-index: -1; width: 100vw; transform: translateX(-50%); border-bottom: 1px solid rgba(129, 140, 248, 0.2); background: rgba(2, 6, 23, 0.96); box-shadow: 0 18px 42px rgba(2, 6, 23, 0.28); backdrop-filter: blur(16px); } .auth-logo { display: inline-flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; min-width: 0; } .auth-logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(129, 140, 248, 0.46); border-radius: 8px; background: linear-gradient(135deg, rgba(37, 99, 235, 0.26), rgba(79, 70, 229, 0.38)); color: #dbeafe; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); } .auth-logo strong { display: block; font-size: 1.02rem; line-height: 1; letter-spacing: 0; text-transform: uppercase; } .auth-logo strong span { color: #818cf8; } .auth-logo small { display: block; margin-top: 4px; color: #94a3b8; font-size: 0.66rem; text-transform: uppercase; font-weight: 700; } .auth-public-nav { display: flex; align-items: center; justify-content: center; gap: 26px; min-width: 0; } .auth-public-nav a { position: relative; display: inline-flex; align-items: center; min-height: 42px; color: #dbeafe; text-decoration: none; font-size: 0.74rem; text-transform: uppercase; font-weight: 900; white-space: nowrap; opacity: 0.86; transition: color 0.16s ease, opacity 0.16s ease; } .auth-public-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, #38bdf8, #818cf8); opacity: 0; transform: scaleX(0.35); transform-origin: left; transition: opacity 0.16s ease, transform 0.16s ease; } .auth-public-nav a:hover, .auth-public-nav a:focus, .auth-public-nav a.is-active { color: #fff; opacity: 1; } .auth-public-nav a:hover::after, .auth-public-nav a:focus::after, .auth-public-nav a.is-active::after { opacity: 1; transform: scaleX(1); } .auth-login-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 122px; min-height: 44px; padding: 0 20px; border: 1px solid rgba(129, 140, 248, 0.76); border-radius: 8px; background: rgba(15, 23, 42, 0.44); color: #fff; text-decoration: none; text-transform: uppercase; font-size: 0.78rem; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03); } .auth-login-link span { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid rgba(191, 219, 254, 0.58); border-radius: 5px; color: #bfdbfe; font-size: 0.58rem; line-height: 1; } .auth-login-link:hover, .auth-login-link:focus { border-color: #bfdbfe; background: rgba(79, 70, 229, 0.24); } #auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 430px); gap: 46px; align-items: center; min-height: calc(100vh - 84px); padding: 54px 0 42px; } #auth-wrap.auth-access-mode { grid-template-columns: minmax(320px, 460px); justify-content: center; align-items: flex-start; padding-top: 54px; } #auth-wrap.auth-access-mode #auth-hero { display: none; } #auth-wrap.auth-access-mode #login-panel { width: 100%; } #auth-hero { position: relative; text-align: left; color: #fff; min-width: 0; } #auth-hero h1 { max-width: 620px; margin: 16px 0 12px; color: #818cf8; font-size: clamp(3.5rem, 7vw, 6.4rem); line-height: 0.9; letter-spacing: 0; text-transform: none; text-shadow: 0 0 26px rgba(129, 140, 248, 0.32); } .auth-kicker { max-width: 680px; color: #fff; font-size: clamp(1.35rem, 2.5vw, 2.1rem); line-height: 1.18; font-weight: 900; letter-spacing: 0; } #auth-hero h1::first-line { color: #818cf8; } .auth-brand-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 12px; border: 1px solid rgba(129, 140, 248, 0.46); border-radius: 8px; color: #dbeafe; background: rgba(79, 70, 229, 0.18); font-size: 0.82rem; font-weight: 900; text-transform: uppercase; } .auth-hero-lead { max-width: 540px; color: #dbeafe; font-size: 1.05rem; line-height: 1.55; margin-top: 18px; border-left: 3px solid #818cf8; padding-left: 16px; } .auth-spotlight-card { max-width: 520px; margin-top: 28px; padding: 20px; border-radius: 8px; border: 1px solid rgba(129, 140, 248, 0.22); background: rgba(15, 23, 42, 0.72); box-shadow: 0 28px 90px rgba(79, 70, 229, 0.16); } .auth-spotlight-card p { max-width: 460px; color: #e2e8f0; line-height: 1.55; margin-bottom: 18px; } .auth-spotlight-card h2 { color: #fff; font-size: 1.35rem; margin-bottom: 16px; } .auth-hero-media { margin-top: 18px; max-width: 420px; border: 1px solid rgba(129, 140, 248, 0.24); border-radius: 8px; overflow: hidden; background: rgba(15, 23, 42, 0.72); box-shadow: 0 24px 70px rgba(2, 6, 23, 0.42); } .auth-hero-media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; } .auth-mini-dashboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .auth-mini-dashboard div { min-height: 82px; border: 1px solid rgba(129, 140, 248, 0.18); border-radius: 8px; padding: 12px; background: rgba(2, 6, 23, 0.46); } .auth-mini-dashboard strong, .auth-mini-dashboard span { display: block; } .auth-mini-dashboard strong { color: #a5b4fc; font-size: 0.9rem; } .auth-mini-dashboard span { margin-top: 8px; color: #cbd5e1; font-size: 0.82rem; } .auth-card { width: 100%; max-width: 100%; border-radius: 16px; padding: 30px; border-color: rgba(129, 140, 248, 0.22); background: rgba(15, 23, 42, 0.86); color: #e2e8f0; box-shadow: 0 30px 90px rgba(2, 6, 23, 0.45); } .auth-card h3 { margin-bottom: 14px; font-size: 1.25rem; color: #fff; } .auth-card label { color: #e2e8f0; } .auth-card input, .auth-card select { border-color: rgba(148, 163, 184, 0.28); background: rgba(2, 6, 23, 0.36); color: #fff; } .auth-card input:focus, .auth-card select:focus { outline: 2px solid rgba(129, 140, 248, 0.55); border-color: #818cf8; } .auth-card-title { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; margin-bottom: 22px; } .auth-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border: 1px solid #818cf8; border-radius: 12px; color: #a5b4fc; font-size: 1.4rem; font-weight: 900; } .auth-card-title h2 { color: #fff; font-size: 1.9rem; line-height: 1.02; text-transform: uppercase; } .auth-card-title p { margin-top: 8px; color: #a5b4fc; font-size: 0.78rem; font-weight: 900; text-transform: uppercase; } .auth-feature-list { display: grid; gap: 0; margin-bottom: 20px; border-top: 1px solid rgba(148, 163, 184, 0.18); } .auth-feature-list div { padding: 12px 0; border-bottom: 1px solid rgba(148, 163, 184, 0.18); } .auth-feature-list strong { display: block; color: #fff; font-size: 0.88rem; } .auth-feature-list span { display: block; margin-top: 5px; color: #cbd5e1; font-size: 0.82rem; } .auth-tabs { display: flex; gap: 10px; margin-bottom: 24px; } .auth-contact-row { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; } #login-sync-status { margin-top: 16px; padding: 12px; border-radius: 8px; border: 1px solid rgba(34, 197, 94, 0.22); background: rgba(22, 101, 52, 0.18); color: #bbf7d0; font-size: 0.85rem; line-height: 1.35; } .auth-public-sections { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 0 0 54px; } .auth-public-section { min-height: 360px; padding: 28px; border: 1px solid rgba(129, 140, 248, 0.18); border-radius: 8px; background: rgba(15, 23, 42, 0.7); color: #e2e8f0; text-decoration: none; } .auth-page-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 26px; align-items: center; } .auth-page-section h2 { max-width: 650px; color: #fff; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.05; margin: 8px 0 14px; } .auth-page-section p { max-width: 620px; color: #cbd5e1; line-height: 1.65; } .auth-section-label { display: inline-flex; padding: 7px 10px; border-radius: 8px; border: 1px solid rgba(129, 140, 248, 0.38); color: #a5b4fc; background: rgba(79, 70, 229, 0.12); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; } .auth-page-section img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(129, 140, 248, 0.24); box-shadow: 0 24px 70px rgba(2, 6, 23, 0.38); } .auth-section-points { display: grid; gap: 10px; margin-top: 18px; } .auth-section-points span { padding: 12px 14px; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 8px; background: rgba(2, 6, 23, 0.28); color: #e2e8f0; } .auth-indicators-section { grid-template-columns: 1fr; } .auth-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } .auth-metric-grid div { min-height: 150px; padding: 22px; border: 1px solid rgba(129, 140, 248, 0.24); border-radius: 8px; background: rgba(2, 6, 23, 0.4); } .auth-metric-grid strong, .auth-metric-grid span, .auth-public-section strong, .auth-public-section span { display: block; } .auth-metric-grid strong { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); } .auth-metric-grid span { margin-top: 10px; color: #a5b4fc; font-weight: 800; } .auth-showcase-section { grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr); } .auth-image-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .auth-image-strip img { aspect-ratio: 3 / 4; max-height: none; } .auth-contact-section { grid-template-columns: minmax(240px, 0.8fr) minmax(300px, 1fr); } .auth-contact-form { padding: 22px; border: 1px solid rgba(129, 140, 248, 0.22); border-radius: 8px; background: rgba(2, 6, 23, 0.34); } .auth-contact-form label { color: #e2e8f0; } .auth-contact-form input, .auth-contact-form textarea { border-color: rgba(148, 163, 184, 0.28); background: rgba(2, 6, 23, 0.36); color: #fff; } .auth-public-page { display: none; } #auth-wrap.auth-public-page.is-active, .auth-public-sections .auth-public-page.is-active { display: grid; } #auth-wrap.auth-public-page:not(.is-active), .auth-public-sections .auth-public-page:not(.is-active) { display: none; } .auth-public-sections .auth-page-section { min-height: calc(100vh - 96px); padding: 54px 0; } .auth-public-section strong { color: #fff; font-size: 1rem; } .auth-public-section span { margin-top: 9px; color: #cbd5e1; line-height: 1.5; } .auth-contact-card { border-color: rgba(129, 140, 248, 0.42); } .password-field { position: relative; } .password-field input { padding-right: 88px; } .password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: #eef2ff; color: var(--primary); border-radius: 6px; padding: 6px 10px; font-size: 0.78rem; font-weight: 700; cursor: pointer; } .link-button { width: 100%; margin-top: 10px; border: 0; background: transparent; color: var(--primary); font-weight: 700; cursor: pointer; padding: 8px; } .link-button:hover { text-decoration: underline; } .badge { padding: 4px 8px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; } .badge-earn { background: #dcfce7; color: #166534; } .badge-redeem { background: #fee2e2; color: #991b1b; } .badge-info { background: #e0f2fe; color: #075985; } .badge-warning { background: #fef3c7; color: #92400e; } .hidden { display: none !important; } #toast { position: fixed; bottom: 20px; right: 20px; padding: 15px 25px; border-radius: 8px; background: #1e293b; color: #fff; z-index: 3000; display: none; animation: slideUp 0.3s; } @keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; } .toolbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .table-wrap { overflow: auto; border-radius: 8px; } .muted { color: var(--muted); } .metric-value { font-size: 1.5rem; font-weight: 700; margin-top: 8px; } .metric-success { color: var(--success); } .metric-danger { color: var(--danger); } .empty-state { color: var(--muted); padding: 18px; background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; } .switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .choice-list { border: 1px solid var(--border); border-radius: 8px; background: #fff; max-height: 240px; overflow: auto; } .choice-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0; border-bottom: 1px solid var(--border); cursor: pointer; } .choice-row:last-child { border-bottom: 0; } .choice-row:hover { background: #f8fafc; } .choice-row input { width: auto; } .mobile-only { display: none; } .desktop-only { display: inline-flex; } #mobile-actions { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 8; gap: 10px; } #mobile-mask { display: none; } @media (max-width: 640px) { body { height: auto; overflow: auto; } aside { position: fixed; left: 0; top: 0; height: 100%; width: 240px; transform: translateX(-100%); transition: transform 0.2s; } body.sidebar-open aside { transform: translateX(0); } #mobile-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 9; } body.sidebar-open #mobile-mask { display: block; } header { padding: 0 12px; } .mobile-only { display: inline-flex; } .desktop-only { display: none; } .container { padding: 12px; max-width: 100%; } .grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; } .card { padding: 14px; } .btn { padding: 10px 14px; } table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } th, td { padding: 10px; font-size: 0.85rem; } #mobile-actions { display: flex; } #auth-screen { padding: 0; } .auth-page-shell { width: calc(100% - 28px); } .auth-public-header { grid-template-columns: 1fr; gap: 12px; min-height: auto; padding: 14px 0; } .auth-logo { min-width: 0; } .auth-public-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow: visible; padding-bottom: 0; width: 100%; } .auth-public-nav a { justify-content: center; min-height: 36px; padding: 0 6px; border: 1px solid rgba(129, 140, 248, 0.16); border-radius: 8px; background: rgba(15, 23, 42, 0.42); font-size: 0.64rem; } .auth-public-nav a::after { left: 8px; right: 8px; bottom: 5px; height: 2px; } .auth-login-link { width: 100%; } #auth-wrap { grid-template-columns: 1fr; gap: 20px; min-height: auto; padding: 28px 0; width: 100%; } #auth-hero h1 { font-size: 2.65rem; } .auth-tabs { flex-direction: column; } .auth-tabs .btn { width: 100%; } .auth-mini-dashboard, .auth-public-sections, .auth-page-section, .auth-metric-grid, .auth-showcase-section, .auth-contact-section, .auth-image-strip { grid-template-columns: 1fr; } .auth-mini-dashboard div, .auth-public-section, .auth-metric-grid div { min-height: auto; } .auth-public-section { padding: 18px; } .auth-card { padding: 18px; } #auth-hero { margin: 8px 0 12px; } } @media (min-width: 641px) and (max-width: 980px) { .auth-public-header { grid-template-columns: 1fr auto; padding-top: 16px; padding-bottom: 14px; } .auth-public-nav { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; } #auth-wrap { grid-template-columns: 1fr; align-items: flex-start; min-height: auto; } .auth-mini-dashboard, .auth-public-sections, .auth-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .auth-page-section, .auth-showcase-section, .auth-contact-section { grid-template-columns: 1fr; } .auth-image-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }