/* ==========================================================================
   PILATES G - PREMIUM DESIGN SYSTEM & CUSTOM CSS
   ========================================================================== */

/* 1. Global Reset & Theme Variables */
:root {
    --primary-color: #5B50E4;       /* Momence Periwinkle Purple (Main brand color) */
    --primary-light: #8177F0;       /* Soft Lavender */
    --primary-dark: #211E4E;        /* Deep Indigo */
    --accent-color: #5B50E4;        /* Highlight Purple */
    --accent-light: #EDEAFF;        /* Pale Lavender */
    
    --bg-base: #F5F4FF;             /* Lavender-tinted Canvas */
    --bg-surface: #FFFFFF;
    --bg-dark: #1B1A2E;             /* Dark Periwinkle / Deep Indigo */
    
    --text-main: #1B1A2E;           /* Ink Deep Indigo */
    --text-muted: #6B6A80;          /* Muted Indigo Gray */
    --text-white: #FFFFFF;
    
    --border-color: #E7E5F5;        /* Soft Lavender Border */
    --shadow-soft: 0 8px 30px rgba(45, 40, 110, 0.06);
    --shadow-medium: 0 12px 40px rgba(91, 80, 228, 0.14);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', 'Noto Sans KR', sans-serif;
    word-break: keep-all;
    overflow-wrap: break-word;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* 2. Top Simulator Controller */
#simulator-controller {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

#simulator-controller .sim-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: var(--primary-light);
}

#simulator-controller .sim-roles {
    display: flex;
    gap: 8px;
}

.sim-role-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #C1C9C4;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.sim-role-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
}

.sim-role-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-light);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(95, 116, 100, 0.4);
}

/* 3. Main Layout Workspace */
.workspace-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.role-view {
    display: none !important;
    width: 100%;
    animation: fadeIn 0.4s ease-out forwards;
}

.role-view.active {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 4. Common Components & Cards */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: var(--shadow-medium);
}

.glassmorphism-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Inputs & Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-input, .custom-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: #FAF9F6;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.custom-input:focus, .custom-select:focus {
    border-color: var(--primary-color);
    background-color: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(95, 116, 100, 0.15);
}

input[type="date"].custom-input,
input[type="time"].custom-input {
    padding: 12px 10px;
    font-size: 0.85rem;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .col {
    flex: 1;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    outline: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(95, 116, 100, 0.25);
}

.btn-secondary {
    background-color: #ECEEEA;
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: #E0E3DF;
}

.btn-danger {
    background-color: #E63946;
    color: var(--text-white);
}

.btn-danger:hover {
    background-color: #C1121F;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   5. MEMBER VIEW: PHONE FRAME (KakaoTalk In-App Simulator)
   ========================================================================== */
#view-member {
    padding: 30px 0;
    justify-content: center;
    align-items: center;
}

#view-member.active {
    display: flex !important;
}

.phone-frame {
    width: 375px;
    height: 780px;
    background: #111;
    border-radius: 48px;
    padding: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), 0 0 0 4px #2b2b2b;
    position: relative;
    border: 4px solid #333;
}

.phone-notch {
    width: 120px;
    height: 24px;
    background: #111;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-base);
    border-radius: 38px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Kakao In-app Header styling */
.kakao-header {
    background: #FFFFFF;
    padding: 24px 16px 10px 16px; /* Extra padding top for notch spacing */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.kakao-header .left-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kakao-header .close-btn {
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
}

.kakao-header .domain-info {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.kakao-header .right-actions {
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
}

/* In-App Browser Body */
.app-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

/* Sub Screens inside App Body */
.member-sub-screen {
    display: none;
    flex-direction: column;
    width: 100%;
    animation: fadeIn 0.3s ease-out;
}

.member-sub-screen.active {
    display: flex;
}

/* Setup/Auth Brand styling */
.brand-hero {
    text-align: center;
    padding: 40px 0 20px 0;
}

.brand-hero .logo-text {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary-dark);
}

.brand-hero .logo-text span {
    color: var(--accent-color);
}

.brand-hero .sub-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.auth-card {
    margin-top: 20px;
}

.auth-card h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    font-weight: 700;
    text-align: center;
}

.auth-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

/* Member Main Dashboard */
.member-summary {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    box-shadow: 0 6px 15px rgba(95, 116, 100, 0.25);
}

.member-summary .user-info {
    display: flex;
    flex-direction: column;
}

.member-summary .user-center {
    font-size: 0.7rem;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
    width: max-content;
    margin-bottom: 4px;
    font-weight: 600;
}

.member-summary .user-name {
    font-size: 1.05rem;
    font-weight: 400;
}

.member-summary .user-name strong {
    font-weight: 700;
}

.member-summary .user-passes {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.member-summary .user-passes .label {
    font-size: 0.75rem;
    color: #DFE5E1;
}

.member-summary .user-passes .count {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-light);
}

/* Tabs - Bottom Navigation for Member Booking */
#member-booking-screen {
    padding-bottom: 72px; /* Prevent content from being hidden behind bottom tabs */
}

.member-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-top: 1px solid var(--border-color);
    padding: 8px 16px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin-bottom: 0;
    border-radius: 0;
    z-index: 100;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.04);
}

.member-tabs .tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 6px 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.member-tabs .tab-btn i {
    font-size: 1.15rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.member-tabs .tab-btn.active {
    background: none;
    color: var(--primary-color);
    box-shadow: none;
}

.member-tabs .tab-btn.active i {
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

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

/* Monthly Calendar styling */
.calendar-container {
    padding: 16px;
    margin-bottom: 16px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.calendar-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.cal-nav-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.cal-nav-btn:hover {
    background-color: #ECEEEA;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 8px;
}

.day-lbl {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
}

.calendar-days span:first-child,
.cal-day.sunday {
    color: #EF4444;
}

.calendar-days span:last-child,
.cal-day.saturday {
    color: #3B82F6;
}

.cal-day.other-month.sunday,
.cal-day.other-month.saturday {
    color: #CFD3CF !important;
}

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

.cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.cal-day:hover {
    background-color: #ECEEEA;
}

.cal-day.other-month {
    color: #CFD3CF;
    pointer-events: none;
}

.cal-day.has-class::after {
    content: '';
    position: absolute;
    bottom: 3px;
    width: 10px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.cal-day.selected {
    background-color: var(--primary-color) !important;
    color: var(--text-white) !important;
    font-weight: 700;
}

.cal-day.selected::after {
    background-color: var(--text-white);
}

/* Sections & Class cards */
.section-title {
    margin-bottom: 12px;
}

.section-title h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.class-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.class-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.class-card.booked {
    border-left: 4px solid var(--primary-color);
}

.class-card.waiting {
    border-left: 4px solid #E67E22;
    background-color: #FFFDF9;
}

.class-card.ended {
    opacity: 0.65;
    background-color: #F8F9F8;
}

.class-card .class-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.class-card .class-time-instructor {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.class-card .class-time-instructor span.instructor {
    color: var(--text-muted);
    font-weight: 400;
}

.class-card .class-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.class-card .class-capacity {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.class-card .class-capacity span.available-count {
    font-weight: 700;
    color: var(--text-main);
}

.class-btn-area {
    margin-left: 12px;
}

.class-btn-area .btn-booking {
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-booking.btn-status-book {
    background-color: var(--primary-color);
    color: var(--text-white);
    border: 1px solid var(--primary-color);
}

.btn-booking.btn-status-book:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-booking.btn-status-booked {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-booking.btn-status-booked:hover {
    background-color: rgba(95, 116, 100, 0.08);
}

.btn-booking.btn-status-waiting-apply {
    background-color: var(--accent-color);
    color: var(--text-white);
    border: 1px solid var(--accent-color);
}

.btn-booking.btn-status-waiting-apply:hover {
    background-color: #C09262;
    border-color: #C09262;
}

.btn-booking.btn-status-waiting-cancel {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-booking.btn-status-waiting-cancel:hover {
    background-color: rgba(212, 163, 115, 0.08);
}

.btn-booking.btn-status-cantcancel,
.btn-booking.btn-status-ended {
    background-color: #ECEEEA;
    color: #A6AEA9;
    border: 1px solid #ECEEEA;
    cursor: not-allowed;
}

/* History Card */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-card .date-badge {
    background-color: #ECEEEA;
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    min-width: 60px;
}

.history-card .date-badge .month {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.history-card .date-badge .day {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.history-card .booking-details {
    flex: 1;
    margin-left: 16px;
}

.history-card .booking-details .time {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.history-card .booking-details .title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 2px 0;
}

.history-card .booking-details .instructor {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.no-data {
    text-align: center;
    padding: 36px 20px;
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
    margin: 12px 0 24px 0;
}

.no-data i {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: var(--primary-light);
    opacity: 0.6;
    display: block;
}

.no-data .no-data-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.no-data .no-data-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   6. CENTER ADMIN VIEW STYLING
   ========================================================================== */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 58px);
    background-color: #F3F4F1;
}

/* Admin Sidebar */
.admin-sidebar {
    width: 260px;
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 24px 24px 16px 24px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 58px);
    position: sticky;
    top: 58px;
    justify-content: space-between;
}

.sidebar-fixed-footer {
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
    background-color: var(--bg-dark);
    margin-top: auto;
    width: 100%;
}

.admin-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 16px;
}

.admin-brand .admin-brand-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-brand i {
    color: var(--accent-light);
}

/* PC Default: Hide mobile mini logout button to preserve PC sidebar 1-line layout */
.btn-logout-mini {
    display: none !important;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
    margin-left: 8px;
}

.btn-logout-mini:hover {
    background: rgba(239, 68, 68, 0.85);
    border-color: #EF4444;
}

.admin-center-selector-box {
    margin-bottom: 24px;
    background: rgba(255,255,255,0.04);
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.08);
}

.admin-center-selector-box label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #8E9F92;
    margin-bottom: 6px;
    font-weight: 700;
}

.admin-center-selector-box select {
    background: #2D3531;
    color: white;
    border: 1px solid #3F4F43;
}

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

.admin-nav .nav-item {
    background: none;
    border: none;
    text-align: left;
    color: #A3ACA7;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
}

.admin-nav .nav-item:hover {
    background: rgba(255,255,255,0.03);
    color: white;
}

.admin-nav .nav-item.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(95, 116, 100, 0.3);
}

/* Admin Grid Layout */
.admin-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
}

/* Admin Main Content */
.admin-main {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 16px;
}

.admin-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.admin-user-profile i {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.admin-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

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

.admin-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 24px;
    align-items: start;
}

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    text-align: left;
}

.admin-table th {
    background-color: #FAF9F6;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-main);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background-color: #FAF9F6;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

/* Action Chips and Badges */
.badge-count {
    display: inline-block;
    background: #EDEAFF;
    color: var(--primary-color);
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.badge-count.full {
    background: #FEE2E2;
    color: #EF4444;
}

.member-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 300px;
}

.member-pill {
    background: #F0EEFF;
    color: var(--text-main);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid #E2DFFF;
}

/* Modifier controls inside tables */
.pass-modifier {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pass-modifier input {
    width: 60px;
    text-align: center;
    padding: 4px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-header-flex .desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Day selector chips for class creation */
.day-chip-group {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    margin-bottom: 12px;
}

.day-chip {
    flex: 1;
    position: relative;
    cursor: pointer;
    margin: 0 !important;
}

.day-chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.day-chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    user-select: none;
}

.day-chip:hover span {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.day-chip input[type="checkbox"]:checked + span {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(95, 116, 100, 0.3);
}

/* ==========================================================================
   7. SUPER ADMIN VIEW STYLING
   ========================================================================== */
.super-layout {
    max-width: 1440px;
    margin: 30px auto;
    padding: 0 24px;
    box-sizing: border-box;
    width: 100%;
}

.super-header {
    margin-bottom: 24px;
}

.super-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.super-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.super-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.super-grid > .card {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Super admin table visual helper */
#super-center-table-body td {
    padding: 12px 16px;
    vertical-align: middle;
}
.admin-table th {
    white-space: nowrap;
}

/* ==========================================================================
   8. TOAST NOTIFICATIONS
   ========================================================================== */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 250px;
    transform: translateY(20px);
    opacity: 0;
    animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast.success {
    border-left: 4px solid var(--primary-color);
}

.toast.error {
    border-left: 4px solid #E63946;
}

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

.toast-icon {
    font-size: 1.1rem;
}

.toast.success .toast-icon { color: var(--accent-light); }
.toast.error .toast-icon { color: #E63946; }

/* Responsive adjustments */
@media(max-width: 900px) {
    /* Simulator Controller */
    #simulator-controller {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
        text-align: center;
    }
    
    #simulator-controller .sim-roles {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .sim-role-btn {
        padding: 6px 12px;
        font-size: 0.78rem;
    }

    /* Center Admin Layout - Mobile Streamlined & Touch Optimized */
    body.standalone-mode {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .role-view {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .admin-layout {
        flex-direction: column;
        margin-top: 0 !important;
    }
    
    .admin-sidebar {
        width: 100%;
        padding: 8px 14px 8px 14px !important;
        margin-top: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        height: auto;
        position: relative;
        top: 0 !important;
        background: var(--bg-dark);
    }

    .sidebar-fixed-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 10px 14px;
        background: rgba(27, 26, 46, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        z-index: 999;
        margin: 0;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
    }

    .sidebar-fixed-footer .btn {
        height: 42px;
        font-size: 0.84rem !important;
        border-radius: var(--radius-sm) !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .admin-brand {
        margin-bottom: 8px;
        padding-bottom: 4px;
        justify-content: space-between;
        font-size: 1.05rem;
    }
    
    .btn-logout-mini {
        display: inline-flex !important;
    }
    
    .admin-center-selector-box {
        margin-bottom: 8px;
        padding: 6px 10px;
    }

    .admin-center-selector-box label {
        font-size: 0.68rem;
        margin-bottom: 2px;
    }
    
    /* Horizontal Scrolling Touch Tab Bar */
    .admin-nav {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 6px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .admin-nav::-webkit-scrollbar {
        display: none;
    }
    
    .admin-nav .nav-item {
        flex: 0 0 auto !important;
        white-space: nowrap;
        padding: 9px 12px;
        justify-content: center;
        font-size: 0.8rem;
        border-radius: var(--radius-sm);
    }
    
/* PC & Mobile Integrated 1-Line Clean Header Banner */
.admin-single-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-surface);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    margin-top: -14px;
    margin-bottom: 6px;
    width: 100%;
    box-sizing: border-box;
}

.admin-single-header .single-header-center {
    font-size: 1.32rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}

.admin-single-header .single-header-divider {
    color: #D1D5DB;
    font-size: 1rem;
    font-weight: 300;
}

.admin-single-header .single-header-tab {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    background: #EDEAFF;
    padding: 4px 12px;
    border-radius: 50px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    #view-admin, .admin-layout {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .admin-single-header {
        display: none !important;
    }

    .admin-single-header .single-header-divider {
        display: none;
    }

    .admin-single-header .single-header-tab {
        font-size: 0.75rem;
        padding: 3px 10px;
        margin-left: auto;
    }

    .admin-main {
        padding: 14px 14px 110px 14px;
        width: 100%;
        box-sizing: border-box;
    }
}

    .admin-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
        width: 100%;
    }

    .admin-left-col {
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .admin-form-card, .admin-list-card {
        padding: 16px 14px !important;
        box-sizing: border-box;
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 8px;
    }

    /* Day Chip Group Mobile Fitting */
    .day-chip-group {
        gap: 3px !important;
    }

    .day-chip span {
        padding: 6px 0 !important;
        font-size: 0.75rem !important;
    }

    /* Timetable Top Bar Mobile Optimization */
    .timetable-top-bar {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .timetable-top-bar h3 {
        font-size: 1.05rem;
        margin: 0;
        text-align: center;
    }

    .week-nav {
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        align-items: center !important;
        width: 100% !important;
        gap: 6px !important;
    }

    .week-nav button {
        padding: 7px 10px !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
    }

    #timetable-week-range {
        font-size: 0.78rem !important;
        margin: 0 !important;
        width: 100%;
        text-align: center;
        padding: 6px 4px;
        background: #FAF9F6;
        border-radius: 6px;
        border: 1px solid var(--border-color);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Responsive Table Wrapper Touch Support */
    .table-responsive {
        width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-sm);
        box-shadow: inset -6px 0 8px -6px rgba(0,0,0,0.12);
        margin-top: 6px;
    }

    .admin-table {
        min-width: 520px;
    }

    .admin-table th, .admin-table td {
        padding: 10px 12px !important;
        font-size: 0.8rem !important;
    }

    /* Timetable board column stacking for mobile */
    .weekly-timetable-board {
        grid-template-columns: 1fr !important;
        min-width: 0 !important;
        gap: 10px;
    }
    
    .weekly-day-col {
        min-height: auto !important;
        border-radius: var(--radius-sm);
        padding: 8px;
    }

    /* Super Admin / Developer View */
    .super-layout {
        margin: 16px auto;
        padding: 0 12px;
    }
    
    .super-header h2 {
        font-size: 1.3rem;
    }
    
    .super-header p {
        font-size: 0.8rem;
    }
    
    .super-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* ==========================================================================
   9. STANDALONE ISOLATION MODE (URL DIRECT LINK)
   ========================================================================== */
body.standalone-mode {
    background-color: var(--bg-base);
}

body.standalone-mode #simulator-controller {
    display: none !important;
}

body.standalone-mode .workspace-container {
    padding: 0 !important;
    align-items: stretch;
    height: 100vh;
}

body.standalone-mode #view-member {
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: 100vh;
    width: 100%;
}

body.standalone-mode #view-member .phone-frame {
    width: 100% !important;
    max-width: 500px; /* Mobile width container but full-height */
    height: 100vh !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

body.standalone-mode #view-member .phone-notch {
    display: none !important;
}

body.standalone-mode #view-member .phone-screen {
    border-radius: 0 !important;
}

body.standalone-mode #view-member .kakao-header {
    display: none !important;
}

body.standalone-mode .admin-layout {
    min-height: 100vh;
}

/* Copy Link Info Area in Super Admin View */
.link-copy-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #FAF9F6;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.link-text {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--primary-dark);
    word-break: break-all;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #ECEEEA;
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-copy {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-copy:hover {
    background: var(--primary-dark);
}

/* ==========================================================================
   10. WEEKLY TIMETABLE BOARD STYLE (FOR CENTER ADMIN)
   ========================================================================== */
.weekly-timetable-board {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    width: 100%;
    min-width: 900px; /* Force minimum width to prevent vertical squishing */
    overflow-x: auto;
    padding: 4px;
    align-items: stretch;
}

.weekly-day-col {
    background: #FAF9F6;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 480px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.01);
}

.weekly-day-col.today-col {
    border: 2px solid var(--primary-color);
    background: #F3F6F4;
}

.weekly-day-header {
    text-align: center;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 8px;
    font-size: 0.8rem;
    color: var(--primary-dark);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.weekly-day-header .day-name {
    font-weight: 700;
    font-size: 0.88rem;
}

.weekly-day-header .day-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.weekly-day-col.today-col .weekly-day-header .day-name {
    color: var(--primary-dark);
}

.weekly-class-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.weekly-class-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition-smooth);
}

.weekly-class-card:hover {
    box-shadow: 0 6px 16px rgba(95, 116, 100, 0.12);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.weekly-class-card.full-card {
    border-left: 3px solid #EF4444;
}

.weekly-class-card.booked-card {
    border-left: 3px solid var(--primary-color);
}

.weekly-class-time {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.weekly-class-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    margin-top: 1px;
}

.weekly-class-instructor {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.weekly-class-capacity {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.weekly-class-capacity .booked-count {
    font-weight: 700;
    color: var(--text-main);
}

.weekly-class-card.full-card .weekly-class-capacity .booked-count {
    color: #EF4444;
}

.weekly-class-reservists {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 4px;
    border-top: 1px dashed var(--border-color);
    padding-top: 4px;
}

.weekly-class-reservists .reservist-pill {
    background: #EBECE8;
    color: var(--text-main);
    font-size: 0.62rem;
    padding: 1px 4px;
    border-radius: 4px;
    border: 1px solid #D5D7D3;
}

.weekly-class-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    background: none;
    color: #CFD3CF;
    cursor: pointer;
    font-size: 0.72rem;
    transition: var(--transition-smooth);
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weekly-class-delete-btn:hover {
    color: #EF4444;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Standalone mode (hide simulator controls for direct link access) */
.standalone-mode #simulator-controller {
    display: none !important;
}

/* Kakao Login UI Custom Styles */
.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 20px 0;
}

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

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

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

.btn-kakao {
    background-color: #FEE500;
    color: #191919;
    border: 1px solid #FEE500;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.btn-kakao:hover {
    background-color: #FADA0A;
    border-color: #FADA0A;
    transform: translateY(-1px);
}

/* ==========================================================================
   Super Admin Login Custom Styles
   ========================================================================== */
.super-login-wrapper, .admin-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px;
    animation: fadeIn 0.4s ease-out forwards;
}

.super-login-card, .admin-login-card {
    max-width: 380px;
    width: 100%;
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
}

.super-login-card .lock-icon-area, .admin-login-card .lock-icon-area {
    width: 60px;
    height: 60px;
    background: rgba(95, 116, 100, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 16px auto;
    border: 1px solid rgba(95, 116, 100, 0.2);
}

.super-login-card h3, .admin-login-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.super-login-card .login-desc, .admin-login-card .login-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.4;
}

.super-login-card .auth-hint, .admin-login-card .auth-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 16px;
    background: #FAF9F6;
    padding: 6px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px dashed var(--border-color);
}

.super-login-card .auth-hint code, .admin-login-card .auth-hint code {
    background: #EBECE8;
    padding: 2px 4px;
    border-radius: 3px;
    color: var(--primary-dark);
    font-family: monospace;
    font-weight: 600;
}

/* Shake Animation for login error */
.shake-error {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
    20%, 40%, 60%, 80% { transform: translateX(6px); }
}

/* ==========================================================================
   FLOW STUDIOS STYLE MOBILE UI (MEMBER BOOKING & CALENDAR STRIP)
   ========================================================================== */
.studio-profile-header {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 20px 22px;
    box-shadow: 0 4px 20px rgba(45, 40, 110, 0.04);
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.studio-main-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.studio-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7A70F0 0%, #5B50E4 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(91, 80, 228, 0.25);
    flex-shrink: 0;
}

.studio-info-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.studio-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.studio-action-chips {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chip-btn {
    background: #F4F3FF;
    color: var(--primary-color);
    border: 1px solid #E2DFFF;
    border-radius: 50px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-smooth);
}

.chip-btn:hover {
    background: var(--primary-color);
    color: #FFFFFF;
}

.chip-badge {
    background: #F8F8FC;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.chip-badge strong {
    color: var(--primary-color);
    font-weight: 800;
}

/* Sub Category Pills (Classes, Semesters...) */
.sub-category-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.sub-category-pills::-webkit-scrollbar {
    display: none;
}

.pill-chip {
    background: transparent;
    color: #72718A;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.pill-chip.active {
    background: #EDEAFF;
    color: var(--primary-color);
    font-weight: 800;
}

/* Flow Studios Horizontal Date Strip */
.date-strip-container {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 14px 10px;
    box-shadow: 0 4px 16px rgba(45, 40, 110, 0.04);
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.date-strip-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 2px;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.strip-item .day-lbl {
    font-size: 0.65rem;
    font-weight: 800;
    color: #9493AC;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.strip-item .date-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1B1A2E;
    line-height: 1;
}

/* Mindbody & ClassPass Style: Minimal Underline & Booking Check Badge */
.strip-item .booking-check-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #FFFFFF;
    font-size: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(91, 80, 228, 0.25);
    animation: fadeIn 0.2s ease-out;
}

.strip-item.active .booking-check-badge {
    background-color: #FFFFFF;
    color: var(--primary-color);
}

.strip-item .strip-underline {
    height: 2.5px;
    width: 12px;
    border-radius: 4px;
    margin-top: 5px;
    background-color: transparent;
    transition: var(--transition-smooth);
}

.strip-item.has-classes .strip-underline {
    background-color: var(--primary-light);
    opacity: 0.55;
}

.strip-item.has-booking .strip-underline {
    background-color: var(--primary-color);
    width: 16px;
    opacity: 1;
}

.strip-item.active .strip-underline {
    background-color: #FFFFFF !important;
    width: 16px;
    opacity: 0.95;
}

/* Flow Studios Compact Class Card Layout */
.flow-class-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 14px rgba(45, 40, 110, 0.04);
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition-smooth);
}

.flow-class-card:hover {
    box-shadow: 0 8px 24px rgba(91, 80, 228, 0.1);
    border-color: rgba(91, 80, 228, 0.3);
}

.flow-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flow-card-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #1B1A2E;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.flow-card-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
    font-size: 0.78rem;
    color: #6B6A80;
    border-top: 1px dashed var(--border-color);
    padding-top: 8px;
}

.flow-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.flow-meta-item i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.flow-card-btn-row {
    margin-top: 2px;
}

.flow-btn-book {
    width: 100%;
    padding: 9px 12px;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 800;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.flow-btn-book.status-book {
    background: #EDEAFF;
    color: var(--primary-color);
}

.flow-btn-book.status-book:hover {
    background: var(--primary-color);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(91, 80, 228, 0.22);
}

.flow-btn-book.status-booked {
    background: var(--primary-color);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(91, 80, 228, 0.2);
}

.flow-btn-book.status-waiting {
    background: #FFF3E0;
    color: #E67E22;
}

.flow-btn-book.status-waiting:hover {
    background: #E67E22;
    color: #FFFFFF;
}

/* Floating Bottom Date Action Bar */
.floating-date-bar {
    position: sticky;
    bottom: 80px;
    left: 50%;
    transform: translateX(0);
    margin: 16px auto 0 auto;
    width: max-content;
    max-width: 90%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(231, 229, 245, 0.8);
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(45, 40, 110, 0.12);
    z-index: 90;
}

.btn-today {
    background: #EDEAFF;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.current-date-lbl {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1B1A2E;
}

.icon-filter {
    color: #6B6A80;
    font-size: 0.95rem;
    cursor: pointer;
}


