/* ============================================
   LET IT TRACK — PLATFORM ADMIN MODERN DESIGN
   Unified SaaS & Mobile Native Design System
   ============================================ */

:root {
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --primary-active: #115e59;
    --primary-light: #ccfbf1;
    --primary-lighter: #e6fffa;
    --primary-glow: rgba(13, 148, 136, 0.22);
    --bg: #f8fafc;
    --bg-surface: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --text: #0f172a;
    --text-muted: #64748b;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(255, 255, 255, 0.7);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 12px 30px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 25px rgba(13, 148, 136, 0.16);

    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    background: var(--bg);
    color: var(--text);
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Keyframes */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.98) translateY(6px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -25px) scale(1.1); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, 30px) scale(1.15); }
}

/* Material Symbols */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    flex-shrink: 0;
}

/* ============================================
   AUTH VIEW
   ============================================ */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: calc(24px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px)) 20px;
    background: radial-gradient(circle at 10% 20%, rgba(13, 148, 136, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 40%),
                var(--bg);
    position: relative;
    overflow-x: hidden;
}

.auth-ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.auth-orb-1 {
    width: 260px;
    height: 260px;
    top: -40px;
    left: -40px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.25) 0%, transparent 70%);
    animation: orbFloat1 12s ease-in-out infinite;
}

.auth-orb-2 {
    width: 300px;
    height: 300px;
    bottom: -60px;
    right: -60px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
    animation: orbFloat2 15s ease-in-out infinite;
}

.auth-card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 32px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInScale 0.4s var(--ease-smooth) forwards;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.auth-logo img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    box-shadow: 0 8px 20px -4px rgba(13, 148, 136, 0.3);
    transition: transform 0.3s var(--ease-spring);
}

.auth-logo img:hover { transform: scale(1.06) rotate(-2deg); }

.auth-title { font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.auth-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 4px; margin-bottom: 24px; }
.auth-form { text-align: left; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }

/* PASSWORD TOGGLE */
.pw-toggle-wrap { position: relative; display: flex; align-items: center; width: 100%; }
.pw-toggle-wrap input[type="password"], .pw-toggle-wrap input[type="text"].pw-toggle-active { width: 100%; padding-right: 46px; }
.pw-toggle-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    padding: 0;
    z-index: 1;
    transition: background 0.15s;
}
.pw-toggle-btn:hover { background: var(--bg); color: var(--text); }
.pw-toggle-btn svg { width: 18px; height: 18px; pointer-events: none; }

.form-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-surface);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3.5px var(--primary-glow);
}

textarea.form-input {
    height: auto;
    padding: 10px 14px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    padding: 0 18px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
    transition: all 0.2s var(--ease-smooth);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    background: var(--primary-active);
    transform: scale(0.97);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    background: var(--bg-surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s var(--ease-smooth);
}

.btn-secondary:hover {
    background: var(--bg);
    border-color: var(--outline-variant, #cbd5e1);
}

.btn-secondary:active {
    transform: scale(0.97);
}

.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 8px; }

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.btn-icon:hover { color: var(--text); background: var(--bg); }
.btn-icon:active { transform: scale(0.92); }
.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    text-align: left;
    animation: shake 0.4s ease-in-out;
}

/* ============================================
   MAIN DASHBOARD & TOP NAVIGATION
   ============================================ */
.dashboard-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    background: var(--bg);
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(58px + env(safe-area-inset-top, 0px));
    padding: calc(10px + env(safe-area-inset-top, 0px)) 20px 10px 20px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    box-sizing: border-box;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.nav-brand-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-shrink: 1;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    min-width: 0;
}

.nav-brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.brand-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.brand-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-notif-btn {
    position: relative;
    width: 38px;
    height: 38px;
}

.nav-notif-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 999px;
    text-align: center;
    padding: 0 4px;
    box-shadow: 0 0 0 2px var(--bg-surface);
}

.admin-avatar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    border: 1.5px solid rgba(13, 148, 136, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
}

.admin-avatar-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.admin-avatar-btn:active {
    transform: scale(0.95);
}

.admin-badge {
    background: var(--bg);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border);
}

.main-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: calc(78px + env(safe-area-inset-top, 0px)) 20px calc(40px + env(safe-area-inset-bottom, 0px)) 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ============================================
   ADMIN NAVIGATION TABS (Segmented Bar)
   ============================================ */
.admin-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-shadow: var(--shadow-sm);
    width: 100%;
    box-sizing: border-box;
}

.admin-nav::-webkit-scrollbar {
    display: none;
}

.admin-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s var(--ease-smooth);
}

.admin-nav-btn:hover {
    color: var(--text);
    background: var(--bg);
}

