/**
 * mobile.css — Layout mobile (bottom tabs, safe areas, header compact, etc.)
 * Source : layouts/mobile.blade.php + vues mobile/*
 */

/* ===== Mobile base ===== */
html { height: 100%; -webkit-text-size-adjust: 100%; }
a { text-decoration: none; }

body.mobile-layout {
    margin: 0;
    min-height: 100%;
    background: #f8fafc;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-top: var(--safe-top);
}

/* ===== Header mobile compact ===== */
.mobile-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.mobile-header-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    flex: 1;
    text-align: center;
}
.mobile-header-left,
.mobile-header-right {
    min-width: 40px;
    display: flex;
    align-items: center;
}
.mobile-header-right { justify-content: flex-end; }
.mobile-header .btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.25rem;
    cursor: pointer;
}
.mobile-header .btn-icon:active { background: #f1f5f9; }

/* ===== Contenu principal ===== */
.mobile-content {
    padding: 1rem;
    padding-bottom: calc(var(--tab-height) + var(--safe-bottom) + 1rem);
    min-height: calc(100vh - 56px - var(--tab-height));
}

/* ===== Bottom tabs ===== */
.bottom-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--tab-height) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
}
.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 6px 0;
    transition: color 0.2s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
.tab-item i { font-size: 1.4rem; }
.tab-item.active { color: var(--primary-color); }
.tab-item.active i { font-weight: 700; }
.tab-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 18px);
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ===== Cards mobile ===== */
.card-mobile {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ===== Stat cards mobile ===== */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.stat-mobile {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.stat-mobile-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}
.stat-mobile-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}

/* ===== Toast mobile ===== */
#mobile-toast {
    position: fixed;
    top: calc(var(--safe-top) + 60px);
    left: 1rem;
    right: 1rem;
    z-index: 9999;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideDown 0.3s ease;
}
#mobile-toast.show { display: flex; }
#mobile-toast.success { background: #10b981; color: white; }
#mobile-toast.error { background: #ef4444; color: white; }
#mobile-toast.warning { background: #f59e0b; color: white; }
#mobile-toast.info { background: #3b82f6; color: white; }

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===== Utilitaires mobile ===== */
.text-primary { color: var(--primary-color) !important; }
.pull-to-refresh { text-align: center; padding: 0.5rem; color: #94a3b8; font-size: 0.8rem; }

/* Fix iOS rubber-banding */
@supports (-webkit-touch-callout: none) {
    body.mobile-layout { min-height: -webkit-fill-available; }
}

/* ===== Family dashboard mobile ===== */
.stat-link {
    text-decoration: none;
    color: inherit;
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s ease;
}
.stat-link:active { transform: scale(0.97); background: #f1f5f9; }
.stat-chevron {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.85rem;
    color: #cbd5e1;
}
.next-rdv-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfeff 100%);
    border: 1px solid #bae6fd;
}
.gps-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #4f46e5;
    color: white;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 700;
    gap: 0.1rem;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}
