@charset "UTF-8";

/* ============================================================
   MyFlix – MyConnecting | Feuille de style principale
   ============================================================ */

:root {
    --orange: #FF4B00;
    --orange-light: rgba(255, 75, 0, 0.05);
    --purple: #4E006E;
    --purple-light: rgba(78, 0, 110, 0.06);
    --bg-page: #fafafa;
    --text-dark: #1a1a1a;
    --text-muted: #666;
    --border: #e8e8e8;
    --brand-gradient: linear-gradient(135deg, var(--purple) 0%, var(--orange) 100%);
    --brand-gradient-reverse: linear-gradient(135deg, var(--orange) 0%, var(--purple) 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* ── Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ── Header ─────────────────────────────────────────────── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.logo img,
.logo-area img {
    height: 38px;
    width: auto;
}

.nav-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.avatar,
#user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.user-plan-badge,
#user-plan-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--purple-light);
    color: var(--purple);
    letter-spacing: 0.5px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-login {
    background: var(--brand-gradient);
    color: #fff;
    border-radius: 50px;
    padding: 10px 24px;
}

.btn-login:hover {
    background: var(--brand-gradient-reverse);
    transform: translateY(-1px);
}

.btn-white {
    background: #fff;
    color: var(--purple);
    border: 2px solid #fff;
}

.btn-white:hover {
    background: transparent;
    color: #fff;
}

.btn-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-modal {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

.btn-offer {
    align-self: flex-start;
    margin-top: 20px;
    padding: 12px 28px;
    background: var(--brand-gradient);
    color: #fff;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-offer:hover {
    background: var(--brand-gradient-reverse);
    transform: translateY(-2px);
}

.btn-export,
.btn-save {
    background: var(--brand-gradient);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-export:hover,
.btn-save:hover,
.btn-action-enhanced:hover {
    background: var(--brand-gradient-reverse);
    transform: translateY(-1px);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: var(--brand-gradient);
    padding: 80px 20px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 900px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.15rem;
    font-weight: 300;
    margin-bottom: 32px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .btn-group {
    justify-content: center;
}

/* ── Sections ────────────────────────────────────────────── */
.section-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 30px;
}

.section-header {
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-header h2,
.section-container h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--purple);
    text-align: left;
}

.back-btn {
    cursor: pointer;
    color: #999;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
    text-decoration: none;
    align-self: flex-start;
}

.back-btn:hover {
    color: var(--orange);
}



.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ── Trending row (Top 5 – style Netflix) ────────────────── */
.trending-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
}

.trending-row::-webkit-scrollbar {
    display: none;
}

.trending-item {
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
    position: relative;
}

.trending-num {
    font-size: clamp(6rem, 10vw, 9rem);
    font-weight: 800;
    line-height: 0.85;
    background: linear-gradient(135deg, var(--orange), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
    margin-right: -20px;
    z-index: 1;
    letter-spacing: -4px;
    opacity: 0.8;
    transition: var(--transition);
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.1));
}

.trending-item:hover .trending-num {
    transform: scale(1.05);
    opacity: 1;
}

.trending-card {
    width: 200px;
    aspect-ratio: 2/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    z-index: 2;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    background: #1a1a2e;
    flex-shrink: 0;
}

.trending-card:hover {
    transform: scale(1.06) translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.trending-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.trending-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.82) 100%);
    display: flex;
    align-items: flex-end;
    padding: 14px 12px;
    transition: var(--transition);
}

.trending-overlay h4 {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
}

/* ── Series grid (nos-series) ────────────────────────────── */
.series-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.series-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid #f2f2f2;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.series-card:hover {
    transform: translateY(-6px);
    border-color: var(--orange);
    box-shadow: var(--card-shadow-hover);
    z-index: 2;
}

.series-card:hover .series-img-bg {
    transform: scale(1.05);
}

.series-thumb {
    width: 100%;
    height: 160px;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    padding: 20px;
    object-fit: cover;
}