.admin-nav-btn:active {
    transform: scale(0.96);
}

.admin-nav-btn.active {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.admin-nav-btn.active .material-symbols-outlined {
    color: #ffffff;
}

.admin-nav-btn .material-symbols-outlined {
    font-size: 18px;
}

.nav-badge {
    background: var(--danger);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    margin-left: 4px;
}

/* ============================================
   MOBILE STICKY BOTTOM NAVIGATION BAR
   ============================================ */
.admin-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-top: 1px solid var(--border);
    z-index: 110;
    box-sizing: border-box;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 2px;
    transition: color 0.15s, transform 0.15s;
    user-select: none;
    -webkit-user-select: none;
}

.bottom-nav-item .material-symbols-outlined {
    font-size: 22px;
    transition: transform 0.15s;
}

.bottom-nav-item:active {
    transform: scale(0.92);
}

.bottom-nav-item.active {
    color: var(--primary);
    font-weight: 700;
}

.bottom-nav-item.active .material-symbols-outlined {
    color: var(--primary);
}

.bottom-nav-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: var(--primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 15px;
    height: 15px;
    line-height: 15px;
    border-radius: 999px;
    text-align: center;
    padding: 0 3px;
    box-shadow: 0 0 0 1.5px var(--bg-surface);
}

/* ============================================
   MOBILE ADMIN NAVIGATION DRAWER
   ============================================ */
.mobile-nav-toggle {
    display: none;
}

.admin-mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    animation: fadeInScale 0.2s var(--ease-smooth);
}

.admin-mobile-nav-drawer {
    width: 290px;
    max-width: calc(100vw - 44px);
    height: 100%;
    background: var(--bg-surface);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 14px calc(24px + env(safe-area-inset-bottom, 0px)) 14px;
    animation: slideInDrawer 0.28s var(--ease-smooth);
    box-sizing: border-box;
}

@keyframes slideInDrawer {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.admin-mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.admin-mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.admin-mobile-nav-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 4px;
}

.admin-mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background 0.15s, color 0.15s;
    box-sizing: border-box;
}

.admin-mobile-nav-item:hover {
    background: var(--bg);
}

.admin-mobile-nav-item:active {
    transform: scale(0.98);
}

.admin-mobile-nav-item.active {
    background: var(--primary);
    color: #ffffff;
}

.admin-mobile-nav-item.active .material-symbols-outlined {
    color: #ffffff;
}

.admin-mobile-nav-item .material-symbols-outlined {
    font-size: 20px;
    color: var(--text-muted);
}

.admin-mobile-nav-open-app {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    margin-top: 4px;
    transition: background 0.15s;
}

.admin-mobile-nav-open-app:hover {
    background: var(--primary-lighter);
    border-color: var(--primary);
}

/* ============================================
   DASHBOARD 2x2 METRICS GRID & SECTIONS
   ============================================ */
.dash-welcome-header {
    margin-bottom: 20px;
}

.dash-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.dash-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}

.metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s var(--ease-spring), box-shadow 0.2s, border-color 0.2s;
    box-sizing: border-box;
    min-width: 0;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.metric-card-interactive {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.metric-card-interactive:active {
    transform: scale(0.97);
}

.metric-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-icon-wrap .material-symbols-outlined {
    font-size: 20px;
}

.metric-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.metric-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 2px 0 4px 0;
}

.metric-action-link {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 2px;
    transition: color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   RECENTLY JOINED MEMBERS & RECENT ACTIVITY
   ============================================ */
.dash-section-wrap {
    margin-top: 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
}

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

.dash-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.dash-section-link {
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    padding: 2px 6px;
}

.dash-section-link:hover {
    text-decoration: underline;
}

.dash-members-list, .dash-activity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-member-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.dash-member-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.dash-member-card:active {
    transform: scale(0.98);
}

.dash-avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.12);
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-member-info {
    flex: 1;
    min-width: 0;
}

