/* ============================================
   MICK'S JYM - Custom Styles
   ============================================ */

:root {
    --red: #C62828;
    --red-dark: #A31D1D;
    --red-light: #E53935;
    --navy: #0F1B2D;
    --dark: #141E30;
    --darker: #0D1520;
    --darkest: #080E18;
    --card-dark: #1A2538;
    --text-white: #FFFFFF;
    --text-gray: #999999;
    --text-light: #CCCCCC;
    --font-heading: 'Oswald', sans-serif;
    --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* --- Base --- */
html,
body {
    overflow-x: hidden;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--font-body);
    color: var(--text-white);
    background-color: var(--darker);
    margin: 0;
    padding: 0;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.02em;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 1rem;
}

/* --- Navigation --- */
.site-nav {
    background-color: rgba(13, 21, 32, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1050;
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-white);
    letter-spacing: 0.05em;
}

.site-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--text-white) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.site-nav .nav-link:hover {
    color: var(--red) !important;
}

.btn-join-now {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    background-color: var(--red);
    color: var(--text-white) !important;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 2px;
    transition: background-color 0.2s;
    text-decoration: none;
}

.btn-join-now:hover {
    background-color: var(--red-dark);
    color: var(--text-white) !important;
}

/* --- Section overflow control --- */
.hero,
.philosophy-section,
.programs-section,
.cta-section,
.site-footer {
    overflow-x: hidden;
    max-width: 100vw;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(180deg, rgba(8, 14, 24, 0.55) 0%, rgba(8, 14, 24, 0.85) 100%),
        url('https://imagedelivery.net/5iGWHbc1BKxLw6VE6wh5IA/79ec9b48-d22f-4d19-b452-945ee27a3200/w=800') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        );
    pointer-events: none;
}

.hero-overlay {
    position: relative;
    width: 100%;
    z-index: 1;
    padding-top: 100px;
    padding-bottom: 4rem;
}

.hero-content {
    max-width: 650px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.hero-tagline {
    border-left: 4px solid var(--red);
    padding-left: 1.25rem;
    margin-bottom: 2rem;
}

.hero-tagline p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-red {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background-color: var(--red);
    color: var(--text-white) !important;
    border: 2px solid var(--red);
    padding: 0.75rem 2rem;
    border-radius: 2px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
}

.btn-red:hover {
    background-color: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--text-white) !important;
}

.btn-outline-light-custom {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background-color: transparent;
    color: var(--text-white) !important;
    border: 2px solid var(--text-white);
    padding: 0.75rem 2rem;
    border-radius: 2px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
}

.btn-outline-light-custom:hover {
    background-color: var(--text-white);
    color: var(--dark) !important;
}

/* --- Philosophy Section --- */
.philosophy-section {
    background-color: #F5F5F5;
    color: #333;
    padding: 5rem 0;
}

.philosophy-section .section-title {
    margin-bottom: 1.5rem;
    color: var(--navy) !important;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--red);
    display: inline-block;
}

.philosophy-section p {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

.philosophy-section .fw-bold {
    color: #333;
}

/* Feature Cards */
.feature-card {
    background-color: var(--card-dark);
    border-radius: 6px;
    padding: 1.25rem 1rem;
    height: 100%;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--red);
    display: block;
    margin-bottom: 0.75rem;
}

.feature-card h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.8rem;
    color: var(--text-gray) !important;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Philosophy Image / Poster */
.philosophy-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.philosophy-poster {
    background-color: #FFF;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.poster-header {
    background-color: var(--navy);
    text-align: center;
    padding: 1.5rem 2rem;
}

.poster-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-white);
    letter-spacing: 0.15em;
}

.poster-content {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #EEE;
}

.poster-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.poster-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    color: #333;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.poster-row small {
    font-size: 0.65rem;
    color: #999;
    display: block;
    margin-top: 0.25rem;
    text-transform: uppercase;
}

.poster-fighters {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    background: linear-gradient(180deg, #F9F9F9, #F0F0F0);
}

.fighter-silhouette {
    width: 50px;
    height: 70px;
    background-color: #CCC;
    border-radius: 50% 50% 8px 8px;
    opacity: 0.5;
}

/* --- Programs Section --- */
.programs-section {
    background-color: var(--darker);
    padding: 5rem 0;
}

.program-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.program-image {
    height: 220px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.program-image-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.25);
}

