/* ===========================================================
   OtoBakım — Profesyonel Oto Servis & Yedek Parça
   Renk Paleti:
     navy-900  #0a1929   - Ana koyu
     navy-800  #0d1b2a   - Topbar / footer
     navy-700  #1b263b   - Yardımcı koyu
     orange    #f77f00   - Vurgu (CTA, fiyat, marka)
     orange-d  #d96a00   - Vurgu hover
     yellow    #fcbf49   - İkincil vurgu
     bg        #f3f5f9   - Sayfa arkaplanı
     surface   #ffffff
     text      #1f2937
     muted     #64748b
   =========================================================== */

:root {
    --navy-900: #0a1929;
    --navy-800: #0d1b2a;
    --navy-700: #1b263b;
    --navy-600: #243447;
    --orange:   #f77f00;
    --orange-d: #d96a00;
    --yellow:   #fcbf49;
    --bg:       #f3f5f9;
    --surface:  #ffffff;
    --border:   #e2e8f0;
    --text:     #1f2937;
    --muted:    #64748b;
    --success:  #047857;
    --shadow-sm: 0 1px 3px rgba(10,25,41,0.06);
    --shadow-md: 0 4px 14px rgba(10,25,41,0.08);
    --shadow-lg: 0 12px 32px rgba(10,25,41,0.16);
    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 22px; width: 100%; }

/* ----------------- Topbar ----------------- */
.topbar {
    background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
    color: white;
    padding: 16px 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
}
.brand-mark {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--yellow) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(247,127,0,0.35);
    overflow: hidden;
    flex-shrink: 0;
}
.brand-mark.has-logo {
    background: white;
    padding: 4px;
}
.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}
a.topbar-cta { text-decoration: none; transition: background 0.15s; }
a.topbar-cta:hover { background: rgba(255,255,255,0.1); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.25rem; letter-spacing: 0.5px; }
.brand-text small { font-size: 0.72rem; color: var(--yellow); letter-spacing: 1.4px; text-transform: uppercase; }

.topbar-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 10px;
}
.cta-icon {
    width: 38px;
    height: 38px;
    background: var(--orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.cta-text { display: flex; flex-direction: column; line-height: 1.15; }
.cta-text small { color: var(--yellow); font-size: 0.7rem; letter-spacing: 1.2px; text-transform: uppercase; }
.cta-text strong { font-size: 0.98rem; }

/* ----------------- Hero ----------------- */
.hero {
    background:
        linear-gradient(135deg, rgba(10,25,41,0.92) 0%, rgba(13,27,42,0.85) 60%, rgba(27,38,59,0.92) 100%),
        radial-gradient(circle at 80% 20%, rgba(247,127,0,0.18), transparent 40%);
    color: white;
    padding: 60px 0 70px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(252,191,73,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-block;
    background: rgba(247,127,0,0.15);
    color: var(--yellow);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 1.6px;
    font-weight: 700;
    border: 1px solid rgba(247,127,0,0.3);
    margin-bottom: 18px;
}
.hero-title {
    font-size: 2.6rem;
    line-height: 1.15;
    margin: 0 0 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.hero-title .accent {
    background: linear-gradient(90deg, var(--orange) 0%, var(--yellow) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.78);
    margin: 0 0 28px;
    max-width: 560px;
}
.hero-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-d) 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 22px rgba(247,127,0,0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}
.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(247,127,0,0.5);
}
.hero-features {
    display: grid;
    gap: 14px;
}
.feature {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 18px 20px;
    backdrop-filter: blur(6px);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: transform 0.2s, background 0.2s;
}
.feature:hover {
    transform: translateX(4px);
    background: rgba(255,255,255,0.1);
}
.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-d) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.feature h4 { margin: 0 0 4px; font-size: 1.05rem; color: white; }
.feature p { margin: 0; font-size: 0.88rem; color: rgba(255,255,255,0.7); }

@media (max-width: 900px) {
    .hero { padding: 40px 0 50px; }
    .hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .hero-title { font-size: 2rem; }
}

/* ----------------- Main ----------------- */
.main-content { flex: 1; padding: 40px 0 60px; }

.section-title {
    margin: 8px 0 4px;
    font-size: 1.7rem;
    color: var(--navy-900);
    font-weight: 800;
    letter-spacing: -0.3px;
}
.subtitle { color: var(--muted); margin: 0 0 28px; font-size: 1rem; }

/* Multi-section model page */
.model-page { display: flex; flex-direction: column; gap: 36px; margin-top: 22px; }
.page-section { display: flex; flex-direction: column; }
.sub-section-title {
    margin: 0 0 4px;
    font-size: 1.2rem;
    color: var(--navy-900);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--orange);
    align-self: flex-start;
    padding-right: 18px;
}
.sub-section-sub { color: var(--muted); margin: 0 0 16px; font-size: 0.92rem; }
.page-section .grid, .page-section .services { margin-top: 4px; }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 14px;
    font-size: 0.92rem;
    color: var(--muted);
    background: var(--surface);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.breadcrumb a {
    color: var(--orange);
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--orange-d); text-decoration: underline; }
.breadcrumb .sep { color: #cbd5e1; }

/* ----------------- Page transition ----------------- */
#content, #emptyState {
    transition: opacity 160ms ease, transform 160ms ease;
}
#content.fading-out, #emptyState.fading-out {
    opacity: 0;
    transform: translateY(8px);
}