.dash-member-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-member-meta {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.dash-member-joined {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.dash-card-chevron {
    color: var(--text-muted);
    font-size: 18px;
    flex-shrink: 0;
}

.dash-activity-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.dash-activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-activity-body {
    flex: 1;
    min-width: 0;
}

.dash-activity-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.dash-activity-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

.dash-activity-time {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
}

.dash-loading-hint, .dash-empty-hint {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ============================================
   COACH REQUESTS CARDS & DETAILS MODAL
   ============================================ */
.coach-requests-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.coach-request-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.coach-request-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.coach-request-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.coach-request-user-group {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.coach-request-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.12);
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.coach-request-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coach-request-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-pending {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-approved {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-rejected {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.coach-request-contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    color: var(--text-muted);
}

.coach-request-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
}

.coach-request-block-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.coach-request-block-value {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

.btn-review-request {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 42px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.btn-review-request:hover {
    background: var(--primary-hover);
}

.btn-review-request:active {
    transform: scale(0.98);
}

/* Coach Request Review Modal */
.review-user-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.review-user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.15);
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-user-info {
    flex: 1;
    min-width: 0;
}

.review-user-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.review-user-email {
    font-size: 13px;
    color: var(--text-muted);
}

.review-user-phone {
    font-size: 12px;
    color: var(--text-muted);
}

.review-status-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.review-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.review-detail-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
}

.review-detail-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
}

.review-detail-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.review-reason-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
}

.review-reason-text {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}

.review-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.btn-review-approve {
    height: 44px;
    font-size: 14px;
    font-weight: 700;
}

.btn-review-reject {
    height: 44px;
    font-size: 14px;
    font-weight: 600;
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-review-reject:hover {
    background: rgba(239, 68, 68, 0.08);
}

/* ============================================
   COACHES & CLUBS SUB-NAVIGATION PILLS
   ============================================ */
.coaches-subnav-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
}

.subnav-pill-btn {
    flex: 1;
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.subnav-pill-btn.active {
    background: var(--bg-surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
}

/* ============================================
   SECTION CARDS, HEADERS & TABLES
   ============================================ */
.section-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.section-header-actions, .section-header-filters {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.form-select-filter {
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 500;
    width: auto;
    min-width: 140px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.data-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.data-table th {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    white-space: nowrap;
}

.data-table tr:hover td {
    background: #f8fafc;
}

.section-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.status-active { background: #ecfdf5; color: #059669; }
.status-suspended { background: #fef2f2; color: #dc2626; }

.coach-club-count-badge {
    font-size: 11px;
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
}

.btn-action-danger, .btn-delete {
    color: var(--danger) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.btn-action-danger:hover, .btn-delete:hover {
    background: rgba(239, 68, 68, 0.08) !important;
}

/* ============================================
   COACHES CONTAINER & NESTED CLUB CARDS
   ============================================ */
.coaches-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.coach-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.coach-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.coach-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.coach-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.coach-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.coach-card-email {
    font-size: 13px;
    color: var(--text-muted);
}

.coach-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.coach-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.coach-card-body {
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.coach-card-body-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.coach-no-clubs {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

.club-nested-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.club-nested-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.club-nested-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.club-nested-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.club-nested-meta code {
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
    font-family: monospace;
}

.club-nested-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* ============================================
   MEMBERS / LEADS SECTION
   ============================================ */
.leads-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.leads-search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.leads-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.leads-search-input {
    padding-left: 38px;
}

.leads-filter-selects {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.members-count-bar {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 14px;
}

/* ============================================
   PLATFORM SETTINGS GROUPED CARDS
   ============================================ */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 720px;
}

.settings-group-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-sizing: border-box;
}

.settings-group-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.settings-group-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-group-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.settings-group-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.settings-group-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.domain-add-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.domain-input { flex: 1; min-width: 150px; }
.domain-label-input { width: 130px; }
.domain-type-select { width: 130px; }
.domain-add-btn { width: auto; padding: 0 16px; white-space: nowrap; }

.domain-desktop-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.domain-mobile-cards {
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.domain-card-item {
    background: var(--surface-container-low, var(--bg));
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 768px) {
    .domain-desktop-table {
        display: none !important;
    }
    .domain-mobile-cards {
        display: flex !important;
    }
}

/* ============================================
   REPORTS & ANALYTICS
   ============================================ */
.report-summary-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
}

.report-summary-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.report-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.report-stat-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.report-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.report-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-top: 4px;
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInScale 0.2s var(--ease-smooth);
    box-sizing: border-box;
}

.modal-dialog {
    background: var(--bg-surface);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeInScale 0.28s var(--ease-smooth);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-lg { max-width: 680px; }
.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.modal-title { font-size: 17px; font-weight: 700; color: var(--text); }
.modal-body {
    padding: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

/* View Club Modal Details */
.view-club-section { margin-bottom: 20px; }
.view-club-section-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.view-club-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.view-club-table th { width: 130px; padding: 8px 10px; text-align: left; color: var(--text-muted); font-weight: 600; vertical-align: top; border-bottom: 1px solid var(--border); }
.view-club-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); word-break: break-word; }
.vc-plan-row, .vc-member-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--bg); border-radius: 8px; margin-bottom: 6px; font-size: 13px; }
.vc-plan-name, .vc-member-name { font-weight: 600; }

/* ============================================
   RESPONSIVE MEDIA QUERIES (MOBILE <= 768px)
   ============================================ */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: inline-flex !important;
    }

    .desktop-only-action {
        display: none !important;
    }

    .admin-nav {
        display: none !important;
    }

    .admin-bottom-nav {
        display: flex !important;
    }

    .top-nav {
        height: calc(54px + env(safe-area-inset-top, 0px));
        padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px 12px;
        gap: 6px;
    }

    .nav-brand-logo {
        width: 28px;
        height: 28px;
    }

    .brand-title {
        font-size: 14px;
        max-width: 140px;
    }

    .brand-subtitle {
        font-size: 10px;
    }

    .main-content {
        padding: calc(66px + env(safe-area-inset-top, 0px)) 12px calc(80px + env(safe-area-inset-bottom, 0px)) 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .section-card {
        padding: 16px 12px;
        border-radius: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-header-actions, .section-header-filters {
        width: 100%;
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .section-header-actions .btn-sm, .section-header-filters .form-input, .section-header-filters .btn-sm {
        flex: 1 1 auto;
    }

    /* 2x2 Metric Grid on Mobile */
    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .metric-card {
        padding: 12px 10px;
        border-radius: 14px;
        gap: 6px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .metric-icon-wrap {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .metric-icon-wrap .material-symbols-outlined {
        font-size: 18px;
    }

    .metric-label {
        font-size: 9.5px;
    }

    .metric-value {
        font-size: 20px;
    }

    .metric-action-link {
        font-size: 10px;
    }

    /* Report stats grid on Mobile */
    .report-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Platform Settings Single Column Form on Mobile */
    .form-group-row {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .domain-add-bar {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .domain-input, .domain-label-input, .domain-type-select, .domain-add-btn {
        width: 100%;
    }

    /* Leads / Members Filters on Mobile */
    .leads-filter-bar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .leads-search-wrap {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .leads-filter-selects {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .leads-filter-selects .form-select-filter {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
        width: 100%;
    }

    /* Responsive Data Tables → Mobile Card Stack */
    .table-responsive {
        border: none;
        border-radius: 0;
        overflow-x: hidden;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        background: transparent;
        margin-bottom: 8px;
    }

    .data-table {
        min-width: 0 !important;
        width: 100% !important;
        display: block;
    }

    .data-table thead {
        display: none;
    }

    .data-table tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .data-table tbody tr {
        display: flex;
        flex-direction: column;
        gap: 8px;
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 14px;
        box-shadow: var(--shadow-sm);
        width: 100%;
        box-sizing: border-box;
    }

    .data-table tbody tr:hover td {
        background: transparent;
    }

    .data-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: none;
        padding: 2px 0;
        white-space: normal;
        font-size: 13px;
        width: 100%;
        box-sizing: border-box;
    }

    .data-table tbody td[data-col]::before {
        content: attr(data-col);
        font-size: 11px;
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-right: 8px;
        flex-shrink: 0;
    }

    .data-table tbody td.table-card-header {
        border-bottom: 1px solid var(--border);
        padding-bottom: 8px;
        margin-bottom: 4px;
        font-size: 14px;
        font-weight: 700;
    }

    .data-table tbody td.table-card-actions {
        border-top: 1px solid var(--border);
        padding-top: 10px;
        margin-top: 4px;
        justify-content: flex-end;
        gap: 8px;
        flex-wrap: wrap;
    }

    .data-table tbody td.table-card-actions .btn-sm {
        flex: 1 1 calc(50% - 4px);
        min-width: 100px;
        justify-content: center;
    }

    /* Coaches & Clubs Mobile Layout */
    .coach-card {
        padding: 14px;
        border-radius: 14px;
    }

    .coach-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .coach-card-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .coach-card-actions .btn-sm {
        flex: 1 1 calc(50% - 4px);
        min-width: 110px;
        justify-content: center;
    }

    .club-nested-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        gap: 8px;
    }

    .club-nested-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        font-size: 12px;
    }

    .club-nested-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .club-nested-actions .btn-sm {
        flex: 1 1 calc(50% - 4px);
        min-width: 80px;
        justify-content: center;
    }

    /* Modals on Mobile */
    .modal-overlay { padding: 10px; }
    .modal-dialog { width: 100%; max-width: 100%; border-radius: 18px; max-height: calc(100vh - 40px); }
    .modal-header { padding: 14px 16px; }
    .modal-body { padding: 16px 14px; }
}

@media (max-width: 375px) {
    .brand-title {
        max-width: 105px;
    }

    .metric-card {
        padding: 10px 8px;
    }

    .metric-value {
        font-size: 18px;
    }

    .review-detail-grid {
        grid-template-columns: 1fr;
    }
}
