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

body {
    font-family: Arial, sans-serif;
    background: #f8fafc;
    color: #0f172a;
    min-height: 100vh;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 5%;
    height: 62px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.logo {
    font-size: 19px;
    font-weight: 800;
    color: #7c3aed;
    text-decoration: none;
    white-space: nowrap;
    margin-right: 6px;
    flex-shrink: 0;
}

.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 9px;
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-icon { width: 16px; height: 16px; stroke: currentColor; fill: none; flex-shrink: 0; }

.nav-divider { width: 1px; height: 22px; background: #e2e8f0; flex-shrink: 0; margin: 0 4px; }

.auth-btn-outline {
    background: transparent;
    color: #7c3aed;
    border: 1.5px solid #7c3aed;
    padding: 7px 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.auth-btn-outline:hover { background: #ede9fe; }

.pro-badge {
    display: inline-flex; align-items: center; gap: 3px;
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    color: white; font-size: 12px; font-weight: 700;
    padding: 5px 10px; border-radius: 20px; white-space: nowrap;
}
.upgrade-link {
    display: inline-flex; align-items: center; gap: 3px;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: white; font-size: 13px; font-weight: 700;
    padding: 6px 13px; border-radius: 10px; text-decoration: none;
    white-space: nowrap; transition: opacity 0.15s;
}
.upgrade-link:hover { opacity: 0.88; }

.nav-link:hover { background: #f1f5f9; color: #7c3aed; }
.nav-link.active { background: #ede9fe; color: #7c3aed; font-weight: 700; }

.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }

.lang-toggle { display: flex; background: #f1f5f9; border-radius: 9px; padding: 3px; gap: 2px; }

.lang-opt {
    padding: 5px 9px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    transition: 0.15s;
}

.lang-opt.active { background: white; color: #7c3aed; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.lang-opt:not(.active):hover { color: #334155; }

.auth-btn {
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.hamburger {
    display: none;
    width: auto;
    margin-top: 0;
    padding: 7px 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    color: #475569;
    line-height: 1;
}

/* AUTH WRAPPER */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 28px 20px;
}

/* AUTH CARD */
.auth-card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}

/* TITLE */
.auth-title {
    text-align: center;
    color: #7c3aed;
    font-size: 32px;
    margin-bottom: 6px;
}

.auth-subtitle {
    text-align: center;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 22px;
    font-size: 15px;
}

/* GOOGLE BUTTON */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    margin-bottom: 6px;
}
.google-btn:hover {
    border-color: #a0aec0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* DIVIDER */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    color: #94a3b8;
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* TABS */
.tabs {
    display: flex;
    margin-bottom: 22px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    background: transparent;
    transition: 0.2s;
}

.tab-btn.active {
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    color: white;
}

/* FORM */
.form-section { display: none; }
.form-section.active { display: block; }

label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    margin-top: 10px;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-size: 15px;
    margin-bottom: 4px;
    outline: none;
    transition: 0.2s;
}

input::placeholder { color: #94a3b8; opacity: 1; }

input:-webkit-autofill {
    -webkit-text-fill-color: #0f172a;
    transition: background-color 9999s ease-in-out 0s;
}

input:focus { border-color: #7c3aed; background: white; }

/* BUTTON */
.submit-btn {
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.submit-btn:hover { transform: translateY(-2px); }

/* DATE / TIME SELECTS (signup form) */
.date-selects, .time-selects {
    display: grid;
    gap: 8px;
    margin-bottom: 4px;
}

.date-selects { grid-template-columns: 72px 1fr 90px; }
.time-selects { grid-template-columns: 1fr 1fr 86px; }

.date-select, .time-select {
    width: 100%;
    padding: 12px 30px 12px 12px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394a3b8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.date-select:focus, .time-select:focus { border-color: #7c3aed; background: white; }

/* ERROR */
.error { color: #dc2626; margin-top: 6px; font-size: 13px; }

.field-err {
    display: none;
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: 2px;
    padding-left: 2px;
}

.input-invalid {
    border-color: #ef4444 !important;
    background: #fff5f5 !important;
}

.select-error {
    border-color: #ef4444 !important;
    background: #fff5f5 !important;
}

input.input-invalid:focus { border-color: #ef4444 !important; }

.label-hint { font-weight: 400; color: #94a3b8; font-size: 12px; }

/* PASSWORD STRENGTH */
.pw-strength {
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-top: 6px;
    overflow: hidden;
}

.pw-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s, background 0.3s;
}

.pw-strength-label {
    font-size: 11px;
    font-weight: 700;
    margin-top: 3px;
    min-height: 16px;
    transition: color 0.3s;
}

/* FOOTER */
footer {
    margin-top: 40px;
    text-align: center;
    padding: 22px 20px;
    color: #94a3b8;
    font-size: 14px;
    border-top: 1px solid #e2e8f0;
}

.footer-links { display: flex; justify-content: center; gap: 22px; margin-bottom: 8px; }
.footer-links a { color: #64748b; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #7c3aed; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar { flex-wrap: wrap; height: auto; padding: 10px 4%; }
    .logo { flex: 1; }
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        width: 100%;
        padding: 8px 0 4px;
        border-top: 1px solid #f1f5f9;
        margin-top: 8px;
        order: 10;
    }
    .nav-links.open { display: flex; }
    .nav-link { padding: 11px 14px; font-size: 15px; }
    .nav-divider { display: none; }
    .hamburger { display: flex; align-items: center; }
    .auth-card { padding: 24px 16px; }
    .auth-title { font-size: 26px; }
}
