* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg-color: #fcf8ff;
    --text-primary: #4b4b4b;
    --text-secondary: #afafaf;
    --border-color: #e5e5e5;
    --hover-bg: #f7f7f7;

    --accent-green: var(--duo-purple-primary);
    --accent-green-shadow: var(--duo-purple-dark);
    --accent-green-hover: #963bf7;

    --accent-blue: var(--duo-purple-primary);
    --accent-blue-shadow: var(--duo-purple-dark);
    --accent-blue-hover: #963bf7;

    --danger: #ff4b4b;
    --danger-shadow: #ea2b2b;
    --danger-hover: #ff5e5e;

    --gold: #ffc800;

    --duo-purple-primary: #8428e2;
    --duo-purple-dark: #6b1fb8;
    --duo-purple-light: #fcf8ff;
    --duo-purple-subtle: #eaddf5;
    --duo-purple-deep: #11111b;
}

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

 /* Sidebar Navigation */
 .sidebar {
    width: 256px;
    border-right: 2px solid var(--border-color);
    background-color: white;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: fixed;
    height: 100vh;
    box-sizing: border-box;
}

.sidebar .logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: 40px;
    text-align: left;
    padding-left: 12px;
    letter-spacing: -1px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.1s;
    border: 2px solid transparent;
    margin: 4px 0;
    gap: 12px;
}

.sidebar-item .item-icon {
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-item:hover:not(.active) {
    background-color: var(--hover-bg);
    border-color: var(--border-color);
}

.sidebar-item.active {
    color: var(--accent-blue);
    background-color: rgba(28, 176, 246, 0.1);
    border: 2px solid var(--accent-blue);
    box-shadow: 0 4px 0 rgba(28, 176, 246, 0.2);
}

.sidebar-item.logout {
    margin-top: auto;
    color: var(--text-secondary);
}


.sidebar-item.logout:hover {
    background: var(--hover-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Main Content wrapper */
.main-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
}

body:not(.with-sidebar) .main-wrapper {
    min-height: 100vh;
    align-items: flex-start;
    padding-top: 60px;
}

/* Specific spacing when sidebar is present */
.with-sidebar .main-wrapper {
    margin-left: 256px;
    width: calc(100% - 256px);
}

.container {
    width: 100%;
    max-width: 600px;
}

.with-sidebar .container {
    max-width: 1050px;
}

/* Responsive Helpers */
.show-mobile {
    display: none !important;
}

@media (max-width: 992px) {
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: flex !important;
    }
}

/* Pure Diamond Identifier */
.gold-token {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    border: none;
    margin-bottom: 12px;
    font-size: 2.1rem;
    font-weight: 900;
    user-select: none;
    font-family: inherit;
}

/* Duolingo UI Forms */
h1 {
    font-size: 1.55rem;
    color: var(--text-primary);
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Box and Card Layouts */
.card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.container-light {
    background-color: var(--duo-purple-light);
    border: 2px solid var(--duo-purple-primary);
    border-radius: 12px;
}

.badge-purple {
    background-color: rgba(206, 130, 255, 0.2);
    color: var(--duo-purple-primary);
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-block;
}

/* Forms */
.input-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.phone-input-wrapper {
    display: flex;
    gap: 8px;
}

input,
select {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    height: 52px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.2s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.country-select {
    width: 110px !important;
    padding: 0 12px !important;
    /* Fixed height handles vertical padding */
    flex-shrink: 0;
}

.phone-input-field {
    flex: 1;
    min-width: 0;
    width: auto !important;
}


input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: #fdfdfd;
}

::placeholder {
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0.5;
}

::-webkit-input-placeholder {
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0.5;
}

::-moz-placeholder {
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0.5;
}

:-ms-input-placeholder {
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0.5;
}

/* Duolingo Buttons */
.btn {
    background-color: var(--accent-green);
    color: white;
    border: none;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 0 var(--accent-green-shadow);
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: transform 0.1s, box-shadow 0.1s, background-color 0.1s;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.btn:visited {
    color: white;
}

.btn:hover {
    background-color: var(--accent-green-hover);
}

.btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 var(--accent-green-shadow);
}

.btn-blue {
    background-color: var(--accent-blue);
    box-shadow: 0 4px 0 var(--accent-blue-shadow);
}

.btn-blue:hover {
    background-color: var(--accent-blue-hover);
}

.btn-blue:active {
    box-shadow: 0 0 0 var(--accent-blue-shadow);
    transform: translateY(4px);
}

.btn-purple {
    background-color: var(--duo-purple-primary);
    color: white;
    border: 2px solid var(--duo-purple-dark);
    box-shadow: 0 6px 0 var(--duo-purple-dark);
    font-weight: 800;
    border-radius: 12px;
    text-transform: uppercase;
    transition: all 0.1s;
}

.btn-purple:hover {
    background-color: #963bf7;
}

.btn-purple:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--duo-purple-dark);
}

.btn-danger {
    background-color: var(--danger);
    box-shadow: 0 4px 0 var(--danger-shadow);
}

.btn-danger:hover {
    background-color: var(--danger-hover);
}

.btn-danger:active {
    box-shadow: 0 0 0 var(--danger-shadow);
    transform: translateY(4px);
}

.btn-outline {
    background-color: #ffffff;
    color: var(--accent-blue) !important;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 0 var(--border-color);
}

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

.btn-outline:active {
    box-shadow: 0 0 0 var(--border-color);
    transform: translateY(2px);
}

/* Social Buttons */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: none;
    letter-spacing: normal;
}

.btn-google {
    background-color: #ffffff;
    color: #757575;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 0 var(--border-color);
}

.btn-google:hover {
    background-color: #f8f8f8;
}

.btn-google:active {
    box-shadow: 0 0 0 var(--border-color);
    transform: translateY(4px);
}

.btn-facebook {
    background-color: #1877F2;
    color: white;
    box-shadow: 0 4px 0 #135cb0;
}

