/* ==========================================================================
   COFFEE OS | AUTH SCREEN & PAYWALL STYLES
   ========================================================================== */

/* ── LOGIN SCREEN ───────────────────────────────────────────────────────── */
#auth-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg, #0E0E10);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 1;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

#auth-screen.auth-exit {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
}

.auth-logo {
    width: min(200px, 44vw);
    height: auto;
    margin-bottom: 12px;
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

.auth-brand {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.06em;
    color: var(--text, #fff);
    text-align: center;
    margin-bottom: 4px;
}

.auth-tagline {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 0.88rem;
    color: var(--muted, #888);
    text-align: center;
    margin-bottom: 36px;
    max-width: 280px;
    line-height: 1.4;
}

/* ── AUTH BUTTONS ───────────────────────────────────────────────────────── */
.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(340px, 88vw);
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text, #fff);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.96rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.12s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.auth-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.22);
}

.auth-btn:active {
    transform: scale(0.97);
}

.auth-btn .auth-btn-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Google button accent */
.auth-btn--google {
    background: rgba(255, 255, 255, 0.06);
}
.auth-btn--google:hover {
    border-color: rgba(66, 133, 244, 0.5);
}

/* Apple button accent */
.auth-btn--apple {
    background: rgba(255, 255, 255, 0.06);
}
.auth-btn--apple:hover {
    border-color: rgba(255, 255, 255, 0.35);
}

/* ── AUTH LOADING STATE ─────────────────────────────────────────────────── */
.auth-btn--loading {
    pointer-events: none;
    opacity: 0.65;
}

.auth-btn--loading .auth-btn-icon {
    display: none;
}

.auth-btn--loading::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

/* ── AUTH ERROR ──────────────────────────────────────────────────────────── */
.auth-error {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.25);
    color: #FF6B6B;
    font-size: 0.84rem;
    line-height: 1.35;
    text-align: center;
    max-width: 340px;
    animation: auth-shake 0.35s ease;
}

@keyframes auth-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ── AUTH FOOTER ─────────────────────────────────────────────────────────── */
.auth-footer {
    margin-top: 40px;
    text-align: center;
}

.auth-footer a {
    color: var(--muted, #888);
    font-size: 0.78rem;
    text-decoration: none;
    margin: 0 10px;
}

.auth-footer a:hover {
    color: var(--text, #fff);
}

/* ── PAYWALL CARD (used inside sections) ────────────────────────────────── */
.paywall-card {
    text-align: center;
    padding: 40px 20px;
    max-width: 360px;
    margin: 30px auto;
}

.paywall-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.5rem;
    color: var(--pw-color, #C8A97E);
}

.paywall-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text, #fff);
    margin: 0 0 10px;
}

.paywall-msg {
    font-size: 0.9rem;
    color: var(--muted, #888);
    line-height: 1.45;
    margin: 0 0 22px;
}

.paywall-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 14px;
    border: none;
    background: var(--pw-color, #C8A97E);
    color: #0E0E10;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.12s, opacity 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.paywall-btn:hover {
    opacity: 0.9;
}

.paywall-btn:active {
    transform: scale(0.96);
}

/* ── PLAN BADGE (for nav/header) ────────────────────────────────────────── */
.plan-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 6px;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan-badge--free     { background: rgba(136,136,136,0.15); color: #888; }
.plan-badge--pro      { background: rgba(200,169,126,0.15); color: #C8A97E; }
.plan-badge--business { background: rgba(107,203,119,0.15); color: #6BCB77; }

/* ── LOCKED OVERLAY (for partially visible content) ─────────────────────── */
.locked-overlay {
    position: relative;
}

.locked-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(14, 14, 16, 0.6) 40%,
        rgba(14, 14, 16, 0.95) 100%);
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
}

.locked-overlay .paywall-card {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}