.series-info {
    padding: 20px;
}

.series-info h3,
.series-info h4 {
    font-size: 1rem;
    color: var(--purple);
    margin-bottom: 8px;
    font-weight: 700;
}

.series-info p {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.4;
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.series-card:hover .play-overlay {
    opacity: 1;
}

.play-icon-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.badge,
.ep-pill-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--brand-gradient);
    color: #fff;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.video-label-all-glass {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #eee;
    color: var(--purple);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 600;
    z-index: 2;
}

.video-label-num-glass {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 75, 0, 0.9);
    color: #fff;
    padding: 4px 14px;
    border-bottom-right-radius: 12px;
    font-size: 0.65rem;
    font-weight: 800;
}

/* ── Why-Section / Info cards ────────────────────────────── */
.why-section {
    background: #fff;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.info-card {
    padding: 30px 26px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
    border-image: var(--brand-gradient);
    border-image-slice: 1;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.info-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--purple);
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-section {
    background: var(--bg-page);
}

.faq-container {
    max-width: 900px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}


.premium-highlight {
    color: var(--orange);
    font-weight: 700;
}

/* ── Modals ──────────────────────────────────────────────── */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: #fff;
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    max-width: 460px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.modal-content-large {
    background: #fff;
    padding: 50px 70px;
    border-radius: 40px;
    max-width: 1450px;
    width: 95%;
    max-height: 98vh;
    overflow-y: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    margin-bottom: 24px;
    color: var(--purple);
    font-size: 1.4rem;
    font-weight: 800;
}

.close-modal-x {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 2.2rem;
    color: #ccc;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal-x:hover {
    color: var(--orange);
    transform: rotate(90deg);
}

.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 75, 0, 0.12);
}

/* ── Rubric cards (nos-series modal) ─────────────────────── */
.rubric-card-enhanced {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid #f2f2f2;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: var(--transition);
    position: relative;
}

.rubric-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}

.rubric-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rubric-icon {
    width: 38px;
    height: 38px;
    background: #fff5f2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 1rem;
    flex-shrink: 0;
}

.rubric-card-enhanced h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--purple);
    margin: 0;
}

.rubric-card-enhanced p {
    font-size: 0.75rem;
    color: #777;
    line-height: 1.4;
    flex-grow: 1;
    margin: 0;
}

