:root {
    --bg: #0b0c10;
    --bg-elev: #14161c;
    --bg-card: #181b23;
    --line: #262a36;
    --text: #f2efe8;
    --muted: #9aa1ad;
    --accent: #c48a42;      /* burnished copper */
    --accent-strong: #e0a55b;
    --danger: #e05050;
    --ok: #4fd1a3;
    --radius: 14px;
    --shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-strong); text-decoration: none; }
a:hover { color: var(--text); }

h1, h2, h3, h4 {
    font-family: "Playfair Display", "Inter", serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.2rem, 4.3vw, 3.8rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
h3 { font-size: 1.2rem; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
    color: var(--accent-strong);
    font-weight: 600;
    margin: 0 0 0.6rem;
}

.shell {
    width: min(var(--maxw), 92vw);
    margin: 0 auto;
}

section { padding: 5rem 0; }

/* ---------------- Header ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(11, 12, 16, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header:focus-within {
    background: rgba(11, 12, 16, 0.95);
    border-color: rgba(255,255,255,0.1);
}

.site-header .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text);
    font-family: "Playfair Display", serif;
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    transition: opacity 0.2s;
    outline-offset: 6px;
    border-radius: 4px;
}
.logo:hover { opacity: 0.85; }

.logo-mark {
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, #8a5a22 100%);
    color: #0b0c10;
    font-weight: 700;
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(196, 138, 66, 0.4);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.logo:hover .logo-mark {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 6px 16px rgba(196, 138, 66, 0.6);
}

.main-nav {
    display: flex;
    gap: 1.3rem;
    align-items: center;
}

.main-nav a {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
}

.main-nav a:hover { 
    color: var(--text); 
    text-shadow: 0 0 12px rgba(255,255,255,0.2);
}
.main-nav a:focus-visible {
    outline: 2px solid var(--accent);
    color: var(--text);
}

.main-nav .btn { 
    margin-left: 0.8rem; 
    color: #0b0c10; /* Override .main-nav a color for contrast */
}
.main-nav .btn:hover {
    color: #0b0c10;
}

.lang-toggle {
    background: rgba(255,255,255,0.02);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lang-toggle:hover { 
    border-color: var(--accent); 
    background: rgba(196, 138, 66, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 138, 66, 0.2);
}
.lang-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    background: var(--accent);
    color: #0b0c10;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    text-decoration: none;
}

.btn:hover { 
    background: var(--accent-strong); 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(196, 138, 66, 0.3);
    color: #0b0c10; 
}
.btn:active {
    transform: translateY(0);
}
.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn.ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none;
}
.btn.ghost:hover { 
    border-color: var(--accent); 
    color: var(--text); 
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
    background: rgba(255,255,255,0.02);
}

.btn.small { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { background: #f06060; box-shadow: 0 4px 12px rgba(224, 80, 80, 0.3); }

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11,12,16,0.6) 0%, rgba(11,12,16,0.95) 100%),
        url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1900&q=80') center / cover no-repeat;
    z-index: -1;
}

.hero .shell { max-width: 760px; }
.hero h1 { margin-bottom: 1rem; }
.hero p.lead { color: var(--muted); font-size: 1.1rem; max-width: 55ch; }

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.2rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3.5rem;
    flex-wrap: wrap;
}

.hero-stats div { 
    min-width: 8rem; 
    border-left: 2px solid rgba(196, 138, 66, 0.4);
    padding-left: 1.2rem;
    transition: border-color 0.3s ease;
}
.hero-stats div:hover {
    border-color: var(--accent);
}
.hero-stats strong {
    display: block;
    font-size: 1.8rem;
    font-family: "Playfair Display", serif;
    color: var(--accent-strong);
    text-shadow: 0 4px 12px rgba(196, 138, 66, 0.3);
    margin-bottom: 0.2rem;
}
.hero-stats span { color: var(--muted); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------------- Section head ---------------- */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.section-head > div { max-width: 60ch; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.section-head p.sub { color: var(--muted); margin: 0; font-size: 1.05rem; line-height: 1.6; }

/* ---------------- Filters ---------------- */
.filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.filters label { display: grid; gap: 0.5rem; font-size: 0.85rem; font-weight: 500; color: var(--text); transition: color 0.2s; }
.filters label:focus-within { color: var(--accent-strong); }

select, input, textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font: inherit;
    transition: border-color 0.15s;
}

select:focus, input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* ---------------- Vehicle grid ---------------- */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
}

.vehicle-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

.vehicle-photo {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #0e1015 center / cover no-repeat;
    overflow: hidden;
    transition: transform 0.4s ease;
}
.vehicle-card:hover .vehicle-photo {
    transform: scale(1.02);
}

.vehicle-photo .badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: rgba(11,12,16,0.85);
    backdrop-filter: blur(8px);
    color: var(--accent-strong);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.vehicle-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
    position: relative;
    z-index: 2; /* overlap photo scale */
    background: var(--bg-card);
}

.vehicle-body h3 { margin: 0; }
.vehicle-body .model-brand { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }

.spec-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    padding: 0.6rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 0.82rem;
}