.btn-facebook:hover {
    background-color: #166fe5;
}

.btn-facebook:active {
    box-shadow: 0 0 0 #135cb0;
    transform: translateY(4px);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 800;
    font-size: 0.9rem;
    margin: 24px 0;
    text-transform: uppercase;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid var(--border-color);
}

.divider:not(:empty)::before {
    margin-right: 1.5em;
}

.divider:not(:empty)::after {
    margin-left: 1.5em;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
    width: auto;
}

/* Responsive Layout Rules */
.flex-row-stack {
    display: flex;
    gap: 16px;
}

.profile-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.table-responsive {
    width: 100%;
}

/* Mobile top bar with hamburger */
.mobile-topbar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: white;
        border-bottom: 2px solid var(--border-color);
        padding: 0 16px;
        z-index: 900;
    }

    .mobile-topbar__brand {
        font-weight: 800;
        font-size: 1.05rem;
        color: var(--duo-purple-primary, #8428e2);
        text-decoration: none;
    }

    .mobile-topbar__hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 36px;
        height: 36px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
    }

    .mobile-topbar__hamburger span {
        display: block;
        height: 3px;
        width: 100%;
        background: #333;
        border-radius: 3px;
        transition: transform 0.25s, opacity 0.2s;
        transform-origin: center;
    }

    .mobile-topbar__hamburger.is-open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-topbar__hamburger.is-open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .mobile-topbar__hamburger.is-open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 990;
        background: rgba(0, 0, 0, 0.35);
        opacity: 0;
        transition: opacity 0.25s;
    }
    .sidebar-overlay.is-visible { display: block; }
    .sidebar-overlay.is-open    { opacity: 1; }

    .sidebar {
        width: 270px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        border-right: 2px solid var(--border-color);
        border-top: none;
        padding: 72px 16px 24px;
        flex-direction: column;
        background: white;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .sidebar-item {
        padding: 12px 16px;
        font-size: 0.9rem;
        flex: unset;
        text-align: left;
        justify-content: flex-start;
        flex-direction: row;
        gap: 12px;
        letter-spacing: 0.8px;
        border: 2px solid transparent;
        border-radius: 8px;
        margin: 4px 0;
    }

    .sidebar-item .item-icon {
        font-size: 1.2rem;
    }

    .sidebar-item.active {
        color: var(--accent-blue);
        background-color: rgba(28, 176, 246, 0.1);
        border: 2px solid var(--accent-blue);
        box-shadow: 0 4px 0 rgba(28, 176, 246, 0.2);
    }

    .main-wrapper,
    .with-sidebar .main-wrapper {
        margin-left: 0;
        width: 100%;
        padding: 80px 16px 32px;
    }

    .flex-row-stack {
        flex-direction: column;
        gap: 16px;
    }

    .profile-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .card {
        padding: 20px;
    }

    .table-responsive {
        overflow-x: auto;
        display: block;
        -webkit-overflow-scrolling: touch;
    }

    h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .onboarding-final-card {
        padding: 24px 16px !important;
    }

    .phone-input-wrapper {
        gap: 4px;
    }

    .country-select {
        width: 100px !important;
        font-size: 0.9rem !important;
    }
}

/* Component Classes */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 1.7rem;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 1.1rem;
}

.step-container {
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: stretch;
    position: relative;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.05rem;
    color: white;
}

.step-number.blue {
    background: var(--accent-blue);
}

.step-number.green {
    background: var(--accent-green);
}

.step-box {
    background: var(--hover-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.detail-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.detail-value {
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.qr-card {
    margin-bottom: 24px;
    text-align: center;
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 3px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.price-box {
    padding: 20px;
    background: rgba(132, 40, 226, 0.1);
    border-radius: 12px;
    border: 1px solid var(--duo-purple-primary);
    text-align: center;
}

.badge-popular {
    position: absolute;
    top: -15px;
    background: var(--gold);
    color: white;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 200, 0, 0.3);
}

/* Custom Session Picker */
.session-picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.session-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.session-option:hover:not(.option-full) {
    background-color: var(--hover-bg);
    border-color: var(--accent-blue);
}

.session-option input[type="radio"] {
    display: none;
}

.session-option.checked {
    border-color: var(--accent-blue);
    background-color: rgba(28, 176, 246, 0.05);
    box-shadow: 0 0 0 1px var(--accent-blue);
}

.session-option.option-full {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f7f7f7;
    filter: grayscale(1);
}

.session-badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--hover-bg);
    color: var(--text-secondary);
}

.session-badge.full {
    background: #ffe5e5;
    color: var(--danger);
}

.session-badge.available {
    background: #e5f9e5;
    color: var(--accent-green);
}

/* Welcome Screen Styles */
.welcome-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.welcome-header {
    text-align: center;
    margin-bottom: 48px;
}

.welcome-header .emoji {
    font-size: 3.2rem;
    margin-bottom: 20px;
}

.welcome-header h1 {
    font-size: 1.65rem;
    margin-bottom: 16px;
}

.welcome-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.welcome-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 32px;
}

