﻿/* ===========================
   RELIABLE AUTO HAIL REPAIR
   Blazor PWA — app.css
   =========================== */

:root {
    --red: #cc1f1f;
    --red-d: #9e1515;
    --red-l: #e63333;
    --black: #0a0a0a;
    --dark: #111111;
    --dark2: #1a1a1a;
    --mid: #252525;
    --border: rgba(255,255,255,0.07);
    --gray: #888888;
    --lgray: #cccccc;
    --white: #ffffff;
    --green: #22c55e;
    --yellow: #eab308;
    --blue: #3b82f6;
    --font-h: 'Oswald', sans-serif;
    --font-d: 'Bebas Neue', sans-serif;
    --font-b: 'Open Sans', sans-serif;
    --radius: 6px;
    --tr: 0.2s ease;
    --sidebar: 240px;
    --nav-h: 80px;
}

/* ══ RESET ══════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-b);
    background: var(--black);
    color: var(--white);
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: var(--font-b);
    border: none;
}

input, textarea, select {
    font-family: var(--font-b);
}

ul {
    list-style: none;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark2);
}

::-webkit-scrollbar-thumb {
    background: var(--mid);
    border-radius: 3px;
}

/* ══ NAVBAR ══════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--red);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    transition: var(--tr);
}

    .navbar.scrolled {
        box-shadow: 0 2px 30px rgba(204,31,31,0.2);
    }

.nav-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

    .nav-links a {
        font-family: var(--font-h);
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: var(--lgray);
        padding: 8px 16px;
        border-radius: var(--radius);
        transition: var(--tr);
    }

        .nav-links a:hover {
            color: var(--white);
        }

.nav-cta {
    background: var(--red) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
}

    .nav-cta:hover {
        background: var(--red-l) !important;
    }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: transparent;
}

    .hamburger span {
        display: block;
        width: 26px;
        height: 2px;
        background: var(--white);
        border-radius: 2px;
        transition: var(--tr);
    }

.mobile-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(12px);
    padding: 24px 40px;
    z-index: 999;
    border-bottom: 1px solid var(--red);
}

    .mobile-menu ul {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .mobile-menu a {
        display: block;
        font-family: var(--font-h);
        font-size: 18px;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--lgray);
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        transition: var(--tr);
    }

        .mobile-menu a:hover {
            color: var(--red);
        }

/* ══ HERO ════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--nav-h);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(204,31,31,0.15) 0%, transparent 50%), linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.85) 100%), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1800&q=80') center/cover no-repeat;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    padding: 60px 24px;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-h);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(204,31,31,0.1);
    border: 1px solid rgba(204,31,31,0.3);
    padding: 6px 20px;
    border-radius: 30px;
    margin-bottom: 28px;
}

.hero-logo {
    width: 280px;
    max-width: 70vw;
    margin: 0 auto 36px;
    filter: drop-shadow(0 8px 32px rgba(204,31,31,0.4));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-headline {
    font-family: var(--font-d);
    font-size: clamp(52px, 10vw, 110px);
    line-height: 1;
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-shadow: 0 4px 24px rgba(0,0,0,0.8);
}

    .hero-headline .accent {
        color: var(--red);
        display: block;
    }

.hero-sub {
    font-family: var(--font-h);
    font-size: clamp(16px, 3vw, 22px);
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--lgray);
    margin-bottom: 40px;
}

.hero-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-h);
    font-size: 28px;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 14px 36px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    transition: var(--tr);
}

    .hero-phone:hover {
        background: var(--red);
        border-color: var(--red);
    }

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-h);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gray), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.01% {
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ══ BUTTONS ═════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-h);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 36px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--tr);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

    .btn-primary:hover {
        background: var(--red-l);
        border-color: var(--red-l);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(204,31,31,0.4);
    }

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

    .btn-outline:hover {
        border-color: var(--white);
        background: rgba(255,255,255,0.08);
    }

/* ══ TRUST BAR ═══════════════════════════════ */
.trust-bar {
    background: var(--red);
    padding: 18px 40px;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-h);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
}