.program-image-kickboxing {
    background: linear-gradient(135deg, #1A3040 0%, #12222E 100%);
    border-top: 3px solid #4ECDC4;
}

.program-image-strength {
    background: linear-gradient(135deg, #2A1828 0%, #1E1020 100%);
    border-top: 3px solid var(--red);
}

.program-image-sparring {
    background: linear-gradient(135deg, #1E2838 0%, #151E2A 100%);
    border-top: 3px solid #6B8AAF;
}

.program-body {
    padding: 1.25rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-body h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.program-body p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
    flex: 1;
}

.learn-more {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--red);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}

.learn-more:hover {
    color: var(--red-light);
}

.learn-more i {
    transition: transform 0.2s;
}

.learn-more:hover i {
    transform: translateX(4px);
}

/* --- CTA Section --- */
.cta-section {
    background:
        linear-gradient(rgba(8, 14, 24, 0.85), rgba(8, 14, 24, 0.92)),
        radial-gradient(ellipse at center, #152035 0%, #080e18 100%);
    padding: 5rem 0;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 2rem;
    letter-spacing: 0.03em;
    overflow-wrap: break-word;
    word-break: break-word;
}

.cta-btn {
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--darkest);
    padding: 4rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

.footer-desc {
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.footer-info {
    font-size: 0.85rem;
    color: var(--text-gray);
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.footer-info a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-info a:hover {
    color: var(--text-white);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.social-links a:hover {
    border-color: var(--red);
    color: var(--red);
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-gray);
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .philosophy-section,
    .programs-section {
        padding: 3.5rem 0;
    }
}

@media (max-width: 767.98px) {
    .hero {
        min-height: 90vh;
    }

    .hero-overlay {
        padding-top: 80px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }

    .hero-tagline p {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn-red,
    .hero-buttons .btn-outline-light-custom {
        text-align: center;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .philosophy-section,
    .programs-section {
        padding: 3rem 0;
    }

    .cta-section {
        padding: 3.5rem 0;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 1rem 0.75rem;
    }

    .feature-card h5 {
        font-size: 0.8rem;
    }

    .feature-card p {
        font-size: 0.7rem;
    }

    .site-footer {
        padding: 3rem 0 0;
    }

    .site-nav .navbar-collapse {
        padding: 1rem 0;
    }

    .btn-join-now {
        margin-top: 0.5rem;
        text-align: center;
    }

    .cta-btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.85rem;
    }

    .philosophy-section .section-title {
        font-size: 1.6rem;
        word-break: break-word;
    }

    .philosophy-poster {
        max-width: 100%;
    }

    .poster-header {
        padding: 1rem 1.25rem;
    }

    .poster-content {
        padding: 1rem 1.25rem;
    }

    .poster-fighters {
        gap: 1.5rem;
        padding: 1.25rem;
    }

    .poster-row {
        gap: 0.5rem;
    }

    .program-image {
        height: 180px;
    }
}

/* ============================================
   SCHEDULE PAGE
   ============================================ */

.schedule-hero {
    background-color: var(--darker);
    padding: 7rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.schedule-watermark {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 700;
    color: rgba(198, 40, 40, 0.08);
    letter-spacing: 0.05em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.schedule-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.schedule-subtitle {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 500px;
}

/* --- Filters --- */
.schedule-filters {
    background-color: var(--dark);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--red);
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    color: var(--text-light);
    background: transparent;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--red);
    color: var(--text-white);
}

.filter-btn.active {
    background-color: var(--red);
    border-color: var(--red);
    color: var(--text-white);
}

/* --- Timetable Grid --- */
.schedule-table-section {
    background-color: var(--darker);
    padding: 2.5rem 0;
    overflow-x: hidden;
    max-width: 100vw;
}

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.schedule-table thead th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--red);
    text-transform: uppercase;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.schedule-table thead th.time-col {
    text-align: left;
    width: 90px;
}

.schedule-table tbody td {
    padding: 0.5rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.schedule-table tbody td.time-col {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: left;
    white-space: nowrap;
}

.schedule-table tbody td.span-cell {
    padding: 0.5rem;
}

/* Class pills */
.class-pill {
    border-radius: 4px;
    padding: 0.5rem 0.4rem;
    text-align: center;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.class-pill-primary {
    background-color: var(--red);
    border: 1px solid var(--red);
}

.class-pill-dark {
    background-color: var(--card-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.class-pill-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.class-pill-span {
    background-color: var(--card-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    min-height: 40px;
}

.class-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--text-white);
    text-transform: uppercase;
}

.class-coach {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
}

.class-pill-span .class-name {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
}

/* --- Schedule CTA --- */
.schedule-cta {
    background-color: var(--dark);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: hidden;
    max-width: 100vw;
}

.schedule-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.schedule-cta-icon {
    font-size: 2rem;
    color: var(--red);
}

.schedule-cta-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.schedule-cta-text {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0;
}

/* ============================================
   ADMIN PAGE
   ============================================ */

.admin-section {
    background-color: var(--darker);
    padding: 6rem 0 4rem;
    min-height: 100vh;
}

.admin-heading {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-white);
    letter-spacing: 0.05em;
}

.admin-card {
    background-color: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 1.5rem;
}

.admin-card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--red);
    margin-bottom: 1.25rem;
}

.admin-label {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.admin-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-white);
    background-color: var(--darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    transition: border-color 0.2s;
}

.admin-input:focus {
    outline: none;
    border-color: var(--red);
}

.admin-input option {
    background-color: var(--darker);
}

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

.admin-table thead th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-gray);
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    white-space: nowrap;
}

.admin-table tbody td {
    font-size: 0.82rem;
    color: var(--text-light);
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.row-inactive td {
    opacity: 0.45;
}

.admin-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    background: transparent;
    color: var(--text-light);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.admin-action-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

.admin-action-danger:hover {
    border-color: #ff4444;
    color: #ff4444;
}

/* --- Schedule responsive --- */
@media (max-width: 991.98px) {
    .schedule-hero {
        padding: 6rem 0 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .schedule-hero {
        padding: 5rem 0 2rem;
    }

    .schedule-watermark {
        font-size: 3rem;
        top: 2rem;
        transform: none;
    }

    .schedule-table thead th,
    .schedule-table tbody td.time-col {
        font-size: 0.65rem;
    }

    .class-name {
        font-size: 0.55rem;
    }

    .class-coach {
        font-size: 0.5rem;
    }

    .class-pill {
        padding: 0.35rem 0.2rem;
        min-height: 38px;
    }

    .schedule-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .schedule-cta-inner .d-flex {
        flex-direction: column;
        align-items: center !important;
    }

    .filter-btn {
        font-size: 0.65rem;
        padding: 0.35rem 0.7rem;
    }

    .admin-section {
        padding: 5rem 0 3rem;
    }

    .admin-card {
        padding: 1rem;
    }
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-section {
    background-color: var(--darker);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.login-card {
    background-color: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.login-subtitle {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 0;
}

.login-error {
    background-color: rgba(198, 40, 40, 0.15);
    border: 1px solid rgba(198, 40, 40, 0.3);
    border-radius: 4px;
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
    color: var(--red-light);
    margin-bottom: 1.25rem;
}

.login-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.login-back {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.login-back:hover {
    color: var(--text-white);
}

@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.25rem;
        margin: 0 1rem;
    }
}

/* --- Social login & divider --- */
.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--text-white);
    background-color: var(--card-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.social-login-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    gap: 1rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.login-divider span {
    font-size: 0.72rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-heading);
    white-space: nowrap;
}

/* ============================================
   MEMBER DASHBOARD
   ============================================ */

.dash-body {
    background-color: #0B1018;
    min-height: 100vh;
    display: flex;
}

/* --- Sidebar --- */
.dash-sidebar {
    width: 220px;
    min-height: 100vh;
    background-color: #0E1620;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
}

.dash-sidebar-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dash-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-white);
    letter-spacing: 0.05em;
    display: block;
    line-height: 1.1;
}

.dash-brand-sub {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    color: var(--red);
    display: block;
}

.dash-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dash-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s;
}

.dash-nav-link:hover {
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.04);
}

.dash-nav-link.active {
    color: var(--text-white);
    background-color: var(--red);
}

.dash-nav-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.dash-sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.dash-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--card-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 1rem;
    flex-shrink: 0;
}

.dash-user-name {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-user-role {
    font-size: 0.65rem;
    color: var(--text-gray);
}

.dash-logout-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.dash-logout-btn:hover {
    color: var(--red);
}

/* --- Mobile header --- */
.dash-mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: #0E1620;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1030;
}

.dash-hamburger {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.4rem;
    cursor: pointer;
}

/* --- Main content --- */
.dash-main {
    flex: 1;
    margin-left: 220px;
    padding: 2rem;
    min-height: 100vh;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dash-welcome {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.dash-subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0;
    font-style: italic;
}

.dash-book-btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* --- Stat cards --- */
.dash-stat-card {
    background-color: #111B28;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 1.25rem;
    height: 100%;
}

.dash-stat-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--text-gray);
    text-transform: uppercase;
}