.btn-action-enhanced {
    width: 100%;
    padding: 12px 24px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(78, 0, 110, 0.15);
    color: var(--purple);
    background: rgba(78, 0, 110, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.btn-action-enhanced:hover {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(78, 0, 110, 0.15);
}

.btn-action-enhanced.orange-variant {
    border: 1px solid rgba(255, 75, 0, 0.15);
    color: var(--orange);
    background: rgba(255, 75, 0, 0.04);
}

.btn-action-enhanced.orange-variant:hover {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 75, 0, 0.15);
}

.plan-header-badge-glass {
    background: rgba(78, 0, 110, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(78, 0, 110, 0.15);
    color: var(--purple);
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.defi-header-badge {
    background: linear-gradient(135deg, #ff4b00, #ff8a00);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(255, 75, 0, 0.3);
}

.locked-tag {
    background: #fdfdfd;
    border: 1px dashed #ddd;
    opacity: 0.7;
    cursor: not-allowed;
}

.locked-tag::after {
    content: 'Premium';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.55rem;
    color: var(--orange);
    font-weight: 700;
}

/* ── Replay gallery & Video player (nos-series) ──────────── */
#replay-gallery,
#video-player-view {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1000;
    padding: 50px 70px;
    border-radius: 40px;
    flex-direction: column;
    overflow-y: hidden;
    justify-content: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.gallery-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid #eee;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.gallery-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange);
}

.gallery-thumb {
    width: 100%;
    height: 120px;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-body {
    padding: 15px;
}

.gallery-body h4 {
    font-size: 0.8rem;
    color: var(--purple);
    margin-bottom: 5px;
    font-weight: 600;
}

.gallery-body p {
    font-size: 0.7rem;
    color: #777;
    line-height: 1.3;
}

.player-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    margin-top: 30px;
    height: 80%;
    overflow: hidden;
}

.main-player-area {
    background: #000;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.playlist-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    padding-right: 10px;
}

.playlist-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.playlist-item.active {
    background: var(--orange-light);
    border-color: var(--orange);
}

.playlist-thumb {
    width: 60px;
    height: 40px;
    background: #eee;
    border-radius: 6px;
    flex-shrink: 0;
    overflow: hidden;
}

.playlist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Journey (3-column workbook) ─────────────────────────── */
.journey-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 25px;
}

.journey-column {
    background: #faf9fc;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid #f0edf5;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.journey-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.journey-column-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--purple);
    border-bottom: 2px solid var(--purple);
    padding-bottom: 8px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.journey-card-v2 {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid #e8e4f0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.journey-card-v2:hover {
    border-color: var(--orange);
    transform: translateY(-2px);
}

.journey-card-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.journey-card-header h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--purple);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.journey-card-header .subtitle {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    line-height: 1.3;
}

.phase-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    font-weight: 600;
    background: var(--purple);
    display: inline-block;
    padding: 8px 25px;
    border-radius: 30px;
    margin: 8px 0;
}

/* ── Interactive sections ─────────────────────────────────── */
.interactive-section {
    border-top: 1px solid #f0edf5;
    padding-top: 8px;
    margin-top: 5px;
}

.interactive-section-title {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--orange);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.interactive-content {
    display: none;
    padding-top: 8px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #444;
}

.concept-pill {
    display: inline-block;
    background: var(--purple-light);
    color: var(--purple);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    margin: 3px 3px 3px 0;
    cursor: pointer;
    font-weight: 600;
    border: 1px solid rgba(78, 0, 110, 0.15);
    transition: var(--transition);
}

.concept-pill:hover {
    background: var(--purple);
    color: #fff;
}

.diag-quiz-container {
    background: #fffdfa;
    border: 1px dashed var(--orange);
    border-radius: 10px;
    padding: 12px;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.diag-quiz-container select,
.diag-quiz-container textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 0.75rem;
    margin-bottom: 8px;
    font-family: inherit;
}

.diag-quiz-container button {
    width: 100%;
    padding: 8px;
    border-radius: 50px;
    border: none;
    background: var(--orange);
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.diag-quiz-container button:hover {
    background: #e04300;
}

/* ── Video placeholder ───────────────────────────────────── */
.video-placeholder-box {
    background: #000;
    border-radius: 10px;
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    margin-top: 5px;
}

.video-placeholder-box:hover .play-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    gap: 3px;
}

/* ── Quiz ────────────────────────────────────────────────── */
.quiz-question-box {
    background: #fdfbff;
    border: 1px solid #f0edf5;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.quiz-opt {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
    cursor: pointer;
    font-size: 0.7rem;
}

.quiz-opt input {
    accent-color: var(--purple);
}

.quiz-feedback {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    margin-top: 6px;
    display: none;
}

.quiz-feedback.success {
    background: #eef9f2;
    color: #27ae60;
}

.quiz-feedback.error {
    background: #fff2f0;
    color: #eb5757;
}

/* ── Fiche Mémo ──────────────────────────────────────────── */
.memo-fiche-container {
    background: #fff;
    border: 1px solid #eee;
    border-top: 4px solid var(--purple);
    padding: 15px;
    border-radius: var(--radius-md);
}

.memo-section-title {
    color: var(--orange);
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.memo-circle-num {
    background: var(--orange);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.quote-box {
    color: var(--orange);
    font-style: italic;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    margin: 25px 0;
    line-height: 1.5;
    padding: 0 40px;
}

/* ── Offers ──────────────────────────────────────────────── */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    align-items: stretch;
}

.offer-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
    position: relative;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.offer-card.recommended {
    border: 1px solid var(--orange);
}

.recommande-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--brand-gradient);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    z-index: 2;
}