/* ══ SECTIONS ════════════════════════════════ */
.section {
    padding: 100px 40px;
}

.section-dark {
    background: var(--dark);
}

.section-black {
    background: var(--black);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    font-family: var(--font-h);
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--red);
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-d);
    font-size: clamp(40px, 6vw, 72px);
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 16px;
    color: var(--lgray);
    max-width: 560px;
    line-height: 1.8;
    margin: 0 auto;
}

.stars {
    color: var(--yellow);
    font-size: 20px;
    letter-spacing: 3px;
    display: block;
}

/* ══ SERVICES ════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2px;
}

.service-card {
    background: var(--dark2);
    padding: 48px 36px;
    position: relative;
    overflow: hidden;
    transition: var(--tr);
}

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 0;
        background: var(--red);
        transition: 0.4s ease;
    }

    .service-card:hover::before {
        height: 100%;
    }

    .service-card:hover {
        background: #1e1e1e;
        transform: translateY(-4px);
    }

.service-icon {
    font-size: 32px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-h);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

.service-num {
    position: absolute;
    bottom: 24px;
    right: 28px;
    font-family: var(--font-d);
    font-size: 64px;
    color: rgba(255,255,255,0.03);
    line-height: 1;
    pointer-events: none;
}

/* ══ ABOUT ═══════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-block {
    position: relative;
}

.about-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--radius);
    filter: brightness(0.85);
}

.about-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--red);
    color: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

    .about-badge .num {
        font-family: var(--font-d);
        font-size: 52px;
        line-height: 1;
        display: block;
    }

    .about-badge .label {
        font-family: var(--font-h);
        font-size: 12px;
        letter-spacing: 2px;
        text-transform: uppercase;
        opacity: .9;
    }

.about-content .section-desc {
    margin: 0 0 28px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .features-list li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        font-size: 15px;
        color: var(--lgray);
    }

.feature-check {
    color: var(--red);
    font-weight: 700;
    flex-shrink: 0;
}

/* ══ PROCESS ═════════════════════════════════ */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step {
    padding: 0 24px 40px;
}

.step-number {
    width: 72px;
    height: 72px;
    background: var(--black);
    border: 2px solid var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-d);
    font-size: 30px;
    color: var(--red);
    margin-bottom: 28px;
}

