/* ============================================================
   AURA AI — Global Stylesheet
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue: #007AFF;
    --blue-dark: #0055cc;
    --purple: #5856D6;
    --bg: #0a0a0f;
    --bg2: #111118;
    --bg3: #1a1a24;
    --surface: #1e1e2e;
    --surface2: #252535;
    --border: rgba(255, 255, 255, 0.08);
    --text: #e8e8f0;
    --text2: #9090a8;
    --text3: #606078;
    --success: #30d158;
    --error: #ff375f;
    --warning: #ffd60a;
    --gold: #ffd60a;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.7);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.1);
    font-size: 15px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--surface2);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text3);
}

/* ── Glassmorphism ──────────────────────────────────────── */
.glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text2);
    cursor: pointer;
    transition: all .2s;
}

.btn-icon:hover {
    background: var(--surface2);
    color: var(--text);
}

.btn-primary {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 122, 255, .4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* ── Spinner ────────────────────────────────────────────── */
.btn-loader,
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Toast ──────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--surface);
    color: var(--text);
    padding: 10px 20px;
    border-radius: 99px;
    font-size: .85rem;
    font-weight: 500;
    opacity: 0;
    transition: all .3s;
    pointer-events: none;
    border: 1px solid var(--border);
    z-index: 9999;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: var(--error);
    border-color: transparent;
    color: #fff;
}

/* ── Forms (shared) ─────────────────────────────────────── */
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: .9rem;
    font-family: inherit;
    transition: border .2s;
    outline: none;
}

.form-input::placeholder {
    color: var(--text3);
}

.form-input:focus {
    border-color: var(--blue);
}

.input-wrap {
    position: relative;
}

.input-wrap .form-input {
    padding-right: 44px;
}

.eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: .5;
}

.eye-btn:hover {
    opacity: 1;
}

/* ── Premium Badge ──────────────────────────────────────── */
.premium-badge {
    font-size: .7rem;
    font-weight: 700;
    color: var(--gold);
    background: rgba(255, 214, 10, .12);
    border: 1px solid rgba(255, 214, 10, .3);
    padding: 2px 8px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ── Modal Overlay ──────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    animation: fadeIn .2s;
}

.modal-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg2);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border: 1px solid var(--border);
    padding: 24px;
    animation: slideUp .3s cubic-bezier(.34, 1.56, .64, 1);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}