.offer-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.offer-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px 24px;
}

.offer-body h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--purple);
    margin-bottom: 8px;
}

.offer-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.tag-essentiel {
    background: var(--purple-light);
    color: var(--purple);
}

.tag-premium {
    background: rgba(255, 75, 0, 0.15);
    color: var(--orange);
    border: 1px solid rgba(255, 75, 0, 0.3);
}

.offer-features {
    list-style: none;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.offer-features li {
    padding-left: 28px;
    position: relative;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.offer-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--orange);
    font-size: 1.1rem;
    font-weight: 800;
}

.btn-pill-offer {
    background: #fff;
    color: var(--purple);
    border: 1.5px solid var(--purple);
    align-self: flex-start;
    margin-top: 15px;
}

.btn-pill-offer:hover {
    background: var(--brand-gradient);
    color: #fff;
    border-color: transparent;
}

/* ── Sidebar / MyTransformation layout ──────────────────── */
.main-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 64px);
}

/* ── Workbook (mytransformation) ─────────────────────────── */
.workbook-page {
    background: #fff;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(78, 0, 110, 0.1);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--orange);
    margin-bottom: 24px;
}

.page-header img {
    height: 36px;
}

.page-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 0;
    flex-wrap: wrap;
}

.section-box {
    margin-bottom: 35px;
    padding: 30px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.section-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--purple);
}

/* ── Form elements ───────────────────────────────────────── */
.radio-group,
.mood-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 500;
}

.radio-label input {
    display: none;
}

.radio-label:hover {
    border-color: var(--purple);
}

.radio-label.selected {
    background: var(--purple-light);
    border-color: var(--purple);
    color: var(--purple);
    font-weight: 600;
}

.mood-btn {
    font-size: 2rem;
    background: none;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    padding: 10px;
    opacity: 0.6;
    filter: grayscale(100%);
}

.mood-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.mood-btn.selected {
    opacity: 1;
    filter: grayscale(0%);
    border-color: var(--orange);
    background: var(--orange-light);
    transform: scale(1.1);
}

.inline-inputs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    line-height: 2.5;
    font-size: 0.95rem;
}

.inline-inputs input {
    width: auto;
    min-width: 100px;
    padding: 8px 15px;
    border-bottom: 2px solid var(--purple);
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
    background: transparent;
    text-align: center;
}

.inline-inputs input:focus {
    box-shadow: none;
    border-bottom-color: var(--orange);
    outline: none;
}

textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
}

textarea:focus,
input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 75, 0, 0.12);
}

/* ── Challenge box ───────────────────────────────────────── */
.challenge-box {
    background: linear-gradient(135deg, #fff5f0, #fff);
    border-left-color: var(--orange);
}

.challenge-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid #ffe8e0;
}

.challenge-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--orange);
    cursor: pointer;
}

.challenge-desc {
    flex-grow: 1;
}

.challenge-desc strong {
    display: block;
    color: var(--orange);
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.challenge-desc p {
    font-size: 0.8rem;
    color: #666;
}

/* ── Progress ────────────────────────────────────────────── */
.progress-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(var(--orange) 0%, #eee 0%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-circle-inner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--purple);
}

.progress-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ── Notification ────────────────────────────────────────── */
#notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2D3436;
    color: #fff;
    padding: 15px 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
}

#notification.show {
    transform: translateY(0);
}

.notif-icon {
    background: #27ae60;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#offer-notification {
    position: fixed;
    top: 80px;
    right: 24px;
}

/* ── Misc / Helpers ──────────────────────────────────────── */
.no-bold-title {
    font-weight: 500;
}

.quote {
    font-style: italic;
    padding: 18px 22px;
    border-left: 4px solid var(--orange);
    background: var(--orange-light);
    margin: 18px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-dark);
}

