/* Amazinum Design System — shared between all pages */

:root {
    --bg:            #000F20;
    --bg-panel:      #0D2138;
    --bg-card:       #0D2138;
    --border:        rgba(50, 160, 254, 0.25);
    --border-bright: #32A0FE;
    --primary:       #32A0FE;
    --primary-dark:  #1a7fd4;
    --primary-light: rgba(50, 160, 254, 0.12);
    --accent:        #32A0FE;
    --accent-teal:   #32DF9D;
    --teal-light:    rgba(50, 223, 157, 0.12);
    --teal-border:   rgba(50, 223, 157, 0.3);
    --gradient-hero:  linear-gradient(135deg, #0D2138 0%, #000F20 50%, #041a30 100%);
    --gradient-score: linear-gradient(135deg, #0a1e35 0%, #0D2138 40%, #062a3e 100%);
    --text:          #F2F2F3;
    --text-muted:    rgba(242, 242, 243, 0.55);
    --font-head:     'Plus Jakarta Sans', sans-serif;
    --font:          'Figtree', -apple-system, sans-serif;
    --danger:        #ef4444;
    --success:       #32DF9D;
    --gray-50:       #060f1a;
    --gray-100:      #0a1628;
    --gray-200:      rgba(50, 160, 254, 0.15);
    --gray-300:      rgba(50, 160, 254, 0.3);
    --gray-500:      rgba(242, 242, 243, 0.45);
    --gray-700:      rgba(242, 242, 243, 0.7);
    --gray-800:      #F2F2F3;
    --gray-900:      #ffffff;
    --radius:        10px;
    --shadow:        0 4px 20px rgb(0 0 0 / 0.4);
    --shadow-lg:     0 8px 40px rgb(0 0 0 / 0.5);
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ── Header ── */
.header {
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.2px;
    text-decoration: none;
}
.logo-mark {
    height: 32px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 10px rgba(50, 160, 254, 0.35));
    transition: filter 0.25s ease, transform 0.25s ease;
}
.logo:hover .logo-mark {
    filter: drop-shadow(0 0 14px rgba(50, 160, 254, 0.6));
    transform: translateY(-1px);
}
.logo-divider {
    width: 1px;
    height: 18px;
    background: var(--border);
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.back-link:hover { color: var(--primary); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
    background: var(--bg-panel);
    color: var(--text);
    border: 1px solid var(--border-bright);
}
.btn-primary:hover { background: rgba(50,160,254,0.15); transform: translateY(-2px) scale(1.02); box-shadow: 0 4px 24px rgba(50,160,254,0.3); }
.btn-primary:active { transform: translateY(0) scale(0.99); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--primary-light); color: var(--primary); border-color: var(--border-bright); }
.btn-teal {
    background: var(--bg-panel);
    color: var(--accent-teal);
    border: 1px solid var(--accent-teal);
}
.btn-teal:hover { background: rgba(50, 223, 157, 0.15); transform: translateY(-2px) scale(1.02); box-shadow: 0 4px 24px rgba(50, 223, 157, 0.3); }
.btn-teal:active { transform: translateY(0) scale(0.99); }
.btn-outline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--primary-light); color: var(--primary); border-color: var(--border-bright); transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Toast ── */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--danger);
    color: white;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}
.toast.visible { transform: translateX(-50%) translateY(0); }

/* ── Utilities ── */
.hidden { display: none !important; }

/* ── Shared keyframes ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { left: 100%; } }