.step h3 {
    font-family: var(--font-h);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.step p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

/* ══ GALLERY ═════════════════════════════════ */
.img-grid-public {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.img-item-pub {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--mid);
}

    .img-item-pub img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .img-item-pub:hover img {
        transform: scale(1.05);
    }

/* ══ BEFORE / AFTER ══════════════════════════ */
.ba-card {
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.ba-title {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-h);
    font-size: 16px;
    font-weight: 600;
}

.ba-grid-pub {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.ba-img-pub {
    position: relative;
}

    .ba-img-pub img {
        width: 100%;
        aspect-ratio: 4/3;
        object-fit: cover;
        display: block;
    }

.ba-lbl {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 1px;
    z-index: 1;
}

    .ba-lbl.before {
        background: var(--red);
        color: white;
    }

    .ba-lbl.after {
        background: var(--green);
        color: white;
    }

/* ══ REVIEWS ═════════════════════════════════ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    position: relative;
    transition: var(--tr);
}

    .review-card:hover {
        border-color: rgba(204,31,31,0.3);
        transform: translateY(-4px);
    }

.review-stars {
    color: var(--yellow);
    font-size: 16px;
    margin-bottom: 16px;
}

.review-text {
    font-size: 15px;
    color: var(--lgray);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 14px;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-h);
    font-size: 18px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.reviewer-name {
    font-family: var(--font-h);
    font-size: 15px;
    font-weight: 600;
}

.reviewer-meta {
    font-size: 12px;
    color: var(--gray);
}

/* ══ CTA / CONTACT FORM ══════════════════════ */
.cta-block {
    background: linear-gradient(135deg, var(--red-d) 0%, var(--red) 50%, var(--red-l) 100%);
    border-radius: 8px;
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.estimate-form-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.estimate-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: left;
}

.form-input {
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 14px;
    outline: none;
    transition: var(--tr);
}

    .form-input::placeholder {
        color: rgba(255,255,255,0.6);
    }

    .form-input:focus {
        border-color: rgba(255,255,255,0.7);
    }

textarea.form-input {
    resize: vertical;
}

.span2 {
    grid-column: 1 / -1;
}

.btn-submit {
    grid-column: 1 / -1;
    padding: 14px;
    background: white;
    color: var(--red);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    font-family: var(--font-h);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--tr);
}

    .btn-submit:hover:not(:disabled) {
        background: #f0f0f0;
        transform: translateY(-1px);
    }

    .btn-submit:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

.form-msg {
    text-align: center;
    font-size: 13px;
    padding: 10px;
}

    .form-msg.success {
        color: #86efac;
    }

    .form-msg.error {
        color: #fca5a5;
    }

/* ══ FOOTER ══════════════════════════════════ */
footer {
    background: var(--dark2);
    border-top: 2px solid var(--red);
    padding: 60px 40px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    font-family: var(--font-h);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(204,31,31,0.3);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .footer-col ul li a {
        font-size: 14px;
        color: var(--gray);
        transition: var(--tr);
    }

        .footer-col ul li a:hover {
            color: var(--red);
        }

.contact-item {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 12px;
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

    .footer-bottom p {
        font-size: 13px;
        color: var(--gray);
    }

/* ══ ADMIN LOGIN ═════════════════════════════ */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(ellipse at 30% 40%, rgba(204,31,31,0.12) 0%, transparent 60%), var(--black);
}

.login-box {
    width: 100%;
    max-width: 420px;
    padding: 48px;
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}

.login-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--red);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.login-logo h1 {
    font-family: var(--font-h);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.login-logo p {
    font-size: 11px;
    color: var(--gray);
}

.login-title {
    font-family: var(--font-h);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 6px;
}

.login-sub {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 32px;
}

.field {
    margin-bottom: 18px;
}

    .field label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--lgray);
        margin-bottom: 8px;
    }

    .field input {
        width: 100%;
        padding: 12px 16px;
        background: var(--mid);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        color: var(--white);
        font-size: 15px;
        transition: var(--tr);
        outline: none;
    }

        .field input:focus {
            border-color: var(--red);
            box-shadow: 0 0 0 3px rgba(204,31,31,0.15);
        }

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--red);
    border: none;
    border-radius: var(--radius);
    color: var(--white);
    font-size: 14px;
    font-family: var(--font-h);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--tr);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .btn-login:hover:not(:disabled) {
        background: var(--red-l);
        transform: translateY(-1px);
    }

    .btn-login:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

.login-error {
    background: rgba(204,31,31,0.1);
    border: 1px solid rgba(204,31,31,0.3);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 13px;
    color: #f87171;
    margin-bottom: 16px;
}

/* ══ ADMIN LAYOUT ════════════════════════════ */
.admin-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: var(--sidebar);
    flex-shrink: 0;
    background: var(--dark2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--red);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.brand-text h2 {
    font-family: var(--font-h);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .5px;
}

.brand-text p {
    font-size: 10px;
    color: var(--gray);
}