.sub-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.signature-font {
    font-family: 'Satisfy', cursive;
    font-size: 1.8rem;
    color: var(--purple);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-btn {
    padding: 20px 0;
    color: #999;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.back-btn:hover {
    color: var(--orange);
    transform: translateX(-4px);
}

footer {
    background: var(--text-dark);
    color: #fff;
    padding: 40px 30px;
    text-align: left;
    font-size: 0.9rem;
    opacity: 0.9;
    min-height: 100px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    header {
        padding: 12px 20px;
    }

    .section-container {
        padding: 40px 20px;
    }

    .hero {
        padding: 60px 20px;
        min-height: 50vh;
    }

    .series-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .journey-grid {
        grid-template-columns: 1fr;
    }

    .main-container {
        grid-template-columns: 1fr;
    }

    .modal-content-large {
        padding: 30px 24px;
        border-radius: var(--radius-lg);
    }

    #replay-gallery,
    #video-player-view {
        padding: 30px 24px;
        border-radius: var(--radius-lg);
    }
}

@media (max-width: 600px) {
    .trending-card {
        width: 120px;
    }

    .trending-num {
        font-size: 5rem;
        margin-right: -20px;
    }

    .series-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .offers-grid {
        grid-template-columns: 1fr;
    }

    .modal-content,
    .modal-content-large {
        padding: 26px 22px;
    }

    .workbook-page {
        padding: 24px 20px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    html,
    body {
        width: 100%;
        height: 100%;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    body * {
        visibility: hidden !important;
    }

    #document-modal {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0 !important;
        padding: 0 !important;
        background: none !important;
        visibility: visible !important;
    }

    #a4-page-view,
    #a4-page-view * {
        visibility: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    #a4-page-view {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        margin: 0 !important;
        box-shadow: none !important;
        overflow: hidden !important;
        border: none !important;
    }

    header,
    footer,
    .nav-actions,
    .print-hide,
    .modal,
    .back-btn,
    .btn-export,
    .btn-save,
    .btn-action-enhanced,
    .doc-modal-actions,
    .page-actions,
    .sidebar,
    #notification,
    #offer-notification,
    .document-modal-header,
    .close-modal-x {
        display: none !important;
    }

    body,
    html {
        background: #fff;
    }

    .workbook-page {
        box-shadow: none;
        margin: 0;
        padding: 20mm;
        border-radius: 0;
    }
}


/* ============================================================
   INDEX V2 – Premium Homepage
   ============================================================ */

/* ── Header v2 ───────────────────────────────────────────── */
.site-header {
    display: block !important;
    padding: 0 !important;
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.25s;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--purple);
}

/* ── Pill Buttons ────────────────────────────────────────── */
.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

/* Outline pill (header Connexion) */
.btn-pill-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-dark);
}

.btn-pill-outline:hover {
    border-color: var(--purple);
    color: var(--purple);
    background: var(--purple-light);
}

/* White pill (hero CTA primary) */
.btn-pill-white {
    background: #fff;
    color: var(--purple);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-pill-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

/* Ghost pill (hero CTA secondary) */
.btn-pill-ghost {
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    backdrop-filter: blur(6px);
}

.btn-pill-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

/* Ghost dark (modal secondary) */
.btn-pill-ghost-dark {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
}

.btn-pill-ghost-dark:hover {
    border-color: var(--text-dark);
    color: var(--text-dark);
}

/* Brand gradient pill */
.btn-pill-brand {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(78, 0, 110, 0.3);
}

.btn-pill-brand:hover {
    background: var(--brand-gradient-reverse);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(78, 0, 110, 0.4);
}

/* Full-width pill */
.btn-pill-full {
    width: 100%;
    justify-content: center;
}

/* Small outline brand (section header) */
.btn-pill-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
}

.btn-pill-outline-brand {
    background: transparent;
    border: 1.5px solid var(--orange);
    color: var(--orange);
}

