/* ═══════════════════════════════════════════════════════════════════
   Inna Pro Beauty — Course Platform (kurs/)
   Quiet Luxury Design System — matches main site aesthetic
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --bg-light: #FCF9F5;
    --bg-secondary: #F7EBE8;
    --bg-dark: #7D6B65;
    --text-dark: #7D6B65;
    --text-light: #FCF9F5;
    --accent: #EBDAD2;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Jost', sans-serif;

    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    -webkit-user-drag: none;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    min-height: 100vh;
}

.highlight {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}


/* ─── Buttons ─────────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 18px 45px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: var(--transition);
    border-radius: 2px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border: 1px solid var(--bg-dark);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--bg-dark);
}

.btn-outline:hover {
    background-color: var(--bg-dark);
    color: var(--text-light);
}


/* ═══════════════════════════════════════════════════════════════════
   AUTH PAGES (Login, Checkout)
   ═══════════════════════════════════════════════════════════════════ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.auth-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #6B5A55 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(235,218,210,0.15);
    animation: auth-rotate 30s linear infinite;
}

.auth-left::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px solid rgba(235,218,210,0.1);
    animation: auth-rotate 25s linear infinite reverse;
}

@keyframes auth-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-brand {
    text-align: center;
    z-index: 1;
}

.auth-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 6px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.auth-tagline {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.8;
}

.auth-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    background-color: var(--bg-light);
}

.auth-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.auth-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
    opacity: 0.5;
    font-weight: 400;
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 30px;
    line-height: 1.1;
}

.auth-error {
    background-color: rgba(180,80,80,0.08);
    border-left: 3px solid #b45050;
    padding: 12px 16px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #8a3a3a;
    border-radius: 0 2px 2px 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    font-weight: 400;
}

.form-group input {
    padding: 16px 20px;
    border: 1px solid var(--accent);
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
    outline: none;
}

.form-group input:focus {
    border-color: var(--bg-dark);
    box-shadow: 0 0 0 3px rgba(125,107,101,0.08);
}

.form-group input::placeholder {
    color: var(--accent);
    opacity: 0.8;
}

.auth-btn {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding: 18px;
}

.auth-footer-text {
    font-size: 0.85rem;
    opacity: 0.6;
    text-align: center;
    margin-top: 15px;
}

.auth-footer-text a {
    color: var(--text-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.auth-footer-text a:hover {
    opacity: 0.8;
}


/* ─── Checkout extras ─────────────────────────────────────────────── */

.checkout-price {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 25px;
    line-height: 1;
    color: var(--bg-dark);
}

.checkout-features {
    margin-bottom: 30px;
}

.checkout-list {
    list-style: none;
    padding: 0;
}

.checkout-list li {
    position: relative;
    padding: 10px 0 10px 25px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(235,218,210,0.5);
}

.checkout-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--bg-dark);
    font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════════════
   SUCCESS PAGE
   ═══════════════════════════════════════════════════════════════════ */

.success-container {
    max-width: 550px;
    margin: 0 auto;
    padding: 80px 30px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    color: #5a9a6a;
    margin-bottom: 30px;
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.success-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.success-desc {
    font-size: 1.05rem;
    opacity: 0.7;
    margin-bottom: 40px;
    line-height: 1.8;
}

.success-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    text-align: left;
}

.success-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background-color: var(--bg-secondary);
    border-radius: 4px;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    flex-shrink: 0;
}

.success-step p {
    font-size: 0.95rem;
}

.success-footer {
    margin-top: 30px;
    font-size: 0.8rem;
    opacity: 0.5;
}


/* ═══════════════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════════════ */

.dashboard-page {
    background-color: var(--bg-light);
}

/* ─── Header ──────────────────────────────────────────────────────── */

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 50px;
    background-color: rgba(252,249,245,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(235,218,210,0.4);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dash-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.dash-logo:hover {
    opacity: 0.7;
}

.dash-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dash-plan-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 500;
}

.dash-plan-badge.basic {
    background-color: var(--accent);
    color: var(--text-dark);
}

.dash-plan-badge.premium {
    background: linear-gradient(135deg, var(--bg-dark), #6B5A55);
    color: var(--text-light);
}

.dash-email {
    font-size: 0.85rem;
    opacity: 0.6;
}

.dash-logout {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--text-dark);
    opacity: 0.5;
    transition: var(--transition);
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 2px;
}