.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
    padding: 0 10px;
    margin-bottom: 8px;
    display: block;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--lgray);
    transition: var(--tr);
    margin-bottom: 2px;
    width: 100%;
    text-align: left;
}

    .nav-item:hover {
        background: rgba(255,255,255,0.05);
        color: var(--white);
    }

    .nav-item.active {
        background: rgba(204,31,31,0.15);
        color: var(--white);
    }

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.admin-avatar {
    width: 32px;
    height: 32px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-h);
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.admin-info p {
    font-size: 12px;
    color: var(--white);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-info span {
    font-size: 10px;
    color: var(--gray);
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--gray);
    font-size: 12px;
    transition: var(--tr);
}

    .btn-logout:hover {
        background: rgba(204,31,31,0.1);
        border-color: rgba(204,31,31,0.3);
        color: var(--red);
    }

.main {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.topbar {
    padding: 18px 32px;
    background: var(--dark2);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

    .topbar h1 {
        font-family: var(--font-h);
        font-size: 22px;
        font-weight: 600;
        letter-spacing: .5px;
    }

    .topbar p {
        font-size: 13px;
        color: var(--gray);
        margin-top: 2px;
    }

.content {
    padding: 32px;
    flex: 1;
}

.btn-save {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: var(--red);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 13px;
    font-weight: 600;
    transition: var(--tr);
}

    .btn-save:hover:not(:disabled) {
        background: var(--red-l);
        transform: translateY(-1px);
    }

    .btn-save:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

.btn-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--lgray);
    font-size: 13px;
    transition: var(--tr);
}

    .btn-preview:hover {
        border-color: var(--lgray);
        color: white;
    }

.btn-sm {
    font-size: 12px;
    color: var(--red);
    font-weight: 600;
}

/* ══ CARDS ═══════════════════════════════════ */
.card {
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    overflow: hidden;
}

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .card-header h3 {
        font-family: var(--font-h);
        font-size: 16px;
        font-weight: 600;
        letter-spacing: .5px;
    }

    .card-header p {
        font-size: 12px;
        color: var(--gray);
        margin-top: 2px;
    }

.card-body {
    padding: 24px;
}

/* ══ FORMS ADMIN ═════════════════════════════ */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group:last-child {
        margin-bottom: 0;
    }

    .form-group label {
        display: block;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: var(--lgray);
        margin-bottom: 8px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 11px 14px;
        background: var(--mid);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        color: var(--white);
        font-size: 14px;
        transition: var(--tr);
        outline: none;
        resize: vertical;
    }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            border-color: var(--red);
            box-shadow: 0 0 0 3px rgba(204,31,31,0.1);
        }

    .form-group textarea {
        min-height: 90px;
    }

.form-hint {
    font-size: 11px;
    color: var(--gray);
    margin-top: 6px;
}

/* ══ STATS ═══════════════════════════════════ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

    .stat-card .label {
        font-size: 11px;
        color: var(--gray);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    .stat-card .value {
        font-family: var(--font-h);
        font-size: 32px;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .stat-card .change {
        font-size: 12px;
        color: var(--green);
    }

/* ══ TABLE ═══════════════════════════════════ */
.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 14px 16px;
    font-size: 13px;
    color: var(--lgray);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

tr:hover td {
    background: rgba(255,255,255,0.02);
}

.empty-row {
    text-align: center;
    color: var(--gray);
    padding: 32px !important;
}

.td-truncate {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-new {
    background: rgba(59,130,246,0.15);
    color: #60a5fa;
}

.status-done {
    background: rgba(34,197,94,0.15);
    color: #4ade80;
}

.status-pending {
    background: rgba(234,179,8,0.15);
    color: #fbbf24;
}

.status-select {
    background: var(--mid);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
}

/* ══ SERVICE EDITOR ITEMS ════════════════════ */
.service-item {
    background: var(--mid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
}

.service-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.service-num-badge {
    width: 28px;
    height: 28px;
    background: rgba(204,31,31,0.15);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-h);
    font-size: 14px;
    font-weight: 700;
    color: var(--red);
    flex-shrink: 0;
}

.service-item h4 {
    font-size: 14px;
    font-weight: 600;
    flex: 1;
}

.icon-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--tr);
    color: var(--gray);
    font-size: 14px;
}

    .icon-btn.danger:hover {
        background: rgba(204,31,31,0.1);
        border-color: rgba(204,31,31,0.3);
        color: var(--red);
    }