.spec-row div { text-align: center; }
.spec-row strong { display: block; color: var(--text); font-size: 0.95rem; }
.spec-row span { color: var(--muted); font-size: 0.72rem; }

.vehicle-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-top: auto;
}

.vehicle-price {
    font-family: "Playfair Display", serif;
    font-size: 1.35rem;
    color: var(--accent-strong);
}
.vehicle-price span { font-size: 0.8rem; color: var(--muted); font-family: inherit; }

/* ---------------- Why section ---------------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.why-card {
    padding: 2.5rem 1.8rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}
.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

.why-card .icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 12px;
    background: rgba(196, 138, 66, 0.12);
    color: var(--accent-strong);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    transition: transform 0.3s reverse, background-color 0.3s ease;
}
.why-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(196, 138, 66, 0.2);
}

.why-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.why-card p { color: var(--muted); margin: 0; line-height: 1.6; }

/* ---------------- Reviews ---------------- */
.reviews-strip {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease;
}

.review-quote {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.4;
    margin: 0;
    font-style: italic;
    color: var(--text);
    position: relative;
    max-width: 60ch;
}
.review-quote::before {
    content: "“";
    position: absolute;
    top: -1.5rem;
    left: -2rem;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.15;
    font-family: serif;
}

.review-author { 
    margin-top: 1.5rem; 
    color: var(--muted); 
    font-size: 0.95rem; 
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.review-dots {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.review-dots button {
    width: 10px; height: 10px; border-radius: 50%;
    border: none; background: var(--line); cursor: pointer;
    transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease, width 0.3s ease;
    outline-offset: 4px;
}
.review-dots button:hover {
    background: rgba(196, 138, 66, 0.5);
    transform: scale(1.2);
}
.review-dots button:focus-visible {
    outline: 2px solid var(--accent);
}
.review-dots button.active { 
    background: var(--accent); 
    width: 32px; 
    border-radius: 6px; 
    transform: scale(1);
}

/* ---------------- Booking ---------------- */
.booking-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.3s ease;
}
.booking-form:focus-within {
    box-shadow: 0 20px 48px rgba(196, 138, 66, 0.1);
}

.booking-form .full { grid-column: 1 / -1; }
.booking-form label { display: grid; gap: 0.5rem; font-size: 0.88rem; color: var(--text); font-weight: 500; transition: color 0.2s; }
.booking-form label:focus-within { color: var(--accent-strong); }

select, input, textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

select:focus, input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(196, 138, 66, 0.2);
    background: var(--bg-card);
}

.form-feedback {
    margin-top: 1rem;
    min-height: 1.2rem;
    color: var(--ok);
}
.form-feedback.error { color: var(--danger); }

/* ---------------- Footer ---------------- */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-elev);
    padding: 4rem 0 3rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-grid h4 {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-grid a {
    display: inline-block;
    color: var(--muted);
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer-grid a:hover {
    color: var(--accent);
    transform: translateX(4px);
}
.footer-grid a:focus-visible {
    outline: 2px solid var(--accent);
    border-radius: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ---------------- Dialog ---------------- */
dialog {
    width: min(700px, 92vw);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text);
    padding: 0;
    box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(0,0,0,0.6); }

.dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--line);
}

.dialog-body { padding: 1.2rem; }

.dialog-body img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}
.dialog-body img:hover {
    transform: scale(1.02);
}

.dialog-close {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    width: 2rem; height: 2rem;
    display: grid; place-items: center;
    font-size: 1.2rem;
}

/* ---------------- Admin Animations ---------------- */
@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.97); }
    100% { opacity: 1; transform: scale(1); }
}

/* Apply staggered animation to panels and login sections */
.admin-login, .tab-panel {
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ---------------- Admin ---------------- */
.admin-page {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.admin-login {
    max-width: 420px;
    margin: 5rem auto;
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.admin-login:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.admin-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}

.admin-bar h1 { margin: 0; font-size: 1.6rem; letter-spacing: -0.02em; }

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.panel:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-color: var(--accent);
}

.panel h2 { font-size: 1.15rem; font-family: "Inter", sans-serif; margin-bottom: 1.2rem; }

table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.admin-table th, table.admin-table td {
    text-align: left;
    padding: 0.75rem 0.6rem;
    border-bottom: 1px solid var(--line);
    transition: background-color 0.2s ease;
}
table.admin-table th { color: var(--muted); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; padding-bottom: 0.5rem; }
table.admin-table tbody tr { transition: transform 0.2s ease, background-color 0.2s ease; }
table.admin-table tbody tr:hover { 
    background: rgba(255,255,255,0.03); 
    transform: translateX(4px);
}

.admin-form { display: grid; gap: 1rem; }
.admin-form label { display: grid; gap: 0.3rem; font-size: 0.85rem; color: var(--muted); transition: color 0.2s; }
.admin-form label:focus-within { color: var(--accent-strong); }
.admin-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.admin-form .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

.admin-photo-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-elev) center / cover no-repeat;
    border: 1px dashed var(--line);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: border-color 0.3s ease, filter 0.3s ease;
}
.admin-photo-preview:hover {
    filter: brightness(1.1);
}

