/* Chess Demo Booking - Premium Global Styling */
/* Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

/* Color Variables & Global Styles */
:root {
    --primary: #D11A2A;
    --primary-hover: #B21524;
    --primary-glow: rgba(209, 26, 42, 0.15);
    --secondary: #F3F4F6;
    --accent: #22C55E;
    --accent-glow: rgba(34, 197, 94, 0.1);
    --bg-dark: #F9FAFB;
    --bg-card: rgba(255, 255, 255, 0.85);
    --border-color: rgba(209, 26, 42, 0.08);
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-glow: 0 10px 30px rgba(209, 26, 42, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Core Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Glowing Highlights */
body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(209, 26, 42, 0.06) 0%, rgba(209, 26, 42, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button, input, select, textarea {
    font-family: inherit;
    outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(209, 26, 42, 0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ---------------------------------------------------- */
/* Utility Classes & Design System Components           */
/* ---------------------------------------------------- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Premium Glassmorphic Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    overflow: hidden;
}
.glass-card:hover {
    border-color: rgba(209, 26, 42, 0.2);
    box-shadow: 0 12px 40px rgba(209, 26, 42, 0.08);
}

.glass-card.interactive:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(209, 26, 42, 0.15);
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, #111827 30%, #D11A2A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-primary {
    background: linear-gradient(135deg, #D11A2A 0%, #0F172A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 100%);
    color: #FFF;
    box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--primary-glow), var(--shadow-glow);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #10B981 100%);
    color: #FFF;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-beginner { background: rgba(59, 130, 246, 0.15); color: #60A5FA; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-intermediate { background: rgba(245, 158, 11, 0.15); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-advanced { background: rgba(239, 68, 68, 0.15); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-success { background: rgba(34, 197, 94, 0.15); color: #4ADE80; border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-pending { background: rgba(167, 139, 250, 0.15); color: #C084FC; border: 1px solid rgba(167, 139, 250, 0.3); }
.badge-cancelled { background: rgba(156, 163, 175, 0.15); color: #D1D5DB; border: 1px solid rgba(156, 163, 175, 0.3); }

/* Header & Navigation Bar */
.header {
    width: 100%;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    transition: var(--transition);
}

.logo svg {
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary));
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

/* ---------------------------------------------------- */
/* Landing Page Sections                                */
/* ---------------------------------------------------- */

.hero-section {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(209, 26, 42, 0.1);
    color: #A78BFA;
    border: 1px solid rgba(209, 26, 42, 0.25);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(209, 26, 42, 0.1);
}

.hero-title {
    font-size: 54px;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-sub {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-graphic-container {
    margin-top: 60px;
    position: relative;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glow);
    border: 2px solid var(--primary);
    overflow: hidden;
}

.hero-graphic-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Section Common styling */
.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.benefit-card {
    padding: 40px 30px;
    text-align: center;
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: rgba(209, 26, 42, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
    box-shadow: 0 0 20px rgba(209, 26, 42, 0.1) inset;
    border: 1px solid rgba(209, 26, 42, 0.2);
}

.benefit-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* How It Works Flow Chart */
.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 40px;
    position: relative;
}

.how-step {
    padding: 30px;
    text-align: center;
    position: relative;
}

.how-step::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: var(--primary);
    opacity: 0.5;
}

.how-step:last-child::after {
    display: none;
}

.step-num {
    font-size: 40px;
    font-weight: 800;
    color: rgba(209, 26, 42, 0.2);
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.how-step h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.how-step p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Testimonials Carousel */
.testimonial-card {
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.test-stars {
    color: #FBBF24;
    font-size: 20px;
    margin-bottom: 20px;
}

.test-text {
    font-style: italic;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.test-author {
    font-weight: 600;
}

.test-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* FAQs Panel */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    padding: 24px;
    cursor: pointer;
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 17px;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    color: var(--text-secondary);
    transition: max-height 0.3s ease-out;
    font-size: 15px;
    padding-top: 0;
}

.faq-item.active .faq-a {
    max-height: 150px;
    padding-top: 12px;
}

.faq-icon {
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Footer Section */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    background: rgba(17, 24, 39, 0.4);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 16px;
    max-width: 320px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ---------------------------------------------------- */
/* Booking Page Layout & Step Forms                     */
/* ---------------------------------------------------- */

.booking-wrapper {
    padding: 60px 0 100px;
}

/* Step Wizard Progress Bar */
.progress-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto 50px;
    position: relative;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--border-color);
    transform: translateY(-50%);
    z-index: 1;
}

.progress-line-active {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--primary);
    transform: translateY(-50%);
    z-index: 2;
    transition: width 0.4s ease;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    z-index: 3;
    transition: var(--transition);
}

.progress-step.active {
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.progress-step.completed {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.step-label {
    position: absolute;
    top: 48px;
    font-size: 12px;
    white-space: nowrap;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

/* Form Container Styles */
.form-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.form-full {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 15px;
    transition: var(--transition);
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary);
    background: rgba(209, 26, 42, 0.05);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Radio Option Selectors */
.option-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.option-card {
    border: 1px solid var(--border-color);
    background: #FFFFFF;
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.option-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.option-card.selected {
    border-color: var(--primary);
    background: rgba(209, 26, 42, 0.05);
    box-shadow: 0 0 15px var(--primary-glow);
}

.option-card h4 {
    margin-bottom: 4px;
    font-size: 15px;
}

.option-card p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Calendar Custom UI */
.calendar-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

.calendar-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-month-title {
    font-size: 18px;
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 0;
}

.calendar-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

.calendar-cell:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.calendar-cell.disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.calendar-cell.selected {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

.cell-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    position: absolute;
    bottom: 6px;
}

.indicator-available { background: var(--accent); }
.indicator-limited { background: #F59E0B; }
.indicator-full { background: #EF4444; }

/* Time Slots selector */
.slots-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.slots-title {
    font-size: 16px;
    font-weight: 600;
}

.slot-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

.slot-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background: #FFFFFF;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.slot-card:hover:not(.full) {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.slot-card.selected {
    border-color: var(--primary);
    background: rgba(209, 26, 42, 0.08);
}

.slot-card.full {
    opacity: 0.4;
    cursor: not-allowed;
}

.slot-time {
    font-weight: 600;
    font-size: 14px;
}

.slot-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 500;
}

.slot-status.available { background: rgba(34, 197, 94, 0.15); color: #4ADE80; }
.slot-status.limited { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }
.slot-status.full { background: rgba(239, 68, 68, 0.15); color: #F87171; }

/* Pricing Option Cards */
.price-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.price-card {
    padding: 24px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.price-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.price-card.selected {
    border-color: var(--primary);
    background: rgba(209, 26, 42, 0.05);
    box-shadow: 0 0 20px var(--primary-glow);
}

.price-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.price-value {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--primary);
}

.price-features {
    list-style: none;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-features svg {
    color: var(--accent);
    vertical-align: middle;
    margin-right: 6px;
}

/* Simulated Payment Gateway Modals / Panels */
.payment-panel {
    display: none;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.payment-panel.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.pay-btn {
    border: 1px solid var(--border-color);
    background: #FFFFFF;
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.pay-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.pay-btn.selected {
    border-color: var(--primary);
    background: var(--primary-glow);
}

.pay-logo {
    height: 24px;
    object-fit: contain;
}

.gateway-sandbox {
    background: rgba(0, 0, 0, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
}

.qr-code {
    width: 140px;
    height: 140px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    margin: 16px auto;
}

/* Step Wizard Buttons Bar */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    margin-top: 30px;
}

/* ---------------------------------------------------- */
/* Success & Assignment Breakdown                       */
/* ---------------------------------------------------- */

.success-container {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.success-badge {
    width: 72px;
    height: 72px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
    border: 2px solid var(--accent);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

/* Loading Match Tracker */
.match-loader {
    padding: 40px;
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pulse-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Teacher assigned card styling */
.assigned-coach-card {
    padding: 30px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 24px;
    text-align: left;
}

.coach-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid var(--primary);
}

.coach-info {
    flex: 1;
}

.coach-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.coach-exp {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
}

.coach-rating {
    color: #FBBF24;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Matching Decision Log / Rationale collapse toggle */
.rationale-container {
    margin: 20px 0 40px;
    text-align: left;
}

.rationale-header {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.rationale-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #0D1321;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.rationale-container.active .rationale-content {
    max-height: 400px;
    overflow-y: auto;
}

.rationale-container.active .rationale-header {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    border-color: rgba(209, 26, 42, 0.4);
}

.decision-log-list {
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: #A7F3D0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}

/* ---------------------------------------------------- */
/* Admin Panel - Metrics & Tables                       */
/* ---------------------------------------------------- */

.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 80px);
}

.admin-sidebar {
    background: #F3F4F6;
    border-right: 1px solid var(--border-color);
    padding: 30px 16px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-left: 12px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(209, 26, 42, 0.1);
    color: var(--primary);
}

.admin-main {
    padding: 40px;
    overflow-y: auto;
    height: calc(100vh - 80px);
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Metrics Dashboard grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.metric-card {
    padding: 24px;
}

.metric-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* CRM Pipeline Columns */
.crm-pipeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.pipeline-col {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 60vh;
}

.pipeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.pipeline-badge {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.pipeline-card-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crm-card {
    padding: 12px;
    cursor: grab;
    flex-shrink: 0;
}

.crm-card:active {
    cursor: grabbing;
}

.crm-card h4 {
    font-size: 13px;
    margin-bottom: 4px;
}

.crm-card p {
    font-size: 11px;
    color: var(--text-secondary);
}

.crm-card-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 10px;
    color: var(--primary);
}

/* Booking & Teacher Tables */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.data-table th {
    background: #F3F4F6;
    border-bottom: 2px solid var(--border-color);
    padding: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table-search {
    width: 300px;
    margin-bottom: 20px;
}

.action-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.action-icon-btn:hover {
    background: rgba(209, 26, 42, 0.1);
    color: var(--primary);
    border-color: rgba(209, 26, 42, 0.4);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 500;
    overflow-y: auto;
    padding: 20px 0;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    width: 500px;
    max-width: 90%;
    padding: 30px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease-in-out;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary) !important;
    transform: scale(1.2);
}

/* ---------------------------------------------------- */
/* Teacher Dashboard Styles                             */
/* ---------------------------------------------------- */

.teacher-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.teacher-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.teacher-rating-stars {
    color: #FBBF24;
    margin-top: 4px;
}

/* ---------------------------------------------------- */
/* Notifications Drawer (Slide-out)                    */
/* ---------------------------------------------------- */

.notification-bell-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    z-index: 300;
    border: none;
    font-size: 20px;
    transition: var(--transition);
}

.notification-bell-btn:hover {
    transform: scale(1.1) rotate(15deg);
}

.bell-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #EF4444;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.notif-drawer {
    position: fixed;
    top: 0;
    right: -380px;
    width: 360px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-left: 1px solid var(--border-color);
    z-index: 400;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.notif-drawer.active {
    right: 0;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.notif-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notif-card {
    padding: 16px;
    border-radius: var(--radius-sm);
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    font-size: 13px;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.notif-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.notif-time {
    font-size: 10px;
    color: var(--text-muted);
}

.notif-channel {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.channel-whatsapp { background: rgba(34, 197, 94, 0.15); color: #4ADE80; }
.channel-email { background: rgba(59, 130, 246, 0.15); color: #60A5FA; }
.channel-sms { background: rgba(167, 139, 250, 0.15); color: #C084FC; }
.channel-system { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }

/* ---------------------------------------------------- */
/* Responsive Design Adaptability & Mobile Optimization  */
/* ---------------------------------------------------- */

@media (max-width: 1024px) {
    .calendar-layout {
        grid-template-columns: 1fr;
    }
    .admin-layout {
        display: flex;
        flex-direction: column;
    }
    .admin-sidebar {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding: 12px 24px;
        gap: 16px;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        height: auto;
    }
    .sidebar-title {
        display: none;
    }
    .sidebar-nav {
        display: flex;
        flex-direction: row;
        gap: 12px;
        width: auto;
    }
    .sidebar-link {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
    }
    .admin-main {
        padding: 24px 16px;
        height: auto;
    }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }
    .header-container {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        text-align: center;
    }
    .logo {
        margin: 0 auto !important;
    }
    .logo-img {
        height: 54px !important;
    }
    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }
    .hero-title {
        font-size: 34px;
        line-height: 1.2;
    }
    .hero-sub {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .hero-section {
        padding: 60px 0 40px;
    }
    .section-padding {
        padding: 50px 0;
    }
    .section-header {
        margin-bottom: 40px;
    }
    .section-header h2 {
        font-size: 28px;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .benefit-card {
        padding: 30px 20px;
    }
    .how-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .how-step {
        padding: 20px;
    }
    .how-step::after {
        content: '↓';
        position: absolute;
        right: auto;
        left: 50%;
        bottom: -25px;
        top: auto;
        transform: translateX(-50%);
        font-size: 24px;
        color: var(--primary);
        opacity: 0.7;
    }
    .form-card {
        padding: 24px 16px;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .form-full {
        grid-column: span 1;
    }
    .option-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .price-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .payment-methods {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .teacher-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .assigned-coach-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 20px;
    }
    .coach-avatar {
        margin: 0 auto;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: left;
    }
    .footer-desc {
        max-width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero-title {
        font-size: 28px;
    }
    .btn {
        width: 100%;
        padding: 12px 20px;
    }
    .hero-section div[style*="display:flex"],
    .hero-section div[style*="display: flex"] {
        flex-direction: column !important;
        width: 100%;
        gap: 12px !important;
    }
    .progress-bar-container {
        margin-bottom: 40px;
    }
    .progress-step {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    .step-label {
        font-size: 9px;
        top: 40px;
    }
    .pipeline-col {
        min-width: 260px;
    }
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    .modal-card {
        padding: 20px 16px;
    }
    .success-badge {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    .success-container h1 {
        font-size: 26px;
    }
}

/* ---------------------------------------------------- */
/* Premium Vector Icon Micro-Animations & Creativity    */
/* ---------------------------------------------------- */

.logo i {
    transition: var(--transition);
}
.logo:hover i {
    transform: rotate(15deg) scale(1.15);
    color: var(--primary-hover);
}

.benefit-card i {
    font-size: 32px;
    color: var(--primary);
    transition: var(--transition);
    display: inline-block;
}
.benefit-card:hover i {
    transform: scale(1.2) translateY(-4px);
    color: #8B5CF6;
}

.option-card i {
    transition: var(--transition);
    display: inline-block;
}
.option-card:hover i {
    transform: scale(1.25) rotate(-5deg);
}

.progress-step i {
    margin-right: 4px;
}

.form-group label i {
    margin-right: 6px;
    color: var(--primary);
    opacity: 0.85;
    font-size: 13px;
    transition: var(--transition);
}
.form-group:focus-within label i {
    color: var(--primary-hover);
    transform: scale(1.15);
}

.sidebar-link i {
    transition: var(--transition);
}
.sidebar-link:hover i,
.sidebar-link.active i {
    transform: translateX(2px) scale(1.1);
}



/* Progressive Disclosure Slide & Fade-in Animation */
.form-fade-in.active {
    animation: slideFadeInProgressive 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideFadeInProgressive {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================================
   CHESSWIZE PROGRESSIVE DRAWER AND HERO SELECTOR STYLES
   ========================================================================== */

/* Hero Container desktop split adjustments */
@media (min-width: 992px) {
    .hero-section {
        padding: 80px 0 !important;
    }
    .hero-container {
        flex-direction: row !important;
        gap: 60px !important;
        align-items: center !important;
    }
}
@media (max-width: 991px) {
    .hero-container {
        flex-direction: column !important;
        text-align: center !important;
        padding: 40px 20px !important;
    }
    .hero-left, .hero-right {
        max-width: 100% !important;
        flex: none !important;
    }
    .hero-checklist {
        align-items: center !important;
    }
}

/* Modal Drawer Overlay */
.booking-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.booking-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Sliding Drawer Panel (Centered towards the Top) */
.booking-drawer {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translate(-50%, -30px);
    opacity: 0;
    pointer-events: none;
    width: 92%;
    max-width: 780px;
    background: #FFFFFF;
    border-radius: 24px; /* Premium fully rounded corners */
    box-shadow: 0 20px 50px rgba(209, 26, 42, 0.15);
    z-index: 1001;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    max-height: 88vh;
}
.booking-drawer.active {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 576px) {
    .booking-drawer {
        top: 15px;
        max-height: 95vh;
        border-radius: 16px;
    }
}

/* Drawer Header elements */
.drawer-header {
    padding: 24px 30px 16px 30px;
    border-bottom: 1px solid #F3F4F6;
}
.drawer-step-badge {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.drawer-close-btn {
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}
.drawer-close-btn:hover {
    color: #EF4444;
    transform: scale(1.1);
}

/* Progress bar filling */
.drawer-progress-bg {
    width: 100%;
    height: 6px;
    background: #F3F4F6;
    border-radius: 3px;
    overflow: hidden;
}
.drawer-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #0F172A 100%);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Body content layout & transitions */
.drawer-body {
    padding: 24px 30px 30px 30px;
    overflow-y: auto;
    flex: 1;
}
.drawer-step-content {
    display: none;
}
.drawer-step-content.active {
    display: block;
    animation: drawerFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.drawer-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 6px 0;
}
.drawer-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
}

/* Drawer forms & inputs elements */
.drawer-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
}
.drawer-input {
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    height: 48px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    box-sizing: border-box;
    width: 100%;
    background-color: #F9FAFB;
    transition: var(--transition);
}
.drawer-input:focus {
    border-color: var(--primary);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(209, 26, 42, 0.1);
}

/* Step 1 Split elements side-card */
.drawer-layout-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}
@media (max-width: 768px) {
    .drawer-layout-split {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
.drawer-side-card {
    background: #F9FAFB;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 16px;
    padding: 20px;
}
.drawer-side-card h4 {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 2-column Grid wrapper */
.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 576px) {
    .form-grid-2col {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Goal selection checkbox cards */
.drawer-goals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 576px) {
    .drawer-goals-grid {
        grid-template-columns: 1fr;
    }
}
.drawer-goal-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    background: #FFFFFF;
    transition: var(--transition);
}
.drawer-goal-card:hover {
    border-color: var(--primary);
    background: rgba(209, 26, 42, 0.02);
}
.drawer-goal-card.selected {
    border-color: var(--primary);
    background: rgba(209, 26, 42, 0.04);
    box-shadow: 0 4px 15px rgba(209, 26, 42, 0.06);
}
.goal-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.drawer-goal-card.selected .goal-checkbox {
    border-color: var(--primary);
    background: var(--primary);
}
.drawer-goal-card.selected .goal-checkbox::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #FFFFFF;
    font-size: 10px;
}
.drawer-goal-card h5 {
    margin: 0 0 3px 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}
.drawer-goal-card p {
    margin: 0;
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Step 4 horizontal date snaps */
.date-carousel-wrapper {
    position: relative;
    margin-bottom: 20px;
}
.date-carousel-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    padding: 4px;
}
.date-carousel-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar Webkit */
}
.date-pill {
    flex: 0 0 74px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    background: #FFFFFF;
    transition: var(--transition);
}
.date-pill:hover {
    border-color: var(--primary);
}
.date-pill.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(209, 26, 42, 0.2);
}
.date-pill .day-name {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0.8;
}
.date-pill.selected .day-name {
    opacity: 0.9;
}
.date-pill .day-num {
    font-size: 20px;
    font-weight: 800;
    margin: 2px 0;
}
.date-pill .month-name {
    font-size: 10px;
    font-weight: 600;
}

/* Evening Afternoon Segment Bar */
.time-segment-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: #F3F4F6;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
}
.segment-btn {
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 700;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    text-align: center;
}
.segment-btn.active {
    background: #FFFFFF;
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.segment-btn span {
    font-size: 10px;
    opacity: 0.7;
    font-weight: 500;
    display: block;
    margin-top: 1px;
}

/* Time Slot grid columns */
.slot-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}
.drawer-slot-pill {
    padding: 12px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #FFFFFF;
    color: var(--text-main);
}
.drawer-slot-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.drawer-slot-pill.selected {
    border-color: var(--primary);
    background: rgba(209, 26, 42, 0.05);
    color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

/* Mint green success notification card */
.mint-success-banner {
    background: #ECFDF5;
    border: 2px solid #A7F3D0;
    border-radius: 12px;
    padding: 16px;
    color: #065F46;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Drawer Actions Footer */
.drawer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #F3F4F6;
    padding-top: 20px;
    margin-top: 20px;
}
.drawer-footer button {
    height: 48px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
}
.btn-drawer-next {
    padding: 0 24px;
}
.btn-drawer-back {
    padding: 0 20px;
}


/* ==========================================================================
   UNIVERSAL MOBILE RESPONSIVE LAYOUT OVERRIDES
   ========================================================================== */

/* Mobile Hamburger Menu styles */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1010;
    padding: 8px;
    border-radius: 8px;
}
.mobile-nav-toggle:hover {
    background: rgba(209, 26, 42, 0.05);
    color: var(--primary);
}

@media (max-width: 768px) {
    /* Header & Navigation */
    .mobile-nav-toggle {
        display: block !important;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #FFFFFF;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
        flex-direction: column !important;
        padding: 100px 30px 40px 30px !important;
        gap: 24px !important;
        z-index: 1005;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        align-items: flex-start !important;
    }
    
    .nav-links.active {
        right: 0 !important;
    }

    #nav-cta-btn {
        display: none !important; /* Hide header CTA button on mobile */
    }
    
    .header-container {
        padding: 0 20px !important;
    }

    /* Grids & Columns */
    .hero-container {
        flex-direction: column !important;
        gap: 40px !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .footer-bottom {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 12px !important;
    }

    .teacher-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    /* Tables horizontal scrolling wrapper */
    .table-container {
        width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin-top: 15px !important;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border-color);
    }
    
    .data-table {
        min-width: 750px !important; /* Prevents text crushing on narrow screens */
    }

    /* Success Page Column adjustments */
    .success-container div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    /* Success Teacher Profile display grid */
    .assigned-coach-card {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
        padding: 20px !important;
    }
    
    .assigned-coach-card img {
        margin: 0 auto !important;
    }
}

@media (max-width: 576px) {
    /* Fonts scale down */
    h1, .hero-title {
        font-size: 32px !important;
        line-height: 1.25 !important;
    }
    
    h2, .section-header h2 {
        font-size: 24px !important;
    }
    
    /* Step Wizard Progress Bar Squeeze prevention */
    .progress-bar-container {
        margin-bottom: 30px !important;
    }
    
    .progress-step {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr !important;
    }
    
    .admin-header-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    
    .table-search {
        width: 100% !important;
    }
    
    .how-step::after {
        content: '↓' !important;
        right: 50% !important;
        top: auto !important;
        bottom: -25px !important;
        transform: translateX(50%) !important;
    }
}

/* Mobile Landing Page Hero Booking Options Override */
.mobile-booking-wrapper {
    display: none !important;
}

@media (max-width: 768px) {
    /* Header compactness */
    .header {
        padding: 6px 0 !important;
    }
    .logo-img {
        height: 38px !important;
    }
    
    /* Hero layout reordering to show booking option above the fold */
    .hero-section-dark {
        padding: 12px 0 25px !important;
    }
    
    .hero-left-col {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .hero-badge {
        display: none !important; /* Hide badge to save vertical space */
    }
    
    .hero-headline {
        order: 1 !important;
        font-size: 22px !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
        text-align: center !important;
    }
    
    .hero-headline span {
        display: inline-block;
    }
    
    .mobile-booking-wrapper {
        order: 2 !important;
        display: block !important;
        margin-bottom: 15px !important;
    }
    
    .mobile-booking-card {
        padding: 14px !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        border: 1px solid rgba(209, 26, 42, 0.15) !important;
        box-shadow: 0 4px 20px rgba(209, 26, 42, 0.08) !important;
    }
    
    .mobile-booking-card h3 {
        font-size: 13px !important;
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
    }
    
    .mobile-booking-card label {
        font-size: 9px !important;
        margin-bottom: 4px !important;
    }
    
    .mobile-booking-card .form-control-chess {
        height: 38px !important;
        font-size: 12px !important;
        padding: 0 10px !important;
    }
    
    .mobile-booking-card .btn-gold {
        height: 38px !important;
        font-size: 13px !important;
        border-radius: 6px !important;
    }
    
    .hero-subheading {
        order: 3 !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }
    
    .hero-checklist {
        order: 4 !important;
        margin: 0 auto 24px auto !important;
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 420px !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        list-style: none !important;
    }
    
    .hero-checklist li {
        display: inline-flex !important;
        align-items: center !important;
        background: #ffffff !important;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
        color: #334155 !important;
        padding: 8px 14px !important;
        border-radius: 50px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 0.3px !important;
        white-space: nowrap !important;
        gap: 8px !important;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .hero-checklist li:hover {
        background: #ffffff !important;
        border-color: rgba(209, 26, 42, 0.25) !important;
        color: var(--primary-blue) !important;
        box-shadow: 0 4px 12px rgba(209, 26, 42, 0.08) !important;
        transform: translateY(-2px) scale(1.02) !important;
    }
    
    .hero-checklist li i {
        margin-top: 0 !important;
        font-size: 12px !important;
        color: var(--primary-blue) !important;
        filter: drop-shadow(0 1px 2px rgba(209, 26, 42, 0.2)) !important;
    }
    
    .hero-cta-pack {
        order: 5 !important;
        justify-content: center !important;
        gap: 10px !important;
    }
    
    .hero-cta-pack .btn {
        font-size: 13px !important;
        padding: 10px 16px !important;
    }

    .desktop-booking-card {
        display: none !important;
    }
    .animated-chess-graphic {
        display: none !important;
    }
    .btn-hero-demo-desktop {
        display: none !important;
    }
    .hero-right-col {
        display: none !important;
    }
    .section-padding-chess {
        padding: 35px 0 !important;
    }
}

/* Google Reviews Badge Hover Styles */
.google-reviews-badge-link {
    transition: all 0.3s ease;
}
.google-reviews-badge-link:hover .reviews-badge-container {
    background: rgba(209, 26, 42, 0.06) !important;
    border-color: rgba(209, 26, 42, 0.25) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 15px rgba(209, 26, 42, 0.06);
}

/* ==========================================================================
   STUDENT ACHIEVEMENTS & ACADEMY GALLERY STYLES
   ========================================================================== */

/* Section title with premium styling */
.section-title-gold {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 36px;
    color: #111827;
    text-align: center;
    margin-bottom: 12px;
}
.section-title-gold span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-sub-chess {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

/* Student Achievements Section */
.students-grid-chess {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.student-card-chess {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.student-card-chess:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(209, 26, 42, 0.08);
    border-color: rgba(209, 26, 42, 0.15);
}

.student-img-wrapper {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 280px;
    margin-bottom: 20px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.student-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.student-card-chess:hover .student-img-wrapper img {
    transform: scale(1.05);
}

.student-country-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.student-country-badge i {
    color: #FFD700; /* gold star icon / medal */
}

.student-name-chess {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.student-title-chess {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.student-desc-chess {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: auto;
    font-style: italic;
    border-top: 1px solid rgba(209, 26, 42, 0.05);
    padding-top: 12px;
}

/* Academy Gallery Section */
.gallery-grid-chess {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.gallery-card-chess {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 200px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    background: #e5e7eb;
}

.gallery-card-chess img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card-chess:hover img {
    transform: scale(1.08);
}

.gallery-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(209, 26, 42, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card-chess:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-overlay i {
    color: #ffffff;
    font-size: 24px;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-card-chess:hover .gallery-card-overlay i {
    transform: scale(1);
}

/* Lightbox Modal */
.lightbox-modal-chess {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal-chess.active {
    display: flex;
    opacity: 1;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img-chess {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-modal-chess.active .lightbox-img-chess {
    transform: scale(1);
}

.lightbox-close-chess {
    position: absolute;
    top: -45px;
    right: 0;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close-chess:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.lightbox-caption-chess {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 15px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .students-grid-chess {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .gallery-grid-chess {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .gallery-card-chess {
        height: 140px;
    }
    
    .section-title-gold {
        font-size: 28px;
    }
    
    .lightbox-close-chess {
        top: 15px;
        right: 15px;
    }
}