.btn-pill-outline-brand:hover {
    background: var(--orange);
    color: #fff;
}

/* ── Hero V2 ─────────────────────────────────────────────── */
.hero-v2 {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            rgba(78, 0, 110, 0.88) 0%,
            rgba(78, 0, 110, 0.72) 40%,
            rgba(255, 75, 0, 0.45) 75%,
            rgba(255, 75, 0, 0.25) 100%);
}

.hero-body {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 30px 50px;
}

.hero-content-v2 {
    max-width: 640px;
    color: #fff;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 22px;
    padding: 6px 14px 6px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 8px var(--orange);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.8);
    }
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title-accent {
    background: linear-gradient(90deg, #fff 0%, rgba(255, 200, 150, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 52px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 18px 28px;
    width: fit-content;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
}

.hero-stat:first-child {
    padding-left: 0;
}

.hero-stat:last-child {
    padding-right: 0;
}

.stat-num {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.stat-unit {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.7;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* ── Section header v2 ───────────────────────────────────── */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 36px;
}

.section-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--orange);
    background: var(--orange-light);
    border: 1px solid rgba(255, 75, 0, 0.15);
    padding: 4px 12px;
    border-radius: 999px;
    width: fit-content;
}

/* ── Info Cards V2 ───────────────────────────────────────── */
.info-card-v2 {
    padding: 32px 28px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.info-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.info-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.info-card-v2:hover::before {
    transform: scaleX(1);
}

.info-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--purple-light);
    border: 1px solid rgba(78, 0, 110, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    margin-bottom: 20px;
}

.info-card-v2 h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.info-card-v2 p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    text-align: justify;
    hyphens: auto;
}

/* ── FAQ v2 ──────────────────────────────────────────────── */
.faq-item {
    cursor: pointer;
    border: 1px solid var(--border);
    box-shadow: none;
}

.faq-item:hover {
    border-color: rgba(78, 0, 110, 0.25);
}

.faq-item.open {
    border-color: var(--purple);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--text-dark);
}

.faq-question::after {
    display: none;
}

/* override old + sign */

.faq-icon {
    color: var(--purple);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.35s ease;
    display: flex;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    transition: max-height 0.4s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 24px 22px;
}

/* ── Modal v2 ────────────────────────────────────────────── */
.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: #ececec;
    color: var(--text-dark);
}

.modal-login {
    max-width: 400px;
    padding: 42px 36px 36px;
}

.modal-login-brand {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 28px;
}

.modal-login-brand img {
    height: 30px;
}

.modal-login-title {
    text-align: left;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--purple);
    margin-bottom: 6px !important;
}

.modal-login-sub {
    text-align: left;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 28px;
}

.login-error-msg {
    color: #e74c3c;
    font-size: 0.78rem;
    margin-bottom: 16px;
    display: none;
}

.modal-teaser {
    max-width: 440px;
    padding: 42px 36px 36px;
}

.teaser-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--purple);
    margin: 14px 0 12px;
}

.teaser-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

.teaser-cta-row {
    display: flex;
    gap: 12px;
}

.site-footer-bar {
    text-align: center;
    padding: 24px;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: #fff;
}

.title-gradient-line {
    width: 80px;
    height: 4px;
    background: var(--brand-gradient);
    border-radius: 4px;
    margin-top: 12px;
    margin-bottom: 8px;
}

/* ══════════════════════════════════════════════════
   Learner Nav Link
══════════════════════════════════════════════════ */
.nav-link-learner {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding-bottom: 2px;
}
.nav-link-learner::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.nav-link-learner:hover { color: var(--orange); }
.nav-link-learner:hover::after { width: 100%; }

/* ══════════════════════════════════════════════════
   Avatar Dropdown Menu
══════════════════════════════════════════════════ */
.avatar-menu-container {
    position: relative;
}