/* ----------------- Tile grid ----------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
    margin-top: 22px;
}
.tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    font-weight: 700;
    color: var(--navy-900);
    font-size: 1.05rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 140px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
    animation: tileIn 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.tile::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--yellow));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.tile:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.tile:hover::before { transform: scaleX(1); }
.tile-img { max-width: 100%; max-height: 90px; object-fit: contain; }
.tile-image-only { padding: 14px; min-height: 160px; }
.tile-image-only .tile-img { max-height: 140px; }
.tile-name { display: block; }

@keyframes tileIn {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)     scale(1); }
}

/* ----------------- Service cards ----------------- */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 22px;
}
.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    animation: tileIn 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--orange), var(--yellow));
}
.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--orange);
    box-shadow: var(--shadow-md);
}
.service-card h3 {
    margin: 0 0 10px;
    color: var(--navy-900);
    font-size: 1.18rem;
    font-weight: 700;
}
.service-card p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.55;
}
.service-img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    background: #f1f5f9;
}
.price-row { margin-bottom: 14px; }
.price-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-d) 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1.08rem;
    box-shadow: 0 4px 12px rgba(247,127,0,0.3);
    letter-spacing: 0.3px;
}
.btn-quote {
    display: block;
    width: 100%;
    margin-top: 4px;
    background: var(--navy-900);
    color: white;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    letter-spacing: 0.3px;
}
.btn-quote:hover {
    background: var(--navy-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(10,25,41,0.25);
}
.btn-quote:active { transform: translateY(0); }

/* ----------------- Empty state ----------------- */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    font-size: 1rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px dashed #cbd5e1;
}

/* ----------------- Footer ----------------- */
.footer {
    background: var(--navy-900);
    color: rgba(255,255,255,0.75);
    padding: 50px 0 0;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 14px;
}
.footer-brand .brand-mark { width: 38px; height: 38px; font-size: 1.2rem; }
.footer-desc { font-size: 0.9rem; line-height: 1.6; max-width: 320px; }
.footer-title {
    color: white;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin: 0 0 16px;
    font-weight: 700;
}
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-list li {
    padding: 6px 0;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.7);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ===========================================================
   ADMIN PANEL
   =========================================================== */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-head h3 { margin: 0; font-size: 1.1rem; color: var(--navy-900); }

.login-card { max-width: 440px; margin: 80px auto; }
.login-card h2 { margin-top: 0; color: var(--navy-900); }
.login-card .input { margin: 14px 0; }
.login-card .btn { width: 100%; }
.hint { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
.hint code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 0.85rem; }

