/* ----- Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #1f2937;
    background: #f8fafc;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: #1d4ed8; text-decoration: none; transition: color .2s ease; }
a:hover { text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .6rem; line-height: 1.2; color: #0f172a; font-weight: 700; letter-spacing: -0.01em; }

/* ----- Custom scrollbar ----- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #d62828, #9d0208); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #9d0208; }

/* ----- Selection ----- */
::selection { background: #d62828; color: #fff; }

:root {
    --brand: #0d0d0d;        /* black */
    --brand-2: #1a1a1a;      /* near-black */
    --accent: #d62828;       /* main red */
    --accent-2: #9d0208;     /* deep red */
    --accent-soft: #fee2e2;  /* very light red */
    --bg: #fafafa;
    --card: #ffffff;
    --border: #e5e5e5;
    --muted: #6b7280;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.08);
}

body { background: var(--bg); color: #1a1a1a; }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { color: #0d0d0d; }

/* ----- Layout ----- */
.container { width: min(1140px, 92%); margin: 0 auto; }
.section { padding: 3rem 0; }
.text-center { text-align: center; }

/* ----- Header / Nav ----- */
.site-header {
    background: rgba(13,13,13,.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--accent);
    position: sticky; top: 0; z-index: 50;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: #fff; }
.brand:hover { text-decoration: none; color: #fff; }
.brand-mark {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff; font-weight: 800; font-size: 1.15rem;
    box-shadow: 0 4px 14px rgba(214,40,40,.5), inset 0 1px 0 rgba(255,255,255,.2);
    animation: glow 3s ease-in-out infinite;
}
@keyframes glow {
    0%, 100% { box-shadow: 0 4px 14px rgba(214,40,40,.5), inset 0 1px 0 rgba(255,255,255,.2); }
    50%      { box-shadow: 0 4px 22px rgba(214,40,40,.85), inset 0 1px 0 rgba(255,255,255,.2); }
}
.brand-name { font-size: 1.25rem; letter-spacing: .8px; text-transform: uppercase; font-weight: 800; }
.brand { flex-shrink: 0; }
.brand-logo, .footer-logo, .admin-brand-logo, .login-logo {
    font-size: 0; color: transparent;
}
.brand-logo {
    display: block;
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: transform .2s ease;
}
.brand-logo:hover { transform: scale(1.05); }
.footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .85rem; }
.footer-logo {
    display: block;
    height: 56px;
    width: auto;
    object-fit: contain;
}
.footer-brand .brand-name { font-size: 1.4rem; }

.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
    position: relative; color: #d4d4d4; font-weight: 500;
    padding: .4rem .2rem; text-transform: uppercase; font-size: .85rem; letter-spacing: .5px;
}
.site-nav a::after {
    content: ""; position: absolute; left: 50%; bottom: -2px;
    height: 2px; width: 0; background: var(--accent);
    transition: width .25s ease, left .25s ease;
}
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { width: 100%; left: 0; }
.site-nav a.active { color: #fff; }
.site-nav a.active::after { width: 100%; left: 0; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: transform .25s ease; }

/* ----- Hero ----- */
.hero {
    background:
        radial-gradient(circle at 80% 50%, rgba(214,40,40,.35), transparent 60%),
        linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 55%, #5a0410 100%);
    color: #fff; position: relative; overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0; opacity: .25; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
    mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; padding: 5rem 0; }
.hero h1 {
    color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
    letter-spacing: -0.02em;
    animation: fadeUp .7s ease both;
}
.hero h1 .accent-text {
    background: linear-gradient(135deg, #ff4d4d 0%, #d62828 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.hero p { color: #e5e7eb; font-size: 1.1rem; max-width: 52ch; animation: fadeUp .7s .1s ease both; }
.hero-actions { margin-top: 1.75rem; display: flex; gap: .75rem; flex-wrap: wrap; animation: fadeUp .7s .2s ease both; }

.hero-art { position: relative; height: 300px; animation: fadeIn 1s .3s ease both; }
.hero-card {
    position: absolute; display: grid; place-items: center;
    width: 120px; height: 120px; border-radius: 20px;
    background: rgba(255,255,255,.10);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25);
    font-size: 2.8rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.hero-card-1 { top: 0; left: 8%; transform: rotate(-6deg); animation: float 6s ease-in-out infinite; }
.hero-card-2 { top: 38%; right: 5%; transform: rotate(4deg); background: rgba(214,40,40,.4); border-color: rgba(255,255,255,.4); animation: float 5s ease-in-out .8s infinite reverse; }
.hero-card-3 { bottom: 0; left: 38%; transform: rotate(-2deg); animation: float 7s ease-in-out .4s infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50%      { transform: translateY(-14px) rotate(var(--r, 0deg)); }
}
.hero-card-1 { --r: -6deg; } .hero-card-2 { --r: 4deg; } .hero-card-3 { --r: -2deg; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ----- Buttons ----- */
.btn {
    position: relative; display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.4rem; border-radius: 10px;
    font-weight: 600; cursor: pointer; border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    overflow: hidden; isolation: isolate;
}
.btn::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
    transform: translateX(-100%); transition: transform .5s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:hover::before { transform: translateX(100%); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff; box-shadow: 0 6px 18px rgba(214,40,40,.4);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(214,40,40,.55); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; }
.btn-sm { padding: .5rem .9rem; font-size: .9rem; background: #0d0d0d; color: #fff; border-radius: 8px; }
.btn-sm:hover { background: var(--accent); color: #fff; }
.accent-text {
    background: linear-gradient(135deg, #ff4d4d 0%, #d62828 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* ----- Grids & cards ----- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    position: relative; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    overflow: hidden;
}
.card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 40px rgba(214,40,40,.15), 0 4px 6px rgba(0,0,0,.04); border-color: rgba(214,40,40,.3); }
.card:hover::before { transform: scaleX(1); }
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.25rem; }
.section-head h2 { position: relative; padding-left: .8rem; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: .1em; bottom: .1em; width: 4px; background: var(--accent); border-radius: 2px; }
.link { color: var(--accent); font-weight: 600; }
.link:hover { color: var(--accent-2); }

.product-thumb {
    position: relative; aspect-ratio: 1 / 1; border-radius: 10px; margin-bottom: .9rem;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: grid; place-items: center; font-size: 2.5rem; color: #fff;
    overflow: hidden;
}
.product-thumb::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(214,40,40,.4), transparent 60%);
    opacity: 0; transition: opacity .3s ease;
}
.card:hover .product-thumb::after { opacity: 1; }
.card:hover .product-thumb > span { transform: scale(1.15); }
.product-thumb > span { transition: transform .35s ease; display: inline-block; }
.product-name { font-size: 1rem; min-height: 2.6em; font-weight: 600; }
.product-price { color: var(--accent); font-weight: 800; margin: .25rem 0 .9rem; font-size: 1.15rem; }

.category { text-align: center; border-top: 3px solid transparent; }
.category:hover { border-top-color: var(--accent); }
.category-icon { font-size: 2rem; margin-bottom: .5rem; color: var(--accent); }

/* ----- Features ----- */
.features .feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.feature-icon { font-size: 2rem; margin-bottom: .5rem; }

/* ----- Pages ----- */
.page-head { margin-bottom: 2rem; border-left: 4px solid var(--accent); padding-left: 1rem; }
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page-head p { color: var(--muted); }
.breadcrumb { color: var(--muted); margin-bottom: 1rem; font-size: .9rem; }
.breadcrumb a { color: var(--accent); }
.prose p { max-width: 70ch; }
.prose h2 { margin-top: 2rem; padding-bottom: .35rem; border-bottom: 2px solid var(--accent); display: inline-block; }
.about-cards { margin-top: 1.5rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-icon { font-size: 3rem; margin-bottom: .5rem; }
.section-pad { padding-top: 2rem; }
.muted { color: var(--muted); }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; }
.contact-form label { display: block; margin-bottom: 1.1rem; }
.contact-form span { display: block; font-weight: 600; margin-bottom: .4rem; color: #0d0d0d; font-size: .9rem; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: .8rem 1rem; border: 2px solid #e5e5e5;
    border-radius: 10px; font: inherit; background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: 0; border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(214,40,40,.15);
}
.contact-form .error { color: #b91c1c; font-style: normal; font-size: .85rem; margin-top: .25rem; display: inline-block; }
.alert { padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1rem; border-left: 4px solid; }
.alert-success { background: #ecfdf5; color: #065f46; border-left-color: #16a34a; }

/* ----- Error page ----- */
.error-page { padding: 4rem 1rem; }
.error-code {
    font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, #0d0d0d 0%, var(--accent) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ----- Footer ----- */
.site-footer { background: #0d0d0d; color: #b8b8b8; margin-top: 4rem; border-top: 3px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.site-footer h4 { color: #fff; margin-bottom: .8rem; position: relative; padding-bottom: .4rem; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .25rem 0; }
.site-footer a { color: #b8b8b8; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid #2a2a2a; padding: 1rem 0; color: #888; }

/* ----- Services ----- */
.service-card { border-top: 3px solid var(--accent); }
.service-icon { font-size: 2.2rem; margin-bottom: .5rem; }

/* ----- Brands ----- */
.brand-grid { margin-bottom: 2rem; }
.brand-card { text-align: center; }
.brand-logo {
    width: 70px; height: 70px; margin: 0 auto .85rem;
    display: grid; place-items: center; border-radius: 14px;
    background: linear-gradient(135deg, #0d0d0d, #2a2a2a);
    color: #fff; font-weight: 800; font-size: 2rem;
    border: 2px solid var(--accent);
    box-shadow: 0 6px 16px rgba(214,40,40,.25);
    transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover .brand-logo { transform: rotate(-5deg) scale(1.05); box-shadow: 0 10px 24px rgba(214,40,40,.45); }

/* ----- Warranty stats ----- */
.stat-card { text-align: center; border-top: 3px solid var(--accent); }
.stat-value { font-size: 2.2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-value span { font-size: 1rem; color: var(--muted); font-weight: 600; margin-left: .25rem; }
.stat-label { font-weight: 700; margin: .5rem 0; color: #0d0d0d; }

/* ----- Lists (check / cross / step) ----- */
.check-list, .cross-list { list-style: none; padding-left: 0; }
.check-list li, .cross-list li { padding: .35rem 0 .35rem 1.6rem; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 800; }
.cross-list li::before { content: "✕"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.step-list { padding-left: 1.2rem; }
.step-list li { padding: .35rem 0; }
.step-list li::marker { color: var(--accent); font-weight: 800; }

/* ----- FAQ ----- */
.faq-list { display: flex; flex-direction: column; gap: .7rem; }
.faq-item {
    background: #fff; border: 1px solid var(--border);
    border-left: 4px solid var(--accent); border-radius: 10px;
    padding: 1rem 1.2rem;
    transition: box-shadow .25s ease, transform .25s ease;
}
.faq-item:hover { box-shadow: 0 6px 18px rgba(0,0,0,.06); transform: translateX(3px); }
.faq-item summary { cursor: pointer; font-weight: 600; color: #0d0d0d; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; color: #fff; background: var(--accent);
    width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.1rem; font-weight: 800;
    flex-shrink: 0; transition: transform .25s ease, background .25s ease;
}
.faq-item[open] summary::after { content: "−"; transform: rotate(180deg); background: var(--accent-2); }
.faq-answer { padding-top: .85rem; color: #374151; animation: fadeUp .3s ease both; }

/* ----- CTA banner ----- */
.cta-banner {
    position: relative; margin-top: 2.5rem; padding: 2.5rem;
    background: linear-gradient(135deg, #0d0d0d 0%, #5a0410 50%, #9d0208 100%);
    color: #fff; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    overflow: hidden; box-shadow: 0 20px 40px rgba(157,2,8,.25);
}
.cta-banner::before {
    content: ""; position: absolute; right: -60px; top: -60px;
    width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(214,40,40,.6), transparent 70%);
    pointer-events: none;
}
.cta-banner > div { position: relative; }
.cta-banner h2 { color: #fff; margin: 0 0 .35rem; font-size: 1.5rem; }
.cta-banner p { margin: 0; color: #f5f5f5; }
.cta-banner .btn { position: relative; z-index: 1; }

/* ----- Grid item reveal on load ----- */
.grid > * { animation: fadeUp .6s ease both; }
.grid > *:nth-child(1) { animation-delay: .05s; }
.grid > *:nth-child(2) { animation-delay: .12s; }
.grid > *:nth-child(3) { animation-delay: .19s; }
.grid > *:nth-child(4) { animation-delay: .26s; }
.grid > *:nth-child(5) { animation-delay: .33s; }
.grid > *:nth-child(6) { animation-delay: .40s; }
.grid > *:nth-child(7) { animation-delay: .47s; }
.grid > *:nth-child(8) { animation-delay: .54s; }

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-art { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
    .nav-toggle { display: block; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #0d0d0d; flex-direction: column; padding: 1rem; border-bottom: 3px solid var(--accent); }
    .site-nav.open { display: flex; }
    .site-header { position: relative; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* =========================================================
   Admin area
   ========================================================= */
.admin { background: #f3f4f6; color: #111; }
.admin-header { background: #0d0d0d; color: #fff; border-bottom: 3px solid var(--accent); position: sticky; top: 0; z-index: 50; }
.admin-header-inner { display: flex; align-items: center; gap: 1.5rem; padding: .9rem 1.5rem; max-width: 1280px; margin: 0 auto; }
.admin-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; font-size: 1.05rem; }
.admin-brand-logo {
    display: block;
    height: 42px;
    width: auto;
    object-fit: contain;
}
.admin-brand .brand-name { font-size: 1.2rem; letter-spacing: .8px; text-transform: uppercase; }
.admin-tag {
    font-size: .7rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(214,40,40,.15);
    padding: .15rem .5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.admin-nav { display: flex; gap: 1.25rem; margin-left: 1rem; }
.admin-nav a { color: #cfcfcf; padding: .35rem 0; border-bottom: 2px solid transparent; font-weight: 500; font-size: .95rem; }
.admin-nav a:hover, .admin-nav a.active { color: #fff; border-color: var(--accent); }
.admin-user { margin-left: auto; display: flex; align-items: center; gap: .8rem; font-size: .9rem; color: #cfcfcf; }
.inline-form { display: inline; margin: 0; }

.admin-main { padding: 1.75rem 0 3rem; }
.admin-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.admin-footer { text-align: center; padding: 1.25rem; color: #6b7280; font-size: .85rem; border-top: 1px solid #e5e5e5; background: #fff; }

.admin-page-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 1.25rem; }
.admin-page-head h1 { margin: 0; font-size: 1.5rem; }

.admin-flash { background: #dcfce7; color: #166534; border-left: 4px solid #16a34a; padding: .75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.admin-alert { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--accent); padding: .75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }

.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.admin-stat { background: #fff; border-radius: 12px; padding: 1.1rem 1.25rem; box-shadow: var(--shadow); border-top: 3px solid var(--accent); }
.admin-stat-label { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.admin-stat-value { display: block; font-size: 2rem; font-weight: 700; color: #0d0d0d; margin-top: .25rem; }

.admin-card { background: #fff; border-radius: 12px; padding: 1.25rem 1.5rem; box-shadow: var(--shadow); }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.admin-card-head h2 { margin: 0; font-size: 1.1rem; }
.admin-empty { color: var(--muted); padding: 1.5rem 0; text-align: center; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: .7rem .6rem; text-align: left; border-bottom: 1px solid #eee; vertical-align: middle; }
.admin-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #fafafa; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table a:not(.btn) { color: #0d0d0d; font-weight: 600; }
.admin-table a:not(.btn):hover { color: var(--accent); }
.admin-thumb-cell { width: 64px; }
.admin-thumb-cell img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid #eee; }
.admin-thumb-placeholder { display: inline-grid; place-items: center; width: 48px; height: 48px; background: #f3f4f6; border-radius: 6px; font-size: 1.2rem; }
.admin-actions { white-space: nowrap; text-align: right; }
.admin-actions .btn { margin-left: .35rem; }

.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: #e5e7eb; color: #374151; }
.badge-red { background: var(--accent); color: #fff; }
.badge-muted { background: #f3f4f6; color: #6b7280; }

/* Admin forms */
.admin-form { display: flex; flex-direction: column; gap: 1rem; }
.admin-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 500; color: #0d0d0d; font-size: .9rem; }
.admin-form input[type=text], .admin-form input[type=email], .admin-form input[type=password],
.admin-form input[type=number], .admin-form input[type=file], .admin-form select, .admin-form textarea {
    border: 1px solid #d1d5db; border-radius: 8px; padding: .65rem .8rem; font: inherit; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214, 40, 40, .15);
}
.admin-form textarea { resize: vertical; min-height: 120px; }
.admin-form .field-error { color: var(--accent); font-style: normal; font-size: .82rem; font-weight: 500; }
.admin-form .check { flex-direction: row; align-items: center; gap: .55rem; font-weight: 500; }
.admin-form .check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-checks { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.admin-form-actions { display: flex; gap: .6rem; padding-top: .5rem; border-top: 1px solid #f0f0f0; }
.admin-image-current { color: var(--muted); display: inline-flex; align-items: center; gap: .5rem; margin-top: .35rem; }

/* Admin login */
.admin-login-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #0d0d0d 0%, #2a0508 50%, #5a0410 100%); padding: 1.5rem; }
.admin-login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; padding: 2rem; box-shadow: 0 20px 60px rgba(0,0,0,.4); border-top: 4px solid var(--accent); }
.admin-login-brand { text-align: center; margin-bottom: 1.5rem; }
.login-logo { height: 110px; width: auto; max-width: 240px; margin: 0 auto; display: block; object-fit: contain; }
.admin-login-brand h1 { margin: .75rem 0 0; font-size: 1.1rem; color: #0d0d0d; letter-spacing: .04em; }
.admin-login-back { text-align: center; margin: 1rem 0 0; font-size: .85rem; }
.admin-login-back a { color: var(--muted); }
.admin-login-back a:hover { color: var(--accent); }

/* Extra button variants used in admin */
.btn-block { width: 100%; display: block; }
.btn-danger { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.btn-danger:hover { background: var(--accent); color: #fff; }
.btn-ghost-red { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost-red:hover { background: var(--accent); border-color: var(--accent); }
.btn-edit { background: #fff; color: #0d0d0d; border: 1px solid #d1d5db; }
.btn-edit:hover { background: #0d0d0d; color: #fff; border-color: #0d0d0d; }
.muted { color: var(--muted); }

@media (max-width: 900px) {
    .admin-stats { grid-template-columns: 1fr; }
    .form-row, .form-row-checks { grid-template-columns: 1fr; }
    .admin-header-inner { flex-wrap: wrap; gap: .8rem; }
    .admin-nav { order: 3; width: 100%; }
}