.welcome-card .emoji {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.welcome-card h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.welcome-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

.teaser-section {
    margin-top: 48px;
    margin-bottom: 48px;
}

.teaser-section--first {
    margin-top: 24px;
}

.teaser-section h2 {
    text-align: center;
    margin-bottom: 24px;
}

.teaser-card {
    background: linear-gradient(135deg, #fcf8ff 0%, #eaddf5 100%);
    border: 1px solid var(--duo-purple-subtle);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
}

.teaser-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.teaser-badge {
    display: inline-block;
}

.teaser-badge span {
    background: white;
    color: var(--accent-blue);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid #7dd3fc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teaser-title {
    margin: 4px 0;
    font-size: 1.25rem;
}

.teaser-date {
    color: var(--text-secondary);
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.teaser-date .emoji {
    font-size: 1.05rem;
}

.teaser-action {
    margin-left: 20px;
}

.teaser-action .btn {
    width: auto;
    padding: 14px 28px;
    font-weight: 800;
}

.welcome-footer {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.welcome-footer p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .welcome-options {
        flex-direction: column;
    }

    .teaser-card {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .teaser-action {
        margin-left: 0;
        width: 100%;
    }

    .teaser-date {
        justify-content: center;
    }

    .welcome-header h1 {
        font-size: 1.5rem;
    }
}

.slot-btn {
    display: inline-block;
    margin: 3px 4px;
    padding: 7px 12px;
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.1s ease;
    text-align: left;
}
.slot-btn:hover {
    border-color: #6366f1;
    background: #f1f5f9;
}
.slot-btn.selected {
    background: #6366f1;
    color: #fff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}
.slot-btn small {
    font-size: 0.72rem;
    opacity: 0.75;
}

/* Calendly-style Slot Modal (brand: purple #6366f1 + clean cards) */
#firstClassModal .modal-content {
    max-width: 620px;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

#firstClassModal .modal-close-btn {
    background: var(--duo-purple-primary);
    border: none;
    box-shadow: none;
    position: absolute;
    top: 15px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
    z-index: 100;
    padding: 0;
    margin: 0;
    border-radius: 50%;
}

#firstClassModal .modal-close-btn:hover {
    transform: scale(1.1);
    background: var(--duo-purple-dark);
}

#firstClassModal .modal-close-btn svg {
    width: 20px;
    height: 20px;
}

.slot-modal-header {
    padding: 18px 22px 12px;
    background: var(--duo-purple-light);
    border-bottom: 1px solid var(--duo-purple-subtle);
}

.slot-modal-header h2 {
    margin: 0 0 3px 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--duo-purple-primary);
    letter-spacing: -0.2px;
}

.slot-modal-subtitle {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

.tz-note {
    color: var(--duo-purple-primary);
    font-weight: 600;
    margin-left: 4px;
}

.slot-modal-body {
    display: flex;
    gap: 0;
    padding: 0;
    background: #fff;
}

.slot-dates {
    width: 38%;
    min-width: 160px;
    border-right: 1px solid #f1f5f9;
    padding: 16px 12px;
    background: #fff;
    max-height: 340px;
    overflow-y: auto;
}

.slot-dates-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    margin-bottom: 8px;
    padding-left: 4px;
}

.date-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.1s ease;
    color: #334155;
}

.date-item:hover {
    border-color: #cbd5e1;
    transform: translateX(1px);
}

.date-item.active {
    background: #f1f5f9;
    color: #1e293b;
    border-color: var(--duo-purple-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.date-item .date-label {
    flex: 1;
}

.date-item .slot-count {
    font-size: 0.7rem;
    background: rgba(100,116,139,0.1);
    padding: 1px 7px;
    border-radius: 999px;
    font-weight: 700;
}

.date-item.active .slot-count {
    background: var(--duo-purple-light);
    color: var(--duo-purple-primary);
}

.slot-times {
    flex: 1;
    padding: 16px 18px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

.slot-times-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 10px;
    padding-left: 2px;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 80px);
    gap: 6px;
    justify-content: flex-start;
    flex: 1;
    align-items: start;
}

.time-pill {
    width: 72px;
    min-width: 72px;
    height: 36px;
    padding: 0 6px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9999px;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    text-align: center;
    transition: all 0.1s cubic-bezier(0.4, 0.2, 1);
    white-space: nowrap;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-pill:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-1px);
}

.time-pill.selected {
    background: #fff;
    color: var(--duo-purple-primary);
    border-color: var(--duo-purple-primary);
    box-shadow: 0 0 0 2px rgba(132, 40, 226, 0.15);
}

.no-times {
    color: #64748b;
    font-size: 0.85rem;
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slot-modal-footer {
    padding: 14px 20px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.selection-summary {
    font-size: 0.9rem;
    background: #f8fafc;
    color: #334155;
    padding: 8px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.slot-actions {
    display: flex;
    gap: 10px;
}

.slot-actions .btn {
    flex: 1;
    padding: 10px 16px;
    font-weight: 700;
}

/* Mobile: stack date + time panes vertically */
@media (max-width: 640px) {
    #firstClassModal .modal-content {
        max-height: 92vh;
    }

    .slot-modal-body {
        flex-direction: column;
    }

    .slot-dates {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        max-height: 260px;
        padding: 12px 14px;
    }

    .slot-times {
        padding: 12px 14px;
        min-height: 220px;
    }

    .time-grid {
        grid-template-columns: repeat(auto-fill, 68px);
        justify-content: center;
        gap: 6px;
        align-items: start;
    }

    .time-pill {
        width: 68px;
        height: 34px;
        font-size: 0.82rem;
        padding: 0 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #firstClassModal .modal-footer-row {
        padding: 10px 16px;
    }

}

#firstClassModal .modal-content {
    text-align: left;
}

#firstClassModal .modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

#firstClassModal .modal-header h2 {
    margin: 0 0 4px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

#firstClassModal .modal-header p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

#firstClassModal .modal-footer-row {
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    margin: 0;
}

#firstClassModal .modal-body {
    text-align: left;
    padding: 0;
}

#firstClassModal .slot-modal-body {
    display: flex;
    width: 100%;
}

/* Credit Packages Styles */
.onboarding-alert {
    margin: 24px auto 40px auto;
    padding: 16px;
    background: #fff5e1;
    border: 2px solid var(--gold);
    border-radius: 12px;
    max-width: 600px;
    text-align: center;
    transition: all 0.3s ease;
}

.onboarding-alert p {
    color: #b38600;
    font-weight: 800;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}



.package-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    width: 100%;
}

.package-card {
    flex: 1;
    min-width: 220px;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 32px 24px;
    text-align: center;
}

.package-card.disabled {
    opacity: 0.5;
    filter: grayscale(1);
    pointer-events: none;
}

.package-card h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 2.1rem;
    font-weight: 900;
}

