:root {
    --ev-primary: #087f8c;
    --ev-primary-dark: #075b67;
    --ev-primary-soft: #e7f5f5;
    --ev-navy: #102f3c;
    --ev-ink: #173642;
    --ev-muted: #66808a;
    --ev-line: #dfe9ec;
    --ev-bg: #f4f8f9;
    --ev-accent: #ffb703;
    --ev-radius: 18px;
    --ev-shadow: 0 18px 48px rgba(16, 47, 60, .09);
}

html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    color: var(--ev-ink);
    background: var(--ev-bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--ev-primary); }
a:hover { color: var(--ev-primary-dark); }
.text-primary { color: var(--ev-primary) !important; }
.bg-primary { background-color: var(--ev-primary) !important; }

.btn {
    border-radius: 11px;
    font-weight: 700;
    padding: .68rem 1rem;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ev-primary); border-color: var(--ev-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--ev-primary-dark); border-color: var(--ev-primary-dark); box-shadow: 0 8px 22px rgba(8,127,140,.22); }
.btn-outline-primary { color: var(--ev-primary); border-color: var(--ev-primary); }
.btn-outline-primary:hover { background: var(--ev-primary); border-color: var(--ev-primary); }
.btn-light { color: var(--ev-navy); }

.form-control, .form-select {
    min-height: 46px;
    border-color: var(--ev-line);
    border-radius: 11px;
    color: var(--ev-ink);
    background-color: #fff;
}
.form-control:focus, .form-select:focus {
    border-color: var(--ev-primary);
    box-shadow: 0 0 0 .22rem rgba(8,127,140,.12);
}
.form-label { color: var(--ev-navy); font-weight: 700; font-size: .9rem; }
.form-text, .text-muted { color: var(--ev-muted) !important; }

