/* ============================================
   BeeHouses Foundation — E-Learning Platform
   kursy.css — All platform styles
   Uses design tokens from layout.css
   ============================================ */

/* === AUTH MODALS === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 20, 15, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out-expo);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 60px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    transform: translateY(30px) scale(0.97);
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--accent-green);
    color: #fff;
    border-color: var(--accent-green);
}

.modal-box h2 {
    font-family: 'Forum', serif;
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: var(--accent-green);
}

.modal-box .modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.6;
}

.modal-box .form-input {
    width: 100%;
    padding: 18px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    transition: border-color 0.3s;
    outline: none;
}

.modal-box .form-input:focus {
    border-color: var(--accent-honey);
}

.modal-box .form-input::placeholder {
    color: var(--text-muted);
}

.modal-box .submit-btn {
    width: 100%;
    padding: 18px;
    border-radius: 50px;
    background: var(--accent-green);
    color: #fff;
    border: none;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    margin-top: 12px;
}

.modal-box .submit-btn:hover {
    background: var(--accent-green-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 61, 52, 0.2);
}

.modal-box .submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.form-checkbox input[type="checkbox"]:checked {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.form-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.form-checkbox label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.modal-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.modal-switch a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.modal-switch a:hover {
    color: var(--accent-honey);
}

.form-error {
    color: #c0392b;
    font-size: 0.8rem;
    margin-top: -16px;
    margin-bottom: 16px;
    display: none;
}

.form-error.visible {
    display: block;
}

.form-success {
    color: var(--accent-green);
    font-size: 0.8rem;
    margin-bottom: 16px;
    display: none;
    text-align: center;
}

.form-success.visible {
    display: block;
}

/* === HOW IT WORKS SECTION === */
.how-it-works {
    padding: 120px 0;
    background: var(--bg-surface);
    border-top: 1px solid rgba(30, 61, 52, 0.05);
}

.hiw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 60px;
}

.hiw-card {
    text-align: center;
    padding: 48px 32px;
    background: var(--bg-base);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
}

.hiw-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(196, 160, 82, 0.08);
}

.hiw-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green) 0%, #2a6b54 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Forum', serif;
    font-size: 1.5rem;
    margin: 0 auto 24px;
}

.hiw-card h3 {
    font-family: 'Forum', serif;
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--accent-green);
}

.hiw-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.hiw-connector {
    display: none;
}

/* === CTA SECTION === */
.cta-learn {
    padding: 160px 0;
    background-image: linear-gradient(rgba(8, 20, 15, 0.80), rgba(8, 20, 15, 0.80)), url('https://i.imgur.com/uFORYgJ.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-learn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(227, 176, 75, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-learn-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-learn h2 {
    font-family: 'Forum', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--accent-honey);
    margin-bottom: 20px;
}

.cta-learn p {
    font-size: 1.05rem;
    color: rgba(244, 241, 234, 0.7);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   SPA — PLATFORM APP STYLES
   ============================================ */

/* === APP LAYOUT (Dark Premium Edition) === */
.app-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #040D0B; /* Deep Forest Dark */
    color: #F4F1EA;
    font-family: 'Inter', sans-serif;
}

.app-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1500px, calc(100% - 40px));
    z-index: 1000;
    background: rgba(8, 20, 15, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(196, 160, 82, 0.2);
    border-radius: 100px;
    padding: 12px 0;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.5s var(--ease-out-expo);
}

.app-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

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

.header-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.app-brand-text {
    display: flex;
    flex-direction: column;
}

.app-brand-main {
    font-family: 'Forum', serif;
    font-size: 1.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
}

.app-brand-sub {
    font-family: 'Pinyon Script', cursive;
    font-size: 1.15rem;
    color: var(--accent-honey);
    margin-top: -2px;
    margin-left: 18px;
}

.app-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-nav-link {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: rgba(244, 241, 234, 0.6);
    text-decoration: none;
    transition: all 0.4s var(--ease-out-expo);
    font-family: 'Tenor Sans', sans-serif;
    position: relative;
}

.app-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.app-nav-link.active {
    color: var(--accent-honey);
}

.app-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 1px;
    background: var(--accent-honey);
    box-shadow: 0 0 10px var(--accent-honey);
}

/* User Profile Hub in Nav */
.app-user-hub {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-honey) 0%, #8A6D2D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-family: 'Forum', serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: 0 0 15px rgba(196, 160, 82, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.app-user-avatar:hover {
    transform: scale(1.05);
    border-color: var(--accent-honey);
    box-shadow: 0 0 25px rgba(196, 160, 82, 0.4);
}

.app-user-name {
    font-size: 0.75rem;
    color: rgba(244, 241, 234, 0.6);
    font-weight: 500;
    letter-spacing: 0.05em;
    display: none; /* Hidden on standard view for minimalism, show in profile or menu */
}