.input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(247,127,0,0.15);
}
.input:disabled { background: #f8fafc; color: #94a3b8; cursor: not-allowed; }

.btn {
    padding: 11px 18px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-d) 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(247,127,0,0.3);
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(247,127,0,0.4);
}
.btn-ghost { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); }
.btn-danger { background: #fee2e2; color: #b91c1c; padding: 6px 10px; font-size: 0.82rem; }
.btn-danger:hover:not(:disabled) { background: #fecaca; }
.btn-edit { background: #fff7ed; color: #c2410c; padding: 6px 10px; font-size: 0.82rem; border: 1px solid #fed7aa; }
.btn-edit:hover:not(:disabled) { background: #ffedd5; }

.add-row { display: flex; gap: 8px; margin-bottom: 14px; }
.add-row.vertical { flex-direction: column; }
.add-row.vertical .btn { width: 100%; }

.list { list-style: none; padding: 0; margin: 0; max-height: 60vh; overflow-y: auto; }
.list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    border: 1px solid var(--border);
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.12s;
    gap: 10px;
}
.list li:hover { background: #fff7ed; border-color: #fed7aa; }
.list li.active { background: #ffedd5; border-color: var(--orange); }
.list li .name { flex: 1; font-weight: 600; color: var(--navy-900); }
.list li .actions { display: flex; gap: 6px; }

.service-list li { flex-direction: column; align-items: stretch; cursor: default; }
.service-list li:hover { background: #f8fafc; border-color: var(--border); }
.service-list .srv-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.service-list .srv-name { font-weight: 700; color: var(--navy-900); }
.service-list .srv-price { font-weight: 800; color: var(--orange-d); }
.service-list .srv-desc { color: var(--muted); font-size: 0.88rem; margin: 6px 0 0; }
.service-list .srv-actions { display: flex; gap: 6px; margin-top: 10px; }

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.3fr;
    gap: 16px;
    margin-top: 20px;
}
@media (max-width: 1100px) { .admin-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .admin-grid { grid-template-columns: 1fr; } }

.error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-top: 10px;
    font-size: 0.9rem;
}

.hidden { display: none !important; }

/* Settings card */
.settings-card { margin-top: 20px; border-left: 4px solid var(--orange); }
.settings-card h3 { margin: 0 0 12px; color: var(--navy-900); font-size: 1.1rem; }
.switch-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text);
    user-select: none;
    font-weight: 600;
}
.switch-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--orange);
    cursor: pointer;
}

.row-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #f8fafc;
    flex-shrink: 0;
}
.srv-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #f8fafc;
    flex-shrink: 0;
}
.srv-text { flex: 1; display: flex; flex-direction: column; }

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFade 200ms ease;
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,25,41,0.65);
    backdrop-filter: blur(3px);
}
.modal-card {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    animation: modalIn 280ms cubic-bezier(0.22,1,0.36,1);
    max-height: calc(100vh - 40px);
}
.modal-card-lg { max-width: 560px; }
.modal-card .modal-body { overflow-y: auto; }
.image-edit-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.image-edit-row .file-btn { flex: 1; margin: 0; }
.image-edit-row .btn { white-space: nowrap; }
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--navy-900);
    color: white;
}
.modal-head h3 { margin: 0; font-size: 1.05rem; color: white; }
.modal-head .btn-ghost-dark { color: white; border-color: rgba(255,255,255,0.3); padding: 4px 10px; font-size: 1.2rem; line-height: 1; }
.modal-head .btn-ghost-dark:hover { background: rgba(255,255,255,0.1); }
.modal-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: #f8fafc;
}
.modal-foot > div { display: flex; gap: 8px; }

.image-preview {
    width: 100%;
    height: 190px;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.image-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.muted { color: var(--muted); font-size: 0.9rem; }

.file-btn {
    display: block;
    text-align: center;
    background: #fff7ed;
    color: var(--orange-d);
    border: 1px solid #fed7aa;
    padding: 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    transition: background 0.15s;
}
.file-btn:hover { background: #ffedd5; }
.or-sep {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    position: relative;
}
.or-sep::before, .or-sep::after {
    content: '';
    display: inline-block;
    width: 30%;
    height: 1px;
    background: var(--border);
    vertical-align: middle;
    margin: 0 8px;
}
.btn-ghost-dark {
    background: transparent;
    color: var(--muted);
    border: 1px solid #cbd5e1;
}
.btn-ghost-dark:hover { background: #f1f5f9; }

/* ===========================================================
   WHATSAPP FLOATING BUTTON
   =========================================================== */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37,211,102,0.45);
    z-index: 90;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: waPulse 2.4s ease-out infinite;
}
.whatsapp-fab svg { width: 32px; height: 32px; }
.whatsapp-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(37,211,102,0.6);
    animation-play-state: paused;
}
@keyframes waPulse {
    0%   { box-shadow: 0 6px 20px rgba(37,211,102,0.45), 0 0 0 0   rgba(37,211,102,0.55); }
    70%  { box-shadow: 0 6px 20px rgba(37,211,102,0.45), 0 0 0 18px rgba(37,211,102,0); }
    100% { box-shadow: 0 6px 20px rgba(37,211,102,0.45), 0 0 0 0   rgba(37,211,102,0); }
}
@media (max-width: 540px) {
    .whatsapp-fab { width: 54px; height: 54px; bottom: 18px; right: 18px; }
    .whatsapp-fab svg { width: 28px; height: 28px; }
}

/* ===========================================================
   ADMIN: SITE CONTENT EDITOR
   =========================================================== */