.btn-add {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--gray);
    font-size: 13px;
    cursor: pointer;
    transition: var(--tr);
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

    .btn-add:hover {
        border-color: var(--red);
        color: var(--red);
    }

/* ══ TOGGLE ══════════════════════════════════ */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

    .toggle-row:last-child {
        border-bottom: none;
    }

.toggle-info h4 {
    font-size: 14px;
    font-weight: 600;
}

.toggle-info p {
    font-size: 12px;
    color: var(--gray);
    margin-top: 2px;
}

.toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

    .toggle input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--mid);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--tr);
    border: 1px solid var(--border);
}

    .toggle-slider::before {
        content: '';
        position: absolute;
        width: 18px;
        height: 18px;
        left: 2px;
        top: 2px;
        background: var(--gray);
        border-radius: 50%;
        transition: var(--tr);
    }

.toggle input:checked + .toggle-slider {
    background: var(--red);
    border-color: var(--red);
}

    .toggle input:checked + .toggle-slider::before {
        transform: translateX(20px);
        background: white;
    }

/* ══ GALLERY UPLOAD ══════════════════════════ */
.img-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    transition: var(--tr);
}

    .img-upload-area:hover {
        border-color: var(--red);
        background: rgba(204,31,31,0.04);
    }

.upload-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.img-upload-area h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.img-upload-area p {
    font-size: 13px;
    color: var(--gray);
}

.upload-progress {
    margin-top: 16px;
    background: var(--mid);
    border-radius: 4px;
    height: 4px;
    overflow: hidden;
}

.upload-bar {
    height: 100%;
    background: var(--red);
    transition: width 0.3s ease;
}

.img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.img-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4/3;
    background: var(--mid);
}

    .img-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.img-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: var(--tr);
}

.img-item:hover .img-item-overlay {
    opacity: 1;
}

.img-action {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: var(--tr);
}

    .img-action.star {
        background: rgba(255,255,255,0.15);
    }

    .img-action.delete {
        background: var(--red);
    }

    .img-action:hover {
        transform: scale(1.1);
    }

.img-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--red);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: .5px;
}

.img-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px 8px 8px;
    font-size: 11px;
    color: white;
}

/* ══ SEO PREVIEW ═════════════════════════════ */
.google-preview {
    background: #1a1a2e;
    border-radius: var(--radius);
    padding: 20px;
    font-family: Arial, sans-serif;
}

.gp-url {
    font-size: 12px;
    color: #8ab4f8;
    margin-bottom: 4px;
}

.gp-title {
    font-size: 18px;
    color: #8ab4f8;
    margin-bottom: 4px;
}

.gp-desc {
    font-size: 13px;
    color: #bdc1c6;
    line-height: 1.5;
}

/* ══ ALERTS ══════════════════════════════════ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    color: #4ade80;
}

.alert-error {
    background: rgba(204,31,31,0.1);
    border: 1px solid rgba(204,31,31,0.3);
    color: #f87171;
}

/* ══ LOADER ══════════════════════════════════ */
.loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.loading-msg {
    text-align: center;
    color: var(--gray);
    padding: 60px;
    font-family: var(--font-h);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 14px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ══ RESPONSIVE ══════════════════════════════ */
@media (max-width: 900px) {
    .section {
        padding: 70px 24px;
    }

    .navbar {
        padding: 0 24px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-badge {
        bottom: 16px;
        right: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cta-block {
        padding: 48px 32px;
    }

    .trust-bar {
        gap: 30px;
        padding: 18px 24px;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .sidebar {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
        max-width: 320px;
    }

    .estimate-form {
        grid-template-columns: 1fr;
    }

    .ba-grid-pub {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }
}
