/* ========== dance-in.EU - Shared Styles ========== */
:root {
    /* Royal Blue (primary) + Rotten Cherry (secondary) theme */
    --primary: #4169E1;
    --primary-dark: #2E4FC4;
    --primary-light: #7B93EB;
    --secondary: #8E2434;
    --secondary-dark: #6E1A28;
    --accent: #C9A227;
    --success: #10B981;
    --error: #EF4444;
    --warning: #C9A227;
    --bg: #0B1020;
    --bg-secondary: #121A2E;
    --bg-card: #152038;
    --bg-elevated: #1C2740;
    --text: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #6B7A93;
    --border: #2E3C56;
    --border-light: #1C2740;
    --surface-hover: rgba(65, 105, 225, 0.12);
    --gradient-primary: linear-gradient(135deg, #4169E1, #8E2434);
    --gradient-warm: linear-gradient(135deg, #C9A227, #8E2434);
    --gradient-cool: linear-gradient(135deg, #4169E1, #7B93EB);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-brand i {
    -webkit-text-fill-color: var(--primary);
    font-size: 24px;
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text);
    background: var(--surface-hover);
}

.nav-links a.active {
    background: rgba(65, 105, 225, 0.15);
    color: var(--primary-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-role-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: rgba(65, 105, 225, 0.15);
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== BUTTONS ========== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: var(--primary); }

.btn-sm { padding: 6px 12px; font-size: 12px; }

.btn-accent {
    background: var(--gradient-warm);
    color: white;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-top: 64px;
    min-height: calc(100vh - 64px);
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1504609813442-a8924e83f76e?w=1920&q=80') center/cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15,15,26,0.4), rgba(15,15,26,0.95));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 24px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== SECTIONS ========== */
.section {
    padding: 80px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
}

/* ========== FILTERS ========== */
.filters-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.filter-select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 8px 12px;
    font-size: 13px;
    min-width: 160px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.filter-tag:hover, .filter-tag.active {
    background: rgba(65, 105, 225, 0.15);
    border-color: var(--primary);
    color: var(--primary-light);
}

/* ========== CARDS ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22,33,62,0.9), transparent);
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    background: var(--primary);
    color: white;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 13px;
}

.card-meta i { color: var(--primary-light); }

.card-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

/* ========== SCHOOL CARDS ========== */
.school-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.school-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.school-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.school-info { flex: 1; }
.school-info h3 { font-size: 18px; margin-bottom: 6px; }

.school-styles {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.style-chip {
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    background: rgba(65, 105, 225, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(65, 105, 225, 0.2);
}

/* ========== PRODUCTS / SHOP ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: var(--secondary);
}

.product-image {
    height: 240px;
    background-size: cover;
    background-position: center;
}

.product-body { padding: 16px; }

.product-category {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin: 6px 0;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

/* ========== INSTRUCTOR CARDS ========== */
.instructor-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.instructor-card:hover { border-color: var(--primary); }

.instructor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-cool);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.instructor-info { flex: 1; }
.instructor-info h4 { font-size: 15px; margin-bottom: 4px; }
.instructor-info .styles { font-size: 12px; color: var(--text-muted); }

.instructor-slots {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.slot-chip {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ========== MODALS ========== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

.modal h2 {
    font-size: 24px;
    margin-bottom: 8px;
    text-align: center;
}

.modal p {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-card {
    flex: 1;
    min-width: 120px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-card:hover, .radio-card.selected {
    border-color: var(--primary);
    background: rgba(65, 105, 225, 0.1);
}

.radio-card i {
    font-size: 24px;
    color: var(--primary-light);
    margin-bottom: 8px;
    display: block;
}

.radio-card span {
    font-size: 12px;
    font-weight: 600;
}

/* ========== EVENT POPUP ========== */
.event-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.event-popup-overlay.active { display: flex; }

.event-popup {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 600px;
    overflow: hidden;
}

.event-popup-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.event-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-popup-body { padding: 32px; }
.event-popup-body h2 { font-size: 24px; margin-bottom: 16px; }

.event-detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.event-detail-row i { color: var(--primary-light); width: 20px; }

/* ========== SCHEDULE TABLE ========== */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 16px;
}

.schedule-table th {
    text-align: left;
    padding: 12px;
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.schedule-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.schedule-table tr:hover td {
    background: var(--surface-hover);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 24px 30px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--primary-light); }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}

.footer-bottom a { color: var(--primary-light); }

/* ========== STATS GRID ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.stat-card {
    text-align: center;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
}

.stat-label {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

/* ========== SUBSCRIPTION PLANS ========== */
.plans-section {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.plan-card {
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
}

.plan-card.featured { border: 2px solid var(--primary); position: relative; }

.plan-card .badge-popular {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
}

.plan-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.plan-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    margin: 8px 0;
}

.plan-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== RESPONSIVE ========== */
/* Hamburger toggle — hidden on desktop, shown on phone/tablet via media query */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 18px;
    width: 40px;
    height: 36px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.nav-toggle:hover { border-color: var(--primary); color: var(--primary-light); }

/* Full-screen overlay behind the open mobile menu — blocks taps to the page
   content underneath so only the menu (or tapping away to close) is active. */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 64px 0 0 0;         /* start below the fixed top bar */
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;              /* under the navbar (1000) + menu (999), over content */
}
.nav-overlay.show { display: block; }

@media (max-width: 768px) {
    /* Top bar shows only: brand (left) + hamburger (right). Everything else
       moves into the dropdown panel so the bar never overflows. */
    .navbar { padding: 0 16px; justify-content: space-between; }
    .nav-brand { flex: 1; min-width: 0; }
    .nav-toggle { display: inline-flex; flex-shrink: 0; margin-left: 12px; }

    /* The links become a solid, opaque panel anchored just below the top bar. */
    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 8px 12px 14px;
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.3s ease, opacity 0.2s ease;
    }
    .nav-links.open {
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links a {
        padding: 13px 12px;
        border-radius: var(--radius-sm);
        font-size: 15px;
    }

    /* The actions cluster is moved by JS to the bottom of the dropdown panel
       on mobile. When it lives inside .nav-links, stack it full-width. */
    .nav-links .nav-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }
    .nav-links .nav-actions .btn { width: 100%; justify-content: center; }
    .nav-links .nav-actions .nav-role-badge { align-self: flex-start; }
    .nav-links .nav-user,
    .nav-links .nav-user-menu { position: static; width: 100%; }
    .nav-links .nav-user-menu { box-shadow: none; border: 1px solid var(--border); margin-top: 8px; }

    .hero h1 { font-size: 36px; }
    .cards-grid { grid-template-columns: 1fr; }
    .school-card { flex-direction: column; align-items: center; text-align: center; }
    .filters-bar { flex-direction: column; }
    .instructor-card { flex-direction: column; text-align: center; }
}

/* ========== TOAST NOTIFICATIONS ========== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    color: var(--text);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.toast.show { transform: translateX(0); opacity: 1; }
.toast.hide { transform: translateX(120%); opacity: 0; }

.toast-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

.toast-body { flex: 1; min-width: 0; }
.toast-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.toast-message { font-size: 13px; color: var(--text-secondary); line-height: 1.45; }

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s;
}
.toast-close:hover { color: var(--text); }

/* Variants */
.toast.toast-success { border-left-color: var(--success); }
.toast.toast-success .toast-icon { background: var(--success); }

.toast.toast-error { border-left-color: var(--error); }
.toast.toast-error .toast-icon { background: var(--error); }

.toast.toast-info { border-left-color: var(--primary); }
.toast.toast-info .toast-icon { background: var(--gradient-primary); }

@media (max-width: 480px) {
    .toast-container { left: 16px; right: 16px; top: 16px; max-width: none; }
}

/* ========== CONFIRM DIALOG ========== */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 3100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.confirm-overlay.show { opacity: 1; }

.confirm-dialog {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.confirm-overlay.show .confirm-dialog { transform: scale(1); }

.confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}
.confirm-icon.danger  { background: var(--error); }
.confirm-icon.primary { background: var(--gradient-primary); }
.confirm-icon.success { background: var(--success); }
.confirm-icon.warning { background: var(--warning); }

.confirm-dialog h3 { font-size: 20px; margin-bottom: 8px; color: var(--text); }
.confirm-dialog p { color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; }

.confirm-actions { display: flex; gap: 12px; }
.confirm-actions .btn { flex: 1; justify-content: center; }

.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: #dc2626; }

/* ========== NAVBAR USER MENU ========== */
.nav-user { position: relative; }

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s;
}
.nav-user-btn:hover { border-color: var(--primary); }
.nav-user-btn i.fa-user-circle { font-size: 18px; color: var(--primary-light); }
.nav-user-caret { font-size: 11px; color: var(--text-muted); transition: transform 0.2s; }
.nav-user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1100;
}
.nav-user-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-user-email {
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-family: var(--font-sans);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}
.nav-user-item:hover { background: var(--surface-hover); color: var(--text); }
.nav-user-item i { width: 16px; color: var(--primary-light); }

/* ========== MY SCHOOL MANAGEMENT PAGE ========== */
.manage-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
}
.manage-notice i { font-size: 20px; color: var(--primary-light); }
.manage-notice p { margin: 0; }

.franchise-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-light);
    margin: 12px 0 2px;
}

.school-actions { display: flex; align-items: center; gap: 8px; }

.role-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    vertical-align: middle;
    margin-left: 6px;
}
.role-tag.owner  { background: rgba(16,185,129,0.15); color: var(--success); }
.role-tag.editor { background: rgba(65,105,225,0.15); color: var(--primary-light); }
.role-tag.admin  { background: rgba(201,162,39,0.15); color: var(--accent); border: 1px solid rgba(201,162,39,0.45); }

/* Form helpers */
.form-row { display: flex; gap: 12px; }
.label-hint { font-size: 11px; color: var(--text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* Logo upload */
.logo-upload { display: flex; align-items: center; gap: 16px; }
.logo-preview {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 22px;
    background-position: center;
    background-size: cover;
}
.logo-preview.has-image { border-style: solid; border-color: var(--primary); }
.logo-hint { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* Delegate rows */
.delegate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    word-break: break-all;
}

/* ========== INSTRUCTOR MANAGEMENT ROWS ========== */
.instr-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.instr-photo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--bg-elevated);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.instr-info { flex: 1; min-width: 0; }
.instr-actions { display: flex; gap: 6px; }

/* ========== LANGUAGE TOGGLE ========== */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s;
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary-light); }
.lang-toggle i { color: var(--primary-light); }

/* ========== SELECTABLE STYLE CHIPS (class form multi-select) ========== */
.style-select {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.style-option {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.style-option:hover { border-color: var(--primary); }
.style-option.selected {
    background: rgba(65, 105, 225, 0.15);
    border-color: var(--primary);
    color: var(--primary-light);
}
.style-option.selected::before {
    content: "\f00c"; /* fa-check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 6px;
    font-size: 11px;
}

/* ========== PRICING MANAGEMENT ROWS ========== */
.pricing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.pricing-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}
.pricing-toggle input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }

/* ========== PROFILE PAGE ========== */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: start;
}
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.profile-card h3 {
    font-size: 17px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.profile-card h3 i { color: var(--primary-light); }
.profile-card .form-input:disabled { opacity: 0.65; cursor: not-allowed; }

/* ========== PARTICIPANTS — DANCE ROLE TAGS ========== */
.participants-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 10px;
}
.dance-role-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    margin-left: 6px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    background: var(--bg-elevated);
    vertical-align: middle;
}
.participants-summary .dance-role-tag { margin-left: 0; font-size: 12px; padding: 4px 10px; }
.dance-role-tag.leader   { color: var(--primary-light); border-color: rgba(65, 105, 225, 0.45); background: rgba(65, 105, 225, 0.12); }
.dance-role-tag.follower { color: #E8A0AC; border-color: rgba(142, 36, 52, 0.6); background: rgba(142, 36, 52, 0.18); }
.dance-role-tag.both     { color: var(--accent); border-color: rgba(201, 162, 39, 0.45); background: rgba(201, 162, 39, 0.12); }
.dance-role-tag.beginner { color: var(--success); border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.1); }

/* ========== SOCIAL SIGN-IN ========== */
.social-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 13px;
}
.social-divider::before,
.social-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--border);
}
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border);
}
/* Google branding guidelines (light theme): white fill, #747775 stroke,
   #1F1F1F text, the standard multicolour "G" mark. */
.btn-google {
    background: #FFFFFF;
    color: #1F1F1F;
    border-color: #747775;
}
.btn-google:hover { background: #F2F2F2; border-color: #747775; }
.btn-google:focus-visible { outline: 2px solid #4285F4; outline-offset: 2px; }
.social-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}
.btn-apple {
    background: var(--bg-elevated);
    color: var(--text);
}
.btn-apple:hover { border-color: var(--text-secondary); background: rgba(255,255,255,0.05); }

/* ========== SUPER ADMIN CONSOLE ========== */
.sa-card { max-width: 440px; margin: 0 auto; }

/* Authenticator-app (TOTP) setup: QR on a white tile, monospace key/link */
.mfa-qr:empty { display: none; }
.mfa-qr {
    width: 200px;
    max-width: 100%;
    margin: 0 auto 16px;
    padding: 8px;
    background: #fff;
    border-radius: 8px;
}
.mfa-qr svg { display: block; width: 100%; height: auto; }
.mfa-secret { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.sa-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.sa-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.sa-filter { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-secondary); }
.sa-filter-search { min-width: 240px; }
.sa-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sa-count { font-size: 14px; color: var(--text-secondary); margin: 4px 0; }
.sa-note { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.sa-note i { color: var(--primary-light); margin-right: 4px; }
.sa-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}
.sa-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 14px; }
.sa-table th, .sa-table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}
.sa-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: var(--bg-elevated);
    white-space: nowrap;
}
.sa-table tbody tr:last-child td { border-bottom: none; }
.sa-table tbody tr:hover { background: var(--surface-hover); }
.sa-email { word-break: break-all; }
.sa-role-edit { display: flex; gap: 6px; align-items: center; }
.sa-role-edit .filter-select { padding: 6px 10px; }
.sa-table .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.sa-empty { text-align: center; color: var(--text-muted); padding: 24px; }
.sa-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    white-space: nowrap;
}
.sa-tag-super { color: var(--accent); border-color: rgba(201, 162, 39, 0.45); background: rgba(201, 162, 39, 0.12); }
.sa-tag-off { color: var(--error); border-color: rgba(239, 68, 68, 0.45); background: rgba(239, 68, 68, 0.1); }
.sa-tag-pending { color: var(--primary-light); border-color: rgba(65, 105, 225, 0.45); background: rgba(65, 105, 225, 0.12); }
/* Pending approvals (School Rep / Vendor sign-ups) */
.sa-pending { margin-bottom: 24px; }
.sa-pending h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 10px; }
.sa-pending .btn { margin: 2px 4px 2px 0; }
.sa-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 24px; height: 24px; padding: 0 8px; border-radius: 12px;
    font-size: 12px; font-weight: 700; background: var(--primary); color: #fff;
}
.pending-notice { margin-bottom: 20px; }
@media (max-width: 600px) {
    .sa-filter-search { min-width: 0; flex: 1 1 100%; }
    .sa-filters { width: 100%; }
}
