/* ==========================================================================
   ETOURGOOD UNICORN DESIGN SYSTEM v5.0.0
   The "Travel OS" Global Library - Professional & Scalable
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    /* --- Core Palette (The etourgood Brand) --- */
    --p: #f97316;              /* Primary Orange */
    --p-h: #ea580c;            /* Hover State */
    --p-l: rgba(249, 115, 22, 0.08); /* Light Accent */
    --dark: #0f172a;           /* Deep Slate */
    --white: #ffffff;
    
    /* --- Neutral Scales (Apple Standard) --- */
    --s-50: #f8fafc; --s-100: #f1f5f9; --s-200: #e2e8f0; --s-300: #cbd5e1;
    --s-400: #94a3b8; --s-500: #64748b; --s-600: #475569; --s-700: #334155;
    
    /* --- Semantics --- */
    --c-success: #10b981; --c-danger: #f43f5e; --c-info: #0ea5e9; --c-warning: #f59e0b;
    --c-hotel: #6366f1; --c-agency: #0f172a; --c-blog: #f97316;

    /* --- Geometry & Radii --- */
    --r-arcade: 4rem;      /* Deep Hero Curves */
    --r-ios: 2.5rem;       /* Container Corners */
    --r-card: 1.5rem;      /* Compact UI Elements */
    --r-input: 1.25rem;    /* Interaction Elements */

    /* --- Elevation Systems --- */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-ios: 0 20px 40px -15px rgba(0,0,0,0.1);
    --glass: blur(25px) saturate(180%);
}

/* ==========================================================================
   1. GLOBAL RESET & BASE SETTINGS
   ========================================================================== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none !important; }
html, body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    font-size: 13px; line-height: 1.6; color: var(--dark);
    background-color: var(--white); scroll-behavior: smooth;
    overscroll-behavior-y: none; text-rendering: optimizeLegibility;
}
[x-cloak] { display: none !important; }
img { max-width: 100%; height: auto; object-fit: cover; }
a { text-decoration: none; color: inherit; transition: opacity 0.2s ease; }
a:active { opacity: 0.7; }

/* ==========================================================================
   2. TYPOGRAPHY SYSTEM (Native Precision)
   ========================================================================== */
h1 { font-size: 28px !important; font-weight: 900; letter-spacing: -0.06em; line-height: 1.1; }
h2 { font-size: 20px !important; font-weight: 800; letter-spacing: -0.04em; }
h3 { font-size: 16px !important; font-weight: 700; letter-spacing: -0.02em; }

.label-micro { font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.4em; color: var(--s-400); }
.label-small { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--s-500); }
.font-black { font-weight: 900; }
.text-primary { color: var(--p); }

/* ==========================================================================
   3. LAYOUT UTILITIES & IMMERSION
   ========================================================================== */
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.pt-header { padding-top: 85px; } /* Header Gap */
.pb-nav { padding-bottom: 120px; }  /* Bottom Nav Gap */
.container-mobile { width: 100%; max-width: 480px; margin: 0 auto; padding: 0 24px; }

/* Arcade Component Shell */
.arcade-hero { position: relative; height: 85vh; width: 100%; overflow: hidden; background: #000; }
.content-bridge {
    background: var(--white); border-radius: var(--r-arcade) var(--r-arcade) 0 0;
    margin-top: -10vh; position: relative; z-index: 40; padding-top: 3.5rem;
    box-shadow: 0 -30px 60px rgba(0,0,0,0.1);
}

/* ==========================================================================
   4. FORM & INPUT LIBRARY (The Onboarding Engine)
   ========================================================================== */
.eg-form-group { display: flex; flex-direction: column; gap: 0.6rem; width: 100%; margin-bottom: 1.5rem; }

.eg-input {
    width: 100%; background: var(--s-50); border: 1.5px solid var(--s-100);
    border-radius: var(--r-input); padding: 1rem 1.5rem; font-size: 14px; font-weight: 600;
    color: var(--dark); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.eg-input:focus { background: var(--white); border-color: var(--p); box-shadow: 0 0 0 5px var(--p-l); }
.eg-input::placeholder { color: var(--s-300); font-weight: 500; }

.eg-textarea { min-height: 100px; resize: none; }

/* Custom Checkboxes (Many2Many) */
.eg-check-list { display: grid; grid-template-cols: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.eg-check-item {
    display: flex; align-items: center; gap: 8px; padding: 12px;
    background: var(--s-50); border: 1px solid var(--s-100); border-radius: 1rem;
    font-size: 11px; font-weight: 700; color: var(--s-600); cursor: pointer;
}
.eg-check-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--p); }

/* ==========================================================================
   5. BUTTON & ACTION DESIGN (Stock App UX)
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 1.25rem 2.5rem; border-radius: 1.75rem; font-weight: 900;
    text-transform: uppercase; letter-spacing: 0.15em; font-size: 11px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: none; cursor: pointer;
}

.btn-primary { background: var(--dark); color: var(--white); box-shadow: var(--shadow-lg); }
.btn-primary:active { transform: scale(0.94); }

.btn-hotel { background: var(--c-hotel); color: var(--white); }
.btn-ghost { background: var(--s-100); color: var(--s-500); }

/* ==========================================================================
   6. UI CARDS & GLASS SYSTEM
   ========================================================================== */
.eg-card { background: var(--white); border-radius: var(--r-ios); border: 1px solid var(--s-100); padding: 2rem; }
.eg-card-compact { background: var(--white); border-radius: var(--r-card); padding: 1rem; border: 1px solid var(--s-50); }

.eg-glass {
    background: rgba(255,255,255,0.75); backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass); border: 1px solid rgba(255,255,255,0.4);
}

.eg-nav-group { pointer-events: auto; width: 280px; height: 60px; border-radius: 30px; display: flex; align-items: center; justify-content: space-around; }

/* ==========================================================================
   7. CRM & DATA TABLES (Data Dense Architecture)
   ========================================================================== */
.eg-table-container { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.eg-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.eg-table th { padding: 12px; font-size: 9px; font-weight: 900; text-transform: uppercase; color: var(--s-400); letter-spacing: 0.2em; text-align: left; }
.eg-table td { padding: 16px; background: var(--white); border-top: 1px solid var(--s-50); border-bottom: 1px solid var(--s-50); font-weight: 600; }
.eg-table td:first-child { border-left: 1px solid var(--s-50); border-radius: 1.25rem 0 0 1.25rem; }
.eg-table td:last-child { border-right: 1px solid var(--s-50); border-radius: 0 1.25rem 1.25rem 0; }

/* ==========================================================================
   8. STATUS, BADGES & PROGRESS
   ========================================================================== */
.badge { font-size: 8px; font-weight: 900; padding: 5px 12px; border-radius: 2rem; text-transform: uppercase; letter-spacing: 0.1em; }
.badge-pending { background: #fffbeb; color: var(--c-warning); }
.badge-active { background: #ecfdf5; color: var(--c-success); }

.step-bar-wrapper { display: flex; gap: 6px; width: 100%; }
.step-bar { height: 4px; flex: 1; border-radius: 2px; background: var(--s-100); transition: all 0.6s ease; }
.step-bar.active { background: var(--p); box-shadow: 0 0 10px var(--p-l); }

/* ==========================================================================
   9. ANIMATIONS & TRANSITIONS
   ========================================================================== */
.animate-slide-up { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.htmx-indicator { display: none; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: block; }

/* Scrollbar Hide */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }


