/* ================================================
   JBSK Member App - App-Specific Styles
   ================================================ */

/* ========================
   Light Theme Override
   ======================== */
[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8e8e8;
    --bg-card: #ffffff;

    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #888888;

    --accent-gold: #c9a227;
    --accent-gold-hover: #b08d1f;
}

[data-theme="light"] .app-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .side-nav {
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .bottom-nav {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .form-input {
    background: #f0f0f0;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

[data-theme="light"] .form-input:focus {
    border-color: var(--accent-gold);
}

[data-theme="light"] .btn-dark {
    background: #e0e0e0;
    color: #1a1a1a;
}

[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
}

[data-theme="light"] .schedule-card,
[data-theme="light"] .training-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .card {
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .loading-overlay {
    background: rgba(255, 255, 255, 0.9);
}

/* ========================
   App Layout
   ======================== */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

/* ========================
   App Header
   ======================== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--space-4);
}

.header-menu-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.header-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-menu-btn svg {
    width: 24px;
    height: 24px;
}

.header-title {
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--accent-gold);
}

.header-user {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    cursor: pointer;
}

.header-user-initial {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--bg-primary);
}

/* ========================
   Side Navigation
   ======================== */
.side-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-secondary);
    z-index: 200;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.side-nav.open {
    left: 0;
}

.side-nav-header {
    padding: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.side-nav-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.side-nav-header h2 {
    font-size: var(--fs-lg);
    color: var(--accent-gold);
}

.side-nav-menu {
    flex: 1;
    padding: var(--space-4);
    overflow-y: auto;
}

.side-nav-menu li {
    margin-bottom: var(--space-2);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-link.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
}

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: var(--space-4) 0;
}

.side-nav-footer {
    padding: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* ========================
   Main Content
   ======================== */
.main-content {
    flex: 1;
    padding: 80px var(--space-4) 100px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* ========================
   Bottom Navigation (Mobile)
   ======================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 11px;
    padding: var(--space-2);
    transition: color var(--transition-fast);
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
}

.bottom-nav-item.active {
    color: var(--accent-gold);
}

/* ========================
   Page Components
   ======================== */
.page {
    animation: fadeIn 0.3s ease;
}

.page-header {
    margin-bottom: var(--space-6);
}

.page-title {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-2);
}

.page-subtitle {
    color: var(--text-secondary);
}

/* ========================
   Auth Pages (Login/Register)
   ======================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}

.auth-logo {
    width: 100px;
    height: 100px;
    margin-bottom: var(--space-4);
}

.auth-title {
    font-size: var(--fs-2xl);
    text-align: center;
    margin-bottom: var(--space-2);
}

.auth-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-form {
    width: 100%;
    max-width: 360px;
}

.auth-switch {
    text-align: center;
    margin-top: var(--space-6);
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--accent-gold);
    font-weight: 500;
}

/* Password Input with Toggle */
.input-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-password-wrapper .form-input {
    padding-right: 50px;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.btn-toggle-password:hover {
    color: var(--text-primary);
}

.btn-toggle-password svg {
    width: 20px;
    height: 20px;
}

.btn-toggle-password .hidden {
    display: none;
}

/* ========================
   Dashboard Widgets
   ======================== */
.dashboard-welcome {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(74, 93, 35, 0.1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
}

.welcome-name {
    font-size: var(--fs-xl);
    color: var(--accent-gold);
    margin-bottom: var(--space-2);
}

.welcome-role {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    text-transform: capitalize;
}

/* New Dashboard Layout */
.dashboard-welcome {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
}

.welcome-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.welcome-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-avatar span {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--bg-primary);
}

.welcome-info {
    flex: 1;
}

.welcome-name {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

/* Booking CTA Button */
.btn-booking-cta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-5);
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--radius-xl);
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--bg-primary);
    cursor: pointer;
    margin-bottom: var(--space-6);
    transition: all var(--transition-fast);
}

.btn-booking-cta:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.btn-booking-cta svg {
    width: 28px;
    height: 28px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: var(--space-6) 0 var(--space-3);
}

.section-header h3 {
    font-size: var(--fs-base);
    font-weight: 600;
}

.section-link {
    font-size: var(--fs-sm);
    color: var(--accent-gold);
}

/* Mini Cards for Dashboard */
.booking-mini-card,
.training-mini-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
}

.booking-mini-date,
.training-mini-date {
    font-weight: 500;
}

.booking-mini-info {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.booking-status {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.booking-status.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.booking-status.scheduled {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.booking-status.cancelled {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.booking-type,
.training-mini-type {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-transform: capitalize;
}

.training-mini-score {
    color: var(--accent-gold);
    font-size: var(--fs-sm);
}

.empty-state-mini {
    padding: var(--space-4);
    text-align: center;
    color: var(--text-muted);
}

/* Booking Wizard */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--space-6);
}

.wizard-step {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.wizard-step.active {
    background: var(--gradient-gold);
    color: var(--bg-primary);
}

.wizard-step.done {
    background: var(--accent-green);
    color: white;
}

.wizard-line {
    width: 40px;
    height: 2px;
    background: var(--bg-tertiary);
}

.wizard-line.done {
    background: var(--accent-green);
}

/* Payment Info Cards */
.payment-info-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.payment-info-card h3 {
    font-size: var(--fs-base);
    margin-bottom: var(--space-3);
    color: var(--accent-gold);
}

.bank-info {
    text-align: center;
}

.bank-name {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-1);
}

.bank-number {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.bank-number:hover {
    color: var(--accent-gold);
}

.bank-holder {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    margin-top: var(--space-1);
}

.qris-container {
    text-align: center;
}

.qris-image {
    max-width: 200px;
    margin: 0 auto var(--space-3);
    border-radius: var(--radius-md);
}

.text-center {
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
}

.stat-value {
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================
   Schedule Cards
   ======================== */
.schedule-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color var(--transition-fast);
}

.schedule-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.schedule-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding-right: var(--space-4);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-day {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--accent-gold);
}

.schedule-month {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-transform: uppercase;
}

.schedule-info {
    flex: 1;
    padding: 0 var(--space-4);
}

.schedule-time {
    font-size: var(--fs-base);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.schedule-slots {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}

.schedule-slots.full {
    color: var(--accent-red);
}

/* ========================
   Profile Section
   ======================== */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-6);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.profile-avatar.has-photo {
    background: var(--bg-tertiary);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-edit-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.profile-avatar:hover .photo-edit-overlay {
    opacity: 1;
}

.photo-edit-overlay svg {
    width: 20px;
    height: 20px;
    color: white;
}

.profile-avatar-text {
    font-size: var(--fs-4xl);
    font-weight: 700;
    color: var(--bg-primary);
}

.profile-name {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-1);
}

.profile-nickname {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    margin-bottom: var(--space-2);
}

.profile-badge {
    display: inline-block;
    background: var(--gradient-gold);
    color: var(--bg-primary);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.profile-role {
    color: var(--accent-gold);
    font-size: var(--fs-sm);
    text-transform: capitalize;
    margin-bottom: var(--space-3);
}

.profile-bio {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    border-left: 3px solid var(--accent-gold);
}

.profile-bio p {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
}

.profile-status {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.profile-status.active {
    background: rgba(74, 93, 35, 0.3);
    color: #7cb342;
}

.profile-status.inactive {
    background: rgba(196, 30, 58, 0.3);
    color: #ef5350;
}

.profile-info-list {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-info-item:last-child {
    border-bottom: none;
}

.profile-info-label {
    color: var(--text-muted);
}

.profile-info-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* ========================
   Booking Cards
   ======================== */
.booking-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    border-left: 4px solid var(--accent-gold);
}

.booking-card.cancelled {
    border-left-color: var(--accent-red);
    opacity: 0.6;
}

.booking-card.completed {
    border-left-color: var(--accent-olive);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-2);
}

.booking-date {
    font-weight: 600;
    color: var(--text-primary);
}

.booking-status {
    font-size: var(--fs-xs);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.booking-status.confirmed {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
}

.booking-status.cancelled {
    background: rgba(196, 30, 58, 0.2);
    color: var(--accent-red);
}

.booking-status.completed {
    background: rgba(74, 93, 35, 0.2);
    color: var(--accent-olive);
}

.booking-time {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
}

/* ========================
   Toast Notifications
   ======================== */
.toast-container {
    position: fixed;
    top: 80px;
    right: var(--space-4);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.toast {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    min-width: 280px;
    max-width: 360px;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.toast.success {
    border-left: 3px solid var(--accent-olive);
}

.toast.error {
    border-left: 3px solid var(--accent-red);
}

.toast.info {
    border-left: 3px solid var(--accent-cyan);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================
   Loading Overlay
   ======================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================
   Empty State
   ======================== */
.empty-state {
    text-align: center;
    padding: var(--space-10);
    color: var(--text-muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

/* ========================
   Utilities
   ======================== */
.hidden {
    display: none !important;
}

/* ========================
   Settings Page
   ======================== */
.settings-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.settings-title {
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

.settings-toggle-group {
    display: flex;
    gap: var(--space-2);
}

.settings-toggle-btn {
    flex: 1;
    padding: var(--space-3);
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.settings-toggle-btn:hover {
    background: var(--bg-secondary);
}

.settings-toggle-btn.active {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.settings-info {
    text-align: center;
    padding: var(--space-4);
}

.settings-info p {
    margin-bottom: var(--space-1);
}

/* ========================
   Training Cards
   ======================== */
.training-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.training-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.training-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}

.training-type {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.training-type-lg {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: var(--space-2);
}

.training-date {
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

.training-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.training-user {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.training-meta {
    display: flex;
    gap: var(--space-3);
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.training-detail-header {
    text-align: center;
    padding: var(--space-6);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
}

.training-detail-header h2 {
    margin: var(--space-2) 0;
}

/* Score Display */
.score-stage {
    margin-bottom: var(--space-4);
}

.score-stage h4 {
    color: var(--accent-gold);
    margin-bottom: var(--space-2);
    font-size: var(--fs-sm);
}

.score-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.score-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Score Input Form */
.score-input-row {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    margin-bottom: var(--space-2);
}

.score-input-row span {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-body {
    padding: var(--space-4);
}

.card-title {
    font-size: var(--fs-base);
    margin-bottom: var(--space-3);
    color: var(--accent-gold);
}

/* ========================
   Admin Panel
   ======================== */
.admin-booking-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}

.admin-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}

.admin-booking-date {
    font-weight: 600;
}

.admin-booking-body {
    margin-bottom: var(--space-3);
}

.admin-booking-body p {
    margin-bottom: var(--space-1);
}

.admin-booking-actions {
    display: flex;
    gap: var(--space-2);
}

.admin-booking-actions .btn {
    flex: 1;
}

/* Booking Card */
.booking-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.booking-date {
    font-weight: 600;
}

.booking-details {
    color: var(--text-secondary);
}

.booking-details p {
    margin-bottom: var(--space-1);
}

.mt-6 {
    margin-top: var(--space-6);
}

/* ========================
   Page Back Header
   ======================== */
.page-back-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-back:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-back svg {
    width: 20px;
    height: 20px;
}

.page-back-title {
    font-size: var(--fs-xl);
    font-weight: 600;
}

/* ========================
   Dashboard Profile Card
   ======================== */
.dash-profile-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(74, 93, 35, 0.1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
}

.dash-profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-full);
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgba(212, 175, 55, 0.3);
}

.dash-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-profile-avatar span {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--bg-primary);
}

.dash-profile-info {
    flex: 1;
    min-width: 0;
}

.dash-profile-name {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.dash-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--gradient-gold);
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--bg-primary);
}

.dash-profile-role {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    text-transform: capitalize;
}

.dash-profile-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    margin-left: var(--space-2);
}

.dash-profile-status.active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

/* ========================
   News Carousel
   ======================== */
.news-carousel-container {
    margin-bottom: var(--space-6);
}

.news-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.news-carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.news-slide {
    min-width: 100%;
    padding: var(--space-5);
    box-sizing: border-box;
}

.news-slide-content {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.news-slide-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.news-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-slide-image svg {
    width: 32px;
    height: 32px;
    color: var(--bg-primary);
}

.news-slide-text {
    flex: 1;
    min-width: 0;
}

.news-slide-title {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.news-slide-desc {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.news-carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) 0;
}

.news-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.news-dot.active {
    width: 24px;
    background: var(--accent-gold);
}

/* ========================
   Menu Grid
   ======================== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-6) var(--space-4);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    color: inherit;
}

.menu-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.menu-item:active {
    transform: scale(0.98);
}

.menu-item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border-radius: var(--radius-lg);
    color: var(--accent-gold);
}

.menu-item-icon svg {
    width: 28px;
    height: 28px;
}

.menu-item-label {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

/* 3 columns on larger screens */
@media (min-width: 480px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .menu-item {
        padding: var(--space-5) var(--space-3);
    }
}

/* ========================
   Booking Cards
   ======================== */
.section-title {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.booking-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}

.booking-type {
    font-weight: 600;
    font-size: var(--font-md);
}

.booking-status {
    font-size: var(--font-xs);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    font-weight: 500;
}

.booking-status.badge-warning {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.booking-status.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.booking-status.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.booking-status.badge-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.booking-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.booking-date,
.booking-time,
.booking-info {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* ========================
   Leaderboard
   ======================== */
.leaderboard-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    background: var(--bg-secondary);
    padding: var(--space-1);
    border-radius: var(--radius-lg);
}

.lb-tab {
    flex: 1;
    padding: var(--space-3);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--font-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lb-tab.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.leaderboard-filters {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.lb-filter {
    padding: var(--space-2) var(--space-4);
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: var(--font-xs);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lb-filter.active {
    background: var(--accent-primary);
    color: white;
}

.leaderboard-table {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lb-header {
    display: grid;
    grid-template-columns: 48px 1fr 80px;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-secondary);
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.lb-row {
    display: grid;
    grid-template-columns: 48px 1fr 80px;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
}

.lb-row:last-child {
    border-bottom: none;
}

.lb-row.top-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent);
}

.lb-row.top-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.1), transparent);
}

.lb-row.top-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.1), transparent);
}

.lb-rank {
    font-weight: 700;
    font-size: var(--font-lg);
    text-align: center;
}

.lb-name {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.lb-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.lb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lb-avatar span {
    font-weight: 600;
    color: var(--text-secondary);
}

.lb-player-name {
    font-weight: 600;
    font-size: var(--font-sm);
}

.lb-player-stats {
    font-size: var(--font-xs);
    color: var(--text-secondary);
}

.lb-score {
    font-weight: 700;
    font-size: var(--font-sm);
    text-align: right;
    color: var(--accent-gold);
}

/* ========================
   Modal
   ======================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-4);
    animation: fadeIn var(--transition-fast);
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp var(--transition-normal);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    font-size: var(--font-lg);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: var(--space-4);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

/* Utility Classes */
.mt-2 {
    margin-top: var(--space-2);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-6 {
    margin-top: var(--space-6);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-xs);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* ========================
   Announcement Cards
   ======================== */
.announcement-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-2);
}

.announcement-title {
    font-weight: 600;
    font-size: var(--font-md);
}

.announcement-date {
    font-size: var(--font-xs);
    color: var(--text-secondary);
}

.announcement-desc {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.announcement-actions {
    display: flex;
    gap: var(--space-2);
}

/* ========================
   Calculator Styles
   ======================== */
.form-row {
    display: flex;
    gap: var(--space-3);
}

.form-row .form-group {
    flex: 1;
}

.calc-presets {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.calc-subtotal {
    padding: var(--space-3);
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: var(--space-3);
}

.calc-subtotal strong {
    color: var(--accent-gold);
}

.calc-additional-row {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.calc-additional-row input:first-child {
    flex: 2;
}

.calc-additional-row input:nth-child(2) {
    flex: 1;
}

.calc-total-card {
    background: var(--gradient-gold);
    border: none;
}

.calc-total-card .card-body {
    padding: var(--space-4);
}

.calc-grand-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.calc-grand-total span {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.calc-grand-total strong {
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--bg-primary);
}

/* ========================
   Report Styles
   ======================== */
.report-profit-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(74, 93, 35, 0.1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.report-profit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.report-profit-item {
    text-align: center;
    padding: var(--space-3);
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
}

.report-profit-item .label {
    display: block;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-1);
    text-transform: uppercase;
}

.report-profit-item .value {
    display: block;
    font-size: var(--fs-base);
    font-weight: 700;
}

.report-profit-item.income .value {
    color: var(--accent-green);
}

.report-profit-item.expense .value {
    color: var(--accent-red);
}

.report-profit-item.profit .value {
    color: var(--accent-gold);
}

.report-profit-item.loss .value {
    color: var(--accent-red);
}

.report-income-summary,
.report-expense-summary {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.report-transactions-list,
.report-expenses-list {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-3);
}

.report-transaction-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.report-tx-time {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    min-width: 50px;
}

.report-tx-details {
    flex: 1;
}

.report-tx-name {
    font-weight: 500;
}

.report-tx-breakdown {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.report-tx-total {
    font-weight: 600;
    color: var(--accent-green);
}

.report-expense-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.report-exp-desc {
    flex: 1;
}

.report-exp-amount {
    font-weight: 600;
    color: var(--accent-red);
}

.report-expense-item.bullet_cost {
    opacity: 0.7;
}

.btn-xs {
    padding: var(--space-1) var(--space-2);
    font-size: var(--fs-xs);
}

/* ========================
   Responsive
   ======================== */
@media (max-width: 480px) {
    .report-profit-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }
}

@media (min-width: 768px) {
    .main-content {
        padding-bottom: var(--space-10);
    }

    .bottom-nav {
        display: none;
    }
}