/* ============================================
   AGGENDA — Design System & Global Styles
   ============================================ */

@keyframes pinPulse {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* --- Design Tokens --- */
:root {
    /* Brand Colors */
    --color-bg-primary: #0B0F19;
    --color-bg-secondary: #131824;
    --color-bg-card: #1A1F2E;
    --color-blue: #2563FF;
    --color-purple: #7D5CFF;
    --color-teal: #00D1B2;
    --color-gray: #8E96A3;
    --color-gray-light: #F5F6F8;
    --color-text-secondary: #4B5563;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-amber: #F59E0B;
    --color-pink: #EC4899;
    --color-red: #EF4444;
    --color-gold: #FBBF24;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #2563FF 0%, #7D5CFF 100%);
    --gradient-button: linear-gradient(135deg, #7D5CFF 0%, #5B8AFF 100%);
    --gradient-hero-overlay: linear-gradient(
        to bottom,
        rgba(11, 15, 25, 0.2) 0%,
        rgba(11, 15, 25, 0.1) 25%,
        rgba(11, 15, 25, 0.4) 55%,
        rgba(11, 15, 25, 0.85) 80%,
        rgba(11, 15, 25, 1) 100%
    );

    /* Typography */
    --font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Font Sizes */
    --text-2xs: 11px;
    --text-xs: 12px;
    --text-sm: 13.5px;
    --text-base: 15px;
    --text-lg: 17px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 32px;
    --text-4xl: 40px;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-button: 0 8px 24px rgba(125, 92, 255, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Safe Areas */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    /* Layout */
    --bottom-nav-height: 70px;
    --header-height: 56px;
}

/* --- CSS Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

html {
    box-sizing: border-box;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
    background-color: var(--color-bg-primary);
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: none !important;
    overscroll-behavior-inline: none !important;
    touch-action: pan-y pinch-zoom;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-regular);
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--color-white);
    background-color: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior-x: none !important;
    overscroll-behavior-y: none;
    overscroll-behavior: none !important;
    touch-action: pan-y pinch-zoom;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.app-container,
#app,
.screen {
    overscroll-behavior-x: none !important;
    overscroll-behavior-inline: none !important;
    touch-action: pan-y pinch-zoom;
}

/* Sticky Sub-Navigation Tabs */
.profile-tabs-wrap {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: calc(var(--safe-top) + 64px) !important;
    background: #FFFFFF !important;
    z-index: 90 !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    padding: 14px var(--space-4) 10px;
    border-bottom: 1px solid #F1F5F9;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* Hide all scrollbars globally */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
#app::-webkit-scrollbar,
.screen::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

img, video {
    display: block;
    max-width: 100%;
    height: auto;
}

a { color: inherit; text-decoration: none; }

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: none;
    color: inherit;
    font-size: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
    color: inherit;
}

ul, ol { list-style: none; }

/* --- App Container --- */
#app {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    background-color: var(--color-bg-primary);
}

/* --- Screen System --- */
.screen {
    display: none;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

.screen.active {
    display: block;
    animation: screenFadeIn 250ms ease forwards;
}

.screen-empresa.active {
    display: block !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    background: #F1F5F9 !important;
}

/* --- Single Line Dual Range Slider --- */
.dual-range-container {
    position: relative;
    width: 100%;
    height: 36px;
    display: flex;
    align-items: center;
    margin: 10px 0 16px;
}

.dual-range-track {
    position: absolute;
    width: 100%;
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
}

.dual-range-highlight {
    position: absolute;
    height: 8px;
    background: #0F172A;
    border-radius: 4px;
}

.dual-range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: transparent;
    border-radius: 4px;
    outline: none;
    margin: 0;
    padding: 0;
    pointer-events: none;
    touch-action: manipulation;
}

/* Webkit (Safari, Chrome, iOS) Thumb Knob */
.dual-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2.5px solid #0F172A;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dual-range-input::-webkit-slider-thumb:hover,
.dual-range-input::-webkit-slider-thumb:active {
    transform: scale(1.18);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.38);
    border-color: #0F172A;
    background: #FFFFFF;
}

/* Firefox Thumb Knob */
.dual-range-input::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2.5px solid #0F172A;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dual-range-input::-moz-range-thumb:hover,
.dual-range-input::-moz-range-thumb:active {
    transform: scale(1.18);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.38);
    border-color: #0F172A;
    background: #FFFFFF;
}

/* Custom Toggle Switch Slider */
.emp-toggle-label {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

.emp-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
}

/* Inactive state: Knob left -> Gray background */
.emp-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #94A3B8;
    transition: background-color 0.25s ease;
    border-radius: 26px;
    display: block;
}

.emp-toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background-color: #FFFFFF;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}

/* Active state: Knob right -> Color background */
input:checked + .emp-toggle-slider {
    background-color: #7D5CFF;
}

input:checked + .emp-toggle-slider.status-slider,
#emp-status-toggle:checked + .emp-toggle-slider {
    background-color: #10B981 !important;
}

input:checked + .emp-toggle-slider.virtual-slider,
#emp-virtual-toggle:checked + .emp-toggle-slider {
    background-color: #7D5CFF !important;
}

input:checked + .emp-toggle-slider.presencial-slider,
#emp-presencial-toggle:checked + .emp-toggle-slider {
    background-color: #10B981 !important;
}

input:checked + .emp-toggle-slider.domicilio-slider,
#emp-domicilio-toggle:checked + .emp-toggle-slider {
    background-color: #F59E0B !important;
}

input:checked + .emp-toggle-slider::before {
    transform: translateX(22px);
}

@keyframes screenFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   SCREEN: INICIO (Home)
   ============================================ */

/* --- Header (floats over hero images) --- */
.inicio-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100 !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    padding: calc(var(--safe-top) + var(--space-4)) var(--space-5) var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 300ms ease, backdrop-filter 300ms ease, -webkit-backdrop-filter 300ms ease, padding 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.inicio-header.scrolled {
    padding: calc(var(--safe-top) + var(--space-2)) var(--space-5) var(--space-2);
    background: var(--color-bg-primary); /* Solid dark blue, matching body background */
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Light Theme (over white areas) */
.inicio-header.light-theme {
    background: transparent;
}

.inicio-header.scrolled.light-theme {
    background: var(--color-white) !important; /* Solid white, matching .inicio-main */
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Sticky Categories Wrapper */
.sticky-categories-wrapper,
.category-specialties-sticky-wrap {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: calc(var(--safe-top) + 64px) !important; /* Stick directly below scrolled header */
    z-index: 90 !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    background: var(--color-white) !important;
    padding-top: var(--space-4) !important;
    padding-bottom: var(--space-3) !important;
    border-bottom: 1px solid #F1F5F9 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
    transition: background 300ms ease, box-shadow 300ms ease;
}



.inicio-header .logo svg g {
    transition: fill 300ms ease, stroke 300ms ease;
}

.inicio-header.light-theme .logo svg g {
    fill: #0B0F19 !important;
    stroke: #0B0F19 !important;
}

.inicio-header .header-btn {
    transition: background 300ms ease, color 300ms ease;
}

.inicio-header .header-btn svg {
    transition: color 300ms ease;
}

.inicio-header.light-theme .header-btn {
    background: transparent;
}

.inicio-header.light-theme .header-btn svg {
    color: #0B0F19;
}

.inicio-header .ai-flip-front,
.inicio-header .ai-flip-back {
    transition: background 300ms ease, border-color 300ms ease, color 300ms ease;
}

.inicio-header .ai-flip-front svg {
    transition: color 300ms ease;
}

.inicio-header .ai-flip-back span {
    transition: color 300ms ease;
}

.inicio-header.light-theme .ai-flip-front {
    background: rgba(125, 92, 255, 0.12);
    border-color: rgba(125, 92, 255, 0.35);
}

.inicio-header.light-theme .ai-flip-front svg {
    color: #5B21B6;
}

.inicio-header.light-theme .ai-flip-back {
    background: rgba(255, 0, 122, 0.12);
    border-color: rgba(255, 0, 122, 0.35);
}

.inicio-header.light-theme .ai-flip-back span {
    color: #9D174D;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
}

.logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 22px;
    font-weight: var(--font-bold);
    color: var(--color-white);
    letter-spacing: -0.5px;
    line-height: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.header-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background var(--transition-fast);
}

.header-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

.header-btn svg {
    width: 20px;
    height: 20px;
    color: var(--color-white);
}

.header-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    background: var(--color-purple);
    color: var(--color-white);
    font-size: var(--text-2xs);
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* --- Hero Carousel --- */
.hero-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.hero-slides-track::-webkit-scrollbar {
    display: none;
}

.hero-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Hero slide image */
.hero-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--color-bg-primary);
}

.hero-slide-bg img {
    width: 100%;
    height: calc(100% + 44px);
    margin-top: -44px;
    object-fit: cover;
    object-position: center top;
}

/* Placeholder shown when no image loaded yet */
.hero-slide-bg--placeholder {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 60% 40%, rgba(37, 99, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 60%, rgba(125, 92, 255, 0.08) 0%, transparent 50%),
        var(--color-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray);
    font-size: var(--text-sm);
}


/* Dim brightness of slide background image for contrast */
.hero-slide-bg img.dimmed-slide-bg {
    filter: brightness(0.76) contrast(1.02);
}

/* Dark shadow overlays to ensure excellent contrast for top header and bottom texts */
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.45) 0%, 
        rgba(0, 0, 0, 0) 30%, 
        rgba(0, 0, 0, 0) 60%, 
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

/* Info container positioned below logo header and aligned to app margin */
.hero-slide-info {
    position: absolute;
    top: 110px; /* Safe space below the transparent logo header */
    bottom: 185px; /* Leave space above the Ver mas button */
    left: var(--space-5);
    right: var(--space-5);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text vertically in the available space */
    gap: 8px;
    pointer-events: none; /* Let clicks pass through to button */
}

/* Make sure inner elements (button) are clickable */
.hero-slide-info * {
    pointer-events: auto;
}

/* The small category/tag text in shiny purple */
.hero-slide-tag {
    font-size: 11px;
    font-weight: var(--font-bold);
    color: #A78BFA; /* Slightly lighter purple for better legibility on dark background */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

/* Balanced high-impact title */
.hero-slide-title {
    font-size: 29px;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0;
}

/* Semitransparent description texts for contrast and balance */
.hero-slide-desc {
    font-size: 13.5px;
    font-weight: var(--font-medium);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.35;
    margin: 0;
    max-width: 65%;
}

/* "Ver más" button - positioned at bottom of slide */
.hero-slide-cta {
    position: absolute;
    bottom: 133px;
    left: var(--space-5);
    z-index: 2;
}

.btn-ver-mas {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px 18px;
    background: var(--gradient-button);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-white);
    box-shadow: var(--shadow-button);
    width: fit-content;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.btn-ver-mas:active {
    transform: scale(0.96);
    opacity: 0.9;
}

.btn-ver-mas .arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
}