.package-card .package-label {
    color: var(--text-secondary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.package-card .package-divider {
    border-top: 2px solid var(--border-color);
    width: 100%;
    margin-bottom: 20px;
}

.package-card .package-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: 24px;
}

.package-card .package-price span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.back-link {
    text-align: center;
    margin-top: 3rem;
}

.back-link a {
    color: var(--text-secondary);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .package-grid {
        flex-direction: column;
        align-items: center;
    }

    .package-card {
        width: 100%;
        max-width: 320px;
    }
}

/* Instructions Page Styles */
.instructions-main {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 48px;
}

.step-divider {
    height: 2px;
    background: var(--border-color);
    width: 100%;
    border-radius: 2px;
    margin: 32px 0;
}

.confirm-text {
    color: var(--text-secondary);
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 24px;
}

.whatsapp-action-btn {
    background: var(--duo-purple-primary);
    border-color: var(--duo-purple-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.whatsapp-action-btn:hover {
    background: var(--duo-purple-dark);
    border-color: var(--duo-purple-deep);
}

.email-support-box {
    background: var(--hover-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.email-address {
    font-weight: 900;
    color: var(--text-primary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .instructions-main {
        padding: 16px;
        border: none;
        background: transparent;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
}

/* Lessons Page */
.lessons-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 16px;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.lessons-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.lessons-card form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lessons-card .session-picker {
    flex: 1;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .lessons-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .lessons-card {
        min-width: 0;
        width: 100%;
    }
}

.credits-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.credits-bar-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 12px 22px;
    box-shadow: 0 4px 20px rgba(255, 200, 0, 0.08);
}

.credits-bar-gem {
    font-size: 1.3rem;
    line-height: 1;
}

.credits-bar-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.credits-bar-value {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

@media (max-width: 768px) {
    .credits-bar {
        justify-content: stretch;
    }

    .credits-bar-inner {
        width: 100%;
        justify-content: center;
    }
}

/* Profile Dashboard Styles */
.profile-dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.stats-container-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.badge-3d {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    background: var(--hover-bg);
    border: 2px solid var(--border-color);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.badge-3d:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.badge-3d.upcoming,
.badge-3d.completed {
    background: transparent;
    border-color: rgba(0, 0, 0, 0.05);
}

.badge-3d img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.1));
}

.table-badge {
    width: 32px;
    height: 32px;
    object-fit: contain;
    vertical-align: middle;
}


.stats-three-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.stat-card-small {
    padding: 16px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 24px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    transition: all 0.2s ease;
}

.stat-card-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.stat-card-small:hover {
    border-color: var(--accent-blue);
    background: var(--hover-bg);
}

.stat-card-small .stat-value {
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
}

.stat-card-small .stat-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
}

@media (min-width: 901px) {
    .profile-main .table-responsive table {
        min-width: 600px;
    }
}

@media (max-width: 900px) {
    .profile-dashboard {
        grid-template-columns: 1fr;
    }

    /* Responsive Table to Card transformation */
    .table-responsive table,
    .table-responsive thead,
    .table-responsive tbody,
    .table-responsive th,
    .table-responsive td,
    .table-responsive tr {
        display: block;
    }

    .table-responsive thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .table-responsive tr {
        border-bottom: 2px solid var(--border-color);
        padding: 20px 16px;
        background: white;
    }

    .table-responsive td {
        border: none;
        position: relative;
        padding: 8px 0 8px 0;
        text-align: left;
    }

    .badge-3d {

        width: 40px;
        height: 40px;
        font-size: 1.15rem;
        border-radius: 8px;
    }

    .stat-card-small .stat-value {
        font-size: 1.15rem;
    }

    .stat-card-small .stat-label {
        font-size: 0.65rem;
        letter-spacing: 0;
    }

    .stat-card-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
    }

    .table-responsive td:before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        color: var(--text-secondary);
        margin-bottom: 2px;
    }
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 3px solid var(--border-color);
}

.modal-emoji {
    font-size: 3.2rem;
    margin-bottom: 20px;
}

.modal-content h2 {
    margin: 0 0 16px 0;
    font-size: 1.35rem;
    color: var(--text-primary);
}

.modal-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.modal-footer-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
}

.modal-footer-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
}

.modal-footer-row .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
}


/* Animations */
@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content {
    animation: modalEnter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

@media (max-width: 480px) {
    .modal-content {
        padding: 30px 20px;
    }

    .modal-emoji {
        font-size: 2.2rem;
    }
}

/* Integrated Stats Belt */
.admin-table-container {
    background: white;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    overflow-x: auto;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    -webkit-overflow-scrolling: touch;
}

.profile-stats-belt {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.stat-belt-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
}

.stat-belt-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 2px;
    background: var(--border-color);
}

.stat-belt-king {
    flex: 1.4;
    background: #fffbeb;
    border-radius: 16px;
    box-shadow: inset 0 0 0 2px rgba(255, 200, 0, 0.1);
}

.stat-belt-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.stat-belt-king .stat-belt-icon {
    font-size: 2.4rem;
    filter: drop-shadow(0 2px 8px rgba(255, 200, 0, 0.4));
}

.stat-belt-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.stat-belt-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
}

.stat-belt-king .stat-belt-value {
    color: var(--gold);
    font-size: 2.4rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .profile-stats-belt {
        flex-direction: column;
        border-radius: 16px;
        padding: 12px;
        max-width: 400px;
    }

    .stat-belt-item {
        width: 100%;
        padding: 16px;
    }

    .stat-belt-item:not(:last-child)::after {
        display: none;
    }

    .stat-belt-king {
        order: -1;
        margin-bottom: 8px;
    }
}

/* Profile V3: Achievement Hierarchy */
.achievement-king-box {
    text-align: center;
    margin-bottom: -30px;
    /* Overlap with card */
    position: relative;
    z-index: 10;
}