.app-logout-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    font-size: 0.9rem;
}

.app-logout-btn i {
    margin: 0 !important; /* Reset margin from old class */
}

.app-logout-btn:hover {
    background: rgba(192, 57, 43, 0.15);
    border-color: rgba(192, 57, 43, 0.4);
    color: #e74c3c;
    transform: scale(1.05);
}

.app-action-btn {
    min-width: 180px;
    min-height: 52px;
    padding: 14px 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    font-size: 0.85rem;
    font-family: 'Tenor Sans', sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.app-action-btn:hover:not(:disabled):not(.disabled) {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(196, 160, 82, 0.35);
    color: #fff;
}

.app-action-btn:disabled,
.app-action-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.app-main {
    flex: 1;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 40px;
    margin-top: 70px;
}

.app-footer {
    text-align: center;
    padding: 40px;
    font-size: 0.75rem;
    color: rgba(244, 241, 234, 0.3);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-top: 1px solid rgba(196, 160, 82, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

/* === DASHBOARD === */
.dashboard-header {
    margin-bottom: 60px;
    text-align: center;
}

.dashboard-header h1 {
    font-family: 'Forum', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 12px;
    color: #fff;
    background: linear-gradient(to right, #fff, var(--accent-honey));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-header p {
    color: rgba(244, 241, 234, 0.6);
    font-size: 1.2rem;
    font-family: 'Tenor Sans', sans-serif;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 28px;
    border: 1px solid rgba(196, 160, 82, 0.1);
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(196, 160, 82, 0.08), transparent 70%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(196, 160, 82, 0.04);
    border-color: rgba(196, 160, 82, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-card .stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(196, 160, 82, 0.1);
    border: 1px solid rgba(196, 160, 82, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent-honey);
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
    background: var(--accent-honey);
    color: #000;
    transform: rotate(-10deg);
}

.stat-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stat-card .stat-number {
    font-family: 'Forum', serif;
    font-size: 2.8rem;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Tenor Sans', sans-serif;
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* === COURSE CARD (Dashboard) === */
.d-course-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.6s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.d-course-card:hover {
    transform: translateY(-12px);
    border-color: rgba(196, 160, 82, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.d-course-img {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.d-course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.d-course-card:hover .d-course-img img {
    transform: scale(1.1);
}

.d-course-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, #040D0B 100%);
}

.d-course-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(196, 160, 82, 0.9);
    color: #000;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
}

.d-course-status {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.d-course-status.not-started { background: rgba(255, 255, 255, 0.1); color: #fff; }
.d-course-status.in-progress { background: rgba(196, 160, 82, 0.2); color: var(--accent-honey); border: 1px solid rgba(196, 160, 82, 0.3); }
.d-course-status.completed { background: rgba(46, 204, 113, 0.2); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.3); }

.d-course-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.d-course-body h3 {
    font-family: 'Forum', serif;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 8px;
}

.d-course-body p {
    font-size: 0.85rem;
    color: rgba(244, 241, 234, 0.5);
    line-height: 1.6;
    margin-bottom: 16px;
}

.d-course-progress {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8A6D2D 0%, var(--accent-honey) 100%);
    border-radius: 4px;
    transition: width 1s var(--ease-out-expo);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(244, 241, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Tenor Sans', sans-serif;
}

.d-course-meta {
    display: flex;
    gap: 20px;
    margin-top: 24px;
}

.d-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}

.d-meta-item i {
    color: var(--accent-honey);
}

/* === COURSE VIEW (Masterclass Detail) === */
.course-view-hero {
    position: relative;
    padding: 100px 0;
    margin-bottom: 60px;
    border-radius: 40px;
    overflow: hidden;
}

.course-view-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.course-view-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(0.8);
}

.course-view-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 20%, #040D0B 100%);
}

.course-view-header {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.course-view-info h1 {
    font-family: 'Forum', serif;
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
}

.course-view-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 40px;
    font-family: 'Tenor Sans', sans-serif;
    font-style: italic;
}

.course-view-meta {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.cv-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Tenor Sans', sans-serif;
}

.cv-meta-item i {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.chapter-list {
    display: grid;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.chapter-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s var(--ease-out-expo);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.chapter-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-honey);
    transform: translateX(10px);
}

.chapter-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Forum', serif;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.chapter-item.completed .chapter-number {
    background: var(--accent-green);
    color: #fff;
}

.chapter-item.current .chapter-number {
    background: var(--accent-honey);
    color: var(--bg-forest);
}

.chapter-item.locked .chapter-number,
.chapter-item:not(.completed):not(.current):not(.locked) .chapter-number {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-muted);
}

.chapter-title {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 500;
}

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

.chapter-item.completed .chapter-status-icon {
    color: var(--accent-green);
}

.chapter-item.locked .chapter-status-icon {
    color: var(--text-muted);
}

.quiz-start-card {
    margin-top: 32px;
    padding: 40px;
    background: linear-gradient(135deg, var(--bg-forest) 0%, #0d2b1f 100%);
    border-radius: var(--radius-md);
    text-align: center;
    color: #fff;
}

.quiz-start-card h3 {
    font-family: 'Forum', serif;
    font-size: 1.6rem;
    color: var(--accent-honey);
    margin-bottom: 12px;
}

.quiz-start-card p {
    color: rgba(244, 241, 234, 0.7);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.quiz-start-card .btn-honey {
    display: inline-flex;
}

.quiz-start-card .btn-honey:disabled,
.quiz-start-card .btn-honey.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* === CHAPTER READER (Focus Mode) === */
.chapter-reader {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    align-items: flex-start;
}

.chapter-content {
    background: rgba(255, 255, 255, 0.02);
    padding: 80px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    line-height: 1.8;
}

.chapter-content h2 {
    font-family: 'Forum', serif;
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: #fff;
    border-bottom: 1px solid rgba(196, 160, 82, 0.2);
    padding-bottom: 20px;
}

.chapter-content p {
    font-size: 1.15rem;
    color: rgba(244, 241, 234, 0.8);
    margin-bottom: 30px;
}

.chapter-content ul, .chapter-content ol {
    margin-bottom: 30px;
    padding-left: 24px;
}

.chapter-content li {
    margin-bottom: 12px;
    color: rgba(244, 241, 234, 0.7);
}

.chapter-sidebar {
    position: sticky;
    top: 120px;
}

.timer-card {
    background: rgba(196, 160, 82, 0.05);
    padding: 50px 40px;
    border-radius: 30px;
    border: 1px solid rgba(196, 160, 82, 0.2);
    text-align: center;
    backdrop-filter: blur(10px);
}

.timer-card h4 {
    font-family: 'Tenor Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-bottom: 30px;
    color: var(--accent-honey);
}

.timer-svg-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 30px;
}

.timer-svg {
    width: 160px;
    height: 160px;
    transform: rotate(-90deg);
}

.timer-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 4;
}

.timer-progress {
    fill: none;
    stroke: var(--accent-honey);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Forum', serif;
    font-size: 2.2rem;
    color: #fff;
}

.timer-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 30px;
}

.chapter-nav-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    margin-bottom: 12px;
}

.btn-next {
    background: var(--accent-honey);
    color: #000;
    border: none;
}

.chapter-nav-btn.btn-next {
    background: var(--accent-green);
    color: #fff;
}

.chapter-nav-btn.btn-next:hover:not(:disabled) {
    background: var(--accent-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(30, 61, 52, 0.2);
}

.chapter-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.chapter-nav-btn.btn-back {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 12px;
}

.chapter-nav-btn.btn-back:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* === QUIZ (Dark Edition) === */
.quiz-container {
    max-width: 900px;
    margin: 0 auto;
}

.quiz-header {
    text-align: center;
    margin-bottom: 60px;
}

.quiz-header h1 {
    font-family: 'Forum', serif;
    font-size: 2.8rem;
    margin-bottom: 12px;
    color: #fff;
}

.quiz-header p {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Tenor Sans', sans-serif;
    letter-spacing: 1px;
}

.quiz-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 60px;
    overflow: hidden;
}

.quiz-progress-meta {
    margin-top: 12px;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8A6D2D 0%, var(--accent-honey) 100%);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-question-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 60px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.quiz-question-number {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 24px;
    font-family: 'Tenor Sans', sans-serif;
}

.quiz-question-text {
    font-family: 'Forum', serif;
    font-size: 1.8rem;
    margin-bottom: 12px;
    line-height: 1.3;
    color: #fff;
}

.quiz-question-type {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 40px;
    font-style: italic;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-answer-hint {
    margin-top: 24px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.quiz-option:hover {
    border-color: var(--accent-honey);
    background: rgba(196, 160, 82, 0.05);
    transform: translateX(10px);
}

.quiz-option.selected {
    border-color: var(--accent-honey);
    background: rgba(196, 160, 82, 0.1);
    color: #fff;
    box-shadow: 0 10px 30px rgba(196, 160, 82, 0.1);
}

.quiz-option-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    color: transparent;
}

.quiz-option.selected .quiz-option-marker {
    background: var(--accent-honey);
    border-color: var(--accent-honey);
    color: #000;
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

/* === QUIZ RESULT (Dark Premium) === */
.quiz-result {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    padding: 80px 40px;
    border-radius: 40px;
    border: 1px solid rgba(196, 160, 82, 0.1);
}

.result-circle-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 40px;
}

.result-svg {
    width: 220px;
    height: 220px;
    transform: rotate(-90deg);
}

.result-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 6;
}

.result-progress {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-progress.pass { stroke: #2ecc71; filter: drop-shadow(0 0 10px rgba(46, 204, 113, 0.3)); }
.result-progress.fail { stroke: #e74c3c; filter: drop-shadow(0 0 10px rgba(231, 76, 60, 0.3)); }

.result-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Forum', serif;
    font-size: 3.5rem;
    color: #fff;
}

.quiz-result h2 {
    font-family: 'Forum', serif;
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.quiz-result h2.pass { color: #2ecc71; }
.quiz-result h2.fail { color: #e74c3c; }

.quiz-result p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 48px;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.result-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === CERTIFICATE === */
.certificate-page {
    text-align: center;
}

.certificate-page h1 {
    font-family: 'Forum', serif;
    font-size: 2.2rem;
    margin-bottom: 32px;
}

.certificate-preview {
    max-width: 800px;
    margin: 0 auto 32px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.certificate-preview canvas {
    width: 100%;
    height: auto;
    display: block;
}

.certificate-preview.certificate-preview-state {
    min-height: 320px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(196, 160, 82, 0.08);
    color: rgba(255, 255, 255, 0.55);
    padding: 40px;
}

.certificate-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* === GLOBAL APP ANIMATIONS === */
@keyframes appFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: appFadeIn 0.8s var(--ease-out-expo) forwards;
    opacity: 0;
}

/* === PROFILE (Dark Premium) === */
.profile-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    padding: 60px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
    border: 1px solid rgba(196, 160, 82, 0.1);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-honey) 0%, #8A6D2D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-family: 'Forum', serif;
    font-size: 2.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 0 30px rgba(196, 160, 82, 0.3);
}

.profile-info h1 {
    font-family: 'Forum', serif;
    font-size: 3rem;
    margin-bottom: 8px;
    color: #fff;
}

.profile-info p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    font-family: 'Tenor Sans', sans-serif;
}

.profile-section {
    margin-bottom: 60px;
}

.profile-section h2 {
    font-family: 'Forum', serif;
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--accent-honey);
    display: flex;
    align-items: center;
}

.profile-course-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 16px;
    transition: all 0.4s var(--ease-out-expo);
}

.profile-course-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(196, 160, 82, 0.2);
    transform: translateX(10px);
}