/* Hero Dots */
.hero-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 0;
    background: transparent;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-dot.active {
    width: 24px;
    background: var(--color-white);
    border-radius: var(--radius-full);
}

/* --- Main Content (White Area) --- */
.inicio-main {
    background: var(--color-white);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    margin-top: -100px;
    position: relative;
    z-index: 5;
    padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + var(--space-4));
}

/* --- Search Bar --- */
.search-bar {
    padding: var(--space-5) var(--space-5) var(--space-4);
}

.search-input-wrap,
.search-overlay-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    background: var(--color-white) !important;
    border: none !important;
    border-radius: var(--radius-full) !important;
    padding: 6px 6px 6px var(--space-4) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    height: 50px !important;
    box-sizing: border-box !important;
    position: relative;
}

.search-left-icon {
    color: #FCD34D !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-left-icon svg {
    width: 20px !important;
    height: 20px !important;
    color: #FCD34D !important;
}

.search-medicos-left-icon svg {
    width: 20px !important;
    height: 20px !important;
    color: var(--color-gray) !important;
}

.search-right-btn,
#btn-search-submit {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #7D5CFF !important;
    color: var(--color-white) !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(125, 92, 255, 0.2) !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    transition: transform var(--transition-fast), opacity var(--transition-fast) !important;
}

.search-right-btn:active,
#btn-search-submit:active {
    transform: scale(0.95) !important;
    opacity: 0.9 !important;
}

.search-right-btn svg,
#btn-search-submit svg {
    width: 16px !important;
    height: 16px !important;
    color: var(--color-white) !important;
}

.search-input-wrap input,
.search-overlay-input-wrap input {
    flex: 1;
    color: var(--color-black);
    font-size: var(--text-base);
    font-weight: var(--font-regular);
    border: none;
    background: transparent;
    outline: none;
}

.search-input-wrap input::placeholder,
.search-overlay-input-wrap input::placeholder {
    color: var(--color-gray);
}