.dash-logout:hover {
    opacity: 1;
    border-color: var(--accent);
}

/* ─── Dashboard Hero ──────────────────────────────────────────────── */

.dash-hero {
    text-align: center;
    padding: 80px 30px 50px;
}

.dash-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
    opacity: 0.5;
    font-weight: 400;
}

.dash-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 15px;
    line-height: 1.1;
}

.dash-desc {
    font-size: 1.05rem;
    opacity: 0.6;
    max-width: 500px;
    margin: 0 auto;
}

/* ─── Lessons Grid ────────────────────────────────────────────────── */

.dash-lessons {
    padding: 30px 50px 80px;
}

.lessons-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.lesson-card {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 30px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.lesson-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--accent);
    transition: var(--transition);
}

.lesson-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.lesson-card:hover::before {
    background-color: var(--bg-dark);
}

.lesson-card.locked {
    opacity: 0.65;
}

.lesson-card.locked:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.lesson-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--accent);
    line-height: 1;
    min-width: 50px;
    flex-shrink: 0;
}

/* ─── Video Wrapper ───────────────────────────────────────────────── */

.lesson-video-wrapper {
    width: 400px;
    min-width: 400px;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--accent), var(--bg-dark));
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.lesson-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.lesson-lock-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(125,107,101,0.9), rgba(107,90,85,0.95));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
}

.lock-icon {
    width: 36px;
    height: 36px;
    opacity: 0.8;
}

.lesson-lock-overlay span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

/* ─── Lesson Info ─────────────────────────────────────────────────── */

.lesson-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 5px;
}

.lesson-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
}

.lesson-desc {
    font-size: 0.95rem;
    opacity: 0.6;
    line-height: 1.6;
}

.lesson-plan-tag {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bg-dark);
    background-color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 8px;
    width: fit-content;
}

/* ─── Upgrade CTA ─────────────────────────────────────────────────── */

.dash-upgrade {
    background-color: var(--bg-dark);
    padding: 80px 30px;
    text-align: center;
}

.upgrade-content {
    max-width: 500px;
    margin: 0 auto;
}

.upgrade-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.1;
}

.upgrade-desc {
    color: var(--accent);
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 35px;
    line-height: 1.7;
}

.dash-upgrade .btn-primary {
    background-color: var(--text-light);
    color: var(--bg-dark);
    border-color: var(--text-light);
}

.dash-upgrade .btn-primary:hover {
    background-color: transparent;
    color: var(--text-light);
}

/* ─── Dashboard Footer ────────────────────────────────────────────── */

.dash-footer {
    padding: 30px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.4;
    background-color: var(--bg-secondary);
}


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    /* Auth pages */
    .auth-container {
        flex-direction: column;
    }

    .auth-left {
        padding: 40px 30px;
        min-height: auto;
    }

    .auth-logo {
        font-size: 1.5rem;
    }

    .auth-right {
        padding: 40px 30px;
    }

    .auth-title {
        font-size: 2.5rem;
    }

    /* Dashboard header */
    .dash-header {
        padding: 20px 20px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .dash-user-info {
        gap: 10px;
        flex-wrap: wrap;
    }

    .dash-email {
        display: none;
    }

    /* Dashboard hero */
    .dash-hero {
        padding: 60px 20px 40px;
    }

    .dash-title {
        font-size: 2.8rem;
    }

    /* Lessons */
    .dash-lessons {
        padding: 20px 20px 60px;
    }

    .lesson-card {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .lesson-number {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
        opacity: 0.3;
        z-index: 1;
    }

    .lesson-video-wrapper {
        width: 100%;
        min-width: unset;
    }

    .lesson-title {
        font-size: 1.3rem;
    }

    /* Upgrade */
    .upgrade-title {
        font-size: 2.3rem;
    }

    /* Checkout price */
    .checkout-price {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .dash-header {
        padding: 15px;
    }

    .dash-logo {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .dash-plan-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .dash-title {
        font-size: 2.2rem;
    }

    .lesson-card {
        padding: 15px;
    }

    .btn {
        padding: 15px 30px;
        font-size: 0.8rem;
    }

    .auth-logo {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }

    .auth-title {
        font-size: 2rem;
    }

    .success-title {
        font-size: 2.5rem;
    }

    .success-steps {
        gap: 10px;
    }

    .success-step {
        padding: 12px 16px;
    }
}