.credits-badge-mega {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 24px 48px;
    border-radius: 16px;
    border: 5px solid white;
    box-shadow: 0 15px 35px rgba(255, 165, 0, 0.4);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.credits-badge-mega:hover {
    transform: scale(1.05) translateY(-5px);
}

.credits-badge-mega .king-crown {
    position: absolute;
    top: -25px;
    font-size: 2.1rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.credits-badge-mega .badge-label {
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.credits-badge-mega .badge-value {
    font-weight: 900;
    color: white;
    font-size: 2.7rem;
    line-height: 1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.profile-card-v3 {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 60px 40px 32px 40px;
    /* More top padding for the overlap */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 32px auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.stats-row-v3 {
    display: flex;
    justify-content: center;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto 48px auto;
}

.stat-pill-v3 {
    flex: 1;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.stat-pill-v3:hover {
    border-color: var(--accent-blue);
    background: var(--hover-bg);
}

.stat-pill-v3 .pill-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--hover-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-pill-v3 .pill-info {
    text-align: left;
}

.stat-pill-v3 .pill-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-pill-v3 .pill-value {
    font-size: 1.25rem;
    font-weight: 900;
}

@media (max-width: 768px) {
    .stats-row-v3 {
        flex-direction: column;
        gap: 12px;
    }

    .credits-badge-mega {
        padding: 16px 32px;
    }

    .credits-badge-mega .badge-value {
        font-size: 2.1rem;
    }
}

/* --- Onboarding Styles --- */
.onboarding-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
}

.onboarding-progress-track {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 8px;
    margin-bottom: 40px;
    overflow: hidden;
}

.onboarding-progress-bar {
    width: 20%;
    height: 100%;
    background: var(--accent-green);
    transition: width 0.4s ease;
}

.onboarding-error {
    background: #fee2e2;
    border: 2px solid #ef4444;
    color: #b91c1c;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
}

.onboarding-step-title {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.45rem;
}

.onboarding-step-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.onboarding-options-grid {
    display: grid;
    gap: 16px;
}

.onboarding-option {
    cursor: pointer;
    display: block;
}

.onboarding-option input {
    display: none;
}

.onboarding-option .option-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.onboarding-option:hover .option-card {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.onboarding-option input:checked+.option-card {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
}

.onboarding-option .option-icon {
    font-size: 2.1rem;
    background: #c7d2fe;
    padding: 12px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
}

.onboarding-option .option-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.onboarding-option .option-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.onboarding-step--hidden {
    display: none;
}

.onboarding-submit {
    width: 100%;
    margin-top: 8px;
}

.level-badge,
.status-badge,
.lesson-count-badge,
.teaser-badge span,
.attendance-badge {
    background-color: rgba(206, 130, 255, 0.2) !important;
    color: var(--duo-purple-primary) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    border: none !important;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- Admin Lessons Styles --- */
.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .admin-panel-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .admin-header-actions {
        width: 100%;
    }
    
    .admin-header-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .admin-table th,
    .admin-table td {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
}

.admin-section-heading {
    margin: 24px 0 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 800;
}

.admin-section-heading--upcoming {
    color: var(--accent-blue);
}

.admin-section-heading--past {
    color: var(--text-secondary);
}

/* --- Admin Tabs --- */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 2px;
}

.admin-tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 12px 12px 0 0;
    transition: all 0.2s;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-tab-btn:hover {
    color: var(--text-primary);
    background: var(--hover-bg);
}

.admin-tab-btn.active {
    color: var(--accent-blue);
}

.admin-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 4px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* --- Admin Tables --- */
.admin-table-container {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 0 var(--border-color);
    overflow-x: auto;
    margin-bottom: 40px;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    background: var(--hover-bg);
    padding: 16px;
    font-weight: 800;
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
}

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

.admin-table tr:hover td {
    background-color: rgba(28, 176, 246, 0.02);
}

.table-lesson-title {
    font-weight: 800 !important;
    color: var(--text-primary);
}

.meeting-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(132, 40, 226, 0.1);
    color: var(--duo-purple-primary);
    text-decoration: none !important;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 800;
    transition: all 0.2s;
}

.meeting-link:hover {
    background: var(--duo-purple-primary);
    color: white !important;
}

.meeting-link:hover span {
    color: white !important;
}

.no-link {
    color: var(--text-secondary);
    font-style: italic;
}

.attendance-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 800;
}

.attendance-link:hover {
    text-decoration: underline;
}

.link-btn-red {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--danger);
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    transition: color 0.15s ease, text-decoration 0.15s ease;
}

.link-btn-red:hover {
    color: var(--danger-hover);
    text-decoration: underline;
}

.link-btn-purple {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--accent-blue);
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    transition: color 0.15s ease, text-decoration 0.15s ease;
}

.link-btn-purple:hover {
    color: var(--accent-blue-hover);
    text-decoration: underline;
}

.sort-icon {
    display: inline-block;
    margin-left: 4px;
    color: var(--accent-blue);
    font-size: 1rem;
}

/* --- Dropdowns --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 4px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-toggle:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 100;
    min-width: 180px;
    display: none;
    margin-top: 8px;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.1s;
}

.dropdown-item:hover {
    background: var(--hover-bg);
    color: var(--accent-blue);
}

.dropdown-item--danger {
    color: var(--text-primary);
}

.dropdown-item--danger:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

/* --- Attendance Modal --- */
.attendance-modal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attendance-modal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--hover-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.attendance-modal-item:hover {
    background: #eef2f7;
}

.attendance-modal-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.attendance-modal-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.no-students {
    text-align: center;
    color: var(--text-secondary);
    padding: 24px;
    font-style: italic;
    font-weight: 600;
}


.lesson-count-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.lesson-count-badge--blue {
    background: var(--accent-blue);
    color: white;
}

.lesson-count-badge--grey {
    background: var(--border-color);
    color: var(--text-secondary);
}

.admin-lesson-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.admin-lesson-grid--mb {
    margin-bottom: 48px;
}

.admin-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px;
}

.admin-empty-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.admin-empty-label {
    color: var(--text-secondary);
}

.lesson-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lesson-card-header {
    padding: 20px;
    background: var(--hover-bg);
    border-bottom: 2px solid var(--border-color);
}

.lesson-card-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--text-primary);
}

