/* Signup page styles */
:root {
    --bg-primary: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-active: rgba(79, 172, 254, 0.6);
    --text-primary: #f0f0f5;
    --text-secondary: #8a8a9a;
    --text-muted: #7b7b8f; /* WCAG AA contrast on dark background */
    --accent: #4facfe;
    --accent-2: #00f2fe;
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --danger: #ff4757;
    --success: #2ed573;
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    /* Native controls (selects, scrollbars) render in their dark variant. */
    color-scheme: dark;
}

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

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    padding: 40px 20px;
}

.animated-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
}

.orb-1 { width: 400px; height: 400px; background: #4facfe; top: -10%; left: -5%; }
.orb-2 { width: 350px; height: 350px; background: #00f2fe; bottom: -10%; right: -5%; }
.orb-3 { width: 300px; height: 300px; background: #7c3aed; top: 50%; left: 60%; }

.container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 48px;
}

.logo-icon {
    font-size: 40px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
}

h1 {
    font-size: 32px;
    margin-bottom: 8px;
    font-weight: 600;
}

header p { color: var(--text-secondary); font-size: 16px; }

.billing-toggle {
    display: none;
    justify-content: center;
    gap: 8px;
    margin: -20px 0 28px;
}

.billing-toggle.visible { display: flex; }

.billing-toggle button {
    width: auto;
    min-width: 108px;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 14px;
}

.billing-toggle button.active {
    border-color: var(--accent);
    background: rgba(79, 172, 254, 0.12);
    color: var(--text-primary);
}

.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.plan {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.plan:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-active);
    transform: translateY(-2px);
}

.plan.selected {
    border-color: var(--accent);
    background: rgba(79, 172, 254, 0.08);
    box-shadow: 0 0 0 1px var(--accent), 0 12px 32px rgba(79, 172, 254, 0.15);
}

.plan-name {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 8px;
}

.plan-price {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.plan-interval {
    color: var(--text-muted);
    font-size: 13px;
    margin: -8px 0 14px;
}

.plan-features {
    list-style: none;
    color: var(--text-secondary);
    font-size: 14px;
}

.plan-features li {
    padding: 6px 0;
    display: flex;
    align-items: center;
}

.plan-features li::before {
    content: '\2713';
    color: var(--success);
    margin-right: 10px;
    font-weight: 600;
}

.form-card {
    background: rgba(18, 18, 26, 0.85);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 520px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

input[type="text"], input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 15px;
    transition: border 0.15s ease;
}

input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.legal-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 18px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
    cursor: pointer;
}

.legal-consent input {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    accent-color: var(--accent);
    flex: 0 0 auto;
}

.legal-consent a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.legal-consent a:hover { text-decoration: underline; }

.slug-preview {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    font-family: ui-monospace, monospace;
    word-break: break-all;
}

.slug-preview strong {
    color: var(--accent);
    font-weight: 500;
}

.form-card button[type="submit"] {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient);
    color: #0a0a0f;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
    margin-top: 4px;
}

.form-card button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(79, 172, 254, 0.3);
}

.form-card button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error {
    display: none;
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.4);
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-size: 14px;
}

.error.visible { display: block; }

.footer-link {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.footer-link a:hover { text-decoration: underline; }

.empty-plans {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
}