/* ---------------- Forms / Toggle Switch ---------------- */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--line);
    transition: background-color 0.3s ease;
    border-radius: 24px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: var(--text);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 50%;
}
input:checked + .toggle-slider {
    background-color: var(--accent);
}
input:focus + .toggle-slider {
    box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--accent);
}
input:checked + .toggle-slider:before {
    transform: translateX(20px);
    background-color: #111;
}

/* Admin tabs */
.admin-tabs { 
    display: flex; gap: 0.4rem; 
    margin-bottom: 1.5rem; 
    border-bottom: 2px solid var(--line); 
    padding-bottom: 0px; 
    flex-wrap: wrap; 
}
.admin-tabs .tab {
    background: transparent; border: none; color: var(--muted);
    padding: 0.8rem 1.4rem; 
    border-radius: 12px 12px 0 0;
    font-family: "Inter", sans-serif; font-weight: 500; cursor: pointer;
    display: inline-flex; align-items: center; gap: 0.5rem;
    border-bottom: 3px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    margin-bottom: -2px; /* Overlap border */
}
.admin-tabs .tab:hover { 
    color: var(--text); 
    background: rgba(255,255,255,0.03); 
}
.admin-tabs .tab.active { 
    color: var(--accent-strong); 
    border-bottom-color: var(--accent); 
    background: rgba(196, 138, 66, 0.05);
}
.tab-badge {
    background: var(--line); color: var(--text);
    font-size: 0.75rem; padding: 0.15rem 0.6rem;
    border-radius: 999px; min-width: 1.5rem; text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.admin-tabs .tab.active .tab-badge { background: var(--accent); color: #111; font-weight: 600; }

.sub-tabs { 
    display: inline-flex; gap: 0.3rem; 
    background: rgba(255,255,255,0.03); 
    border: 1px solid var(--line); 
    border-radius: 999px; 
    padding: 0.25rem; 
}
.sub-tab {
    background: transparent; border: none; color: var(--muted);
    padding: 0.4rem 1.1rem; border-radius: 999px; cursor: pointer;
    font-size: 0.85rem; font-family: "Inter", sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.sub-tab:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.sub-tab.active { background: var(--accent); color: #111; font-weight: 600; transform: scale(1.02); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }

/* Pills */
.pill { 
    display: inline-block; padding: 0.2rem 0.6rem; 
    border-radius: 999px; font-size: 0.72rem; text-transform: uppercase; 
    letter-spacing: 0.06em; font-weight: 600;
    transition: filter 0.2s ease, transform 0.2s ease;
}
.pill:hover { filter: brightness(1.1); transform: translateY(-1px); }
.pill-new          { background: rgba(200, 150, 80, 0.15);  color: #e4b676; border: 1px solid rgba(200, 150, 80, 0.3); }
.pill-qualified    { background: rgba(90, 180, 120, 0.15);  color: #6ecf96; border: 1px solid rgba(90, 180, 120, 0.3); }
.pill-disqualified { background: rgba(180, 90, 90, 0.15);   color: #d48a8a; border: 1px solid rgba(180, 90, 90, 0.3); }
.pill-active       { background: rgba(90, 180, 120, 0.15);  color: #6ecf96; border: 1px solid rgba(90, 180, 120, 0.3); }
.pill-inactive     { background: rgba(160, 160, 160, 0.12); color: var(--muted); border: 1px solid transparent; }

.muted { color: var(--muted); }

.btn.small { padding: 0.35rem 0.7rem; font-size: 0.78rem; }
.btn.danger { background: #7a2b2b; color: #fff; }
.btn.danger:hover { background: #8f3535; }

/* Dialog */
dialog#leadDialog {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--bg-card); color: var(--text);
    padding: 0; max-width: 580px; width: 92%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
dialog#leadDialog[open] {
    animation: fadeInScale 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
dialog#leadDialog::backdrop { 
    background: rgba(0,0,0,0.7); 
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease forwards;
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.dialog-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 1.6rem; border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
}
.dialog-close {
    background: transparent; border: none; color: var(--muted);
    font-size: 1.6rem; cursor: pointer; line-height: 1;
    width: 2rem; height: 2rem;
    display: grid; place-items: center; border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.dialog-close:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text);
}
.dialog-body { padding: 1.6rem; }
dl.kv { display: grid; grid-template-columns: 120px 1fr; gap: 0.6rem 1rem; margin: 0; font-size: 0.9rem; }
dl.kv dt { color: var(--muted); font-weight: 500; }
dl.kv dd { margin: 0; color: var(--text); }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
    .filters, .booking-form, .admin-grid, .why-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
    .main-nav { display: none; position: absolute; right: 1rem; top: 100%; flex-direction: column; background: var(--bg-elev); border: 1px solid var(--line); padding: 1rem; border-radius: var(--radius); }
    .main-nav.open { display: flex; }
    .menu-toggle { display: inline-flex; }
    .footer-grid { grid-template-columns: 1fr; }
    .admin-form .row2, .admin-form .row3 { grid-template-columns: 1fr; }
}