.search-placeholder {
    color: var(--color-gray);
    font-size: var(--text-base);
    font-weight: var(--font-regular);
    flex: 1;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

/* --- Section Header --- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5) var(--space-3);
}

.section-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--color-bg-primary);
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.section-link {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--color-purple);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    white-space: nowrap;
}

/* --- Categories Scroll --- */
.categories-scroll {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    scroll-padding: 0 var(--space-5);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-card {
    min-width: 90px;
    max-width: 90px;
    padding: calc(var(--space-3) - 1.5px) calc(var(--space-2) - 1.5px);
    background: var(--color-white);
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    scroll-snap-align: start;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.category-card.active {
    border-color: var(--color-purple);
    background: rgba(125, 92, 255, 0.02);
    box-shadow: none;
}

.category-card:active {
    transform: scale(0.96);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.category-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.category-icon svg {
    width: 18px;
    height: 18px;
}

.category-icon.purple { background: #EDE9FE; color: #7D5CFF; }
.category-icon.amber { background: #FEF3C7; color: #D97706; }
.category-icon.blue { background: #DBEAFE; color: #2563FF; }
.category-icon.teal { background: #CCFBF1; color: #0D9488; }
.category-icon.pink { background: #FCE7F3; color: #EC4899; }
.category-icon.gray { background: #F1F5F9; color: #64748B; }
.category-icon.green { background: #DCFCE7; color: #16A34A; }

.category-name {
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: var(--color-bg-primary);
    text-align: center;
    line-height: 1.2;
}

.category-sub {
    font-size: 10.5px;
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
    text-align: center;
    line-height: 1.3;
}

/* --- Restaurant Cards --- */
.restaurants-scroll {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-5);
    scroll-padding: 0 var(--space-5);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.restaurants-scroll::-webkit-scrollbar {
    display: none;
}

.restaurant-card {
    min-width: 210px;
    max-width: 210px;
    height: 150px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    scroll-snap-align: start;
    position: relative;
    transition: transform var(--transition-fast);
}

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

.restaurant-img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.restaurant-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    z-index: 1;
}

.restaurant-img-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-fav-btn,
.restaurant-fav {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--color-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
    z-index: 5;
    border: none;
    cursor: pointer;
}

.card-fav-btn:active,
.restaurant-fav:active {
    transform: scale(0.92);
}

.card-fav-btn svg,
.restaurant-fav svg {
    width: 14px;
    height: 14px;
    color: var(--color-gray);
    transition: color var(--transition-fast), fill var(--transition-fast);
}

.card-fav-btn.filled svg,
.restaurant-fav.filled svg {
    color: #EF4444;
    fill: #EF4444;
}

.restaurant-rank {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: var(--color-purple);
    font-size: 10px;
    font-weight: var(--font-bold);
    color: var(--color-white);
    z-index: 2;
}

.restaurant-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-2) var(--space-3) var(--space-3);
    z-index: 2;
    pointer-events: none;
}

.restaurant-name {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--color-white);
    margin-bottom: 1px;
}

.restaurant-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-2xs);
    color: rgba(255, 255, 255, 0.8);
    flex-wrap: wrap;
}

.restaurant-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    font-weight: var(--font-semibold);
    color: var(--color-white);
}

.restaurant-rating .star {
    color: var(--color-gold);
}

.restaurant-rating .count {
    font-weight: var(--font-regular);
    color: rgba(255, 255, 255, 0.6);
}

.restaurant-price {
    font-weight: var(--font-semibold);
    color: rgba(255, 255, 255, 0.9);
}

.restaurant-location {
    display: flex;
    align-items: center;
    gap: 2px;
}

.restaurant-location svg {
    width: 11px;
    height: 11px;
}


/* --- Cerca de ti (Nearby) --- */
.nearby-scroll {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5) var(--space-6);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nearby-scroll::-webkit-scrollbar {
    display: none;
}

.nearby-card {
    min-width: 120px;
    height: 85px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.nearby-card-bg {
    width: 100%;
    height: 100%;
}

.nearby-card-bg.clinic {
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 50%, #c0c0c0 100%);
}
.nearby-card-bg.barber {
    background: linear-gradient(135deg, #2a2a3a 0%, #3a3a4a 50%, #252535 100%);
}
.nearby-card-bg.hotel {
    background: linear-gradient(135deg, #1a2030 0%, #2a3545 50%, #15202d 100%);
}
.nearby-card-bg.gym {
    background: linear-gradient(135deg, #2a2020 0%, #3a2828 50%, #251818 100%);
}

/* --- Cerca de ti compacto (mini-cards) --- */
.nearby-cards-scroll {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5) var(--space-4);
    scroll-padding: 0 var(--space-5);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nearby-cards-scroll::-webkit-scrollbar {
    display: none;
}

.nearby-mini-card {
    min-width: 130px;
    max-width: 130px;
    height: 90px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.18s ease;
}

.nearby-mini-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 65%, transparent 100%);
    z-index: 1;
}

.nearby-mini-card:active {
    transform: scale(0.96);
}

.nearby-mini-card-emoji {
    position: absolute;
    top: 7px;
    right: 8px;
    font-size: 18px;
    z-index: 3;
    line-height: 1;
}

.nearby-mini-card-dist {
    position: absolute;
    top: 7px;
    left: 8px;
    font-size: 10.5px;
    font-weight: var(--font-bold);
    color: var(--color-white);
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    z-index: 3;
    letter-spacing: 0.2px;
}

.nearby-mini-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 8px 8px;
    z-index: 2;
}

.nearby-mini-card-name {
    font-size: 11px;
    font-weight: var(--font-bold);
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.nearby-mini-card-sub {
    font-size: 10.5px;
    color: rgba(255,255,255,0.9);
    line-height: 1.2;
}

/* ============================================
   PREMIUM CARDS (Hospedajes / Eventos / Inmobiliarios)
   ============================================ */
.section-subtitle {
    font-size: var(--text-xs);
    color: var(--color-gray);
    font-weight: var(--font-regular);
    padding: 0 var(--space-5);
    margin-top: -10px;
    margin-bottom: 4px;
}

.premium-cards-scroll {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-5) var(--space-4);
    scroll-padding: 0 var(--space-5);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.premium-cards-scroll::-webkit-scrollbar {
    display: none;
}

.premium-card {
    min-width: 200px;
    max-width: 200px;
    height: 160px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.premium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    z-index: 1;
}

.premium-card:active {
    transform: scale(0.97);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.premium-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 10px;
    font-weight: var(--font-bold);
    color: var(--color-white);
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.3px;
}

.evento-tag {
    background: rgba(139, 92, 246, 0.4) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
}

.inmob-badge {
    background: rgba(16, 185, 129, 0.35) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
}

.premium-card-emoji {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 26px;
    z-index: 3;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.premium-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px 12px;
    z-index: 2;
}

.premium-card-name {
    font-size: 13px;
    font-weight: var(--font-bold);
    color: var(--color-white);
    margin-bottom: 4px;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.inmob-type {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: var(--font-medium);
    margin-bottom: 3px;
}

.premium-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.premium-card-rating {
    font-size: 11px;
    font-weight: var(--font-semibold);
    color: #FFD700;
}

.premium-card-count {
    font-weight: var(--font-regular);
    color: rgba(255, 255, 255, 0.65);
    font-size: 10px;
}

.premium-card-location {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.75);
}

.premium-card-location svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

.evento-date {
    font-size: 10px;
    font-weight: var(--font-semibold);
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #F8FAFC;
    padding: 10px 16px calc(var(--safe-bottom) + 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    border-top: none;
}

.bottom-nav-inner {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: 6px var(--space-2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(220, 224, 235, 0.4);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 10px;
    border-radius: var(--radius-full);
    color: var(--color-gray);
    transition: all var(--transition-fast);
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.nav-item-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: inherit;
}

.nav-item-icon svg {
    width: 20px;
    height: 20px;
    transition: all var(--transition-fast);
}

/* Active State: Capsule wrapping BOTH icon and text in very light corporate purple */
.nav-item.active {
    background: rgba(125, 92, 255, 0.12); /* Very light corporate purple */
    color: var(--color-purple); /* Corporate purple #7D5CFF */
}

.nav-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    background: var(--color-purple);
    color: var(--color-white);
    font-size: 9px;
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1.5px solid var(--color-white);
}

.nav-item-label {
    font-size: 10px;
    line-height: 1.2;
    font-weight: var(--font-bold);
    white-space: nowrap;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.screen-inicio.active .inicio-header {
    animation: fadeIn 0.6s ease-out 0.1s both;
}

.screen-inicio.active .hero-slide-content {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.screen-inicio.active .search-bar {
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

.screen-inicio.active .categories-scroll {
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

.screen-inicio.active .restaurants-scroll {
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

/* ============================================
   UTILITIES
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ============================================
   SCREEN: MIS CITAS
   ============================================ */
.citas-header {
    background: var(--color-white);
    padding: calc(var(--safe-top) + var(--space-4)) var(--space-5) var(--space-3);
    border-bottom: 1px solid rgba(220, 224, 235, 0.4);
    position: sticky;
    top: 0;
    z-index: 10;
}

.citas-title {
    font-size: 22px;
    font-weight: var(--font-bold);
    color: var(--color-bg-primary);
    text-align: center;
    line-height: 1.2;
}

.citas-tabs-container {
    background: var(--color-white);
    padding: 0 var(--space-5) var(--space-3);
    border-bottom: 1px solid rgba(220, 224, 235, 0.4);
    position: sticky;
    top: 60px; /* Sits below header */
    z-index: 10;
}

.citas-tabs {
    display: flex;
    background: #F1F5F9;
    padding: 4px;
    border-radius: var(--radius-md);
    gap: 4px;
}

.tab-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--color-gray);
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.tab-btn.active {
    background: var(--color-purple);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(125, 92, 255, 0.2);
}

.citas-list-container {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.citas-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-top: var(--space-4);
}

.appt-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-4) var(--space-4) calc(var(--space-4) + 6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    position: relative;
    overflow: hidden;
}

.appt-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: transparent;
    z-index: 1;
}

.appt-card.medicos::before { background: #7D5CFF; }
.appt-card.restaurantes::before { background: #FF9F1C; }
.appt-card.hoteles::before { background: #2563FF; }
.appt-card.negocios::before { background: #0D9488; }
.appt-card.viajes::before { background: #EC4899; }

.appt-card-main {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.appt-card-img-wrap {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: #F1F5F9;
}

.appt-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.appt-card-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.appt-card-icon-placeholder.medicos { background: #EDE9FE; color: #7D5CFF; }
.appt-card-icon-placeholder.restaurantes { background: #FEF3C7; color: #D97706; }
.appt-card-icon-placeholder.hoteles { background: #DBEAFE; color: #2563FF; }
.appt-card-icon-placeholder.negocios { background: #CCFBF1; color: #0D9488; }
.appt-card-icon-placeholder.viajes { background: #FCE7F3; color: #EC4899; }

.appt-card-icon-placeholder svg {
    width: 24px;
    height: 24px;
}

.appt-card-details {
    flex: 1;
    min-width: 0;
}

.appt-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-2);
    margin-bottom: 3px;
}

.appt-business-name {
    font-size: 15px;
    font-weight: var(--font-bold);
    color: var(--color-bg-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-badge {
    font-size: 10.5px;
    font-weight: var(--font-bold);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.status-badge.confirmed { background: #E6F4F1; color: #0D9488; }
.status-badge.pending { background: #FEF3C7; color: #D97706; }
.status-badge.completed { background: #F1F5F9; color: #64748B; }
.status-badge.cancelled { background: #FEE2E2; color: #EF4444; }

.appt-datetime {
    font-size: 12.5px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 3px;
}

.appt-icon-inline svg {
    width: 10px;
    height: 10px;
    color: var(--color-gray);
}

.appt-card-actions {
    display: flex;
    gap: var(--space-2);
    border-top: 1px solid #F1F5F9;
    padding-top: var(--space-3);
}

.appt-card-actions.single-action {
    justify-content: flex-end;
}

.btn-appt-cancel, .btn-appt-reschedule, .btn-appt-rate {
    flex: 1;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-appt-cancel {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #EF4444;
}

.btn-appt-cancel:active {
    background: rgba(239, 68, 68, 0.05);
}

.btn-appt-reschedule, .btn-appt-rate {
    background: rgba(125, 92, 255, 0.08);
    color: var(--color-purple);
}

.btn-appt-reschedule:active, .btn-appt-rate:active {
    background: rgba(125, 92, 255, 0.15);
}

.no-appointments {
    padding: 60px 20px;
    text-align: center;
}

.no-appt-icon {
    font-size: 40px;
    display: block;
    margin-bottom: var(--space-2);
}

.no-appt-title {
    font-size: 16px;
    font-weight: var(--font-bold);
    color: var(--color-bg-primary);
    margin-bottom: 2px;
}

.no-appt-desc {
    font-size: var(--text-xs);
    color: var(--color-gray);
}

/* --- Cancellation Modal --- */
.cancel-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cancel-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.cancel-modal-content {
    background: var(--color-white);
    width: 85%;
    max-width: 320px;
    padding: var(--space-5) var(--space-5) var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cancel-modal.active .cancel-modal-content {
    transform: scale(1);
}

.cancel-modal-icon {
    font-size: 32px;
    margin-bottom: var(--space-2);
}

.cancel-modal-title {
    font-size: 18px;
    font-weight: var(--font-bold);
    color: var(--color-bg-primary);
    margin-bottom: var(--space-1);
}

.cancel-modal-text {
    font-size: var(--text-xs);
    color: var(--color-gray);
    line-height: 1.4;
    margin-bottom: var(--space-5);
}

.cancel-modal-buttons {
    display: flex;
    gap: var(--space-3);
}

.btn-modal-back, .btn-modal-confirm {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: var(--font-semibold);
    border: none;
    cursor: pointer;
}

.btn-modal-back {
    background: #F1F5F9;
    color: var(--color-bg-primary);
}

.btn-modal-confirm {
    background: #EF4444;
    color: var(--color-white);
}


/* ============================================
   SCREEN: CHATS
   ============================================ */
.chats-top-sticky-wrap {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--color-white);
}

.chats-search-container {
    background: var(--color-white);
    padding: 0 var(--space-5) var(--space-4);
    border-bottom: 1px solid rgba(220, 224, 235, 0.4);
}

.chats-search-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: #F1F5F9;
    border-radius: var(--radius-full);
    padding: 8px var(--space-4);
}

.chats-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray);
}

.chats-search-icon svg {
    width: 16px;
    height: 16px;
}

.chats-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 13px;
    color: var(--color-bg-primary);
}
.chats-tabs-container {
    background: var(--color-white);
    padding: 0 var(--space-5) var(--space-3);
    border-bottom: 1px solid rgba(220, 224, 235, 0.4);
}

.chats-tabs {
    display: flex;
    background: #F1F5F9;
    padding: 4px;
    border-radius: var(--radius-md);
    gap: 4px;
}

.chats-tab-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--color-gray);
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.chats-tab-btn.active {
    background: var(--color-purple);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(125, 92, 255, 0.2);
}

.chats-list-container {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.chats-list {
    display: flex;
    flex-direction: column;
    padding-top: var(--space-4);
}

.chat-thread-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) 0;
    border-bottom: 1px solid rgba(220, 224, 235, 0.4);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.chat-thread-item:active {
    background-color: rgba(125, 92, 255, 0.03);
}

.chat-thread-avatar-wrap {
    width: 56px;
    height: 56px;
    position: relative;
    flex-shrink: 0;
}

.chat-thread-img-container {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-white);
    overflow: hidden;
    background: #F1F5F9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chat-thread-online-dot {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 14px;
    height: 14px;
    background-color: #10B981;
    border: 2.5px solid var(--color-white);
    border-radius: var(--radius-full);
    z-index: 2;
}

.chat-thread-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-thread-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    border-radius: var(--radius-full);
}

.chat-thread-avatar-placeholder.medicos { background: #EDE9FE; color: #7D5CFF; }
.chat-thread-avatar-placeholder.restaurantes { background: #FEF3C7; color: #D97706; }
.chat-thread-avatar-placeholder.hoteles { background: #DBEAFE; color: #2563FF; }
.chat-thread-avatar-placeholder.negocios { background: #CCFBF1; color: #0D9488; }
.chat-thread-avatar-placeholder.viajes { background: #FCE7F3; color: #EC4899; }

.chat-thread-avatar-placeholder svg {
    width: 26px;
    height: 26px;
}

.chat-thread-details {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.chat-thread-main-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.chat-thread-name {
    font-size: 15px;
    font-weight: var(--font-bold);
    color: var(--color-bg-primary);
}
.chat-thread-location {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #F1F5F9;
    color: #64748B;
    font-size: 10px;
    font-weight: var(--font-bold);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    width: fit-content;
    margin-top: 2px;
    margin-bottom: 4px;
}

.chat-thread-location svg {
    width: 9px;
    height: 9px;
    color: #94A3B8;
}

.chat-thread-message-snippet {
    font-size: 13px;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-thread-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    padding-left: var(--space-3);
    padding-top: 4px;
    padding-bottom: 4px;
    flex-shrink: 0;
}

.chat-thread-time {
    font-size: 11px;
    color: var(--color-gray);
}

.chat-unread-badge {
    width: 18px;
    height: 18px;
    background-color: var(--color-purple);
    color: var(--color-white);
    font-size: 10px;
    font-weight: var(--font-bold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Active Conversation screen --- */
.chat-detail-header {
    background: var(--color-white);
    padding: calc(var(--safe-top) + var(--space-4)) var(--space-4) var(--space-3);
    border-bottom: 1px solid rgba(220, 224, 235, 0.4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.btn-chat-back {
    background: transparent;
    border: none;
    outline: none;
    padding: 6px;
    color: var(--color-bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    border-radius: var(--radius-full);
}

.btn-chat-back:active {
    background: #F1F5F9;
}

.btn-chat-back svg {
    width: 20px;
    height: 20px;
}

.chat-header-user-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.chat-header-avatar-wrap {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: #F1F5F9;
    flex-shrink: 0;
}

.chat-header-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.chat-header-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    border-radius: var(--radius-full);
}

.chat-header-avatar-placeholder.medicos { background: #EDE9FE; color: #7D5CFF; }
.chat-header-avatar-placeholder.restaurantes { background: #FEF3C7; color: #D97706; }
.chat-header-avatar-placeholder.hoteles { background: #DBEAFE; color: #2563FF; }
.chat-header-avatar-placeholder.negocios { background: #CCFBF1; color: #0D9488; }
.chat-header-avatar-placeholder.viajes { background: #FCE7F3; color: #EC4899; }

.chat-header-avatar-placeholder svg {
    width: 18px;
    height: 18px;
}

.chat-header-text-info {
    display: flex;
    flex-direction: column;
}

.chat-header-title {
    font-size: 15px;
    font-weight: var(--font-bold);
    color: var(--color-bg-primary);
}

.chat-header-status {
    font-size: 11px;
    color: #10B981;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: var(--font-semibold);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: var(--radius-full);
}

.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 16px calc(76px + var(--safe-bottom));
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.chat-messages-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
    box-sizing: border-box;
}

.message-row {
    display: flex;
    width: 100%;
    align-items: flex-end;
    gap: 8px;
    box-sizing: border-box;
}

.message-row.incoming {
    justify-content: flex-start;
}

.message-row.outgoing {
    justify-content: flex-end;
}

.chat-message-avatar-wrap {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    align-self: flex-end;
    margin-bottom: 2px;
    background: #F1F5F9;
}

.chat-message-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.chat-message-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 50%;
}

/* Categories background for avatar placeholder */
.chat-message-avatar-placeholder.medicos { background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%); }
.chat-message-avatar-placeholder.restaurantes { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); }
.chat-message-avatar-placeholder.hoteles { background: linear-gradient(135deg, #10B981 0%, #047857 100%); }
.chat-message-avatar-placeholder.eventos { background: linear-gradient(135deg, #EC4899 0%, #BE185D 100%); }

.chat-message-avatar-placeholder svg {
    width: 14px !important;
    height: 14px !important;
}

.message-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.message-row.incoming .message-bubble {
    background: var(--color-white);
    color: var(--color-bg-primary);
    border-radius: 16px 16px 16px 4px;
}

.message-row.outgoing .message-bubble {
    background: var(--color-purple);
    color: var(--color-white);
    border-radius: 16px 16px 4px 16px;
}

.message-text {
    font-size: 13px;
    line-height: 1.45;
}

.message-time {
    font-size: 9px;
    align-self: flex-end;
}

.message-row.incoming .message-time {
    color: var(--color-gray);
}

.message-row.outgoing .message-time {
    color: rgba(255, 255, 255, 0.7);
}

.chat-input-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 10px var(--space-5) calc(10px + var(--safe-bottom));
    border-top: 1px solid rgba(220, 224, 235, 0.4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    z-index: 10;
}

.chat-text-input {
    flex: 1;
    background: #F1F5F9;
    border: none;
    outline: none;
    padding: 10px var(--space-4);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--color-bg-primary);
}

.btn-send-message {
    width: 36px;
    height: 36px;
    background: var(--color-purple);
    color: var(--color-white);
    border-radius: var(--radius-full);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.btn-send-message:active {
    transform: scale(0.92);
}

.btn-send-message svg {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

.attach-menu-item {
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.attach-menu-item:active {
    background-color: #F1F5F9 !important;
    transform: scale(0.97);
}

/* ============================================
   SCREEN: FAVORITOS MOCKUP EXACT REPLICA
   ============================================ */
.fav-top-sticky-wrap {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--color-white);
    border-bottom: 1px solid rgba(220, 224, 235, 0.4);
}

.fav-header-wrap {
    background: var(--color-white);
    padding: calc(var(--safe-top) + var(--space-4)) var(--space-5) var(--space-2);
}

.fav-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.fav-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.fav-title-text {
    flex: 1;
    padding-right: var(--space-4);
}

.fav-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-bg-primary);
    margin-bottom: 4px;
}

.fav-desc {
    font-size: 13px;
    color: var(--color-gray);
    line-height: 1.4;
}

.fav-collections-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.fav-collections-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--color-purple);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(125, 92, 255, 0.3);
}

.fav-collections-label {
    font-size: 10px;
    font-weight: var(--font-bold);
    color: var(--color-purple);
    white-space: nowrap;
}

/* Category Filter Scroll */
.fav-cat-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: var(--space-4) var(--space-5);
    background: var(--color-white);
    scrollbar-width: none;
    border-bottom: 1px solid rgba(220, 224, 235, 0.4);
}

.fav-cat-scroll::-webkit-scrollbar {
    display: none;
}

.fav-cat-card {
    min-width: 80px;
    background: var(--color-white);
    border: 1px solid rgba(220, 224, 235, 0.6);
    border-radius: 14px;
    padding: var(--space-3) var(--space-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.fav-cat-card.active {
    border-color: var(--color-purple);
    background: rgba(125, 92, 255, 0.03);
    box-shadow: 0 4px 12px rgba(125, 92, 255, 0.08);
}

.fav-cat-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fav-cat-icon-wrap.todos { background: #EDE9FE; color: #7D5CFF; }
.fav-cat-icon-wrap.restaurantes { background: #FEF3C7; color: #D97706; }
.fav-cat-icon-wrap.hoteles { background: #DBEAFE; color: #2563FF; }
.fav-cat-icon-wrap.medicos { background: #E6F4EA; color: #137333; }
.fav-cat-icon-wrap.experiencias { background: #FCE7F3; color: #EC4899; }
.fav-cat-icon-wrap.otros { background: #F1F5F9; color: #64748B; }

.fav-cat-icon-wrap svg {
    width: 16px;
    height: 16px;
}

.fav-cat-name {
    font-size: 11px;
    font-weight: var(--font-bold);
    color: var(--color-bg-primary);
}

.fav-cat-count {
    font-size: 10px;
    color: var(--color-gray);
}

/* Sections General */
.fav-section {
    padding: var(--space-4) 0 var(--space-2);
}

.fav-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-5) var(--space-3);
}

.fav-section-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--color-bg-primary);
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.fav-section-link {
    font-size: 12px;
    font-weight: var(--font-bold);
    color: var(--color-purple);
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Recently Saved Cards Scroll */
.fav-recent-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 var(--space-5) var(--space-3);
    scrollbar-width: none;
}

.fav-recent-scroll::-webkit-scrollbar {
    display: none;
}

.fav-recent-card {
    min-width: 140px;
    max-width: 140px;
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(220, 224, 235, 0.4);
    cursor: pointer;
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms ease;
}

.fav-recent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.fav-recent-img-wrap {
    width: 100%;
    height: 90px;
    position: relative;
    background: #F1F5F9;
    overflow: hidden;
}

.fav-recent-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fav-recent-category-badge {
    position: absolute;
    bottom: var(--space-2);
    left: var(--space-2);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 8px;
    font-weight: var(--font-bold);
}

.fav-recent-category-badge.restaurante { background: #FEF3C7; color: #D97706; }
.fav-recent-category-badge.hotel { background: #DBEAFE; color: #2563FF; }
.fav-recent-category-badge.medico { background: #E6F4EA; color: #137333; }
.fav-recent-category-badge.experiencia { background: #FCE7F3; color: #EC4899; }

.fav-recent-fav-btn {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
    z-index: 3;
}

.fav-recent-fav-btn svg {
    width: 12px;
    height: 12px;
    color: #EF4444;
    fill: #EF4444;
}

.fav-recent-details {
    padding: var(--space-2) var(--space-3) var(--space-3);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fav-recent-name {
    font-size: 12px;
    font-weight: 800;
    color: var(--color-bg-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fav-recent-rating-row {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: var(--color-gray);
}

.fav-recent-star {
    color: #FFB020;
    font-weight: bold;
}

.fav-recent-rating-val {
    font-weight: var(--font-bold);
    color: var(--color-bg-primary);
}

.fav-recent-location-row {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fav-recent-location-row svg {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
}

/* Collections section */
.fav-coll-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 var(--space-5) var(--space-3);
    scrollbar-width: none;
}

.fav-coll-scroll::-webkit-scrollbar {
    display: none;
}

.fav-coll-card {
    min-width: 110px;
    max-width: 110px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.fav-coll-img-wrap {
    width: 110px;
    height: 110px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #F1F5F9;
    border: 1px solid rgba(220, 224, 235, 0.4);
}

.fav-coll-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fav-coll-category-icon {
    position: absolute;
    bottom: var(--space-2);
    left: var(--space-2);
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.fav-coll-category-icon svg {
    width: 10px;
    height: 10px;
}

.fav-coll-name {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-bg-primary);
    line-height: 1.2;
}

.fav-coll-count {
    font-size: 11px;
    color: var(--color-text-secondary);
}

.fav-coll-card.create-new {
    min-width: 110px;
}

.fav-coll-create-btn {
    width: 110px;
    height: 110px;
    border-radius: 16px;
    border: 2px dashed rgba(125, 92, 255, 0.3);
    background: rgba(125, 92, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-purple);
    font-size: 11px;
    font-weight: var(--font-bold);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.fav-coll-create-btn svg {
    width: 24px;
    height: 24px;
}

/* Recommended for you */
.fav-reco-container {
    padding: 0 var(--space-5) var(--space-3);
}

.fav-reco-card {
    display: flex;
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(220, 224, 235, 0.4);
}

.fav-reco-img-wrap {
    width: 100px;
    background: #F1F5F9;
    flex-shrink: 0;
}

.fav-reco-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fav-reco-details {
    flex: 1;
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.fav-reco-badge {
    font-size: 8px;
    font-weight: 800;
    color: var(--color-purple);
    margin-bottom: 2px;
}

.fav-reco-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--color-bg-primary);
    margin-bottom: 2px;
}

.fav-reco-meta {
    font-size: 10px;
    color: var(--color-gray);
    margin-bottom: 4px;
}

.fav-reco-desc {
    font-size: 10px;
    color: var(--color-gray);
    line-height: 1.3;
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fav-reco-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    padding: 4px var(--space-3);
    border-radius: var(--radius-full);
    border: 1.5px solid var(--color-purple);
    background: var(--color-white);
    color: var(--color-purple);
    font-size: 10px;
    font-weight: var(--font-bold);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.fav-reco-save-btn svg {
    width: 10px;
    height: 10px;
}

/* Banner Sync */
.fav-sync-banner {
    background: linear-gradient(135deg, #7D5CFF 0%, #5B3BE6 100%);
    margin: var(--space-4) var(--space-5) var(--space-2);
    border-radius: 16px;
    padding: var(--space-4);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(125, 92, 255, 0.2);
}

.fav-sync-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fav-sync-icon-wrap svg {
    width: 18px;
    height: 18px;
}

.fav-sync-text-wrap {
    flex: 1;
    min-width: 0;
}

.fav-sync-title {
    font-size: 12px;
    font-weight: var(--font-bold);
    margin-bottom: 2px;
}

.fav-sync-desc {
    font-size: 10px;
    opacity: 0.9;
    line-height: 1.3;
}

.fav-sync-login-btn {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--color-white);
    color: var(--color-purple);
    font-size: 10px;
    font-weight: var(--font-bold);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.fav-sync-close-btn {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    background: transparent;
    border: none;
    color: var(--color-white);
    opacity: 0.7;
    cursor: pointer;
}

.fav-sync-close-btn svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   SCREEN: PERFIL MOCKUP EXACT REPLICA
   ============================================ */
.profile-top-sticky-wrap {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--color-white);
    border-bottom: 1px solid rgba(220, 224, 235, 0.4);
}

.profile-user-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: var(--space-4);
    box-shadow: 0 4px 14px rgba(0,0,0,0.02);
    border: 1px solid rgba(220, 224, 235, 0.4);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    position: relative;
    margin-top: var(--space-2);
}

.profile-avatar-wrap {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-full);
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.profile-avatar-camera {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--color-purple);
    color: var(--color-white);
    border: 2px solid var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(125, 92, 255, 0.3);
}

.profile-avatar-camera svg {
    width: 10px;
    height: 10px;
}

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

.profile-user-name {
    font-size: 17.5px;
    font-weight: 800;
    color: var(--color-bg-primary);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.profile-user-detail {
    font-size: 12.5px;
    color: var(--color-gray);
    margin: 0 0 1px;
}

.profile-user-location svg {
    width: 12px;
    height: 12px;
    color: var(--color-gray);
    flex-shrink: 0;
}

.profile-edit-btn {
    align-self: center;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--color-purple);
    background: var(--color-white);
    color: var(--color-purple);
    font-size: 12.5px;
    font-weight: var(--font-bold);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-edit-btn:active {
    transform: scale(0.95);
    background: rgba(125, 92, 255, 0.03);
}

/* Plus Card */
.profile-plus-card {
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
    border-radius: 20px;
    padding: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-white);
    box-shadow: 0 8px 24px rgba(49, 46, 129, 0.2);
}

.profile-plus-left {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 1;
    min-width: 0;
}

.profile-plus-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
}

.profile-plus-icon svg {
    width: 20px;
    height: 20px;
}

.profile-plus-text {
    flex: 1;
    min-width: 0;
}

.profile-plus-title {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 2px;
}

.profile-plus-desc {
    font-size: 10px;
    opacity: 0.8;
    line-height: 1.3;
}

.profile-plus-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--color-white);
    font-size: 10px;
    font-weight: var(--font-bold);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.profile-plus-btn:active {
    background: rgba(255,255,255,0.25);
}

/* Sections Blocks */
.profile-section-block {
    display: flex;
    flex-direction: column;
}

.profile-section-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--color-bg-primary);
    line-height: 1.2;
    letter-spacing: -0.3px;
    margin-bottom: var(--space-3);
}

/* Quick Access & Activity Summary Cards (Matched 100% with Favoritos .category-card) */
.profile-quick-grid,
.profile-summary-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.profile-quick-grid::-webkit-scrollbar,
.profile-summary-grid::-webkit-scrollbar {
    display: none;
}

.profile-quick-card,
.profile-summary-card-item {
    min-width: 90px;
    max-width: 90px;
    background: var(--color-white);
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    padding: calc(var(--space-3) - 1.5px) calc(var(--space-2) - 1.5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.profile-quick-card:active,
.profile-summary-card-item:active {
    transform: scale(0.96);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.profile-quick-icon,
.profile-summary-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.profile-quick-icon.purple,
.profile-summary-icon.purple { background: #EDE9FE; color: #7D5CFF; }
.profile-quick-icon.red,
.profile-summary-icon.red { background: #FEE2E2; color: #EF4444; }
.profile-quick-icon.blue,
.profile-summary-icon.blue { background: #DBEAFE; color: #2563FF; }
.profile-quick-icon.green,
.profile-summary-icon.green { background: #DCFCE7; color: #16A34A; }
.profile-quick-icon.orange,
.profile-summary-icon.orange { background: #FEF3C7; color: #D97706; }

.profile-quick-icon svg,
.profile-summary-icon svg {
    width: 18px;
    height: 18px;
}

.profile-quick-label {
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: var(--color-bg-primary);
    line-height: 1.2;
    text-align: center;
}

.profile-quick-sub {
    font-size: var(--text-2xs);
    color: var(--color-gray);
    line-height: 1.2;
    text-align: center;
}

.profile-summary-val {
    font-size: 13px;
    font-weight: 800;
    color: var(--color-bg-primary);
    line-height: 1.2;
    text-align: center;
}

.profile-summary-label {
    font-size: var(--text-2xs);
    color: var(--color-gray);
    line-height: 1.2;
    text-align: center;
}

/* Settings Menu Card */
.profile-menu-card {
    background: var(--color-white);
    border-radius: 20px;
    border: 1px solid rgba(220, 224, 235, 0.4);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.02);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    border-bottom: 1px solid rgba(220, 224, 235, 0.4);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.profile-menu-item:active {
    background: #F8FAFC;
}

.profile-menu-left {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.profile-menu-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-menu-icon svg {
    width: 20px;
    height: 20px;
}

.profile-menu-text {
    font-size: 14px;
    font-weight: var(--font-bold);
    color: var(--color-bg-primary);
}

.profile-menu-item svg:last-child {
    width: 15px;
    height: 15px;
    color: var(--color-gray);
}

/* ============================================
   SCREEN: MEDICOS LIST REPLICA
   ============================================ */
.med-top-sticky-wrap {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--color-white);
    border-bottom: 1px solid rgba(220, 224, 235, 0.4);
}

.doctor-vertical-card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: 16px;
    display: flex;
    gap: var(--space-4);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02), 0 8px 16px -6px rgba(0, 0, 0, 0.02);
    border: 1px solid #F1F5F9;
    position: relative;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.doctor-vertical-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -4px rgba(125, 92, 255, 0.05), 0 8px 16px -6px rgba(0, 0, 0, 0.02);
    border-color: rgba(125, 92, 255, 0.15);
}

.doctor-vertical-card:active {
    transform: scale(0.98);
}

.doc-card-image-wrap {
    width: 90px;
    height: 110px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: #F1F5F9;
}

.doc-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.doctor-vertical-card:hover .doc-card-img {
    transform: scale(1.06);
}

.doc-card-rank {
    position: absolute;
    bottom: 6px;
    left: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(125, 92, 255, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--color-white);
    font-size: 8.5px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(125, 92, 255, 0.25);
    z-index: 2;
}

.doc-card-fav-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    z-index: 3;
    color: #94A3B8;
    transition: all 0.2s ease;
}

.doc-card-fav-btn:active {
    transform: scale(0.9);
}

.doc-card-fav-btn.active {
    color: #EF4444;
    background: var(--color-white);
}

.doc-card-fav-btn svg {
    width: 12px;
    height: 12px;
}

.doc-card-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.doc-card-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.doc-card-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-bg-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.doc-card-verified {
    color: #2563FF;
    width: 13px;
    height: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-card-verified svg {
    width: 13px;
    height: 13px;
}

.doc-card-specialty-pill {
    font-size: 10px;
    font-weight: 800;
    color: #7D5CFF;
    background: rgba(125, 92, 255, 0.08);
    padding: 4px 10px;
    border-radius: var(--radius-md);
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 6px;
}

.doc-card-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.doc-card-meta-row svg {
    width: 10px;
    height: 10px;
}

.doc-card-appt-badge {
    align-self: stretch;
    padding: 8px 12px;
    border-radius: 12px;
    background: #F8FAFC;
    color: var(--color-bg-primary);
    font-size: 11px;
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.doc-card-appt-action {
    color: #7D5CFF;
    font-weight: 800;
    font-size: 11px;
}

.filter-pill-btn {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: var(--color-white);
    color: var(--color-text-secondary);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.filter-pill-btn:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.filter-pill-btn.active {
    background: #EDE9FE;
    border-color: #7D5CFF;
    color: #7D5CFF;
}

.filter-pill-btn.sticky-cualquiera {
    position: sticky;
    left: 0;
    z-index: 3;
    background-color: #FFFFFF !important;
    box-shadow: none !important;
}

.filter-pill-btn.sticky-cualquiera.active {
    background-color: #EDE9FE !important;
    border-color: #7D5CFF !important;
    color: #7D5CFF !important;
}

.price-preset-pill {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.price-preset-pill:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}
.price-preset-pill.active {
    background: #0284C7;
    border-color: #0284C7;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
}

.filter-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #7D5CFF;
    color: var(--color-white);
    font-size: 9px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-white);
    box-shadow: 0 2px 6px rgba(125, 92, 255, 0.3);
    z-index: 4;
}

.filter-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #7D5CFF;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 10px rgba(125, 92, 255, 0.2);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

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

.filter-btn svg {
    width: 16px !important;
    height: 16px !important;
    color: var(--color-white) !important;
}

.search-clear-btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--color-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-clear-btn:hover {
    border-color: #64748B;
}

.location-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: var(--color-white);
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    z-index: 999;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    scrollbar-width: none;
}

.location-autocomplete-dropdown::-webkit-scrollbar {
    display: none;
}

.autocomplete-suggestion-item {
    padding: 12px var(--space-4);
    cursor: pointer;
    border-bottom: 1px solid #F1F5F9;
    transition: background var(--transition-fast);
}

.autocomplete-suggestion-item:last-child {
    border-bottom: none;
}

.autocomplete-suggestion-item:hover,
.autocomplete-suggestion-item:active {
    background: #F8FAFC;
}

/* ============================================
   MEDIA QUERIES
   ============================================ */
@media (min-width: 768px) {
    #app {
        max-width: 430px;
        margin: 0 auto;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
        position: relative;
    }

    .bottom-nav, .chat-input-bar {
        max-width: 430px;
        left: 50%;
        transform: translateX(-50%);
    }

    .search-sheet {
        max-width: 430px;
        left: 50% !important;
        right: auto !important;
        width: 100%;
        transform: translateX(-50%) translateY(100%);
    }

    .search-sheet.active {
        transform: translateX(-50%) translateY(0);
    }

    .search-sheet-backdrop {
        max-width: 430px;
        left: 50% !important;
        right: auto !important;
        width: 100%;
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Booking Bottom Sheet & Success Modal --- */
.booking-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium) ease;
    z-index: 100;
}

.booking-sheet-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.booking-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    color: var(--color-bg-primary);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    transform: translateY(100%);
    transition: transform var(--transition-medium) cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 101;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .booking-sheet {
        max-width: 430px;
        left: 50%;
        transform: translate(-50%, 100%);
        right: auto;
    }
    .booking-sheet.active {
        transform: translate(-50%, 0);
    }
}

.booking-sheet.active {
    transform: translateY(0);
}

.booking-sheet-handle {
    width: 44px;
    height: 5px;
    background: rgba(148, 163, 184, 0.4);
    border-radius: var(--radius-full);
    margin: 10px auto 12px auto;
    cursor: grab;
    touch-action: none;
    transition: background var(--transition-fast), transform var(--transition-fast);
    position: relative;
    flex-shrink: 0;
}

.booking-sheet-handle::before {
    content: '';
    position: absolute;
    top: -12px;
    bottom: -12px;
    left: -30px;
    right: -30px;
}

.booking-sheet-handle:active {
    cursor: grabbing;
    background: rgba(100, 116, 139, 0.7);
}

.notif-sheet-header,
.search-sheet-header,
.booking-sheet-header,
.ai-sheet-header,
.sheet-header-drag-zone {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Date scroll */
.booking-date-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 70px;
    border-radius: var(--radius-xl);
    border: 1px solid #F1F5F9;
    background: #F8FAFC;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.booking-date-item.active {
    background: #7D5CFF;
    color: var(--color-white);
    border-color: #7D5CFF;
    box-shadow: 0 4px 12px rgba(125, 92, 255, 0.3);
}

/* Time slot */
.booking-time-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid #F1F5F9;
    background: #F8FAFC;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.booking-time-item.active {
    background: #7D5CFF;
    color: var(--color-white);
    border-color: #7D5CFF;
    box-shadow: 0 4px 10px rgba(125, 92, 255, 0.25);
}

/* Success modal styling */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium) ease;
    z-index: 200;
}

.success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-content {
    background: var(--color-white);
    color: var(--color-bg-primary);
    border-radius: var(--radius-2xl);
    width: 85%;
    max-width: 340px;
    padding: var(--space-6);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.85);
    transition: transform var(--transition-medium) cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (min-width: 768px) {
    .success-overlay {
        max-width: 430px;
        left: 50%;
        transform: translateX(-50%);
    }
}

.success-overlay.active .success-content {
    transform: scale(1);
}

.success-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #DCFCE7;
    color: #15803D;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    position: relative;
}

.success-icon-wrap svg {
    width: 32px;
    height: 32px;
}

/* Ensure primary button text is always white inside light sheets */
.booking-sheet .btn-primary,
.success-content .btn-primary {
    color: var(--color-white) !important;
}

/* Form fields inside sheet */
.booking-form-group {
    margin-bottom: var(--space-4);
}

.booking-form-label {
    display: block;
    font-size: 10px;
    font-weight: var(--font-bold);
    color: var(--color-bg-primary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.booking-segmented-control {
    display: flex;
    gap: var(--space-2);
}

.booking-segment-btn {
    flex: 1;
    height: 38px;
    border-radius: var(--radius-lg);
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    color: var(--color-bg-primary);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-segment-btn.active {
    background: #7D5CFF;
    color: var(--color-white) !important;
    border-color: #7D5CFF;
    box-shadow: 0 4px 10px rgba(125, 92, 255, 0.2);
}

.booking-select, .booking-input {
    width: 100%;
    height: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    padding: 0 var(--space-3);
    font-size: var(--text-xs);
    color: var(--color-bg-primary);
    outline: none;
    transition: border var(--transition-fast);
}

.booking-select:focus, .booking-input:focus {
    border-color: #7D5CFF;
    background: var(--color-white);
}

.booking-input::placeholder {
    color: #94A3B8;
}

/* Slide animation containers */
.booking-steps-container {
    display: flex;
    width: 200%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
}

.booking-step-panel {
    width: 50%;
    padding: var(--space-4) var(--space-5);
    overflow-y: auto;
    max-height: 55vh;
}

/* Star Rating styling */
.rating-stars-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: var(--space-4) 0;
}

.rating-star-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: #D1D5DB;
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease;
    outline: none;
    padding: 0;
}

.rating-star-btn.active {
    color: #FBBF24;
    transform: scale(1.15);
}

.rating-star-btn:active {
    transform: scale(0.9);
}

/* Sticky doctor booking callout bar centering */
.doctor-booking-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid #F1F5F9;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
    padding: var(--space-4) var(--space-5) calc(var(--safe-bottom) + var(--space-4));
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 20;
}

@media (min-width: 480px) {
    .doctor-booking-bar, #reg-footer-bar {
        max-width: 430px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Splash Screen Styling */
#splash-screen {
    position: fixed;
    inset: 0;
    background: #0B0F19;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1), visibility 500ms cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    visibility: visible;
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-logo {
    animation: splashLogoIn 1000ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: scale(0.85);
}

@keyframes splashLogoIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.splash-loader {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: #7D5CFF;
    border-radius: 50%;
    animation: spin 1000ms linear infinite;
    margin-top: 40px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- AI Assistant Sheet --- */
.ai-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 25, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
    z-index: 1000;
}

.ai-sheet-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.ai-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    color: var(--color-bg-primary);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    border-top: 1px solid rgba(125, 92, 255, 0.2);
    box-shadow: 0 -10px 40px rgba(125, 92, 255, 0.15);
    transform: translateY(100%);
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    height: 75vh;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (min-width: 768px) {
    .ai-sheet {
        max-width: 430px;
        left: 50%;
        transform: translate(-50%, 100%);
        right: auto;
    }
    .ai-sheet.active {
        transform: translate(-50%, 0);
    }
}

.ai-sheet.active {
    transform: translateY(0);
}

.ai-avatar-pulse {
    width: 12px;
    height: 12px;
    background: #10B981;
    border-radius: 50%;
    position: absolute;
    bottom: -1px;
    right: -1px;
    border: 2px solid #FFFFFF;
    z-index: 2;
}

.ai-avatar-pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid #10B981;
    animation: avatarPulse 1.5s ease-out infinite;
}

@keyframes avatarPulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.ai-message-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    align-self: flex-start;
    max-width: 85%;
}

.ai-avatar-mini {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7D5CFF 0%, #FF007A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(125, 92, 255, 0.2);
}

.ai-avatar-mini svg {
    width: 13px !important;
    height: 13px !important;
}

.ai-msg-bubble {
    background: rgba(125, 92, 255, 0.05);
    border: 1px solid rgba(125, 92, 255, 0.1);
    border-radius: 4px 18px 18px 18px;
    padding: var(--space-3) var(--space-4);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-bg-primary);
    max-width: 100%;
}

.user-msg-bubble {
    background: linear-gradient(135deg, #7D5CFF 0%, #5B3FD7 100%);
    border-radius: 18px 18px 4px 18px;
    padding: var(--space-3) var(--space-4);
    font-size: 13px;
    line-height: 1.5;
    color: #FFFFFF;
    max-width: 80%;
    align-self: flex-end;
    box-shadow: 0 4px 12px rgba(125, 92, 255, 0.2);
}

.ai-suggestion-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.ai-suggestion-card:hover {
    transform: translateY(-1px);
    border-color: rgba(125, 92, 255, 0.3);
    box-shadow: 0 4px 12px rgba(125, 92, 255, 0.05);
}

.ai-suggestion-card:active {
    transform: translateY(0);
}

.ai-suggestion-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-suggestion-icon-wrap svg {
    width: 18px !important;
    height: 18px !important;
}

.ai-suggestion-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 2px;
}

.ai-suggestion-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-bg-primary);
}

.ai-suggestion-desc {
    font-size: 11px;
    color: var(--color-gray);
}

.ai-suggestion-arrow {
    color: #A0AEC0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-suggestion-arrow svg {
    width: 14px;
    height: 14px;
}

.ai-typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(125, 92, 255, 0.05);
    border: 1px solid rgba(125, 92, 255, 0.1);
    border-radius: 18px;
    padding: var(--space-3) var(--space-4);
    align-self: flex-start;
}

.ai-typing-dot {
    width: 6px;
    height: 6px;
    background: #7D5CFF;
    border-radius: 50%;
    opacity: 0.4;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.ai-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.ai-card {
    background: #FFFFFF;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-xl);
    padding: 12px 14px;
    margin-top: 8px;
    display: flex;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.015);
    box-sizing: border-box;
}

.ai-card.interactive {
    cursor: pointer;
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease, box-shadow 200ms ease, background-color 150ms ease;
}

.ai-card.interactive:hover {
    transform: translateY(-2px) scale(1.005);
    border-color: rgba(125, 92, 255, 0.3);
    box-shadow: 0 6px 16px rgba(125, 92, 255, 0.06);
}

.ai-card.interactive:active {
    transform: scale(0.98);
    background: #F8FAFC;
    border-color: rgba(125, 92, 255, 0.15);
    box-shadow: 0 2px 6px rgba(125, 92, 255, 0.02);
}

.ai-card-img {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.ai-card-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.ai-card-title {
    font-size: 14.5px;
    font-weight: var(--font-bold);
    color: var(--color-bg-primary);
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-card-sub {
    font-size: 12.5px;
    color: var(--color-gray);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#btn-ai-assistant svg {
    color: #7D5CFF !important;
}

.mic-pulsing {
    animation: micPulse 1.5s infinite;
}

@keyframes micPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes aiPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.6); }
}

/* =============================================
   AI FLIP CARD BUTTON
   ============================================= */
#btn-ai-assistant {
    overflow: visible !important;
}

.ai-flip-card {
    width: 36px;
    height: 36px;
    position: relative;
    transform-style: preserve-3d;
    animation: aiFlipRotate 4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    border-radius: 50%;
}

.ai-flip-front,
.ai-flip-back {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Front face — sparkles icon, purple tint */
.ai-flip-front {
    background: rgba(125, 92, 255, 0.18);
    border: 1px solid rgba(125, 92, 255, 0.4);
    color: #fff;
    transform: rotateY(0deg);
}

.ai-flip-front svg {
    width: 17px;
    height: 17px;
    color: #fff;
}

/* Back face — "IA" text, pink tint */
.ai-flip-back {
    background: rgba(255, 0, 122, 0.18);
    border: 1px solid rgba(255, 0, 122, 0.4);
    color: #fff;
    transform: rotateY(180deg);
}

.ai-flip-back span {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0px;
    color: #fff;
    line-height: 1;
}

@keyframes aiFlipRotate {
    0%   { transform: rotateY(0deg); }
    35%  { transform: rotateY(0deg); }      /* pause on sparkles face */
    50%  { transform: rotateY(180deg); }
    85%  { transform: rotateY(180deg); }    /* pause on IA face */
    100% { transform: rotateY(360deg); }
}

/* Equalizer wave pulse animation for recording voice */
@keyframes wavePulse {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1.3); }
}

/* ============================================
   NOTIFICATIONS SHEET
   ============================================ */
.notif-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 300;
    transition: background 380ms ease;
}

.notif-sheet-backdrop.active {
    background: rgba(0, 0, 0, 0.45);
}

.notif-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 301;
    background: var(--color-white);
    border-radius: 24px 24px 0 0;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 380ms cubic-bezier(0.34, 1.1, 0.64, 1);
    overflow: hidden;
}

.notif-sheet.active {
    transform: translateY(0);
}

/* Header */
.notif-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px var(--space-5) 12px;
    border-bottom: 1px solid #F1F5F9;
    flex-shrink: 0;
}

.notif-sheet-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-sheet-title {
    font-size: 17px;
    font-weight: var(--font-bold);
    color: var(--color-bg-primary);
}

.notif-badge-count {
    background: #7D5CFF;
    color: white;
    font-size: 10px;
    font-weight: var(--font-bold);
    padding: 2px 7px;
    border-radius: 99px;
    min-width: 20px;
    text-align: center;
}

.notif-mark-all-btn {
    font-size: 11px;
    font-weight: var(--font-semibold);
    color: #7D5CFF;
    background: #EDE9FE;
    border: none;
    border-radius: var(--radius-full);
    padding: 5px 12px;
    cursor: pointer;
    white-space: nowrap;
}

.notif-close-btn {
    background: #F1F5F9;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-gray);
    flex-shrink: 0;
}

/* Filter Tabs */
.notif-tabs {
    display: flex;
    gap: 6px;
    padding: 10px var(--space-5);
    border-bottom: 1px solid #F1F5F9;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
}

.notif-tabs::-webkit-scrollbar { display: none; }

.notif-tab {
    font-size: 12px;
    font-weight: var(--font-semibold);
    color: var(--color-gray);
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: var(--radius-full);
    padding: 5px 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 180ms ease;
    flex-shrink: 0;
}

.notif-tab.active {
    color: #7D5CFF;
    background: #EDE9FE;
    border-color: #C4B5FD;
}

/* List */
.notif-list {
    flex: 1;
    overflow-y: auto;
    padding-bottom: calc(var(--safe-bottom) + 16px);
}

/* Group */
.notif-group-label {
    font-size: 11px;
    font-weight: var(--font-bold);
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px var(--space-5) 6px;
}

/* Item */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px var(--space-5);
    transition: background 160ms ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.notif-item:active {
    background: #F8FAFC;
}

.notif-unread {
    background: #FAFAFF;
}

.notif-unread .notif-title {
    font-weight: var(--font-bold) !important;
}

/* Icon */
.notif-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.notif-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #7D5CFF;
    border: 2px solid var(--color-white);
}

.notif-cta-btn {
    margin-top: 8px;
    background: #F1EFFE;
    color: #7D5CFF;
    border: 1px solid #DDD6FE;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 180ms ease;
    width: fit-content;
}

.notif-cta-btn:hover {
    background: #7D5CFF;
    color: #FFFFFF;
    border-color: #7D5CFF;
    box-shadow: 0 4px 12px rgba(125, 92, 255, 0.25);
}

/* Content */
.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-header-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

.notif-title {
    font-size: 13px;
    font-weight: var(--font-medium);
    color: var(--color-bg-primary);
    line-height: 1.3;
}

.notif-time {
    font-size: 10px;
    color: #94A3B8;
    white-space: nowrap;
    flex-shrink: 0;
}

.notif-body {
    font-size: 12px;
    color: var(--color-gray);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Empty state */
.notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px var(--space-5);
    text-align: center;
}

.notif-empty p {
    font-size: 13px;
    color: #94A3B8;
    margin: 0;
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 300;
    transition: background 380ms ease;
}

.search-sheet-backdrop.active {
    background: rgba(0, 0, 0, 0.45);
}

.search-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 301;
    background: var(--color-white);
    border-radius: 24px 24px 0 0;
    height: 82vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 380ms cubic-bezier(0.34, 1.1, 0.64, 1);
    overflow: hidden;
}

.search-sheet.active {
    transform: translateY(0);
}

/* Header */
.search-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px var(--space-5) 12px;
    border-bottom: 1px solid #F1F5F9;
    flex-shrink: 0;
}

.search-sheet-title {
    font-size: 17px;
    font-weight: var(--font-bold);
    color: var(--color-bg-primary);
}

/* Top bar */
.search-overlay-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px var(--space-5) 12px;
    background: var(--color-white);
    border-bottom: 1px solid #F1F5F9;
    flex-shrink: 0;
}

.search-overlay-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: var(--radius-full);
    padding: 8px 12px;
    transition: border-color 180ms ease;
}

.search-overlay-input-wrap:focus-within {
    border-color: #7D5CFF;
}

.search-overlay-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--color-bg-primary);
    outline: none;
    font-family: inherit;
    min-width: 0;
}

.search-overlay-input::placeholder {
    color: #94A3B8;
}



/* Results area */
.search-results-area {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: calc(var(--safe-bottom) + 20px);
}

/* Section labels */
.search-section-label {
    font-size: 11px;
    font-weight: var(--font-bold);
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 16px var(--space-5) 6px;
}

/* Result count */
.search-result-count {
    font-size: 12px;
    color: var(--color-gray);
    padding: 14px var(--space-5) 2px;
}

/* Result item */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--color-white);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: var(--radius-xl);
    margin: 10px var(--space-5);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.015);
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms ease, border-color 150ms ease, background-color 150ms ease;
    -webkit-tap-highlight-color: transparent;
}

.search-result-item:hover,
.search-result-item:active {
    transform: scale(0.985);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border-color: rgba(125, 92, 255, 0.25);
    background: #FDFEFE;
}

/* Thumbnail container */
.search-result-thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.search-result-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-result-thumb-gradient {
    width: 100%;
    height: 100%;
}

.search-result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.search-result-name {
    font-size: 16px;
    font-weight: var(--font-bold);
    color: var(--color-bg-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.search-result-badge {
    font-size: 10px;
    font-weight: var(--font-bold);
    padding: 2px 7px;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.search-result-dot {
    font-size: 12px;
    color: #CBD5E1;
    flex-shrink: 0;
}

.search-result-specialty {
    font-size: 13px;
    color: var(--color-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Bottom row: location + rating side by side */
.search-result-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.search-result-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #94A3B8;
    overflow: hidden;
}

.search-result-location span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: var(--font-bold);
    color: #92400E;
    background: #FEF3C7;
    padding: 2px 6px;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}


/* Highlight match */
.search-highlight {
    background: #FEF3C7;
    color: #92400E;
    border-radius: 2px;
    padding: 0 1px;
    font-style: normal;
}

/* Recent items */
.search-recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px var(--space-5);
    cursor: pointer;
    font-size: 13px;
    color: var(--color-bg-primary);
    -webkit-tap-highlight-color: transparent;
    transition: background 150ms ease;
}

.search-recent-item:active {
    background: #F8FAFC;
}

/* Recent item elements */
.search-recent-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    flex-shrink: 0;
}

.search-recent-text {
    font-size: 13px;
    font-weight: var(--font-medium);
    color: var(--color-bg-primary);
}

/* Category explore cards */
.search-categories-list {
    display: flex;
    flex-direction: column;
    padding: 4px var(--space-5) 12px;
    gap: 10px;
}

.search-category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 200ms ease;
    -webkit-tap-highlight-color: transparent;
}

.search-category-card:active {
    background: #F1F5F9;
    transform: scale(0.985);
}

.search-category-thumb {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    position: relative;
}

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

.search-category-name {
    font-size: 13px;
    font-weight: var(--font-bold);
    color: var(--color-bg-primary);
}

.search-category-sub {
    font-size: 11px;
    color: var(--color-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Empty state */
.search-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px var(--space-5) 40px;
    text-align: center;
}

.search-empty-title {
    font-size: 15px;
    font-weight: var(--font-semibold);
    color: var(--color-bg-primary);
    margin: 0;
}

.search-empty-sub {
    font-size: 13px;
    color: #94A3B8;
    margin: 0;
}

/* ============================================
   SCREEN: ALL CATEGORIES
   ============================================ */

.category-list-card {
    background: var(--color-white);
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 16px var(--space-4);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.015);
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.category-list-card.expanded {
    border-color: rgba(125, 92, 255, 0.25);
    box-shadow: 0 10px 20px rgba(125, 92, 255, 0.05);
}

.category-list-card-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.category-list-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.category-list-icon-wrap svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

.category-list-icon-wrap.purple { background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 100%); color: var(--color-white); }
.category-list-icon-wrap.amber { background: linear-gradient(135deg, #FBBF24 0%, #D97706 100%); color: var(--color-white); }
.category-list-icon-wrap.blue { background: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%); color: var(--color-white); }
.category-list-icon-wrap.teal { background: linear-gradient(135deg, #2DD4BF 0%, #0D9488 100%); color: var(--color-white); }
.category-list-icon-wrap.pink { background: linear-gradient(135deg, #F472B6 0%, #DB2777 100%); color: var(--color-white); }
.category-list-icon-wrap.green { background: linear-gradient(135deg, #34D399 0%, #059669 100%); color: var(--color-white); }
.category-list-icon-wrap.gray { background: linear-gradient(135deg, #94A3B8 0%, #475569 100%); color: var(--color-white); }

.category-list-card-header:hover .category-list-icon-wrap {
    transform: scale(1.06);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.category-list-info {
    flex: 1;
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.category-list-name {
    font-size: 14.5px;
    font-weight: var(--font-bold);
    color: var(--color-bg-primary);
    margin: 0 0 2px;
}

.category-list-desc {
    font-size: 11px;
    color: var(--color-text-secondary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-list-toggle-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    transition: all 180ms ease;
}

.category-list-card-header:hover .category-list-toggle-btn {
    background: #F1F5F9;
    color: var(--color-bg-primary);
}

.category-chevron {
    width: 18px;
    height: 18px;
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1), color 180ms ease;
}

.category-list-card.expanded .category-chevron {
    transform: rotate(180deg);
    color: var(--color-purple);
}

/* Accordion details box height animation */
.category-list-details {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 280ms cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.category-list-card.expanded .category-list-details {
    grid-template-rows: 1fr;
}

.category-list-details-inner {
    min-height: 0;
    padding-top: var(--space-4);
    border-top: 1px dashed #E2E8F0;
    margin-top: 14px;
}

.category-list-specialties-title {
    font-size: 10px;
    font-weight: var(--font-bold);
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-3);
    letter-spacing: 0.5px;
}

.category-list-specialties-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-specialty-chip {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    color: var(--color-bg-primary);
    cursor: pointer;
    transition: all 180ms ease;
    font-family: inherit;
}

.category-specialty-chip:hover {
    background: #EDE9FE;
    border-color: rgba(125, 92, 255, 0.4);
    color: var(--color-purple);
}

.category-view-all-btn {
    border: none;
    background: rgba(125, 92, 255, 0.06);
    color: var(--color-purple);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 180ms ease;
}

.category-view-all-btn:hover {
    background: var(--color-purple);
    color: var(--color-white);
}

/* Citas Detalle Screen Styles */
.citas-detalle-card {
    background: var(--color-white);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: var(--radius-xl);
    padding: 16px;
    margin: 12px var(--space-5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.015);
}

.citas-detalle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--color-white);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: var(--radius-xl);
    padding: 14px 10px;
    margin: 12px var(--space-5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.015);
}

.citas-detalle-grid-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.citas-detalle-grid-col:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: #E2E8F0;
}

.citas-detalle-grid-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F1EFFE;
    color: #7D5CFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.citas-detalle-grid-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-gray);
    margin-bottom: 4px;
}

.citas-detalle-grid-val {
    font-size: 12.5px;
    font-weight: var(--font-bold);
    color: var(--color-bg-primary);
    line-height: 1.2;
}

.citas-detalle-grid-sub {
    font-size: 10.5px;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

/* List details */
.citas-detalle-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
}

.citas-detalle-list-item:not(:last-child) {
    border-bottom: 1px solid #F1F5F9;
}

.citas-detalle-list-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #F8FAFC;
    color: #7D5CFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.citas-detalle-list-info {
    flex: 1;
    min-width: 0;
}

.citas-detalle-list-label {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--color-gray);
    margin-bottom: 2px;
}

.citas-detalle-list-val {
    font-size: 13.5px;
    font-weight: var(--font-semibold);
    color: var(--color-bg-primary);
    line-height: 1.3;
}

/* Actions Row */
.citas-detalle-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 12px var(--space-5);
}

.citas-detalle-action-box {
    background: var(--color-white);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: var(--radius-xl);
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.012);
    transition: transform 150ms ease, background 150ms ease;
}

.citas-detalle-action-box:active {
    transform: scale(0.95);
    background: #F8FAFC;
}

.citas-detalle-action-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.citas-detalle-action-label {
    font-size: 10px;
    font-weight: var(--font-semibold);
    color: var(--color-bg-primary);
}

.body-scroll-lock {
    overflow: hidden !important;
    height: 100dvh !important;
}

@keyframes audio-wave {
    0% { height: 25%; }
    100% { height: 100%; }
}

.chat-voice-playing .audio-wave-bar {
    animation-play-state: running !important;
}

@keyframes recording-pulse {
    0% { opacity: 0.4; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1.15); }
}

.coll-chip svg,
.add-coll-item svg {
    width: 16px;
    height: 16px;
}

/* Standard Single-Day Calendar Cell (For Non-Hotel Categories) */
.calendar-day-cell {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 150ms ease;
    user-select: none;
    position: relative;
    box-sizing: border-box;
}

/* Airbnb-Style Multi-Day Calendar Engine */
.airbnb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0 !important;
    margin-bottom: 8px;
    user-select: none;
}

.airbnb-day-wrapper {
    position: relative;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
}

.airbnb-day-wrapper.disabled {
    cursor: not-allowed;
}

/* Range background strip element (behind the circle number) */
.airbnb-range-strip {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1;
    pointer-events: none;
    transition: background 150ms ease;
}

.airbnb-day-wrapper.range-start .airbnb-range-strip {
    left: 50%;
    right: 0;
    background: #FAF5FF;
}

.airbnb-day-wrapper.range-end .airbnb-range-strip {
    left: 0;
    right: 50%;
    background: #FAF5FF;
}

.airbnb-day-wrapper.range-between .airbnb-range-strip {
    left: 0;
    right: 0;
    background: #FAF5FF;
}

.airbnb-day-wrapper.range-hover-between .airbnb-range-strip {
    left: 0;
    right: 0;
    background: rgba(125, 92, 255, 0.12);
}

.airbnb-day-wrapper.range-hover-end .airbnb-range-strip {
    left: 0;
    right: 50%;
    background: rgba(125, 92, 255, 0.12);
}

/* Number target circle */
.airbnb-day-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #1E293B;
    position: relative;
    z-index: 2;
    transition: all 180ms ease;
    background: transparent;
}

.airbnb-day-wrapper.disabled .airbnb-day-num {
    color: #CBD5E1 !important;
    font-weight: 400 !important;
}

.airbnb-day-wrapper:not(.disabled):hover .airbnb-day-num {
    background: #F3E8FF;
}

.airbnb-day-wrapper.range-start .airbnb-day-num,
.airbnb-day-wrapper.range-end .airbnb-day-num,
.airbnb-day-wrapper.range-single .airbnb-day-num {
    background: linear-gradient(135deg, #7D5CFF 0%, #5B3FD7 100%) !important;
    color: #FFFFFF !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(125, 92, 255, 0.35) !important;
    filter: none !important;
    text-shadow: none !important;
}

.airbnb-day-wrapper.range-between .airbnb-day-num {
    color: #5B3FD7 !important;
    font-weight: 800 !important;
    background: transparent !important;
}

.airbnb-day-wrapper.range-hover-end .airbnb-day-num {
    border: 2px dashed #7D5CFF !important;
    color: #7D5CFF !important;
    font-weight: 800 !important;
    background: #FAF5FF !important;
}

.stay-summary-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 14px 16px;
    color: #0F172A;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
    box-shadow: none;
    position: relative;
}

.stay-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stay-step-tag {
    font-size: 11px;
    font-weight: 700;
    color: #0284C7;
    background: #E0F2FE;
    border: 1px solid #BAE6FD;
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stay-dates-selector-row {
    display: grid;
    grid-template-columns: 1fr 24px 1fr;
    align-items: center;
    gap: 8px;
}

.stay-date-pill {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    transition: all 200ms ease;
}

.stay-date-pill:hover {
    background: #FFFFFF;
    border-color: #0284C7;
}

.stay-date-pill.active {
    background: #F0F9FF;
    border-color: #0284C7;
    box-shadow: none;
}

.stay-date-pill.filled {
    background: #F8FAFC;
    border-color: #0284C7;
}

.stay-pill-label {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748B;
}

.stay-date-pill.active .stay-pill-label {
    color: #0284C7;
}

.stay-pill-val {
    font-size: 13.5px;
    font-weight: 800;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stay-arrow-divider {
    text-align: center;
    color: #94A3B8;
    font-size: 14px;
    font-weight: 700;
}

.stay-footer-row {
    border-top: 1px dashed #E2E8F0;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.stay-nights-badge {
    background: #E0F2FE;
    color: #0284C7;
    border: 1px solid #BAE6FD;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

.stay-reset-btn {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #64748B;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 180ms ease;
}

.stay-reset-btn:hover {
    background: #FEF2F2;
    color: #EF4444;
    border-color: #FCA5A5;
}

/* Premium Collection Detail Modal */
.coll-detail-panel {
    position: fixed;
    inset: 0;
    background: #F8FAFC;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.coll-detail-panel.active {
    transform: translateY(0);
}

.coll-detail-hero {
    position: relative;
    height: 240px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 20px;
    box-sizing: border-box;
}

.coll-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.05) 40%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 1;
}

.coll-detail-hero-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: env(safe-area-inset-top, 8px);
}

.coll-detail-back-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease;
    outline: none;
}

.coll-detail-back-btn:active {
    transform: scale(0.92);
    background: rgba(15, 23, 42, 0.6);
}

.coll-detail-badge {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #0F172A;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.coll-detail-hero-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 34px;
}

.coll-detail-hero-title {
    margin: 0;
    font-size: 25px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.coll-detail-hero-meta {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.coll-detail-content-area {
    flex: 1;
    margin-top: -26px;
    position: relative;
    z-index: 10;
    background: #F8FAFC;
    border-radius: 28px 28px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -8px 25px rgba(15, 23, 42, 0.08);
}

.coll-detail-item-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    position: relative;
}

.coll-detail-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border-color: #CBD5E1;
}

.coll-detail-item-img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
}

.coll-detail-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.coll-detail-item-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 2px 8px;
    border-radius: 6px;
    width: fit-content;
}

.coll-detail-item-tag.medicos { background: #F1EFFE; color: #7D5CFF; }
.coll-detail-item-tag.hoteles { background: #E0F2FE; color: #0284C7; }
.coll-detail-item-tag.restaurantes { background: #FEF3C7; color: #D97706; }
.coll-detail-item-tag.eventos { background: #FCE7F3; color: #DB2777; }
.coll-detail-item-tag.inmobiliarios { background: #DCFCE7; color: #15803D; }

.coll-detail-item-name {
    margin: 0;
    font-size: 14.5px;
    font-weight: 800;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coll-detail-item-location {
    font-size: 11.5px;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coll-detail-item-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.coll-detail-item-rating {
    font-size: 11.5px;
    font-weight: 700;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 3px;
}

.coll-detail-action-btn {
    background: #F1EFFE;
    color: #7D5CFF;
    border: none;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: all 180ms ease;
}

.coll-detail-action-btn:hover {
    background: #7D5CFF;
    color: #FFFFFF;
}

.coll-detail-remove-btn {
    background: #FEF2F2;
    border: 1px solid #FEE2E2;
    color: #EF4444;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 180ms ease;
}

.coll-detail-remove-btn:hover {
    background: #EF4444;
    color: #FFFFFF;
    border-color: #EF4444;
}

/* Subtle Placeholder Contrast Adjustment (Soft, legible gray #64748B) */
::placeholder {
    color: #64748B !important;
    opacity: 0.9 !important;
    font-weight: 500 !important;
}

::-webkit-input-placeholder {
    color: #64748B !important;
    opacity: 0.9 !important;
    font-weight: 500 !important;
}

:-ms-input-placeholder {
    color: #64748B !important;
    opacity: 0.9 !important;
    font-weight: 500 !important;
}

::-ms-input-placeholder {
    color: #64748B !important;
    opacity: 0.9 !important;
    font-weight: 500 !important;
}

.search-placeholder,
.search-input-wrap input::placeholder,
.search-overlay-input-wrap input::placeholder,
.search-overlay-input::placeholder,
.booking-input::placeholder,
.chats-search-input::placeholder,
.chat-text-input::placeholder {
    color: #64748B !important;
    opacity: 0.9 !important;
    font-weight: 500 !important;
}

#btn-clear-filters {
    border: 1.5px solid #7D5CFF !important;
    color: #7D5CFF !important;
    background: #FFFFFF !important;
    transition: all 150ms ease !important;
}

#btn-clear-filters:active {
    background: #FAF5FF !important;
    transform: scale(0.98);
}




/* Adjustment for Inicio screen sticky categories */
.sticky-categories-wrapper {
    top: calc(var(--safe-top) + 52px) !important;
}

/* ============================================
   AUTH SCREEN STYLES
   ============================================ */
.auth-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(160deg, #0B0F19 0%, #131824 40%, #1a1040 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    animation: authFadeIn 0.5s ease;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 8px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 20px rgba(125, 92, 255, 0.3));
}

.auth-title {
    font-family: 'Satoshi', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 14px;
    color: #8E96A3;
    margin: 6px 0 0;
}

.auth-form-wrapper {
    width: 100%;
}

.auth-form {
    width: 100%;
    background: rgba(26, 31, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form-title {
    font-family: 'Satoshi', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-align: center;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    font-size: 13px;
    font-weight: 500;
    color: #8E96A3;
}

.auth-field input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-family: 'Satoshi', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.auth-field input:focus {
    border-color: var(--color-purple);
    box-shadow: 0 0 0 3px rgba(125, 92, 255, 0.15);
}

.auth-field input::placeholder {
    color: #4B5563;
}

.auth-password-wrapper {
    position: relative;
}

.auth-password-wrapper input {
    padding-right: 44px;
}

.auth-toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8E96A3;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.auth-error {
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-brand);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Satoshi', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 15px rgba(37, 99, 255, 0.3);
}

.auth-submit-btn:active {
    transform: scale(0.98);
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-spinner {
    animation: authSpin 1s linear infinite;
}

@keyframes authSpin {
    to { transform: rotate(360deg); }
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.auth-divider span {
    font-size: 12px;
    color: #4B5563;
    white-space: nowrap;
}

.auth-google-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Satoshi', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, border-color 0.2s;
}

.auth-google-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.auth-switch {
    text-align: center;
    font-size: 14px;
    color: #8E96A3;
    margin: 0;
}

.auth-switch-btn {
    background: none;
    border: none;
    color: var(--color-purple);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    font-family: 'Satoshi', sans-serif;
}

.auth-guest {
    width: 100%;
    text-align: center;
}

.auth-guest-btn {
    background: none;
    border: none;
    color: #8E96A3;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    font-family: 'Satoshi', sans-serif;
    transition: color 0.2s;
}

.auth-guest-btn:hover {
    color: #fff;
}