.gps-btn:active { background: #4338ca; transform: scale(0.95); }
.gps-btn-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #4f46e5;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.gps-btn-small:active { background: #4338ca; }

/* ===== Horizontal scroll helpers ===== */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== MN strip (family mobile dashboard) ===== */
.mn-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.25rem 0.25rem 0.75rem;
    -webkit-overflow-scrolling: touch;
}
.mn-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}
.mn-bubble:active { transform: scale(0.95); }
.mn-bubble__img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}
.mn-bubble__initials {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #4f46e5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 3px solid #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}
.mn-bubble__name {
    font-size: 0.7rem;
    font-weight: 600;
    color: #334155;
    max-width: 64px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Planning mobile (MN) ===== */
.ti-spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.planning-dates {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0 0.25rem 0.75rem;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.date-pill {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    padding: 0.5rem 0.4rem 0.6rem;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.date-pill:active { transform: scale(0.95); }
.date-pill--active {
    background: #06b6d4 !important;
    border-color: #06b6d4 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}
.date-pill--active .date-pill__day,
.date-pill--active .date-pill__month {
    color: rgba(255, 255, 255, 0.85) !important;
}
.date-pill--today:not(.date-pill--active) { border-color: #06b6d4; }
.date-pill__day {
    font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.03em; color: #94a3b8; line-height: 1;
}
.date-pill__num { font-size: 1.2rem; font-weight: 800; line-height: 1.3; }
.date-pill__month {
    font-size: 0.6rem; font-weight: 600; text-transform: uppercase;
    color: #94a3b8; line-height: 1;
}
.date-pill__badge {
    position: absolute; top: -4px; right: -4px;
    background: #f59e0b; color: white; font-size: 0.6rem; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* ================================================================
 * MOBILE VIEWS — Extracted inline styles (Pass 2)
 * ================================================================ */

/* ===== Mobile Messages (shared MN + Family) ===== */
.msg-empty { text-align: center; padding: 3rem 1rem; color: #94a3b8; }
.msg-empty i { font-size: 3rem; }
.msg-empty p { margin-top: 0.5rem; }

.conv-item {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    -webkit-tap-highlight-color: transparent;
}
.conv-item:active { background: #f8fafc; }
.conv-item--unread {
    background: #f0f9ff;
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.25rem;
    border-bottom: none;
}
.conv-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.conv-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.conv-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.conv-name { font-weight: 600; font-size: 0.9rem; }
.conv-time { font-size: 0.7rem; color: #94a3b8; white-space: nowrap; margin-left: 0.5rem; }
.conv-preview {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.conv-badge {
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 11px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    margin-left: 0.5rem;
}

.chat-wrapper { margin: -1rem; margin-top: -0.5rem; }
.chat-scroll {
    overflow-y: auto;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
    height: calc(100vh - 56px - var(--tab-height) - 60px - env(safe-area-inset-bottom, 0px));
}
.chat-row { margin-bottom: 0.75rem; }
.chat-row--mine { text-align: right; margin-left: 15%; }
.chat-row--other { text-align: left; margin-right: 15%; }

.chat-bubble {
    display: inline-block;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    max-width: 100%;
    text-align: left;
    word-wrap: break-word;
    line-height: 1.4;
}
.chat-bubble--mine {
    color: white;
    border-radius: 16px 16px 4px 16px;
}
.chat-bubble--mine.mn-bubble-color { background: #06b6d4; }
.chat-bubble--mine.family-bubble-color { background: #4f46e5; }
.chat-bubble--other {
    background: #f1f5f9;
    color: #0f172a;
    border-radius: 16px 16px 16px 4px;
}
.chat-bubble--mine .chat-time { color: rgba(255,255,255,0.6); }
.chat-bubble--other .chat-time { color: #94a3b8; }
.chat-time { font-size: 0.65rem; margin-top: 3px; padding: 0; }

.chat-input {
    position: fixed;
    bottom: calc(var(--tab-height) + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    padding: 0.5rem 1rem;
    border-top: 1px solid #e9ecef;
    background: white;
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    z-index: 50;
}
.chat-textarea {
    flex: 1;
    padding: 0.6rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.9rem;
    resize: none;
    max-height: 80px;
    font-family: inherit;
    line-height: 1.4;
}
.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.chat-send.mn-send-color { background: #06b6d4; }
.chat-send.family-send-color { background: #4f46e5; }
.chat-send i { font-size: 1.1rem; }
.chat-send--disabled { opacity: 0.4; }

/* ===== Common utility classes ===== */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.ti-spin { animation: mn-spin 1s linear infinite; }
@keyframes mn-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ===== Mobile Search ===== */
.gps-locate-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s;
}
.gps-locate-btn:active { transform: scale(0.95); }
.gps-locate-btn--active {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: white;
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}
.filter-chip--active {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}
.view-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.45rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.view-btn--active {
    background: white;
    color: #4f46e5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.mn-card-mobile {
    display: block;
    background: white;
    border-radius: 12px;
    padding: 0.85rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    -webkit-tap-highlight-color: transparent;
}
.mn-card-mobile:active { background: #f8fafc; }
.mn-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.mn-card-avatar-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Search map styles */
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(79,70,229,0.2) !important; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background: #4f46e5 !important; color: white !important; font-weight: 600; }
.mn-marker-photo { border-radius: 50%; border: 3px solid #4f46e5; box-shadow: 0 2px 6px rgba(0,0,0,0.3); width: 40px !important; height: 40px !important; object-fit: cover; }
.mn-marker-initials { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,#4f46e5,#06b6d4); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; border: 3px solid white; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.leaflet-popup-content { min-width: 160px; }
.mn-popup { text-align: center; }
.mn-popup img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; margin-bottom: 6px; }
.mn-popup h4 { margin: 0 0 3px; font-size: 0.9rem; }
.mn-popup .city { color: #6c757d; font-size: 0.8rem; }
.mn-popup .rate { font-weight: 600; color: #4f46e5; margin-top: 4px; font-size: 0.85rem; }
.mn-popup a { display: inline-block; margin-top: 6px; background: #4f46e5; color: white !important; padding: 0.3rem 0.75rem; border-radius: 8px; font-size: 0.8rem; font-weight: 600; text-decoration: none; }

/* ===== Mobile Appointments ===== */
.planning-dates {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0 0.25rem 0.75rem;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.date-pill {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    padding: 0.5rem 0.4rem 0.6rem;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.date-pill:active { transform: scale(0.95); }
.date-pill--active {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}
.date-pill--active .date-pill__day,
.date-pill--active .date-pill__month {
    color: rgba(255, 255, 255, 0.85) !important;
}
.date-pill--today:not(.date-pill--active) { border-color: #4f46e5; }
.date-pill__day {
    font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.03em; color: #94a3b8; line-height: 1;
}
.date-pill__num { font-size: 1.2rem; font-weight: 800; line-height: 1.3; }
.date-pill__month {
    font-size: 0.6rem; font-weight: 600; text-transform: uppercase;
    color: #94a3b8; line-height: 1;
}
.date-pill__badge {
    position: absolute; top: -4px; right: -4px;
    background: #f59e0b; color: white; font-size: 0.6rem; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.apt-action-btn {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.4rem 0.75rem; border-radius: 8px; border: none;
    font-size: 0.8rem; font-weight: 600; cursor: pointer;
    text-decoration: none; font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.apt-action-btn:active { opacity: 0.8; }

/* MN strip */
.mn-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.25rem 0.25rem 0.75rem;
    -webkit-overflow-scrolling: touch;
}
.mn-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}
.mn-bubble:active { transform: scale(0.95); }
.mn-bubble__img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}
.mn-bubble__initials {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #4f46e5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 3px solid #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}
.mn-bubble__name {
    font-size: 0.7rem;
    font-weight: 600;
    color: #334155;
    max-width: 64px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Reservation Calendar ===== */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}
.cal-header {
    text-align: center;
    font-weight: 700;
    font-size: 0.7rem;
    color: #94a3b8;
    padding: 4px 0;
}
.cal-cell {
    text-align: center;
    padding: 8px 2px;
    border-radius: 10px;
    font-size: 0.85rem;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.15s;
    position: relative;
}
.cal-cell.empty { cursor: default; }
.cal-cell.past { color: #e2e8f0; cursor: default; }
.cal-cell.no-slot { color: #e2e8f0; cursor: default; }
.cal-cell.available { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.cal-cell.available:active { background: #d1fae5; transform: scale(0.95); }
.cal-cell.selected { background: #4f46e5 !important; color: white !important; border-color: #4f46e5 !important; font-weight: 700; }
.cal-cell.full { background: #fef2f2; color: #991b1b; cursor: default; border: 1px solid #fecaca; }
.cal-spots { font-size: 0.55rem; opacity: 0.7; line-height: 1; }
.cal-nav {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #334155;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.cal-nav:active { background: #f1f5f9; }
.recap-bar {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
.confirm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.confirm-btn:disabled { opacity: 0.5; }
.confirm-btn:active:not(:disabled) { transform: scale(0.98); }

/* ===== Mobile Profile ===== */
.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.profile-label { font-size: 0.85rem; color: #64748b; }
.profile-value { font-size: 0.85rem; font-weight: 600; color: #0f172a; }
.form-group-mobile { margin-bottom: 1rem; }
.form-label-mobile { display: block; font-size: 0.8rem; font-weight: 600; color: #374151; margin-bottom: 0.35rem; }
.form-input-mobile {
    width: 100%; padding: 0.65rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 10px;
    font-size: 0.9rem; font-family: inherit; background: white; color: #0f172a; -webkit-appearance: none;
}
.form-input-mobile:focus { outline: none; border-color: #06b6d4; box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1); }
.btn-mobile-primary {
    width: 100%; padding: 0.75rem;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white; border: none; border-radius: 12px; font-size: 0.9rem;
    font-weight: 600; font-family: inherit; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    -webkit-tap-highlight-color: transparent;
}
.btn-mobile-primary:active { background: #0891b2; }
.btn-mobile-primary:disabled { opacity: 0.6; }
.btn-mobile-secondary {
    padding: 0.75rem; background: white; color: #64748b;
    border: 1px solid #e2e8f0; border-radius: 12px; font-size: 0.9rem;
    font-weight: 600; font-family: inherit; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.btn-mobile-secondary:active { background: #f8fafc; }

/* ===== Clarity Home ===== */
.home-wrapper {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: calc(100vh - 2rem); padding: 2rem 1.5rem; text-align: center;
    background: linear-gradient(160deg, #f0f4ff 0%, #e8f8fa 50%, #f8fafc 100%);
}
.home-logo { margin-bottom: 1rem; }
.home-logo img { width: 180px; height: auto; border-radius: 12px; }
.home-title { font-size: 1.5rem; font-weight: 800; color: #0f172a; margin-bottom: 0.25rem; }
.home-subtitle { font-size: 0.9rem; color: #64748b; margin-bottom: 3rem; }
.home-actions { display: flex; flex-direction: column; gap: 1rem; width: 100%; max-width: 320px; }
.home-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    padding: 1rem 1.5rem; border-radius: 14px; text-decoration: none;
    font-weight: 600; font-size: 1.05rem; transition: transform 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.home-btn:active { transform: scale(0.97); }
.home-btn-primary { background: #4f46e5; color: white; }
.home-btn-primary:hover { background: #4338ca; color: white; }
.home-btn-secondary { background: white; color: #0f172a; border: 2px solid #e2e8f0; }
.home-btn-secondary:hover { background: #f8fafc; color: #0f172a; }

/* ===== MN Profile (mn-profile.blade.php) ===== */
.mn-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid white; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.mn-avatar-placeholder { width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(135deg, #4f46e5, #06b6d4); color: white; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; border: 4px solid white; box-shadow: 0 4px 16px rgba(0,0,0,0.12); margin: 0 auto; }
.mn-cta-btn { display: flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.7rem 1rem; border-radius: 12px; font-size: 0.85rem; font-weight: 600; text-decoration: none; -webkit-tap-highlight-color: transparent; border: none; cursor: pointer; }
.mn-cta-btn:active { opacity: 0.85; transform: scale(0.98); }
.mn-book-btn { display: flex; align-items: center; justify-content: center; gap: 0.4rem; width: 100%; padding: 0.65rem; background: linear-gradient(135deg, #4f46e5, #06b6d4); color: white; border: none; border-radius: 10px; font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent; }
.mn-book-btn:active { opacity: 0.85; transform: scale(0.98); }

/* ===== Students ===== */
.stu-tabs { display: flex; background: #f1f5f9; border-radius: 10px; padding: 3px; margin-bottom: 1rem; }
.stu-tab { flex: 1; padding: 0.5rem; border: none; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; background: transparent; color: #64748b; transition: all 0.2s; }
.stu-tab--active { background: white; color: #0f172a; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.stu-empty { text-align: center; padding: 2rem; color: #94a3b8; }
.stu-empty i { font-size: 2.5rem; }
.stu-empty p { margin-top: 0.5rem; }
.stu-row { display: flex; align-items: center; gap: 0.75rem; }
.stu-avatar { width: 44px; height: 44px; min-width: 44px; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.stu-info { flex: 1; min-width: 0; }
.stu-name { font-weight: 700; font-size: 0.95rem; }
.stu-meta { font-size: 0.8rem; color: #64748b; }
.stu-sub { font-size: 0.75rem; color: #94a3b8; }
.stu-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.stu-eval-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.65rem; border-radius: 8px; font-size: 0.8rem; font-weight: 600; }
.stu-details { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #f1f5f9; display: flex; flex-direction: column; gap: 0.5rem; }
.stu-eval-notes { font-size: 0.8rem; color: #64748b; padding: 0.4rem 0.6rem; background: #f8fafc; border-radius: 6px; }
.stu-family { font-size: 0.85rem; color: #64748b; display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.stu-phone { color: #10b981; text-decoration: none; font-weight: 600; margin-left: 0.5rem; }
.stu-stats { font-size: 0.8rem; color: #64748b; display: flex; gap: 1rem; }
.stu-upcoming { color: #3b82f6; font-weight: 600; }
.stu-modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.5); display: flex; align-items: flex-end; }
.stu-modal { background: white; width: 100%; border-radius: 16px 16px 0 0; padding: 1.5rem; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); max-height: 80vh; overflow-y: auto; }
.stu-modal-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.stu-label { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; display: block; }
.stu-eval-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1rem; }
.stu-eval-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.65rem 0.75rem; border-radius: 10px; border: 2px solid; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.15s ease; }
.stu-eval-btn span:first-child { font-size: 1.1rem; }
.stu-textarea { width: 100%; padding: 0.75rem; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.9rem; resize: none; margin-bottom: 0.5rem; font-family: inherit; }

/* ===== Student Detail ===== */
.sd-empty { text-align: center; padding: 3rem; color: #94a3b8; }
.sd-empty i { font-size: 2.5rem; }
.sd-header { text-align: center; padding: 1.25rem; }
.sd-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #06b6d4, #0891b2); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem; margin: 0 auto 0.5rem; }
.sd-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #06b6d4; margin: 0 auto 0.5rem; display: block; }
.sd-title { font-weight: 700; font-size: 1.15rem; }
.sd-subtitle { font-size: 0.85rem; color: #64748b; }
.sd-section-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.35rem; }
.sd-info-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.sd-info-label { font-size: 0.7rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.03em; }
.sd-info-value { font-size: 0.9rem; font-weight: 600; }
.sd-family-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem; }
.sd-family-contacts { display: flex; flex-direction: column; gap: 0.35rem; }
.sd-contact-link { text-decoration: none; font-size: 0.9rem; display: flex; align-items: center; gap: 0.35rem; }
.sd-contact-phone { color: #10b981; }
.sd-contact-email { color: #3b82f6; }
.sd-apt { cursor: pointer; }
.sd-apt:active { background: #f8fafc; }
.sd-apt-row { display: flex; align-items: center; gap: 0.75rem; }
.sd-apt-date { width: 40px; text-align: center; flex-shrink: 0; }
.sd-apt-day { font-size: 1.1rem; font-weight: 800; line-height: 1.1; }
.sd-apt-month { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; color: #64748b; }
.sd-apt-info { flex: 1; min-width: 0; }
.sd-apt-time { font-size: 0.85rem; font-weight: 600; }
.sd-apt-loc { font-size: 0.75rem; color: #64748b; }
.sd-apt-eval { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.6rem; border-radius: 6px; font-size: 0.75rem; font-weight: 600; margin-top: 0.5rem; }
.sd-apt-eval-notes { opacity: 0.8; font-weight: 400; }

/* ===== FAQ ===== */
.faq-list { padding: 0 !important; overflow: hidden; }
.faq-item { padding: 0.85rem 1rem; border-bottom: 1px solid #f1f5f9; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.faq-item:active { background: #f8fafc; }
.faq-item--last { border-bottom: none; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; font-size: 0.9rem; font-weight: 600; color: #0f172a; }
.faq-a { font-size: 0.8rem; color: #64748b; line-height: 1.5; margin-top: 0.5rem; padding-right: 1.5rem; }

/* ===== Legal pages (CGV, Confidentialité, Mentions) ===== */
.legal-card { padding: 0 !important; overflow: hidden; }
.legal-section { padding: 1rem; border-bottom: 1px solid #f1f5f9; }
.legal-title { font-size: 0.85rem; font-weight: 700; color: #0f172a; margin-bottom: 0.4rem; }
.legal-section p { font-size: 0.8rem; color: #475569; line-height: 1.6; margin: 0; }
.legal-section ul { font-size: 0.8rem; color: #475569; line-height: 1.6; margin: 0.4rem 0 0 0; padding-left: 1.25rem; }
.legal-section li { margin-bottom: 0.25rem; }

/* ===== Appointment Show (GPS button) ===== */
.gps-big-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%; padding: 0.85rem; background: #4f46e5; color: white;
    border-radius: 12px; text-decoration: none; font-size: 1rem; font-weight: 700;
    margin-top: 0.75rem; box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
    -webkit-tap-highlight-color: transparent;
}
.gps-big-btn:active { background: #4338ca; transform: scale(0.98); }

/* ===== More page ===== */
.more-link {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem;
    text-decoration: none; color: #0f172a; border-bottom: 1px solid #f1f5f9;
    -webkit-tap-highlight-color: transparent;
}
.more-link:active { background: #f8fafc; }
.more-icon { font-size: 1.2rem; flex-shrink: 0; }
.more-label { flex: 1; font-size: 0.9rem; }
.more-chevron { color: #94a3b8; font-size: 0.9rem; flex-shrink: 0; }

/* ===== Subscription ===== */
.sub-row { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 1rem; border-bottom: 1px solid #f1f5f9; }
.sub-label { font-size: 0.8rem; color: #64748b; }
.sub-value { font-size: 0.85rem; font-weight: 600; color: #0f172a; }

/* ===== Family Profile form ===== */
.fm-group { margin-bottom: 1rem; }
.fm-label { display: block; font-size: 0.8rem; font-weight: 600; color: #374151; margin-bottom: 0.35rem; }
.fm-input { width: 100%; padding: 0.65rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 0.9rem; font-family: inherit; background: white; color: #0f172a; -webkit-appearance: none; }
.fm-input:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }

/* ===== Filter Pills (réutilisable) ===== */
.filter-pills { display: flex; gap: 0.5rem; margin-bottom: 1rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pill {
    flex: 1; min-width: 0; padding: 0.55rem 0.75rem; border-radius: 12px;
    font-size: 0.8rem; font-weight: 600; font-family: inherit; cursor: pointer;
    border: 1.5px solid #e2e8f0; background: #f8fafc; color: #64748b;
    transition: all 0.2s ease; -webkit-tap-highlight-color: transparent;
    text-align: center; white-space: nowrap;
}
.filter-pill:active { transform: scale(0.96); }
.filter-pill.active { color: white; border-color: transparent; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.filter-pill.active[data-color="purple"] { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.filter-pill.active[data-color="blue"] { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.filter-pill.active[data-color="cyan"] { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.filter-pill.active[data-color="green"] { background: linear-gradient(135deg, #10b981, #059669); }
.filter-pill.active[data-color="red"] { background: linear-gradient(135deg, #ef4444, #dc2626); }
.filter-pill.active[data-color="amber"] { background: linear-gradient(135deg, #f59e0b, #d97706); }
.filter-pill.active[data-color="gray"] { background: linear-gradient(135deg, #64748b, #475569); }
/* Default active without data-color */
.filter-pill.active:not([data-color]) { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

/* ===== Search Input (réutilisable) ===== */
.mobile-filters-row {
    display: flex; gap: 0.5rem; margin-bottom: 0.75rem;
}
.mobile-select {
    flex: 1; padding: 0.6rem 0.75rem; border: 1.5px solid #e2e8f0; border-radius: 12px;
    font-size: 0.8rem; font-family: inherit; color: #334155; background: white;
    appearance: auto; -webkit-appearance: menulist;
    outline: none; transition: border-color 0.2s;
}
.mobile-select:focus { border-color: #8b5cf6; }

.search-input-wrap { position: relative; margin-bottom: 0.75rem; }
.search-input-wrap i { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 1.1rem; }
.search-input {
    width: 100%; padding: 0.7rem 0.75rem 0.7rem 2.5rem;
    border: 1.5px solid #e2e8f0; border-radius: 12px; font-size: 0.85rem;
    font-family: inherit; background: white; color: #0f172a;
    -webkit-appearance: none; transition: border-color 0.2s;
}
.search-input:focus { outline: none; border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,0.1); }
.search-input::placeholder { color: #94a3b8; }

/* ===== Counter label ===== */
.result-count { font-size: 0.75rem; color: #94a3b8; margin-bottom: 0.5rem; padding-left: 0.25rem; }

/* ===== User List Item ===== */
.user-list-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem; border-bottom: 1px solid #f1f5f9;
    text-decoration: none; color: #0f172a;
    -webkit-tap-highlight-color: transparent; transition: background 0.15s;
}
.user-list-item:active { background: #f8fafc; }
.user-list-avatar {
    width: 42px; height: 42px; border-radius: 50%; color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.75rem; flex-shrink: 0;
}
.user-list-info { flex: 1; min-width: 0; }
.user-list-name { font-weight: 600; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-list-email { font-size: 0.72rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-list-meta { text-align: right; flex-shrink: 0; }
.user-list-status {
    font-size: 0.65rem; font-weight: 600; padding: 0.2rem 0.5rem;
    border-radius: 6px; display: inline-block;
}
.user-list-status.status-active { background: #dcfce7; color: #16a34a; }
.user-list-status.status-inactive { background: #fef2f2; color: #dc2626; }
.user-list-status.status-pending { background: #fef9c3; color: #ca8a04; }
.user-list-status.status-pending_validation { background: #fef9c3; color: #ca8a04; }
.user-list-status.status-refused { background: #fef2f2; color: #dc2626; }
.user-list-status.status-suspended { background: #fff7ed; color: #ea580c; }
.user-list-role { font-size: 0.68rem; color: #94a3b8; margin-top: 0.15rem; }

/* ===== User Show (fiche détail admin) ===== */
.user-show-header { text-align: center; padding: 1.5rem 1rem; }
.user-show-avatar {
    width: 64px !important; height: 64px !important; min-width: 64px !important; max-width: 64px !important;
    border-radius: 50% !important; color: white; margin: 0 auto 0.75rem;
    display: flex !important; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.2rem; line-height: 64px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden; flex-shrink: 0;
}
.user-show-name { font-size: 1.25rem; font-weight: 700; color: #0f172a; margin: 0 0 0.25rem; }
.user-show-ref { font-size: 0.75rem; color: #94a3b8; font-family: monospace; }
.user-show-badges {
    display: flex; gap: 0.5rem; justify-content: center; align-items: center;
    margin-top: 0.75rem; flex-wrap: wrap;
}
.user-show-badge {
    display: inline-block; padding: 0.25rem 0.75rem; border-radius: 20px;
    font-size: 0.7rem; font-weight: 600;
}
.user-show-badge.badge-status-active { background: #dcfce7; color: #16a34a; }
.user-show-badge.badge-status-inactive { background: #fef2f2; color: #dc2626; }
.user-show-badge.badge-status-pending { background: #fef9c3; color: #ca8a04; }
.user-show-badge.badge-status-pending_validation { background: #fef9c3; color: #ca8a04; }
.user-show-badge.badge-status-refused { background: #fef2f2; color: #dc2626; }
.user-show-badge.badge-status-suspended { background: #fff7ed; color: #ea580c; }
.user-show-badge.badge-role-family { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
.user-show-badge.badge-role-master_swimmer { background: linear-gradient(135deg, #06b6d4, #0891b2); color: white; }
.user-show-badge.badge-role-admin { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; }
.user-show-badge.badge-role-vendeur { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.user-show-badge.badge-validation-pending_validation { background: #fef9c3; color: #ca8a04; }
.user-show-badge.badge-validation-refused { background: #fef2f2; color: #dc2626; }
.user-show-badge.badge-validation-suspended { background: #fef2f2; color: #dc2626; }
.user-show-badge.badge-validation-draft { background: #f1f5f9; color: #64748b; }
.user-show-badge.badge-validation-pending_payment { background: #fff7ed; color: #ea580c; }
.user-show-section-title {
    font-size: 0.75rem; font-weight: 700; color: #8b5cf6; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 0.75rem; padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
    display: flex; align-items: center; gap: 0.4rem;
}
.user-show-section-title i { font-size: 1rem; }
.user-show-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.65rem 0; border-bottom: 1px solid #f8fafc;
}
.user-show-row:last-child { border-bottom: none; }
.user-show-label { font-size: 0.8rem; color: #94a3b8; flex-shrink: 0; }
.user-show-value { font-size: 0.85rem; font-weight: 600; color: #0f172a; text-align: right; max-width: 60%; word-break: break-word; }
.user-show-action-btn {
    width: 100%; padding: 0.85rem 1.25rem; border: none; border-radius: 14px;
    font-size: 0.85rem; font-weight: 600; font-family: inherit; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.user-show-action-btn:active { transform: scale(0.97); opacity: 0.85; }
.user-show-action-danger {
    background: #dc2626; color: white;
    box-shadow: 0 4px 14px rgba(220,38,38,0.3);
}
.user-show-action-success {
    background: #16a34a; color: white;
    box-shadow: 0 4px 14px rgba(22,163,106,0.3);
}
.user-show-action-outline {
    background: white; color: #64748b;
    border: 1.5px solid #e2e8f0;
    box-shadow: none;
}

/* ===== Mobile Login ===== */
.mobile-login-wrapper {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 100vh; padding: 2rem 1.5rem; text-align: center;
    background: linear-gradient(160deg, #f0f4ff 0%, #e8f8fa 50%, #f8fafc 100%);
}
.mobile-login-logo { margin-bottom: 1.5rem; }
.mobile-login-logo img { width: 120px; height: auto; border-radius: 12px; }
.mobile-login-title {
    font-size: 1.4rem; font-weight: 800; color: #0f172a; margin-bottom: 1.5rem;
}
.mobile-login-alert {
    width: 100%; max-width: 360px; padding: 0.75rem 1rem; border-radius: 10px;
    font-size: 0.85rem; margin-bottom: 1rem; text-align: left;
    display: flex; align-items: center; gap: 0.5rem;
}
.mobile-login-alert--info { background: #eff6ff; color: #1e40af; border-left: 3px solid #4f46e5; }
.mobile-login-alert--success { background: #f0fdf4; color: #166534; border-left: 3px solid #22c55e; }
.mobile-login-alert--error { background: #fef2f2; color: #991b1b; border-left: 3px solid #ef4444; }
.mobile-login-form {
    width: 100%; max-width: 360px; text-align: left;
}
.mobile-login-field {
    margin-bottom: 1rem;
}
.mobile-login-field label {
    display: block; font-size: 0.8rem; font-weight: 600; color: #374151;
    margin-bottom: 0.35rem;
}
.mobile-login-field input {
    width: 100%; padding: 0.75rem 1rem; border: 1.5px solid #e2e8f0; border-radius: 12px;
    font-size: 1rem; font-family: inherit; background: white; color: #0f172a;
    -webkit-appearance: none; transition: border-color 0.2s;
}
.mobile-login-field input:focus {
    outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.mobile-login-field input.field-error { border-color: #ef4444; }
.mobile-login-options {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem; font-size: 0.85rem;
}
.mobile-login-remember {
    display: flex; align-items: center; gap: 0.4rem; color: #475569;
}
.mobile-login-remember input { width: 16px; height: 16px; accent-color: #4f46e5; }
.mobile-login-forgot { color: #4f46e5; text-decoration: none; font-weight: 500; }
.mobile-login-btn {
    width: 100%; padding: 0.9rem; border: none; border-radius: 14px;
    background: #4f46e5; color: white; font-size: 1.05rem; font-weight: 700;
    font-family: inherit; cursor: pointer; display: flex; align-items: center;
    justify-content: center; gap: 0.5rem; transition: transform 0.15s, background 0.2s;
    box-shadow: 0 2px 8px rgba(79,70,229,0.3);
}
.mobile-login-btn:active { transform: scale(0.97); background: #4338ca; }
.mobile-login-footer {
    margin-top: 2rem; text-align: center;
}
.mobile-login-footer p { font-size: 0.85rem; color: #64748b; margin-bottom: 0.3rem; }
.mobile-login-register {
    color: #4f46e5; text-decoration: none; font-weight: 700; font-size: 1rem;
}
.mobile-login-back {
    margin-top: 1.5rem; color: #94a3b8; text-decoration: none; font-size: 0.85rem;
    display: flex; align-items: center; gap: 0.3rem;
}

/* ===== Profile & Children Components ===== */
.text-center { text-align: center; }
.profile-card-centered { text-align: center; padding: 1.25rem; }

.profile-avatar-large {
    width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 0.5rem;
}
.profile-avatar-placeholder-large {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #0891b2); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.5rem; margin: 0 auto 0.5rem;
}
.profile-name { font-weight: 700; font-size: 1.1rem; }
.profile-email { font-size: 0.8rem; color: #64748b; }
.profile-reference { font-size: 0.7rem; color: #94a3b8; margin-top: 0.15rem; }

.section-header-mobile {
    display: flex; justify-content: space-between; align-items: center;
    margin: 1.25rem 0 0.5rem 0.25rem;
}
.section-title-mobile {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: #94a3b8;
}
.btn-link-primary {
    font-size: 0.8rem; color: #4f46e5; font-weight: 600;
    border: none; background: none; cursor: pointer;
}

.empty-state-card { text-align: center; padding: 1.5rem; }
.empty-state-icon { font-size: 2rem; color: #cbd5e1; }
.empty-state-text { color: #64748b; font-size: 0.85rem; margin-top: 0.5rem; }
.empty-state-btn {
    margin-top: 0.5rem; padding: 0.5rem 1rem; background: #4f46e5; color: white;
    border: none; border-radius: 10px; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}

.child-card { margin-bottom: 0.5rem; }
.child-card-layout { display: flex; align-items: center; gap: 0.75rem; }
.child-avatar {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.child-avatar-placeholder {
    width: 44px; height: 44px; border-radius: 50%; background: #f59e0b; color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.child-info-flex { flex: 1; min-width: 0; }
.child-name { font-weight: 600; font-size: 0.9rem; }
.child-meta { font-size: 0.75rem; color: #64748b; }
.child-actions { display: flex; gap: 0.25rem; }
.btn-icon-edit {
    width: 34px; height: 34px; border-radius: 8px; border: 1px solid #e2e8f0;
    background: white; color: #64748b; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.btn-icon-delete {
    width: 34px; height: 34px; border-radius: 8px; border: 1px solid #fecaca;
    background: #fef2f2; color: #ef4444; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.btn-icon-edit i, .btn-icon-delete i { font-size: 0.9rem; }

.modal-fullscreen-mobile {
    position: fixed; inset: 0; z-index: 200; background: #f8fafc;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.modal-header-mobile {
    display: flex; align-items: center; padding: 0.75rem 1rem;
    background: white; border-bottom: 1px solid #e9ecef;
    position: sticky; top: 0; z-index: 10;
}
.modal-close-btn {
    border: none; background: none; cursor: pointer;
    padding: 0; margin-right: 0.75rem;
}
.modal-close-icon { font-size: 1.2rem; color: #64748b; }
.modal-title-mobile { font-weight: 700; font-size: 1rem; }
.modal-form-content { padding: 1rem; }
.form-actions-mobile {
    display: flex; gap: 0.75rem; margin-top: 1.5rem;
}
.btn-cancel-mobile {
    flex: 1; padding: 0.75rem; background: white; border: 1px solid #e2e8f0;
    border-radius: 12px; font-size: 0.9rem; font-weight: 600; color: #64748b;
    cursor: pointer; font-family: inherit;
}
.btn-submit-mobile {
    flex: 2; padding: 0.75rem; background: #4f46e5; color: white; border: none;
    border-radius: 12px; font-size: 0.9rem; font-weight: 600; cursor: pointer; font-family: inherit;
}

.required-asterisk { color: #ef4444; }

.settings-link-list { padding: 0; }
.settings-link {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem;
    text-decoration: none; color: #0f172a; border-bottom: 1px solid #f1f5f9;
}
.settings-link:last-child { border-bottom: none; }
.settings-link-icon { font-size: 1.1rem; color: #64748b; }
.settings-link-text { flex: 1; font-size: 0.9rem; }
.settings-link-chevron { color: #94a3b8; }

.modal-overlay {
    position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-content-centered {
    background: white; border-radius: 16px; padding: 1.5rem;
    max-width: 320px; width: 100%; text-align: center;
}
.modal-icon-danger {
    width: 48px; height: 48px; border-radius: 50%; background: #fef2f2; color: #ef4444;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.modal-icon-danger i { font-size: 1.3rem; }
.modal-confirm-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; }
.modal-confirm-text { font-size: 0.85rem; color: #64748b; margin-bottom: 1.25rem; }
.modal-confirm-actions { display: flex; gap: 0.75rem; }
.btn-modal-cancel {
    flex: 1; padding: 0.65rem; background: white; border: 1px solid #e2e8f0;
    border-radius: 10px; font-size: 0.9rem; font-weight: 600; color: #64748b;
    cursor: pointer; font-family: inherit;
}
.btn-modal-danger {
    flex: 1; padding: 0.65rem; background: #ef4444; color: white; border: none;
    border-radius: 10px; font-size: 0.9rem; font-weight: 600; cursor: pointer; font-family: inherit;
}

.logout-section { margin-top: 1.25rem; }
.btn-logout-mobile {
    width: 100%; padding: 0.75rem; border: 1px solid #fecaca; background: #fef2f2;
    color: #ef4444; border-radius: 12px; font-size: 0.9rem; font-weight: 600;
    cursor: pointer; font-family: inherit;
}

.spinner-margin-right { margin-right: 0.25rem; }

/* ===== Appointment Detail Components ===== */
.loading-state { text-align: center; padding: 3rem; color: #94a3b8; }
.loading-icon { font-size: 2rem; }
.error-state { text-align: center; padding: 2rem; }
.error-icon { font-size: 2.5rem; color: #ef4444; }
.error-text { margin-top: 0.5rem; color: #64748b; }

.status-banner { padding: 0.75rem 1rem; }
.status-banner-row { display: flex; justify-content: space-between; align-items: center; }
.status-ref-label { font-size: 0.75rem; color: #94a3b8; }
.status-ref-value { font-size: 0.85rem; font-weight: 600; color: #64748b; }
.status-badge { font-size: 0.8rem; padding: 0.4rem 0.75rem; }

.apt-date-box {
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, #06b6d4, #0891b2); color: white;
    display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
}
.apt-date-month { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; line-height: 1; }
.apt-date-day { font-size: 1.1rem; font-weight: 800; line-height: 1.1; }
.apt-date-label { font-weight: 700; font-size: 1rem; }
.apt-time-label { color: #64748b; font-size: 0.9rem; }
.apt-time-icon { font-size: 0.85rem; }
.apt-duration { color: #94a3b8; }

.detail-section-label {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: #94a3b8; margin-bottom: 0.5rem;
}

.swimmer-avatar-large {
    width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
    border: 2px solid #06b6d4; flex-shrink: 0;
}
.swimmer-avatar-placeholder-large {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #10b981); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.swimmer-name { font-weight: 600; font-size: 1rem; }
.swimmer-age { font-size: 0.85rem; color: #64748b; }

.family-name { font-weight: 600; }
.contact-links { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.contact-link-phone { text-decoration: none; color: #10b981; font-size: 0.9rem; }
.contact-link-email { text-decoration: none; color: #3b82f6; font-size: 0.9rem; }
.contact-icon { font-size: 0.9rem; }

.course-title { font-weight: 600; }
.course-location { font-size: 0.85rem; color: #64748b; margin-top: 0.25rem; }
.location-icon { font-size: 0.85rem; }

.amount-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; margin-bottom: 0.25rem; }
.amount-value { font-size: 1.3rem; font-weight: 700; color: #4f46e5; }

.eval-card { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.eval-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.eval-title {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: #059669;
}
.eval-edit-btn { font-size: 0.75rem; padding: 0.2rem 0.6rem; }
.eval-notes-box { font-size: 0.9rem; background: white; padding: 0.5rem 0.75rem; border-radius: 8px; margin-bottom: 0.5rem; }
.eval-reco-label { font-weight: 600; font-size: 0.8rem; color: #059669; }

.cancel-card-yellow { background: #fef3c7; }
.cancel-card-red { background: #fee2e2; }
.cancel-title-yellow { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; color: #d97706; }
.cancel-title-red { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; color: #dc2626; }
.cancel-reason { font-size: 0.9rem; }

.apt-actions { padding: 0.5rem 0; }

.modal-bottom-sheet-overlay {
    position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.5);
    display: flex; align-items: flex-end;
}
.modal-bottom-sheet {
    background: white; width: 100%; border-radius: 16px 16px 0 0; padding: 1.5rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}
.modal-bottom-sheet-scrollable {
    background: white; width: 100%; border-radius: 16px 16px 0 0; padding: 1.5rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); max-height: 80vh; overflow-y: auto;
}
.modal-sheet-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.modal-sheet-label { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; display: block; }
.modal-sheet-select {
    width: 100%; padding: 0.75rem; border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 0.9rem; margin-bottom: 0.75rem; background: white;
}
.modal-sheet-textarea {
    width: 100%; padding: 0.75rem; border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 0.9rem; resize: none;
}
.modal-sheet-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }

.eval-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1rem; }
.eval-option-btn {
    display: flex; align-items: center; gap: 0.5rem; padding: 0.65rem 0.75rem;
    border-radius: 10px; border: 2px solid; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: all 0.15s ease;
}
.eval-emoji { font-size: 1.1rem; }

/* ===== Reservation Components ===== */
.loading-course { text-align: center; padding: 3rem 0; }
.loading-course-icon { font-size: 2rem; color: #4f46e5; }
.loading-course-text { color: #94a3b8; margin-top: 0.5rem; font-size: 0.9rem; }

.error-course { text-align: center; padding: 2rem; }
.error-course-icon { font-size: 2rem; color: #ef4444; }
.error-course-text { color: #ef4444; margin-top: 0.5rem; font-size: 0.9rem; }
.error-back-link { color: #4f46e5; font-weight: 600; font-size: 0.85rem; text-decoration: none; }

.course-header { display: flex; justify-content: space-between; align-items: flex-start; }
.course-info { flex: 1; min-width: 0; }
.course-title { font-weight: 700; font-size: 1rem; }
.course-badges { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-top: 0.3rem; }
.badge-type { background: #eff6ff; color: #4f46e5; padding: 0.15rem 0.5rem; border-radius: 6px; font-size: 0.7rem; font-weight: 600; }
.badge-level { background: #ecfdf5; color: #10b981; padding: 0.15rem 0.5rem; border-radius: 6px; font-size: 0.7rem; font-weight: 600; }
.course-price-box { text-align: right; flex-shrink: 0; margin-left: 0.5rem; }
.course-price { font-size: 1.2rem; font-weight: 700; color: #4f46e5; }
.course-price-unit { font-size: 0.65rem; color: #94a3b8; }

.empty-swimmers { text-align: center; padding: 1.5rem; }
.empty-swimmers-icon { font-size: 1.5rem; color: #f59e0b; }
.empty-swimmers-text { font-size: 0.85rem; color: #64748b; margin-top: 0.5rem; }
.empty-swimmers-link { color: #4f46e5; font-weight: 600; font-size: 0.85rem; text-decoration: none; }

.swimmer-list { padding: 0.5rem 0.75rem; }
.swimmer-choice {
    display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.choice-icon-radio { font-size: 1.2rem; }
.choice-icon-checked { color: #4f46e5; font-size: 1.2rem; }
.choice-icon-unchecked { color: #cbd5e1; font-size: 1.2rem; }
.choice-name { font-weight: 600; font-size: 0.9rem; }

.calendar-wrapper { position: relative; }
.calendar-loading-overlay {
    position: absolute; inset: 0; background: rgba(255,255,255,0.8);
    display: flex; align-items: center; justify-content: center; z-index: 5; border-radius: 12px;
}
.calendar-loading-spinner { font-size: 1.5rem; color: #4f46e5; }

.month-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.month-label { font-weight: 700; font-size: 0.95rem; text-transform: capitalize; }
.nav-disabled { opacity: 0.3; }

.cal-legend {
    display: flex; gap: 1rem; margin-top: 0.75rem;
    font-size: 0.7rem; color: #94a3b8;
}
.legend-box { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.legend-available { background: #ecfdf5; border: 1px solid #a7f3d0; }
.legend-selected { background: #4f46e5; }
.legend-full { background: #fef2f2; border: 1px solid #fecaca; }

.recap-bar {
    position: sticky; bottom: calc(var(--bottom-tabs-height) + 0.5rem);
    background: white; padding: 1rem; border-radius: 14px; margin-top: 1rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
}
.recap-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.recap-count { font-weight: 700; font-size: 0.9rem; }
.recap-meta { font-size: 0.8rem; color: #64748b; }
.recap-total { font-weight: 700; font-size: 1.15rem; color: #4f46e5; }

.selected-dates-pills { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.75rem; }
.date-pill {
    display: inline-flex; align-items: center; gap: 0.25rem;
    background: #eff6ff; color: #4f46e5; padding: 0.25rem 0.5rem;
    border-radius: 8px; font-size: 0.75rem; font-weight: 600; cursor: pointer;
}
.date-pill-icon { font-size: 0.7rem; }

.submit-error { background: #fef2f2; color: #ef4444; padding: 0.5rem 0.75rem; border-radius: 8px; font-size: 0.8rem; margin-bottom: 0.5rem; }
.confirm-btn {
    width: 100%; padding: 0.85rem; border: none; border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4); color: white;
    font-size: 0.95rem; font-weight: 700; cursor: pointer; font-family: inherit;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.confirm-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.no-swimmer-warning { font-size: 0.75rem; color: #f59e0b; text-align: center; margin-top: 0.5rem; }

.confirm-sheet-handle {
    width: 40px; height: 4px; background: #e2e8f0; border-radius: 2px; margin: 0 auto 1.25rem;
}
.confirm-sheet-header { text-align: center; margin-bottom: 1.25rem; }
.confirm-icon {
    width: 56px; height: 56px; border-radius: 50%; background: #ecfdf5; color: #10b981;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 0.75rem; font-size: 1.5rem;
}
.confirm-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.35rem; }
.confirm-desc { font-size: 0.85rem; color: #64748b; line-height: 1.5; }

.dates-list {
    background: #f8fafc; border-radius: 10px; padding: 0.75rem;
    margin-bottom: 1rem; max-height: 120px; overflow-y: auto;
}
.date-item {
    display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0; font-size: 0.85rem;
}
.date-icon { color: #4f46e5; font-size: 0.85rem; }

.total-box {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem; background: #eff6ff; border-radius: 10px; margin-bottom: 1.25rem;
}
.total-label { font-size: 0.85rem; color: #64748b; }
.total-amount { font-size: 1.2rem; font-weight: 700; color: #4f46e5; }

.confirm-actions { display: flex; gap: 0.75rem; }
.confirm-cancel-btn {
    flex: 1; padding: 0.75rem; border-radius: 12px; border: 1px solid #e2e8f0;
    background: white; font-size: 0.9rem; font-weight: 600; color: #64748b;
    cursor: pointer; font-family: inherit;
}
.confirm-submit-btn {
    flex: 1.5; padding: 0.75rem; border-radius: 12px; border: none;
    background: linear-gradient(135deg, #4f46e5, #06b6d4); color: white;
    font-size: 0.9rem; font-weight: 700; cursor: pointer; font-family: inherit;
}

/* ===== Admin Actions Components ===== */
.tabs-container { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.tab-btn {
    flex: 1; padding: 0.6rem; border-radius: 10px; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; font-family: inherit; border: none; position: relative;
}
.tab-active { background: #8b5cf6; color: white; }
.tab-inactive { background: white; color: #64748b; border: 1px solid #e2e8f0; }
.tab-badge {
    position: absolute; top: -4px; right: -4px; color: white; font-size: 0.6rem; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
}
.tab-badge-red { background: #ef4444; }
.tab-badge-orange { background: #f59e0b; }

.empty-all-clear { text-align: center; padding: 2rem; }
.empty-check-icon { font-size: 2.5rem; color: #10b981; }
.empty-title { font-weight: 600; font-size: 0.95rem; margin-top: 0.5rem; }
.empty-subtitle { font-size: 0.8rem; color: #64748b; }

.expandable-card { margin-bottom: 0.5rem; }
.expandable-header {
    display: flex; align-items: center; gap: 0.75rem;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.doc-icon-wrapper {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(239,68,68,0.1);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.doc-icon { font-size: 1.1rem; color: #ef4444; }
.expandable-info { flex: 1; min-width: 0; }
.expandable-name { font-weight: 600; font-size: 0.9rem; }
.expandable-meta { font-size: 0.75rem; color: #64748b; }
.expandable-chevron { color: #94a3b8; }

.expandable-content { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #f1f5f9; }
.doc-filename { font-size: 0.8rem; color: #64748b; margin-bottom: 0.5rem; }
.doc-view-btn {
    display: block; text-align: center; padding: 0.5rem; background: #f8fafc; border-radius: 8px;
    color: #2563eb; font-size: 0.85rem; font-weight: 600; text-decoration: none; margin-bottom: 0.75rem;
}
.action-buttons { display: flex; gap: 0.5rem; }
.action-btn {
    flex: 1; padding: 0.6rem; border: none; border-radius: 10px;
    font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.action-btn-validate { background: #10b981; color: white; }
.action-btn-reject { background: #ef4444; color: white; }

.mn-avatar-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mn-avatar-placeholder {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #0891b2); color: white;
    display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.mn-specialty { font-size: 0.8rem; color: #64748b; margin-bottom: 0.25rem; }
.mn-bio { font-size: 0.8rem; color: #475569; margin-bottom: 0.75rem; line-height: 1.5; }

.confirm-modal-wrapper {
    position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.confirm-modal-box {
    background: white; border-radius: 16px; padding: 1.5rem;
    max-width: 320px; width: 100%; text-align: center;
}
.confirm-modal-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; }
.confirm-modal-message { font-size: 0.85rem; color: #64748b; margin-bottom: 1.25rem; }
.reject-textarea-wrapper { margin-bottom: 1rem; }
.reject-textarea {
    width: 100%; padding: 0.5rem; border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 0.85rem; font-family: inherit; resize: vertical;
}
.confirm-modal-actions { display: flex; gap: 0.75rem; }
.confirm-modal-cancel {
    flex: 1; padding: 0.65rem; background: white; border: 1px solid #e2e8f0; border-radius: 10px;
    font-size: 0.9rem; font-weight: 600; color: #64748b; cursor: pointer; font-family: inherit;
}
.confirm-modal-submit {
    flex: 1; padding: 0.65rem; color: white; border: none; border-radius: 10px;
    font-size: 0.9rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.confirm-btn-green { background: #10b981; }
.confirm-btn-red { background: #ef4444; }

/* ===== Utility Classes (Common Patterns) ===== */
.p-0 { padding: 0; }
.p-2 { padding: 2rem; }
.p-center-2 { text-align: center; padding: 2rem; }
.p-center-125 { text-align: center; padding: 1.25rem; }
.px-075-05 { padding: 0.75rem 0.5rem; }

.flex-1 { flex: 1; }
.flex-1-min0 { flex: 1; min-width: 0; }
.flex-1-09 { flex: 1; font-size: 0.9rem; }
.flex-shrink-0 { flex-shrink: 0; }

.text-slate { color: #64748b; }
.text-slate-light { color: #94a3b8; }
.text-cyan { color: #06b6d4; }
.text-amber { color: #f59e0b; }
.text-slate-lighter { color: #cbd5e1; }

.text-075 { font-size: 0.75rem; }
.text-075-slate { font-size: 0.75rem; color: #64748b; }
.text-075-slate-light { font-size: 0.75rem; color: #94a3b8; }
.text-07 { font-size: 0.7rem; }
.text-07-slate-light { font-size: 0.7rem; color: #94a3b8; }
.text-065-slate-light { font-size: 0.65rem; color: #94a3b8; }
.text-08 { font-size: 0.8rem; }
.text-08-slate { font-size: 0.8rem; color: #64748b; }
.text-08-slate-light { font-size: 0.8rem; color: #94a3b8; }
.text-085 { font-size: 0.85rem; }
.text-085-slate { font-size: 0.85rem; color: #64748b; }
.text-09 { font-size: 0.9rem; }
.text-13 { font-size: 1.3rem; }
.text-2rem { font-size: 2rem; }
.text-2rem-slate-lighter { font-size: 2rem; color: #cbd5e1; }
.text-25rem { font-size: 2.5rem; }

.fw-600 { font-weight: 600; }
.fw-600-085 { font-weight: 600; font-size: 0.85rem; }
.fw-600-09 { font-weight: 600; font-size: 0.9rem; }
.fw-700 { font-weight: 700; }
.fw-700-11 { font-weight: 700; font-size: 1.1rem; }
.fw-700-11-slate { font-size: 1.1rem; color: #64748b; }

.mt-05 { margin-top: 0.5rem; }
.mt-05-slate { color: #64748b; font-size: 0.85rem; margin-top: 0.5rem; }
.mb-075 { margin-bottom: 0.75rem; }
.mb-125 { margin-bottom: 1.25rem; }
.mb-125-center { text-align: center; margin-bottom: 1.25rem; }

.cursor-pointer { cursor: pointer; }
.no-border-bottom { border-bottom: none; }
.link-inherit { text-decoration: none; color: inherit; }
.text-center { text-align: center; }
.whitespace-nowrap-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-1 { margin-right: 0.25rem; }
.me-025 { margin-right: 0.15rem; }
.mt-1 { margin-top: 1rem; }
.mt-075-slate-085 { margin-top: 0.75rem; color: #64748b; font-size: 0.85rem; }
.mt-025 { margin-top: 0.25rem; }
.pb-0 { padding-bottom: 0; }
.overflow-hidden { overflow: hidden; }
.text-right { text-align: right; }
.text-red { color: #ef4444; }
.text-green { color: #10b981; }
.fw-700-105 { font-weight: 700; font-size: 1.05rem; }
.fw-700-095 { font-weight: 700; font-size: 0.95rem; }
.fw-700-085 { font-weight: 700; font-size: 0.85rem; }
.text-12 { font-size: 1.2rem; }
.grid-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.flex-column-start-gap015 { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.badge-small { font-size: 0.7rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 6px; }
.text-065-slate-light-upper-fw600 { font-size: 0.65rem; color: #94a3b8; text-transform: uppercase; font-weight: 600; }
.btn-compact-mobile {
    padding: 0.5rem 0.85rem; border-radius: 10px; font-size: 0.8rem; font-weight: 600;
    cursor: pointer; font-family: inherit; border: none; white-space: nowrap;
}
.empty-footer-text { text-align: center; width: 100%; padding: 0.5rem; color: #94a3b8; font-size: 0.85rem; }
.textarea-mobile { width: 100%; padding: 0.75rem; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.9rem; resize: none; }

/* ===== Avatar Sizes & Styles ===== */
.avatar-72-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 0.5rem; }
.avatar-72-purple { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.5rem; margin: 0 auto 0.5rem; }
.avatar-72-cyan { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #06b6d4, #0891b2); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.5rem; margin: 0 auto 0.5rem; }
.avatar-64-gray { width: 64px; height: 64px; border-radius: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.75rem; }
.avatar-56-img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.avatar-56-cyan { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #06b6d4, #0891b2); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; }
.avatar-48-rounded-img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.avatar-48-rounded-flex { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.avatar-44-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-44-amber { width: 44px; height: 44px; border-radius: 50%; background: #f59e0b; color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.avatar-44-cyan { width: 44px; height: 44px; border-radius: 50%; background: #06b6d4; color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.avatar-44-text-center { width: 44px; text-align: center; flex-shrink: 0; }
.avatar-42-white-overlay { width: 42px; height: 42px; background: rgba(255,255,255,0.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.avatar-40-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; margin: 0 auto 0.35rem; }
.avatar-40-blue { width: 40px; height: 40px; border-radius: 50%; background: #2563eb; color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; flex-shrink: 0; }
.avatar-40-cyan { width: 40px; height: 40px; border-radius: 50%; background: #06b6d4; color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; margin: 0 auto 0.35rem; }
.avatar-38-amber-light { width: 38px; height: 38px; border-radius: 50%; background: rgba(245,158,11,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ===== Flex Layouts ===== */
.flex-between-start-mb05 { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.flex-start-gap075 { display: flex; align-items: flex-start; gap: 0.75rem; }
.flex-center-gap075 { display: flex; align-items: center; gap: 0.75rem; }
.flex-center-gap075-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; text-decoration: none; color: #0f172a; }

/* ===== Typography Combinations ===== */
.text-125-fw700-dark { font-size: 1.25rem; font-weight: 700; color: #0f172a; }
.text-11-fw700 { font-size: 1.1rem; font-weight: 700; }
.text-11-fw700-dark { font-size: 1.1rem; font-weight: 700; color: #0f172a; }
.text-11-amber { font-size: 1.1rem; color: #f59e0b; }
.text-11-slate-lighter { color: #cbd5e1; font-size: 1.1rem; }
.text-08-slate-mt015 { font-size: 0.8rem; color: #64748b; margin-top: 0.15rem; }
.text-08-slate-mb05 { font-size: 0.8rem; color: #64748b; margin-bottom: 0.5rem; }
.text-07-fw600-slate-block-mb025 { font-size: 0.7rem; font-weight: 600; color: #64748b; display: block; margin-bottom: 0.25rem; }
.text-07-green-mt015 { font-size: 0.7rem; color: #10b981; margin-top: 0.15rem; }
.text-075-fw600-slate-light-upper-m1-pl025 { font-size: 0.75rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; margin: 1rem 0 0.5rem 0.25rem; }
.text-075-fw600-slate-light-upper-m15-pl025 { font-size: 0.75rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; margin: 1.5rem 0 0.5rem; padding-left: 0.25rem; }

/* ===== Misc ===== */
.bg-primary-white-flex1 { background: #4f46e5; color: white; flex: 1; }
.bg-white-rounded-bottom-p15 { background: white; width: 100%; border-radius: 16px 16px 0 0; padding: 1.5rem; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
.text-purple { color: #8b5cf6; }
.text-blue { color: #2563eb; }

/* ===== Stats Grid 2x2 mini ===== */
.stats-grid-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1rem;
}
.stat-card-mini {
    background: white; border-radius: 12px; padding: 0.75rem; text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.stat-card-mini .stat-value { font-size: 1.25rem; font-weight: 700; }
.stat-card-mini .stat-label { font-size: 0.7rem; color: #94a3b8; margin-top: 0.15rem; }

/* ===== Subscription cards (mobile admin) ===== */
.sub-card { padding: 0.75rem !important; cursor: pointer; margin-bottom: 0.5rem; }
.sub-card:active { transform: scale(0.98); }
.sub-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.sub-card-user { display: flex; align-items: center; gap: 0.5rem; }
.sub-card-avatar {
    width: 36px; height: 36px; border-radius: 50%; color: white; font-weight: 700; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sub-card-name { font-weight: 600; font-size: 0.85rem; color: #0f172a; }
.sub-card-email { font-size: 0.7rem; color: #94a3b8; }
.sub-card-status {
    font-size: 0.65rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 12px;
}
.sub-card-status.status-active { background: #dcfce7; color: #16a34a; }
.sub-card-status.status-inactive { background: #fef2f2; color: #dc2626; }
.sub-card-details { border-top: 1px solid #f1f5f9; padding-top: 0.5rem; }
.sub-card-row { display: flex; justify-content: space-between; align-items: center; padding: 0.25rem 0; }
.sub-card-label { font-size: 0.75rem; color: #94a3b8; }
.sub-card-val { font-size: 0.8rem; font-weight: 500; color: #334155; }

/* ===== Appointment cards (mobile admin) ===== */
.appt-card { padding: 0.75rem !important; margin-bottom: 0.5rem; }
.appt-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.appt-card-ref { font-family: monospace; font-size: 0.7rem; color: #94a3b8; }
.appt-card-status {
    font-size: 0.65rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 12px;
}
.appt-status-pending { background: #fef9c3; color: #ca8a04; }
.appt-status-confirmed { background: #dcfce7; color: #16a34a; }
.appt-status-evaluated { background: #ede9fe; color: #7c3aed; }
.appt-status-refused { background: #fef2f2; color: #dc2626; }
.appt-status-cancelled { background: #f1f5f9; color: #64748b; }
.appt-card-body { display: flex; flex-direction: column; gap: 0.35rem; }
.appt-card-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: #334155; }
.appt-card-row i { font-size: 0.9rem; color: #94a3b8; width: 18px; text-align: center; flex-shrink: 0; }

/* ===== Final Round - Global Utilities ===== */
.bg-overlay { background: rgba(0,0,0,0.5); }
.shadow-card { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.w-auto { width: auto; }
.w-100px { width: 100px; }
.w-25pct { width: 25%; }
.max-w-800 { max-width: 800px; }
.min-h-100 { min-height: 100px; }
.min-h-120-pointer { cursor: pointer; min-height: 120px; }
.pos-rel { position: relative; }
.d-none { display: none; }
.z-9999 { z-index: 9999; }
.opacity-06-nopointer { opacity: 0.6; cursor: default; }
.text-07-upper-spacing { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.3px; }
.text-075rem { font-size: 0.75rem; }
.text-085em { font-size: 0.85em; }
.avatar-32-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.avatar-40-img-square { width: 40px; height: 40px; object-fit: cover; }
.avatar-80-img-square { width: 80px; height: 80px; object-fit: cover; }
.avatar-80-flex { width: 80px; height: 80px; font-size: 1.8rem; }
.avatar-28-text { width: 28px; height: 28px; font-size: 0.7rem; }
.badge-green-light { background: #ecfdf5; color: #10b981; }
.chat-flex-col { display: flex; flex-direction: column; height: 100%; max-height: 520px; }

/* ===== Last Wave - Specific Patterns ===== */
.pos-rel-z2 { position: relative; z-index: 2; }
.border-slate-bg-light { background: #f8fafc; border: 1px solid #e2e8f0; }
.border-slate-bg-white { background: white; border: 1px solid #e2e8f0; }
.text-15rem-primary { font-size: 1.5rem; color: var(--primary-color); }
.text-4rem-primary { font-size: 4rem; color: var(--primary-color); }
.text-175rem-fw-bold { font-size: 1.75rem; font-weight: 700; }
.text-125rem-fw700-primary { font-size: 1.25rem; font-weight: 700; color: #4f46e5; }
.text-125rem-fw600 { font-size: 1.25rem; font-weight: 600; }
.text-1rem { font-size: 1rem; }
.text-1rem-fw-semibold { font-size: 1rem; font-weight: 600; }
.text-085rem { font-size: 0.85rem; }
.text-08rem-primary { font-size: 0.8rem; color: #4f46e5; }
.badge-blue { background: #eff6ff; color: #4f46e5; }
.badge-amber { background: #fef3c7; color: #d97706; }
.icon-36-blue { width: 36px; height: 36px; background: #eff6ff; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.icon-36-green { width: 36px; height: 36px; background: #ecfdf5; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.icon-36-yellow { width: 36px; height: 36px; background: #fffbeb; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.icon-36-amber { width: 36px; height: 36px; background: #fef3c7; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.icon-color-primary { color: #4f46e5; }
.icon-color-green { color: #10b981; }
.avatar-family-cover { object-fit: cover; }
.modal-overlay-hidden { background: rgba(0,0,0,0.5); display: none; }
.contact-card-gradient { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.avatar-32-cyan-075 { width: 32px; height: 32px; border-radius: 50%; background: #06b6d4; color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; }
.header-gap-025 { gap: 0.25rem; }

/* ===== Ultra Final - Search & Layouts ===== */
.search-icon-left { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 1.1rem; }
.search-input-mobile { width: 100%; padding: 0.7rem 0.75rem 0.7rem 2.5rem; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 0.9rem; font-family: inherit; background: white; -webkit-appearance: none; }
.filter-row-mt05 { display: flex; gap: 0.4rem; margin-top: 0.5rem; align-items: center; }
.chip-sm { padding: 0.25rem 0.6rem; font-size: 0.75rem; }
.scroll-x-pb05 { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; }
.grid-2col-gap05 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.select-mobile { width: 100%; padding: 0.5rem; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.85rem; font-family: inherit; }
.select-mobile-white { width: 100%; padding: 0.5rem; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.85rem; font-family: inherit; background: white; }
.btn-reset-mobile { margin-top: 0.5rem; width: 100%; padding: 0.5rem; border: 1px solid #e2e8f0; border-radius: 8px; background: white; font-size: 0.8rem; color: #64748b; font-family: inherit; cursor: pointer; }
.tab-segmented { display: flex; gap: 4px; background: #f1f5f9; border-radius: 10px; padding: 3px; margin-bottom: 0.75rem; }
.text-075-slate-light { font-size: 0.75rem; color: #94a3b8; }
.mb-05 { margin-bottom: 0.5rem; }
.text-primary { color: var(--primary-color, #4f46e5); }
.map-container { height: 55vh; border-radius: 12px; z-index: 1; }
.gap-3 { gap: 0.75rem; }
.flex-wrap-gap025-mt035 { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.35rem; }
.badge-specialty { background: #eff6ff; color: #4f46e5; padding: 0.1rem 0.45rem; border-radius: 6px; font-size: 0.65rem; font-weight: 500; }
