/* 
 * Zaalis Design System — Premium & Minimal
 * Inspired by Claude.ai / Linear / ChatGPT
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-deep: #0f0f10;
    --bg-card: rgba(28, 28, 30, 0.7);
    --bg-input: rgba(255, 255, 255, 0.03);
    --bg-border: rgba(255, 255, 255, 0.08);
    --bg-border-hover: rgba(255, 255, 255, 0.15);
    
    --accent-primary: #0078d4;
    --accent-glow: rgba(0, 120, 212, 0.3);
    
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-muted: #6e6e73;
    
    --error: #ff453a;
    --success: #32d74b;
    
    --glass-blur: 24px;
    --card-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Dynamic Aurora Background --- */
.aurora-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #151518, #0f0f10);
}

.aurora-blob {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
    animation: blob-float 30s infinite alternate ease-in-out;
}

.blob-1 {
    background: var(--accent-primary);
    top: -20%;
    right: -10%;
    animation-delay: 0s;
}

.blob-2 {
    background: #5856d6;
    bottom: -15%;
    left: -10%;
    animation-delay: -5s;
    opacity: 0.08;
}

.blob-3 {
    background: #32d74b;
    top: 30%;
    left: 20%;
    width: 40vw;
    height: 40vw;
    opacity: 0.05;
    animation-duration: 40s;
}

@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, 15%) scale(1.1); }
    100% { transform: translate(-5%, 5%) scale(0.9); }
}

/* --- Premium Header --- */
.premium-header {
    height: 70px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    background: rgba(15, 15, 16, 0.6);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--bg-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    cursor: pointer;
}
.logo img { height: 26px; width: auto; }
.logo span { 
    font-size: 19px; 
    font-weight: 700; 
    letter-spacing: -0.03em; 
    color: #fff;
    text-transform: lowercase;
}

.nav-links { 
    display: flex; 
    gap: 32px; 
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.nav-links a:hover { color: var(--text-primary); }

#header-action-btn {
    background: var(--bg-border);
    border: 1px solid var(--bg-border);
    padding: 8px 18px;
    border-radius: 99px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
#header-action-btn:hover { 
    background: var(--bg-border-hover); 
    border-color: var(--bg-border-hover);
    transform: translateY(-1px); 
}

/* --- Main Layout --- */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 60px 20px;
}

.premium-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--bg-border);
    border-radius: 28px;
    padding: 48px;
    box-shadow: var(--card-shadow);
    animation: card-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card.landscape {
    max-width: 900px;
}

@keyframes card-reveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-header { text-align: center; margin-bottom: 40px; }
.card-header .app-kicker {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.card-header h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.card-header p { color: var(--text-secondary); font-size: 16px; font-weight: 400; }

/* --- Form Components --- */
.form-group { margin-bottom: 24px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-secondary);
    padding-left: 2px;
}

.input-wrapper {
    position: relative;
    border-radius: 14px;
    background: var(--bg-input);
    border: 1px solid var(--bg-border);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrapper:focus-within {
    border-color: var(--accent-primary);
    background: rgba(0, 120, 212, 0.02);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.input-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
}

.input-wrapper input, .input-wrapper select {
    width: 100%;
    background: transparent;
    border: none;
    padding: 14px 20px 14px 50px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    border-radius: 14px;
}

/* Fix browser autofill styling */
.input-wrapper input:-webkit-autofill,
.input-wrapper select:-webkit-autofill {
    border-radius: 14px;
    -webkit-text-fill-color: #0f0f10; /* Dark text for the white backround */
    box-shadow: 0 0 0px 1000px white inset;
}

.input-wrapper select { appearance: none; cursor: pointer; }
.input-wrapper select option {
    background-color: #2c2c2e;
    color: #f5f5f7;
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #FFFFFF 0%, #E8E8E8 100%);
    color: #08090A;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.06);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -4px rgba(255, 255, 255, 0.15); background: linear-gradient(135deg, #FFFFFF 0%, #F2F2F2 100%); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(255, 255, 255, 0.06); }

.btn-secondary {
    background: var(--bg-border);
    color: var(--text-primary);
    border: 1px solid var(--bg-border);
    padding: 15px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover { background: var(--bg-border-hover); }

/* --- Step Indicators (Modern Dots) --- */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
    padding: 0 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-border);
    border: 3px solid var(--bg-deep);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step.active .step-dot {
    background: var(--text-primary);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.step.completed .step-dot { background: var(--accent-primary); }

.step-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.step.active .step-label { color: var(--text-primary); }

.step-line {
    flex: 1;
    height: 2px;
    background: var(--bg-border);
    margin: 0 10px;
    margin-top: -24px;
    transition: all 0.4s ease;
}

.step-line.completed { background: var(--accent-primary); }

/* --- Plan Cards Redesign --- */
.plan-cards { 
    display: grid; 
    gap: 16px; 
    margin-bottom: 30px; 
    grid-template-columns: 1fr;
}

.plan-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--bg-border);
    padding: 24px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: auto;
}

.plan-card:hover { 
    background: rgba(255, 255, 255, 0.05); 
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.plan-card.selected {
    background: rgba(0, 120, 212, 0.12);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary), 0 20px 40px -10px rgba(0, 120, 212, 0.3);
}

.plan-icon-box {
    width: 48px;
    height: 48px;
    border: 3px solid var(--accent-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent-primary);
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.plan-card.selected .plan-icon-box {
    background: var(--accent-primary);
    color: #fff;
}

.plan-content { 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.plan-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.plan-price { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; font-weight: 600; }
.plan-features { 
    color: var(--text-muted); 
    font-size: 11px; 
    line-height: 1.4; 
    margin-top: 5px;
    max-width: 100%;
}

@media (min-width: 769px) {
    .plan-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
    body.register-mode .premium-card {
        max-width: 1000px !important;
    }
}

/* --- Footer Items --- */
.footer-link {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: var(--text-secondary);
}

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

.hidden { display: none !important; }

@media (max-width: 768px) {
    header { padding: 0 24px; }
    .header-nav { display: none; }
    .premium-card { padding: 32px 24px; border-radius: 0; min-height: calc(100vh - 80px); }
    main { padding: 0; }
}