.session-list {
    padding: 20px;
    flex-grow: 1;
}

.session-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
}

.session-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.session-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.session-item-date {
    font-weight: 800;
    color: var(--text-primary);
}

.session-seats {
    font-size: 0.85rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 8px;
}

.session-seats--open {
    background: rgba(88, 204, 2, 0.1);
    color: var(--accent-green);
}

.session-seats--full {
    background: rgba(255, 75, 75, 0.1);
    color: var(--danger);
}

.session-progress-track {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
}

.session-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.session-progress-fill--open {
    background: var(--accent-green);
}

.session-progress-fill--full {
    background: var(--danger);
}

.session-enrolled-section {
    background: var(--hover-bg);
    padding: 12px;
    border-radius: 8px;
}

.session-enrolled-label {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.session-students-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.session-no-students {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

.student-pill {
    background: white;
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

.session-log-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--hover-bg);
}

.session-log-date {
    font-weight: 700;
}

.session-log-count {
    font-weight: 900;
}

.lesson-card-actions {
    padding: 16px;
    background: var(--hover-bg);
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 12px;
}

.lesson-action-btn {
    flex: 1;
}

.lesson-action-btn--muted {
    background: var(--border-color);
    color: var(--text-secondary);
}

.lesson-action-btn--warning {
    background: var(--gold);
    color: var(--text-primary);
    box-shadow: 0 4px 0 #d4a700;
}

.lesson-action-btn--warning:hover {
    background: var(--hover-bg);
}

.lesson-action-btn--restore {
    background: var(--accent-green);
    color: white;
    box-shadow: 0 4px 0 var(--accent-green-shadow);
}

.lesson-action-btn--restore:hover {
    background: var(--accent-green-hover);
}

.lesson-action-btn--faded {
    opacity: 0.7;
}

.past-lesson-card {
    opacity: 0.8;
}

.past-lesson-title {
    padding: 16px;
    font-weight: 800;
    border-bottom: 1px solid var(--border-color);
}

.past-session-list {
    padding: 16px;
}

.past-session-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.past-session-date {
    font-weight: 800;
    font-size: 0.9rem;
}

.past-session-students {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.past-session-count {
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--text-primary);
}

/* --- Admin Form Utilities --- */
.session-form-item {
    background: var(--hover-bg);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    margin-bottom: 16px;
}

.existing-sessions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.existing-session-pill {
    background: white;
    border: 2px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.link-tag {
    background: rgba(28, 176, 246, 0.1);
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.link-tag:hover {
    background: var(--accent-blue);
    color: white;
}

.filter-dropdown {
    position: absolute;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    min-width: 180px;
    margin-top: 4px;
    overflow: hidden;
}

.filter-title {
    padding: 8px 12px;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    background: var(--hover-bg);
}

.filter-clear-btn {
    display: block;
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--accent-blue);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.filter-clear-btn:hover {
    background: rgba(28, 176, 246, 0.05);
}

.filter-option-btn {
    display: block;
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: background 0.1s;
}

.filter-option-btn:hover {
    background: var(--hover-bg);
    color: var(--accent-blue);
}


/* --- Admin Schedule Styles --- */
.admin-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--hover-bg);
    padding: 8px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.calendar-nav-btn {
    padding: 8px 16px;
    min-width: auto;
}

.calendar-month-title {
    margin: 0;
    font-weight: 900;
    min-width: 160px;
    text-align: center;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 1rem;
}

.calendar-wrapper {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 0 var(--border-color);
    border: 2px solid var(--border-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 12px 0;
    letter-spacing: 1px;
}

.calendar-day {
    min-height: 120px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.calendar-day.empty {
    background: #fcfcfc;
    border-color: #efefef;
    opacity: 0.4;
}

.calendar-day.today {
    border-color: var(--duo-purple-primary);
    background: rgba(132, 40, 226, 0.03);
}

.calendar-day.today .date-number {
    background: var(--duo-purple-primary);
    color: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.date-number {
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.day-sessions-container {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 100px;
}

.session-chip {
    background: white;
    border-radius: 8px;
    padding: 6px;
    font-size: 0.7rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.session-chip--available {
    background: rgba(132, 40, 226, 0.05);
}

.session-chip--full {
    background: rgba(0, 0, 0, 0.04);
}

.session-chip .time {
    font-weight: 900;
    color: var(--duo-purple-primary);
    font-size: 0.65rem;
}

.session-chip .title {
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.session-chip .stats {
    font-size: 0.65rem;
    font-weight: 900;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.session-chip .stats.full {
    color: var(--text-secondary);
}

.session-chip .stats.available {
    color: var(--duo-purple-primary);
}

/* --- General Utilities --- */
.btn-full {
    width: 100%;
}

.flex-row-stack {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.input-group--flex {
    flex: 1;
}

@media (max-width: 768px) {
    .flex-row-stack {
        flex-direction: column;
        gap: 0;
    }

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

    .admin-lesson-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Student Profile Dashboard --- */
.profile-dashboard {
    display: flex;
    gap: 32px;
}

.profile-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.profile-main {
    flex-grow: 1;
}

.profile-card-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding: 32px 24px;
}

.profile-security-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #afafaf;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.profile-security-btn:hover {
    color: #777;
    background-color: #f1f5f9;
}

.profile-avatar-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 16px;
}

.profile-avatar-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--border-color);
    object-fit: cover;
    background: #fff;
}

.profile-avatar-edit-btn {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 4px solid white;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(28, 176, 246, 0.3);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.profile-avatar-edit-btn:hover {
    transform: scale(1.15) rotate(5deg);
    background: var(--accent-blue-hover);
    box-shadow: 0 8px 20px rgba(28, 176, 246, 0.4);
}



.avatar-picker-content {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 16px;
}

.avatar-form {
    margin: 0;
}

.avatar-btn {
    background: none;
    border: 3px solid var(--border-color);
    border-radius: 8px;
    padding: 2px;
    cursor: pointer;
    transition: all 0.2s;
}

.avatar-btn:hover {
    border-color: var(--accent-blue);
}

.avatar-option-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.profile-name {
    margin-bottom: 4px;
    font-size: 1.4rem;
}

.profile-email {
    color: var(--text-secondary);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 2px;
}

.profile-details {
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.stats-three-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.badge-3d {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    background: white;
    box-shadow: 0 4px 0 var(--border-color);
    transition: all 0.2s ease;
}

.badge-gold {
    border-color: rgba(255, 200, 0, 0.3);
    background: rgba(255, 200, 0, 0.05);
}

.badge-blue {
    border-color: rgba(28, 176, 246, 0.3);
    background: rgba(28, 176, 246, 0.05);
}

.badge-green {
    border-color: rgba(88, 204, 2, 0.3);
    background: rgba(88, 204, 2, 0.05);
}

.modal-content--small {
    max-width: 400px;
}

 .modal-close-btn {
    background: var(--duo-purple-primary);
    border: none;
    box-shadow: none;
    position: absolute;
    top: 15px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
    z-index: 100;
    padding: 0;
    margin: 0;
    border-radius: 50%;
}

.modal-close-btn:hover {
    transform: scale(1.1);
    background: var(--duo-purple-dark);
}

.modal-close-btn span {
    color: white !important;
}

.modal-close-btn svg {
    width: 20px;
    height: 20px;
}

.modal-header-section {
    margin-bottom: 24px;
}

.modal-emoji {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.modal-title-main {
    margin: 0;
    font-weight: 800;
    color: var(--text-primary);
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 4px;
    margin-bottom: 0;
}

.input-field-group {
    margin-bottom: 24px;
    text-align: left;
}

.input-field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.input-field-control {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.section-title-main {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1.15rem;
}

.table-card {
    padding: 0;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table-head {
    background-color: var(--hover-bg);
    border-bottom: 2px solid var(--border-color);
}

.table-header-cell {
    padding: 12px 16px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.table-empty-cell {
    text-align: center;
    padding: 32px;
    color: var(--text-secondary);
    font-weight: 700;
}

.table-row-bordered {
    border-bottom: 2px solid var(--border-color);
}

.table-cell {
    padding: 12px 16px;
}

.table-cell--bold {
    font-weight: 800;
    color: var(--text-primary);
}

.table-cell--secondary {
    color: var(--text-secondary);
    font-weight: 700;
}

.table-cell--large {
    font-size: 1.1rem;
}

.table-cell--strike {
    text-decoration: line-through;
}

.lesson-title-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #ccc;
    transition: color 0.15s ease;
}
.lesson-title-link:hover {
    color: var(--duo-purple-primary, #8428e6);
    text-decoration-color: var(--duo-purple-primary, #8428e6);
}

.table-cell--extra-bold {
    font-weight: 900;
}

.status-badge {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    background: white;
}

.status-badge--blue {
    border-color: rgba(28, 176, 246, 0.2);
    background: rgba(28, 176, 246, 0.03);
}

.status-badge--green {
    border-color: rgba(88, 204, 2, 0.2);
    background: rgba(88, 204, 2, 0.03);
}

.status-badge--muted {
    background: var(--hover-bg);
    filter: grayscale(1) opacity(0.5);
    border-style: dashed;
}


.time-highlight {
    color: var(--accent-blue);
}

.time-highlight-small {
    font-size: 0.85rem;
    color: var(--accent-blue);
}

.too-late-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.status-label--green {
    color: var(--accent-green);
}

.status-label--red {
    color: #ef4444;
    font-weight: 800;
}

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}

.m-0 {
    margin: 0;
}

.text-green {
    color: var(--accent-green);
}

.text-red {
    color: var(--danger);
}

.color-gold {
    color: var(--gold);
}

.color-purple {
    color: var(--duo-purple-primary);
}

@media (max-width: 992px) {
    .profile-dashboard {
        flex-direction: column;
    }

    .profile-sidebar {
        width: 100%;
    }
}

/* --- Welcome Page Styles --- */
.welcome-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.welcome-header {
    text-align: center;
    margin-bottom: 48px;
}

.welcome-header .emoji {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

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

.welcome-card--info {
    text-align: left;
    padding: 24px;
    grid-column: 1 / -1;
}

.welcome-card-flex {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.welcome-card-emoji {
    font-size: 1.2rem;
}

.welcome-card-title {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.welcome-card-desc {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.welcome-important-note {
    margin: 16px 0 0 0;
    background: var(--hover-bg);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.welcome-note-text {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.welcome-card--buy {
    border: 2px solid var(--accent-blue);
}

.welcome-card--full-width {
    grid-column: 1 / -1;
}

.btn-whatsapp {
    border-color: var(--duo-purple-primary);
    color: var(--duo-purple-primary);
}

.btn-whatsapp:hover {
    background: var(--duo-purple-primary);
    color: white;
}

.teaser-section--bordered {
    margin-top: 32px;
    border-top: 1px solid var(--border-color);
    padding-top: 48px;
}

.teaser-section-desc {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px auto;
    font-size: 1.1rem;
}

.btn-lg-padding {
    width: auto;
    padding: 16px 32px;
    font-size: 1.05rem;
}

.welcome-footer {
    text-align: center;
    margin-top: 64px;
    color: var(--text-secondary);
}

/* --- Login Page Styles --- */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-weight: 700;
    margin-top: -10px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
}

.login-footer-text {
    color: var(--text-secondary);
    font-weight: 700;
}

.login-link {
    color: var(--accent-blue);
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

/* --- General Utilities & Spacing --- */
.mb-24 {
    margin-bottom: 24px;
}

.mt-0 {
    margin-top: 0;
}

.text-center {
    text-align: center;
}

.alert {
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.alert-danger {
    background: rgba(255, 75, 75, 0.1);
    border: 2px solid var(--danger);
    color: var(--danger);
}

@media (max-width: 992px) {
    .profile-dashboard {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        width: 100%;
        max-width: 100%;
        padding: 0;
        overflow-x: hidden;
    }

    .profile-sidebar,
    .profile-main {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-card-main {
        width: 100%;
    }

    .stats-container-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .stats-three-col {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        display: flex;
        flex-direction: row;
        gap: 8px;
    }


    .stat-card-small {
        flex: 1;
        min-width: 0;
        padding: 12px 4px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .stat-card-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .section-title-main {
        width: 100%;
        text-align: center;
    }

    .table-card {
        width: 100%;
        max-width: 100%;
    }
}



@media (max-width: 768px) {
    .welcome-options {
        grid-template-columns: 1fr;
    }

    .welcome-card-desc {
        color: #666666;
    }

    .welcome-note-text {
        color: #555555;
    }
}

/* Modal visibility fix: use display: none by default and let JS toggle it */
.modal-overlay--hidden {
    display: none;
}

/* --- Calendar View Switcher --- */
.calendar-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-switcher {
    display: flex;
    background: var(--hover-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.view-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.view-btn.active {
    background: var(--duo-purple-primary);
    color: white;
    box-shadow: 0 2px 0 var(--duo-purple-dark);
}

.view-btn:hover:not(.active) {
    background: rgba(0, 0, 0, 0.04);
}

/* Week grid keeps 7 columns */
.week-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

/* Day view */
.day-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.day-sessions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.day-timeline {
    position: relative;
    background: #fafafa;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    min-height: 520px;
}

.timeline-hour {
    display: flex;
    align-items: center;
    height: 32px;
    border-bottom: 1px solid #eee;
    font-size: 0.7rem;
}

.timeline-hour:last-child {
    border-bottom: none;
}

.timeline-hour .hour-label {
    width: 56px;
    color: var(--text-secondary);
    padding-left: 8px;
    flex-shrink: 0;
    font-weight: 600;
}

.hour-line {
    flex: 1;
    height: 1px;
    background: #eee;
}

.current-time-line {
    position: absolute;
    left: 56px;
    right: 12px;
    height: 3px;
    background: var(--duo-purple-primary);
    border-radius: 3px;
    z-index: 10;
    box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(132, 40, 226, 0.4);
    pointer-events: none;
    transition: top 0.2s ease;
}

/* Mobile adjustments for header and calendar */
@media (max-width: 768px) {
    .admin-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .calendar-header-right {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .view-switcher {
        order: 2;
        flex: 1 1 auto;
        justify-content: center;
    }

    .calendar-controls {
        order: 1;
        width: 100%;
        justify-content: center;
    }

    .week-grid {
        grid-template-columns: repeat(7, 1fr);
    }

    .calendar-grid {
        gap: 4px;
    }

    .calendar-day {
        min-height: 80px;
        padding: 4px;
    }

    .day-timeline {
        min-height: 420px;
    }

    .timeline-hour {
        height: 24px;
    }

    .timeline-hour .hour-label {
        width: 44px;
        font-size: 0.6rem;
    }
}
/* Calendar Time Grid (Google Calendar style) */
.time-grid-container {
    display: flex;
    flex-direction: column;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
}

.time-grid-header {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    background: #fdfdfd;
    position: sticky;
    top: 0;
    z-index: 50;
}

.time-grid-col-time-header {
    width: 60px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    position: sticky;
    left: 0;
    background: #fdfdfd;
    z-index: 60;
}

.time-grid-col-header {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 12px 0;
    font-weight: 800;
    color: var(--text-secondary);
    border-right: 1px solid var(--border-color);
    font-size: 0.85rem;
    text-transform: uppercase;
}
.time-grid-col-header:last-child {
    border-right: none;
}

.time-grid-col-header.today {
    color: var(--duo-purple-primary);
    background: rgba(132, 40, 226, 0.05);
}

.time-grid-body {
    display: flex;
    position: relative;
    height: 1080px; /* 18 hours * 60px */
    flex-shrink: 0;
}

.time-grid-col-time {
    width: 60px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    position: sticky;
    left: 0;
    background: white;
    z-index: 40;
}

.time-grid-hour-label {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 700;
    transform: translateY(-50%);
}

.time-grid-col-day {
    flex: 1;
    min-width: 120px;
    border-right: 1px solid var(--border-color);
    position: relative;
}
.time-grid-col-day:last-child {
    border-right: none;
}

.time-grid-lines {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}
.time-grid-line {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: #f0f0f0;
}

.time-grid-event {
    position: absolute;
    left: 4px;
    right: 4px;
    background: rgba(132, 40, 226, 0.1);
    border-left: 4px solid var(--duo-purple-primary);
    border-radius: 4px;
    padding: 4px;
    overflow: hidden;
    font-size: 0.7rem;
    color: var(--duo-purple-dark);
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 2;
    cursor: pointer;
    transition: transform 0.1s, z-index 0.1s;
}

.time-grid-event:hover {
    transform: scale(1.02);
    z-index: 5;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.time-grid-event .event-title {
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.time-grid-event .event-time {
    font-weight: 700;
    opacity: 0.8;
}

.time-grid-current-time {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: var(--duo-purple-primary);
    z-index: 10;
    pointer-events: none;
}
.time-grid-current-time::before {
    content: '';
    position: absolute;
    left: -4px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--duo-purple-primary);
}

/* ===== PUBLIC TOP NAV (login page) ===== */
.public-top-nav {
    background: #fff;
    border-bottom: 2px solid var(--border-color);
    padding: 0 1.5rem;
}

.public-top-nav__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.public-top-nav__brand {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--duo-purple-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.public-top-nav__links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.public-top-nav__link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.15s;
}

.public-top-nav__link:hover {
    color: var(--duo-purple-primary);
}

.public-top-nav__link--active {
    color: var(--duo-purple-primary);
}