.profile-course-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-course-left i {
    font-size: 1.4rem;
    color: #2ecc71;
}

.profile-course-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
}

.profile-course-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-score {
    font-family: 'Forum', serif;
    font-size: 1.4rem;
    color: var(--accent-honey);
    font-weight: 600;
}

.profile-cert-btn {
    padding: 12px 24px;
    border-radius: 12px;
    background: rgba(196, 160, 82, 0.1);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tenor Sans', sans-serif;
}

.profile-cert-btn:hover {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 20px rgba(196, 160, 82, 0.3);
}

.profile-cert-btn.secondary {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.profile-cert-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-honey);
    color: #fff;
}

.profile-certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.profile-certificate-card {
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(196, 160, 82, 0.12);
    transition: all 0.35s var(--ease-out-expo);
}

.profile-certificate-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(196, 160, 82, 0.22);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.profile-certificate-top {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}

.profile-certificate-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(196, 160, 82, 0.25), rgba(196, 160, 82, 0.08));
    border: 1px solid rgba(196, 160, 82, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-honey);
    flex-shrink: 0;
}

.profile-certificate-label {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.45);
}

.profile-certificate-card h3 {
    font-family: 'Forum', serif;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 8px;
}

.profile-certificate-card p {
    color: rgba(255, 255, 255, 0.56);
    line-height: 1.65;
    font-size: 0.95rem;
}

