/* ═══════════════════════════════════════════════════════════════════
   AskmeTrading — Global design system tokens
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-6: 48px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.16);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.24);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body,
#app {
    min-height: 100%;
    margin: 0;
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: #050810;
    color: #f0f4fc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Material Symbols base */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    line-height: 1;
}

/* Global button base (shared between Home + Login + 404) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 200ms cubic-bezier(0.22, 1, 0.36, 1),
                background 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.5; pointer-events: none; }

.btn--primary {
    color: white;
    background: linear-gradient(135deg, #7c5cff, #6341e0);
    box-shadow:
        0 0 0 1px rgba(124, 92, 255, 0.3),
        0 4px 20px rgba(124, 92, 255, 0.25);
}

.btn--primary:hover {
    box-shadow:
        0 0 0 1px rgba(124, 92, 255, 0.5),
        0 8px 32px rgba(124, 92, 255, 0.35);
}

.btn--glass {
    color: #c4cee0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
}

.btn--glass:hover {
    color: #f0f4fc;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

/* ─── Affiliate code field ─── */
.affiliate-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.affiliate-field__error {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #f87171;
}

.affiliate-field__error .material-symbols-outlined {
    font-size: 1rem;
}

.affiliate-field__hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #4ade80;
}

.affiliate-field__hint .material-symbols-outlined {
    font-size: 1rem;
}

/* ─── Alert variants ─── */
.login-alert--success {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.25);
    color: #4ade80;
}

/* ─── Subscription card section header ─── */
.subscription-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.subscription-card__section-icon {
    font-size: 1.4rem;
    color: #7c5cff;
}

/* 404 page */
.not-found-page {
    min-height: 80vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.not-found-card {
    text-align: center;
    max-width: 420px;
}

.not-found-icon {
    font-size: 4rem;
    color: #7a8ba8;
    margin-bottom: 1rem;
}

.not-found-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}

.not-found-text {
    color: #7a8ba8;
    line-height: 1.6;
    margin: 0 0 2rem;
}