.customer-navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    min-height: 72px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid rgba(223,233,236,.9);
    backdrop-filter: blur(14px);
}
.brand-lockup { color: var(--ev-navy) !important; font-weight: 800; letter-spacing: -.025em; }
.brand-mark {
    display: inline-grid;
    width: 52px;
    height: 52px;
    place-items: center;
    overflow: hidden;
    flex: 0 0 52px;
    background: #fff;
    border: 2px solid rgba(8,127,140,.18);
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(8,127,140,.22);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name small { display: block; color: var(--ev-muted); font-size: .65rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.customer-navbar .nav-link { color: #526b75; font-weight: 650; border-radius: 10px; padding: .58rem .78rem !important; }
.customer-navbar .nav-link:hover, .customer-navbar .nav-link.active { color: var(--ev-primary); background: var(--ev-primary-soft); }
.customer-navbar .navbar-toggler { color: var(--ev-navy); border: 1px solid var(--ev-line); border-radius: 10px; padding: .5rem .65rem; }

.app-content { min-height: calc(100vh - 72px); padding: 32px 0 56px; }
.flash-stack { position: relative; z-index: 5; }
.alert { border: 0; border-radius: 13px; box-shadow: 0 8px 24px rgba(16,47,60,.06); }
.alert-success { color: #12613f; background: #e8f8ef; }
.alert-danger { color: #8a2630; background: #fdecee; }
.alert-warning { color: #72510a; background: #fff7da; }

.card, .surface-card {
    border: 1px solid rgba(223,233,236,.9);
    border-radius: var(--ev-radius);
    box-shadow: 0 10px 34px rgba(16,47,60,.055);
    background: #fff;
}
.card-header { border-bottom: 1px solid var(--ev-line); background: transparent; padding: 1.15rem 1.35rem; font-weight: 750; }
.card-body { padding: 1.35rem; }
.shadow-sm { box-shadow: 0 10px 34px rgba(16,47,60,.055) !important; }

.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-eyebrow { margin: 0 0 5px; color: var(--ev-primary); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.page-title { margin: 0; color: var(--ev-navy); font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 800; letter-spacing: -.04em; }
.page-subtitle { margin: 7px 0 0; color: var(--ev-muted); }

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 7vw, 76px);
    color: #fff;
    background: linear-gradient(125deg, #0e3542 0%, #086f7b 58%, #0da4a8 100%);
    border-radius: 28px;
    box-shadow: var(--ev-shadow);
}
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -180px; top: -190px; border: 70px solid rgba(255,255,255,.07); border-radius: 50%; }
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: .48rem .75rem; font-size: .78rem; font-weight: 750; color: #dffbfb; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; }
.hero h1 { margin: 20px 0 16px; font-size: clamp(2.15rem, 5.5vw, 4rem); line-height: 1.04; font-weight: 850; letter-spacing: -.055em; }
.hero .lead { max-width: 610px; color: rgba(255,255,255,.78); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn-primary { color: var(--ev-navy); background: #fff; border-color: #fff; }
.hero .btn-primary:hover { background: #eafafa; border-color: #eafafa; }
.hero .btn-outline-light { border-color: rgba(255,255,255,.55); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.hero-stat strong { display: block; font-size: 1.35rem; }
.hero-stat span { color: rgba(255,255,255,.7); font-size: .82rem; }

.section-heading { margin-bottom: 22px; }
.section-heading h2 { margin: 0 0 6px; color: var(--ev-navy); font-size: clamp(1.5rem,3vw,2.1rem); font-weight: 800; letter-spacing: -.035em; }
.feature-card { height: 100%; padding: 24px; }
.feature-icon, .metric-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--ev-primary);
    background: var(--ev-primary-soft);
    border-radius: 14px;
}
.feature-card h3 { margin: 18px 0 8px; color: var(--ev-navy); font-size: 1.05rem; font-weight: 800; }
.feature-card p { margin: 0; color: var(--ev-muted); font-size: .92rem; line-height: 1.65; }
.service-card { overflow: hidden; height: 100%; }
.service-card img { width: 100%; height: 210px; object-fit: cover; transition: transform .35s ease; }
.service-card:hover img { transform: scale(1.035); }
.service-card .service-tag { display: inline-flex; color: var(--ev-primary); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.service-card h3 { color: var(--ev-navy); font-size: 1.15rem; font-weight: 800; }

.metric-card { display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px; }
.metric-card .metric-value { margin: 0; color: var(--ev-navy); font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.metric-card .metric-label { margin: 4px 0 0; color: var(--ev-muted); font-size: .8rem; }
.table-responsive { border-radius: 13px; }
.table { margin-bottom: 0; vertical-align: middle; }
.table > :not(caption) > * > * { padding: .9rem .8rem; border-bottom-color: #e9f0f2; }
.table thead th { color: #71858d; background: #f7fafb; font-size: .73rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
.table tbody tr:hover { background: #fbfdfd; }
.badge { padding: .48rem .66rem; border-radius: 999px; font-weight: 750; }

.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1030; width: 265px; padding: 22px 16px; color: #d9e8eb; background: #102f3c; }
.admin-sidebar .brand-lockup { color: #fff !important; padding: 0 8px 22px; }
.admin-sidebar .brand-mark { width: 46px; height: 46px; flex-basis: 46px; border-color: rgba(255,255,255,.24); }
.admin-user { margin: 2px 4px 22px; padding: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; }
.admin-user strong { display: block; color: #fff; font-size: .9rem; }
.admin-user span { color: #9bb2ba; font-size: .75rem; }
.admin-menu-label { padding: 0 12px; margin: 18px 0 8px; color: #78949e; font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav a { display: flex; align-items: center; gap: 11px; padding: .76rem .85rem; color: #b8ccd2; text-decoration: none; font-size: .88rem; font-weight: 650; border-radius: 11px; }
.admin-nav a i { width: 20px; text-align: center; }
.admin-nav a:hover, .admin-nav a.active { color: #fff; background: rgba(26,176,183,.18); }
.admin-nav a.active { box-shadow: inset 3px 0 0 #31c1c2; }
.admin-main { width: calc(100% - 265px); margin-left: 265px; }
.admin-topbar { position: sticky; top: 0; z-index: 1010; display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 0 30px; background: rgba(255,255,255,.93); border-bottom: 1px solid var(--ev-line); backdrop-filter: blur(12px); }
.admin-content { padding: 30px; }
.admin-topbar-title { color: var(--ev-navy); font-weight: 800; }

.empty-state { padding: 48px 24px; text-align: center; }
.empty-state i { color: #afc5cc; font-size: 2.2rem; }
.empty-state h3 { margin: 14px 0 6px; color: var(--ev-navy); font-size: 1.1rem; font-weight: 800; }
.empty-state p { color: var(--ev-muted); }
.mobile-bottom-nav { display: none; }
.auth-shell { overflow: hidden; max-width: 960px; margin: 28px auto; }
.auth-aside { display: flex; min-height: 540px; padding: 42px; color: #fff; background: linear-gradient(145deg, #102f3c, #087f8c); flex-direction: column; justify-content: space-between; }
.auth-aside h1 { margin: 18px 0 12px; font-size: 2.1rem; font-weight: 850; letter-spacing: -.045em; }
.auth-aside p { color: rgba(255,255,255,.74); line-height: 1.7; }
.auth-benefits { display: grid; gap: 13px; padding: 0; margin: 28px 0 0; list-style: none; }
.auth-benefits li { display: flex; align-items: center; gap: 10px; color: #e4f7f7; font-size: .9rem; }
.auth-benefits i { display: grid; width: 28px; height: 28px; place-items: center; color: #fff; background: rgba(255,255,255,.13); border-radius: 9px; }
.auth-form { display: flex; min-height: 540px; padding: clamp(28px,5vw,52px); background: #fff; flex-direction: column; justify-content: center; }
.auth-form h2 { color: var(--ev-navy); font-weight: 850; letter-spacing: -.035em; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; z-index: 2; top: 15px; left: 15px; color: #91a6ad; }
.input-icon .form-control { padding-left: 43px; }
.booking-intro { padding: 24px; color: #fff; background: linear-gradient(130deg, #123a47, #087f8c); border-radius: var(--ev-radius); }
.booking-intro h1 { font-size: 1.55rem; font-weight: 820; letter-spacing: -.03em; }
.booking-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.booking-step { padding: .45rem .7rem; color: rgba(255,255,255,.78); background: rgba(255,255,255,.1); border-radius: 999px; font-size: .75rem; font-weight: 700; }
.whatsapp-floating { position: fixed; z-index: 1038; bottom: 22px; display: inline-flex; align-items: center; gap: 9px; min-height: 54px; padding: 7px 17px 7px 7px; color: #fff !important; background: #1fbf5b; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; box-shadow: 0 14px 32px rgba(11,76,39,.28); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.whatsapp-floating--right { right: 22px; }
.whatsapp-floating--left { left: 22px; }
.whatsapp-floating:hover { color: #fff; background: #18a94e; transform: translateY(-2px); box-shadow: 0 18px 38px rgba(11,76,39,.34); }
.whatsapp-floating__icon { display: grid; width: 40px; height: 40px; place-items: center; font-size: 1.45rem; background: rgba(255,255,255,.16); border-radius: 50%; }
.whatsapp-floating__label { font-size: .86rem; font-weight: 800; white-space: nowrap; }
.whatsapp-preview-icon { display: inline-grid; width: 68px; height: 68px; place-items: center; color: #fff; background: #1fbf5b; border-radius: 50%; box-shadow: 0 12px 28px rgba(11,76,39,.22); font-size: 2rem; }

@media (max-width: 991.98px) {
    .customer-navbar .navbar-collapse { margin-top: 12px; padding: 12px; background: #fff; border: 1px solid var(--ev-line); border-radius: 14px; box-shadow: var(--ev-shadow); }
    .admin-shell { display: block; }
    .admin-sidebar { position: static; width: 100%; padding: 14px 16px; }
    .admin-sidebar .brand-lockup { padding-bottom: 12px; }
    .admin-user, .admin-menu-label { display: none; }
    .admin-nav { display: flex; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
    .admin-nav a { white-space: nowrap; background: rgba(255,255,255,.04); }
    .admin-main { width: 100%; margin-left: 0; }
    .admin-topbar { padding: 0 18px; }
    .admin-content { padding: 22px 16px 36px; }
}

@media (max-width: 767.98px) {
    .app-content { padding: 20px 0 92px; }
    .hero { padding: 34px 24px; border-radius: 22px; }
    .hero-stats { gap: 18px; }
    .page-header { align-items: flex-start; flex-direction: column; }
    .card-body { padding: 1.1rem; }
    .mobile-bottom-nav { position: fixed; z-index: 1040; left: 12px; right: 12px; bottom: 10px; display: grid; grid-template-columns: repeat(3,1fr); padding: 7px; background: rgba(255,255,255,.96); border: 1px solid var(--ev-line); border-radius: 18px; box-shadow: 0 16px 42px rgba(16,47,60,.2); backdrop-filter: blur(12px); }
    .mobile-bottom-nav a { display: grid; place-items: center; gap: 2px; padding: 6px; color: #738790; font-size: .66rem; font-weight: 700; text-decoration: none; border-radius: 12px; }
    .mobile-bottom-nav a i { font-size: 1rem; }
    .mobile-bottom-nav a.active { color: var(--ev-primary); background: var(--ev-primary-soft); }
    .auth-aside { min-height: auto; padding: 28px 24px; }
    .auth-aside p, .auth-benefits { display: none; }
    .auth-aside h1 { margin-bottom: 0; font-size: 1.55rem; }
    .auth-form { min-height: auto; padding: 28px 22px; }
    .whatsapp-floating { bottom: 90px; min-height: 52px; padding: 6px; }
    .whatsapp-floating--right { right: 14px; }
    .whatsapp-floating--left { left: 14px; }
    .whatsapp-floating__icon { width: 40px; height: 40px; }
    .whatsapp-floating__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