.profile-certificate-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */
.admin-wrapper {
    min-height: 100vh;
    background: var(--bg-forest);
    color: var(--text-silk);
    font-family: 'Tenor Sans', sans-serif;
}

.admin-header {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(227, 176, 75, 0.12);
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header h2 {
    font-family: 'Forum', serif;
    color: var(--accent-honey);
    font-size: 1.4rem;
}

.admin-body {
    display: flex;
    min-height: calc(100vh - 70px);
}

.admin-sidebar {
    width: 260px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(227, 176, 75, 0.1);
    padding: 32px 0;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    color: rgba(244, 241, 234, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
    background: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
    width: 100%;
    text-align: left;
    font-family: 'Tenor Sans', sans-serif;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    color: var(--accent-honey);
    background: rgba(227, 176, 75, 0.06);
    border-left-color: var(--accent-honey);
}

.admin-nav-item i {
    width: 20px;
    text-align: center;
}

.admin-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.admin-section-title {
    font-family: 'Forum', serif;
    font-size: 1.8rem;
    color: var(--accent-honey);
    margin-bottom: 32px;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(227, 176, 75, 0.1);
}

.admin-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-honey);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(227, 176, 75, 0.1);
}

.admin-table td {
    padding: 16px 20px;
    font-size: 0.9rem;
    color: rgba(244, 241, 234, 0.8);
    border-bottom: 1px solid rgba(227, 176, 75, 0.06);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(227, 176, 75, 0.04);
}

.admin-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Tenor Sans', sans-serif;
}

.admin-btn.btn-edit {
    background: rgba(227, 176, 75, 0.15);
    color: var(--accent-honey);
    border: 1px solid rgba(227, 176, 75, 0.3);
}

.admin-btn.btn-edit:hover {
    background: var(--accent-honey);
    color: var(--bg-forest);
}

.admin-btn.btn-delete {
    background: rgba(192, 57, 43, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.admin-btn.btn-delete:hover {
    background: #e74c3c;
    color: #fff;
}

.admin-btn.btn-add {
    background: var(--accent-honey);
    color: var(--bg-forest);
    padding: 12px 28px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.admin-btn.btn-add:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.admin-form {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(227, 176, 75, 0.15);
    border-radius: var(--radius-md);
    padding: 40px;
    margin-bottom: 32px;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-search-input {
    width: min(100%, 420px);
    padding: 14px 18px;
    background: rgba(244, 241, 234, 0.06);
    border: 1px solid rgba(227, 176, 75, 0.2);
    border-radius: 999px;
    color: var(--text-silk);
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.admin-search-input:focus {
    border-color: rgba(227, 176, 75, 0.42);
    box-shadow: 0 0 0 4px rgba(227, 176, 75, 0.08);
}

.admin-search-input::placeholder {
    color: rgba(244, 241, 234, 0.32);
}

.admin-form .form-group {
    margin-bottom: 24px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.admin-form-grid--aligned {
    align-items: end;
}

.admin-form label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-honey);
    margin-bottom: 8px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(244, 241, 234, 0.06);
    border: 1px solid rgba(227, 176, 75, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-silk);
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    border-color: var(--accent-honey);
}

.admin-form textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-form select option {
    background: var(--bg-forest);
    color: var(--text-silk);
}

.admin-checkbox-group {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.admin-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(244, 241, 234, 0.04);
    border: 1px solid rgba(227, 176, 75, 0.14);
    border-radius: 16px;
    color: rgba(244, 241, 234, 0.76);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.9rem;
}

.admin-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-honey);
    margin: 0;
}

/* Stats cards */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.admin-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(227, 176, 75, 0.12);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
}

.admin-stat-card .stat-number {
    font-family: 'Forum', serif;
    font-size: 2.5rem;
    color: var(--accent-honey);
    margin-bottom: 8px;
}

.admin-stat-card .stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(244, 241, 234, 0.5);
}

.admin-user-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-user-cell strong {
    color: #fff;
}

.admin-user-cell span {
    color: rgba(244, 241, 234, 0.5);
    font-size: 0.82rem;
}

.admin-user-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(227, 176, 75, 0.12);
    border: 1px solid rgba(227, 176, 75, 0.2);
    color: var(--accent-honey);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.admin-user-pill.is-neutral {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(244, 241, 234, 0.72);
}

.admin-user-metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-user-metric strong {
    color: #fff;
}

.admin-user-metric span {
    color: rgba(244, 241, 234, 0.5);
    font-size: 0.8rem;
    line-height: 1.4;
}