.site-content-card { margin-top: 20px; border-left: 4px solid var(--orange); }
.site-content-card .card-head h3 { font-size: 1.15rem; }

.content-section {
    border-top: 1px solid var(--border);
    padding: 14px 0;
    margin-top: 6px;
}
.content-section[open] { padding-bottom: 18px; }
.content-section summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
    padding: 6px 0;
    position: relative;
    padding-left: 22px;
}
.content-section summary::-webkit-details-marker { display: none; }
.content-section summary::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 0.7rem;
    color: var(--orange);
    transition: transform 0.2s;
}
.content-section[open] summary::before { transform: rotate(90deg); }
.content-section summary h4 {
    display: inline-block;
    margin: 0;
    font-size: 1rem;
    color: var(--navy-900);
    font-weight: 700;
}

.form-grid {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}
.form-grid.two-col { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) {
    .form-grid.two-col { grid-template-columns: 1fr; }
}
.form-grid label,
.feature-block strong {
    display: block;
    font-size: 0.85rem;
    color: var(--navy-700);
    font-weight: 600;
    margin-bottom: 6px;
}
.form-grid textarea.input { font-family: inherit; resize: vertical; }

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr; } }
.feature-block {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.feature-block strong { color: var(--orange-d); font-size: 0.9rem; margin: 0 0 4px; }

.logo-block { grid-column: 1 / -1; }
.logo-preview-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}
.logo-preview {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--yellow) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 12px rgba(247,127,0,0.3);
    overflow: hidden;
    flex-shrink: 0;
}
.logo-preview.has-logo { background: white; border: 1px solid var(--border); padding: 4px; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.logo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.file-btn.small { padding: 8px 14px; font-size: 0.88rem; }

.save-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.save-bar .btn { padding: 12px 22px; font-size: 1rem; }
.status-text { font-size: 0.9rem; color: var(--muted); }
.status-text.ok { color: var(--success); font-weight: 700; }
.status-text.err { color: #b91c1c; font-weight: 700; }

/* ===========================================================
   QUOTE MODAL (customer)
   =========================================================== */
.quote-summary {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 6px;
}
.qs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 0.92rem;
    gap: 12px;
}
.qs-row + .qs-row { border-top: 1px dashed rgba(247,127,0,0.25); }
.qs-row span { color: var(--orange-d); font-weight: 600; }
.qs-row strong { color: var(--navy-900); text-align: right; }
.qs-price { color: var(--orange-d) !important; font-size: 1.05rem; }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.85rem; color: var(--navy-700); font-weight: 600; }

.success-msg {
    background: #ecfdf5;
    color: #047857;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid #a7f3d0;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
}

/* ===========================================================
   ADMIN: QUOTE REQUESTS
   =========================================================== */
.quotes-card {
    margin-top: 20px;
    border-left: 4px solid #25d366;
}
.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 10px;
    background: var(--orange);
    color: white;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-left: 10px;
    box-shadow: 0 2px 6px rgba(247,127,0,0.4);
    animation: badgePop 360ms cubic-bezier(0.22,1,0.36,1);
}
@keyframes badgePop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.quotes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
    margin-top: 8px;
}
.quote-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--orange);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.quote-item:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.qi-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.qi-name { font-weight: 800; font-size: 1.05rem; color: var(--navy-900); }
.qi-date { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.qi-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.qi-tag {
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.15s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.qi-tag:hover { transform: translateY(-1px); }
.qi-phone { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.qi-phone:hover { background: #dbeafe; }
.qi-wa { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.qi-wa:hover { background: #d1fae5; }
.qi-car {
    font-size: 0.92rem;
    color: var(--navy-700);
    display: flex;
    gap: 8px;
    align-items: baseline;
}
.qi-label { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; }
.qi-car strong { color: var(--navy-900); }
.qi-general {
    display: inline-block;
    background: #fff7ed;
    color: var(--orange-d);
    border: 1px solid #fed7aa;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 4px;
}
.qi-service {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #fff7ed;
    border-radius: var(--radius-sm);
    border: 1px solid #fed7aa;
    gap: 10px;
}
.qi-srv-name { color: var(--navy-900); font-weight: 700; font-size: 0.93rem; }
.qi-srv-price { color: var(--orange-d); font-weight: 800; white-space: nowrap; }
.qi-actions { display: flex; justify-content: flex-end; }
.empty-quotes {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
    font-size: 0.95rem;
    background: #f8fafc;
    border-radius: var(--radius);
    border: 1px dashed #cbd5e1;
}