.dash-stat-icon {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.15);
}

.dash-stat-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--text-white);
    margin: 0.25rem 0;
    line-height: 1.1;
}

.dash-stat-trend {
    font-size: 0.72rem;
    color: var(--red);
    font-weight: 500;
}

/* --- Section titles --- */
.dash-section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--red);
    margin-bottom: 1rem;
    font-style: italic;
}

/* --- Membership card --- */
.dash-membership-card {
    background-color: #111B28;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    overflow: hidden;
}

.dash-membership-inner {
    display: flex;
    min-height: 220px;
}

.dash-membership-info {
    flex: 1;
    padding: 1.5rem;
}

.dash-plan-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.dash-plan-status {
    font-size: 0.8rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dash-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-gray);
    display: inline-block;
}

.dash-status-dot.active {
    background-color: #4CAF50;
}

.dash-plan-label {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-gray);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.2rem;
}

.dash-plan-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-white);
}

.dash-membership-visual {
    width: 200px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1A2838 0%, #0E1822 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-membership-graphic {
    font-size: 4rem;
    color: rgba(198, 40, 40, 0.2);
}

/* --- Activity card --- */
.dash-activity-card {
    background-color: #111B28;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 220px;
}

.dash-activity-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 160px;
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* --- Dashboard responsive --- */
@media (max-width: 767.98px) {
    .dash-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

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

    .dash-main {
        margin-left: 0;
        padding: 4.5rem 1rem 2rem;
    }

    .dash-welcome {
        font-size: 1.4rem;
    }

    .dash-membership-visual {
        display: none;
    }

    .dash-header {
        flex-direction: column;
    }

    .dash-book-btn {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 768px) {
    .dash-mobile-header {
        display: none !important;
    }
}