.admin-action-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-empty-state {
    padding: 36px 28px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(227, 176, 75, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.admin-empty-state i {
    font-size: 1.5rem;
    color: var(--accent-honey);
}

.admin-empty-state h3 {
    font-family: 'Forum', serif;
    font-size: 1.5rem;
    color: #fff;
}

.admin-empty-state p {
    max-width: 560px;
    color: rgba(244, 241, 234, 0.56);
    line-height: 1.7;
    font-size: 0.92rem;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .hiw-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .chapter-reader {
        grid-template-columns: 1fr;
    }

    .chapter-sidebar {
        position: static;
        order: -1;
    }

    .course-view-header {
        flex-direction: column;
        gap: 24px;
    }

    .course-view-img {
        width: 100%;
        height: 200px;
    }

    .modal-box {
        padding: 40px 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .admin-body {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding: 0;
        border-right: none;
        border-bottom: 1px solid rgba(227, 176, 75, 0.1);
    }

    .admin-nav-item {
        padding: 14px 20px;
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .admin-nav-item.active {
        border-bottom-color: var(--accent-honey);
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

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

    .app-header-inner {
        padding: 0 16px;
    }

    .app-main {
        padding: 32px 16px;
    }

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

    .chapter-content {
        padding: 32px 24px;
    }

    .quiz-question-card {
        padding: 32px 24px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-course-item {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .profile-course-right {
        justify-content: center;
    }

    .profile-certificate-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-certificate-actions {
        flex-direction: column;
    }

    .app-action-btn {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .admin-content {
        padding: 24px 16px;
    }

    .admin-header {
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .d-course-card .d-course-body {
        padding: 20px;
    }

    .app-brand-main {
        font-size: 1.1rem;
    }

    .app-brand-sub {
        font-size: 0.85rem;
    }

    .timer-card {
        padding: 24px;
    }

    .certificate-actions {
        flex-direction: column;
    }
}

/* === MOBILE NAV TOGGLE FOR APP === */
.app-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-green);
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .app-mobile-toggle {
        display: flex;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-in {
    animation: fadeInUp 0.6s var(--ease-out-expo) forwards;
}

.animate-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-in-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-in-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* Notification toast */
.toast-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 28px;
    background: rgba(30, 61, 52, 0.95);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    z-index: 3000;
    transform: translateX(120%);
    transition: transform 0.5s var(--ease-out-expo);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.error {
    background: rgba(192, 57, 43, 0.95);
}

.toast-notification i {
    color: var(--accent-honey);
}

.toast-notification.error i {
    color: #fff;
}

/* === MERGED FAQ & CTA SECTION - Refined Luxe === */
.faq-cta-merged {
    padding: 160px 0;
    background: #fafaf7; /* Sand/Silk backdrop for balance */
    position: relative;
    overflow: hidden;
}

.faq-cta-merged::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 160, 82, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.faq-cta-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 100px;
    align-items: center;
}

.faq-cta-card {
    background: linear-gradient(145deg, var(--bg-forest) 0%, #0d211b 100%);
    padding: 70px 60px;
    border-radius: 40px;
    color: #fff;
    position: relative;
    box-shadow: 
        0 40px 100px rgba(10, 20, 15, 0.25),
        0 0 30px rgba(196, 160, 82, 0.15);
    border: 1px solid rgba(196, 160, 82, 0.3);
    overflow: hidden;
}

.faq-cta-card h2 {
    font-family: 'Forum', serif;
    font-size: 3rem;
    color: var(--accent-honey);
    margin-bottom: 24px;
    line-height: 1.1;
}

.faq-cta-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 48px;
}

/* === REDESIGNED PARTNERSHIP SECTION — Masterclass Edition === */
.partnership-section {
    padding: 160px 0;
    background: #fff;
    position: relative;
}

.partnership-impact-card {
    border-radius: 48px;
    overflow: hidden;
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: stretch;
    box-shadow: 0 40px 100px rgba(10, 20, 15, 0.15);
}

.pic-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.pic-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(30, 61, 52, 0.95) 0%, 
        rgba(30, 61, 52, 0.7) 40%, 
        transparent 100%);
    z-index: 2;
}

.pic-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    width: 100%;
}

.pic-content {
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.eyebrow.luxe {
    color: var(--accent-honey);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    margin-bottom: 24px;
    display: block;
}

.pic-content .section-title {
    font-family: 'Forum', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 32px;
    color: #fff;
}

.pic-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
    max-width: 500px;
}

.pic-benefits-list {
    list-style: none;
    padding: 0;
}

.pic-benefits-list li {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.list-icon {
    width: 44px;
    height: 44px;
    background: rgba(196, 160, 82, 0.2);
    border: 1px solid rgba(196, 160, 82, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* === Glassmorphism Form Side === */
.pic-form-side {
    padding: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pic-form-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px;
    border-radius: 40px;
    width: 100%;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

.form-title {
    font-family: 'Forum', serif;
    font-size: 2.22rem;
    color: #fff;
    margin-bottom: 12px;
    text-align: center;
}

.form-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 48px;
    text-align: center;
    line-height: 1.6;
}

.pic-form-modern {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

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

.form-field label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-honey);
    font-weight: 700;
    opacity: 0.8;
}

.pic-input-flat {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 0;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.4s ease;
    outline: none;
}

.pic-input-flat::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.pic-input-flat:focus {
    border-bottom-color: var(--accent-gold);
    padding-left: 10px;
}

.pic-btn-premium {
    margin-top: 20px;
    padding: 20px;
    border-radius: 16px;
    background: var(--accent-honey);
    color: var(--bg-forest);
    border: none;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.pic-btn-premium:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(196, 160, 82, 0.4);
}

@media (max-width: 1200px) {
    .pic-content, .pic-form-side { padding: 60px; }
    .pic-content .section-title { font-size: 2.8rem; }
}

@media (max-width: 992px) {
    .partnership-impact-card { flex-direction: column; min-height: auto; }
    .pic-grid { grid-template-columns: 1fr; }
    .pic-form-side { padding-top: 0; }
    .pic-image-overlay { background: rgba(30, 61, 52, 0.9); }
}

/* ============================================

/* === STATS BAR === */
.stats-bar-wrapper {
    margin-top: -65px;
    position: relative;
    z-index: 20;
    padding: 0 24px;
}

.stats-bar {
    max-width: 1040px;
    margin: 0 auto;
    background: linear-gradient(145deg, var(--bg-forest) 0%, #0d211b 100%);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(196, 160, 82, 0.15);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(10, 20, 15, 0.4), inset 0 0 0 1px rgba(196, 160, 82, 0.05);
    display: flex;
    justify-content: space-around;
    padding: 56px 32px;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.stats-bar:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 70px rgba(10, 20, 15, 0.5), inset 0 0 0 1px rgba(196, 160, 82, 0.1);
}

.stat-item {
    text-align: center;
    position: relative;
    flex: 1;
    padding: 0 20px;
}

.stat-item:not(:last-child)::after {
    display: none; /* Removed for minimalism */
}

.stat-number {
    font-family: 'Forum', serif;
    font-size: 2.8rem;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(196, 160, 82, 0.2));
}

.stat-label {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

/* === BENTO BOX BENEFITS REDESIGNED === */
.benefits-section {
    padding: 160px 0;
    background: var(--bg-base);
    position: relative;
    overflow: hidden;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 32px;
    margin-top: 80px;
}

.bento-item {
    background: #fff;
    border-radius: 32px;
    padding: 48px;
    border: 1px solid rgba(30, 61, 52, 0.04);
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
    transition: all 0.6s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bento-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(10, 20, 15, 0.08);
    border-color: rgba(196, 160, 82, 0.2);
}

/* Variant: Hero Card (2x2) */
.bento-item.hero-card {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, var(--bg-forest) 0%, #0d211b 100%);
    color: #fff;
    padding: 60px;
}

.bento-item.hero-card h3 {
    color: var(--accent-honey);
    font-size: 2.8rem;
    margin-top: 10px;
}

.bento-item.hero-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    max-width: 420px;
    margin-top: 20px;
}

.bento-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image: radial-gradient(var(--accent-honey) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.05;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, transparent 100%);
    pointer-events: none;
}

.bg-icon {
    position: absolute;
    bottom: -30px;
    right: -20px;
    font-size: 12rem;
    opacity: 0.03;
    color: #fff;
    transform: rotate(-15deg);
}

/* Variant: Tall (1x2) */
.bento-item.tall {
    grid-row: span 2;
    background: linear-gradient(to bottom, #fff, var(--bg-surface));
    justify-content: center;
    text-align: center;
}

/* Variant: Highlight (2x1) */
.bento-item.highlight {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    background: linear-gradient(135deg, #fff 0%, rgba(196, 160, 82, 0.05) 100%);
}

.bento-item.highlight .bento-content {
    flex: 1;
}

.bento-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(196, 160, 82, 0.1);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    transition: all 0.4s ease;
}

.bento-item.highlight .bento-icon {
    margin-bottom: 0;
}

.bento-item:hover .bento-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-honey);
    color: var(--bg-forest);
}

.bento-item h3 {
    font-family: 'Forum', serif;
    font-size: 1.8rem;
    color: var(--accent-green);
    margin-bottom: 16px;
    line-height: 1.2;
}

.bento-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 1100px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .bento-item.hero-card, .bento-item.tall, .bento-item.highlight {
        grid-column: span 1;
        grid-row: span 1;
        padding: 40px 32px;
    }
    .bento-item.hero-card h3 { font-size: 2.2rem; }
    .bento-item.highlight { flex-direction: column; align-items: flex-start; gap: 24px; }
}

/* === TIMELINE (Jak to działa) === */
.timeline-section {
    padding: 120px 0;
    background: #fff;
    position: relative;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-gold) 0%, rgba(196, 160, 82, 0.2) 100%);
}

.timeline-step {
    position: relative;
    padding-left: 100px;
    margin-bottom: 60px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 16px;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--accent-gold);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 0 6px rgba(196, 160, 82, 0.15), 0 4px 10px rgba(196, 160, 82, 0.2);
    z-index: 2;
    transition: all 0.4s ease;
}

.timeline-step:hover .timeline-icon {
    box-shadow: 0 0 0 10px rgba(196, 160, 82, 0.25), 0 8px 15px rgba(196, 160, 82, 0.3);
    transform: scale(1.05);
}

.timeline-content {
    background: linear-gradient(to right, #ffffff, var(--bg-base));
    padding: 36px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.timeline-content:hover {
    transform: translateX(10px);
}

.timeline-content h3 {
    font-family: 'Forum', serif;
    font-size: 1.5rem;
    color: var(--accent-green);
    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* === CERTIFICATE SHOWCASE === */
.cert-showcase {
    padding: 120px 0;
    background: var(--bg-forest);
    overflow: hidden;
}

.cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cert-text h2 {
    color: var(--accent-honey);
}

.cert-text p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.cert-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.cert-text li {
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cert-text li i {
    color: var(--accent-gold);
}

.cert-mockup-wrapper {
    position: relative;
    perspective: 1000px;
}

.cert-mockup-wrapper::before {
    content: '';
    position: absolute;
    inset: 40px;
    background: radial-gradient(circle at center, rgba(196, 160, 82, 0.5) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    transition: opacity 0.8s ease;
}

.cert-mockup {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    transform: rotateY(-12deg) rotateX(8deg);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    border: 10px solid #fff;
    position: relative;
    z-index: 1;
}

.cert-mockup-wrapper:hover .cert-mockup {
    transform: rotateY(0) rotateX(0) scale(1.02);
}
.cert-mockup-wrapper:hover::before {
    opacity: 0.7;
}

/* === FAQ SECTION === */
.faq-section {
    padding: 120px 0;
    background: var(--bg-base);
}

.faq-container {
    max-width: 100%;
    margin: 60px 0 0;
}

/* === FAQ SECTION MODERNIZATION === */
.faq-item {
    border: 1px solid rgba(30, 61, 52, 0.06);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    margin-bottom: 24px;
    padding: 0 32px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: all 0.5s var(--ease-out-expo);
}

.faq-item:hover {
    background: #fff;
    box-shadow: 0 20px 50px rgba(10, 20, 15, 0.06);
    border-color: rgba(196, 160, 82, 0.25);
    transform: translateX(10px);
}

.faq-item.active {
    background: #fff;
    border-color: var(--accent-honey);
    box-shadow: 0 30px 60px rgba(196, 160, 82, 0.08);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 30px 0;
    font-family: 'Forum', serif;
    font-size: 1.4rem;
    color: var(--bg-forest);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--accent-green);
    border-bottom: 1px solid rgba(30, 61, 52, 0.05);
}

.faq-icon {
    font-size: 0.9rem;
    color: var(--accent-gold);
    transition: transform 0.4s var(--ease-out-expo);
    background: rgba(196, 160, 82, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background: var(--accent-honey);
    color: #fff;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s var(--ease-out-expo);
}

.faq-answer p {
    padding: 24px 0 32px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    opacity: 0.8;
}

@media (max-width: 992px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-item.large { grid-column: span 1; flex-direction: column; text-align: center; }
    .cert-grid { grid-template-columns: 1fr; }
    .stats-bar { flex-wrap: wrap; gap: 40px; }
    .stat-item { flex: 1 1 40%; }
    .stat-item:not(:last-child)::after { display: none; }
}

@media (max-width: 768px) {
    .timeline-container::before { left: 24px; }
    .timeline-icon { left: 0; width: 40px; height: 40px; font-size: 1rem; }
    .timeline-step { padding-left: 64px; }
}

/* ============================================
   LANDING PAGE HEADER (SPLIT STYLE)
   ============================================ */
.header-split {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1600px, calc(100% - 64px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.7s var(--ease-out-expo);
    pointer-events: none; /* Pozwala klikać przez przerwy między wyspami */
}

.header-island {
    pointer-events: auto;
    background: rgb(4 13 11 / 12%);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(196, 160, 82, 0.25);
    border-radius: 100px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(196, 160, 82, 0.1);
    display: flex;
    align-items: center;
    transition: all 0.6s var(--ease-out-expo);
}

.island-brand {
    padding: 10px 32px 10px 24px;
}

.island-nav {
    padding: 6px 12px;
}

.island-actions {
    padding: 8px 12px 8px 24px;
    gap: 20px;
}

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

/* Scroll / Docking Logic */
.header-split.scrolled {
    top: 16px;
    width: min(1500px, calc(100% - 32px));
    gap: 4px;
}

.header-split.scrolled .header-island {
    background: rgb(0 0 0 / 79%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(196, 160, 82, 0.15);
}

.header-split.scrolled .island-brand { margin-right: -10px; }
.header-split.scrolled .island-actions { margin-left: -10px; }

/* Responsive adjustments for Split Header */
@media (max-width: 1200px) {
    .island-nav {
        display: none; /* Ukrywamy środkową wyspę na mniejszych ekranach */
    }
}

@media (max-width: 992px) {
    .header-split {
        width: calc(100% - 32px);
        top: 20px;
    }
    
    .header-island {
        background: rgba(4, 13, 11, 0.95);
    }
    
    .nav-actions {
        display: none;
    }
}

/* Hover effects for Islands */
.header-island:hover {
    border-color: var(--accent-honey);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 20px rgba(196, 160, 82, 0.15);
    transform: translateY(-2px);
}

/* Visibility fixes for dark content on dark background */
.header-split .nav-item {
    color: rgba(255, 255, 255, 0.9) !important;
}

.header-split .nav-item:hover,
.header-split .nav-item.active {
    color: var(--accent-honey) !important;
    background: rgba(255, 255, 255, 0.05);
}

.header-split .brand-main {
    color: #fff !important;
}

.header-split .nav-item i {
    color: var(--accent-honey);
}