.avatar-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    padding: 5px 14px 5px 5px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.avatar-trigger:hover {
    border-color: var(--orange);
    box-shadow: 0 4px 16px rgba(255, 75, 0, 0.12);
}
.avatar-trigger.open {
    border-color: var(--purple);
    box-shadow: 0 4px 16px rgba(78, 0, 110, 0.12);
}

.avatar-circle-header {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    flex-shrink: 0;
    user-select: none;
}
.avatar-circle-header.avatar-lg {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
}

.avatar-trigger-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-dark);
    white-space: nowrap;
}

.avatar-chevron {
    font-size: 0.65rem;
    color: #aaa;
    transition: transform 0.25s ease;
    margin-left: 2px;
}
.avatar-trigger.open .avatar-chevron {
    transform: rotate(180deg);
}

.avatar-dropdown-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0,0,0,0.05);
    min-width: 250px;
    padding: 8px;
    z-index: 600;
    display: none;
    animation: avatarDropIn 0.22s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.avatar-dropdown-panel.open {
    display: block;
}

@keyframes avatarDropIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-user-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 14px;
}

.dropdown-user-info strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text-dark);
    font-weight: 700;
}
.dropdown-user-info span {
    font-size: 0.72rem;
    color: var(--orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}
.dropdown-item:hover {
    background: #fafafa;
    color: var(--purple);
}
.dropdown-item span {
    font-size: 1rem;
    flex-shrink: 0;
}

.dropdown-danger { color: #e74c3c; }
.dropdown-danger:hover { background: #fff5f5; color: #c0392b; }

/* ══════════════════════════════════════════════════
   Learner Welcome Banner
══════════════════════════════════════════════════ */
.learner-welcome-banner {
    background: linear-gradient(135deg, var(--purple) 0%, #7b00a0 55%, var(--orange) 100%);
    border-radius: var(--radius-lg);
    padding: 28px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    color: #fff;
    gap: 20px;
}
.learner-welcome-banner::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    pointer-events: none;
}
.learner-welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -70px; left: 38%;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.welcome-left {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.welcome-hello {
    display: block;
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.2;
}
.welcome-sub {
    display: block;
    font-size: 0.88rem;
    opacity: 0.82;
    font-weight: 400;
}

.welcome-right {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.welcome-stat-pill {
    text-align: center;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 14px 18px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    min-width: 100px;
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.welcome-stat-pill:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}
.welcome-stat-pill .stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}
.welcome-stat-pill .stat-label {
    display: block;
    font-size: 0.68rem;
    opacity: 0.85;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.3;
}

.btn-welcome-plan {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--purple);
    padding: 13px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-welcome-plan:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    color: var(--orange);
}

/* ══════════════════════════════════════════════════
   Change Password Modal
══════════════════════════════════════════════════ */
.pwd-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pwd-modal-overlay.active { display: flex; }

.pwd-modal {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 36px 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.pwd-modal h3 {
    color: var(--purple);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pwd-field {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pwd-field label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-dark);
}
.pwd-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: #fafafa;
}
.pwd-field input:focus {
    outline: none;
    border-color: var(--orange);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 75, 0, 0.1);
}

.pwd-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}
.btn-pwd-cancel {
    padding: 12px 20px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: none;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    transition: var(--transition);
    color: #999;
}
.btn-pwd-cancel:hover { border-color: var(--orange); color: var(--orange); }

.btn-pwd-save {
    flex: 1;
    background: var(--brand-gradient);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}
.btn-pwd-save:hover {
    background: var(--brand-gradient-reverse);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(78, 0, 110, 0.2);
}

/* ── Carousel Arrows ─────────────────────────────────────── */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: var(--purple);
    transition: var(--transition);
}

.carousel-arrow:hover {
    background: var(--brand-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.left-arrow {
    left: -20px;
}

.right-arrow {
    right: -20px;
}

@media (max-width: 768px) {
    .carousel-arrow {
        display: none;
    }
}