/* =========================================================
   OMNI CARS – MODERN SPA UI
========================================================= */
:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-soft: #f0f4f8;
    --text: #0d1b2a;
    --muted: #667085;
    --line: #e5e9ef;
    --brand: #235697;
    --brand-dark: #173f73;
    --brand-light: #3d73b8;
    --background: rgba(35, 86, 151, .90);
    --accent: #0097fcb2;
    --accent-solid: #0097fc;
    --success: #16a36a;
    --danger: #dc3545;
    --warning: #f59e0b;
    --shadow-sm: 0 2px 8px rgba(35, 86, 151, .05);
    --shadow: 0 14px 38px rgba(35, 86, 151, .10);
    --shadow-lg: 0 28px 70px rgba(35, 86, 151, .16);
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 28px;
    --header-height: 82px;
    --transition: .22s ease;
}

html[data-theme="dark"] {
    --bg: #08111c;
    --surface: #0e1927;
    --surface-soft: #152436;
    --text: #f4f7fb;
    --muted: #9eacbd;
    --line: #23374e;
    --brand: #5d8fcb;
    --brand-dark: #235697;
    --brand-light: #7eaae0;
    --accent: rgba(252, 195, 0, 0.78);
    --accent-solid: #fcc300;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .15);
    --shadow: 0 15px 40px rgba(0, 0, 0, .25);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, .38);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

.container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }

/* TOPBAR & HEADER */
.topbar { background: #061b2d; color: rgba(255, 255, 255, .85); font-size: .84rem; }
.topbar .container { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}
html[data-theme="dark"] .header { background: rgba(14, 25, 39, .94); }
.nav { min-height: var(--header-height); display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; flex-shrink: 0; margin-right: auto; }
.brand img { height: 58px; width: auto; object-fit: contain; transition: transform var(--transition), opacity var(--transition); }
.brand:hover img { transform: scale(1.025); }

/* NAVIGATION */
.navlinks { display: flex; align-items: center; gap: 3px; }
.navlinks a {
    position: relative; padding: 10px 13px; border-radius: 11px;
    color: var(--muted); font-size: .91rem; font-weight: 650;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.navlinks a:hover { color: var(--brand); background: rgba(35, 86, 151, .08); transform: translateY(-1px); }
.navlinks a.active { color: var(--brand); background: rgba(35, 86, 151, .10); }
.navlinks a.active::after {
    content: ""; position: absolute; left: 25%; right: 25%; bottom: 3px; height: 2px; border-radius: 20px; background: var(--accent-solid);
}

/* ACTIONS & BUTTONS */
.actions { display: flex; align-items: center; gap: 8px; }
.iconbtn {
    width: 42px; height: 42px; display: grid; place-items: center; padding: 0;
    border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font-weight: 700;
    transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.iconbtn:hover { background: var(--surface-soft); border-color: rgba(35, 86, 151, .25); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.menuBtn { display: none; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 19px; border: 0; border-radius: 13px; font-weight: 750;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); box-shadow: 0 10px 26px rgba(35, 86, 151, .24); }
.btn-primary:hover { background: linear-gradient(135deg, var(--brand), var(--brand-light)); box-shadow: 0 14px 32px rgba(35, 86, 151, .34); }
.btn-secondary { background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.btn-secondary:hover { border-color: rgba(35, 86, 151, .25); background: var(--surface-soft); }
.btn-accent { color: #17202c; background: var(--accent-solid); box-shadow: 0 10px 24px var(--accent-solid); }
.btn-accent:hover { background: var(--accent); color: white; box-shadow: 0 14px 30px var(--accent-solid); }
.btn-danger { color: #fff; background: var(--danger); }

.page-blocked {position:absolute;height:100%;width:100%;left:0px;top:0px;background:rgba(255,255,255,0.1);z-index:100;display:flex;justify-content: center;align-items: center;}
.blocked-text{width: 320px; height: 160px;background: darkred;margin: auto;transform: rotate(-45deg);padding: 10px;display: flex;justify-content: center;align-items: center;}

/* HERO */
.hero-home {
    position: relative; min-height: min(720px, calc(100vh - 120px)); display: flex; align-items: center; overflow: hidden; color: #fff;
    background: linear-gradient(90deg, rgba(20, 54, 96, .97) 0%, var(--background) 43%, rgba(35, 86, 151, .35) 100%), url("https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?auto=format&fit=crop&w=2000&q=90") center / cover no-repeat;
}
.hero-home::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 15% 85%, rgba(252, 195, 0, .14), transparent 35%);
    pointer-events: none;
}
.hero-home::after {
    content: ""; position: absolute; width: 650px; height: 650px; left: -300px; bottom: -420px; border-radius: 50%; background: var(--brand); filter: blur(90px); pointer-events: none;
}
.hero-home .container { position: relative; z-index: 2; }
.hero-home .badge { margin-bottom: 14px; color: #17202c; background: var(--accent-solid); border: 0; }
.hero-home h1 { max-width: 900px; margin: 14px 0 22px; font-size: clamp(3rem, 6.5vw, 6rem); line-height: .98; letter-spacing: -.055em; font-weight: 850; }
.hero-home p { max-width: 680px; margin: 0; color: rgba(235, 243, 250, .82); font-size: clamp(1rem, 1.6vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.page-hero {
    position: relative; overflow: hidden; padding: 85px 0 78px; color: #fff;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}
.page-hero::before, .page-hero::after { content: ""; position: absolute; border-radius: 50%; }
.page-hero::before { width: 520px; height: 520px; right: -180px; bottom: -340px; background: rgba(252, 195, 0, .12); filter: blur(60px); }
.page-hero::after { width: 420px; height: 420px; right: -100px; top: -200px; background: rgba(252, 195, 0, .16); filter: blur(45px); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin: 0 0 12px; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.045em; }
.page-hero p { max-width: 680px; margin: 0; color: rgba(255, 255, 255, .72); font-size: 1.05rem; }

/* SECTIONS & GRIDS */
.section { padding: 88px 0; }
.section.alt { background: var(--surface); }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 38px; }
.section-title h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; letter-spacing: -.035em; }
.section-title p { max-width: 600px; margin: 0; color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* CARDS & PANELS */
.card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card { cursor: pointer; position: relative; overflow: hidden; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.card:hover { transform: translateY(-6px); border-color: rgba(35, 86, 151, .22); box-shadow: 1px 1px 5px var(--accent-solid); }
.card img.cover, .card video.cover { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #000; }
.card img.cover { transition: transform .5s ease; }
.card:hover img.cover { transform: scale(1.035); }
.card-body { padding: 24px; }
.card-body h3 { margin: 12px 0 8px; font-size: 1.2rem; letter-spacing: -.015em; }
.card p { margin: 8px 0 0; color: var(--muted); }
.panel { padding: 26px; }

/* BADGES & FORMS */
.badge {
    display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px;
    border-radius: 999px; background: rgba(35, 86, 151, .08); color: var(--brand);
    font-size: .73rem; font-weight: 800; letter-spacing: .02em;
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { color: var(--text); font-size: .84rem; font-weight: 750; }
input, select, textarea {
    width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px;
    outline: none; background: var(--surface-soft); color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px rgba(35, 86, 151, .10); }

/* QUOTE / PRICEBOX */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 28px; align-items: start; }
.pricebox {
    position: sticky; top: calc(var(--header-height) + 20px); overflow: hidden; color: #fff; border: 0;
    background: linear-gradient(145deg, var(--brand), var(--brand-dark)); box-shadow: var(--shadow-lg);
}
.pricebox .badge { color: #17202c; background: var(--accent-solid); }
.price { margin: 15px 0 8px; font-size: clamp(2.8rem, 5vw, 4rem); line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.pricebox ul { margin: 25px 0; padding: 0; list-style: none; }
.pricebox li { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }

/* ADMIN */
.admin-dashboard-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; }
.admin-user-area { display: flex; align-items: center; gap: 12px; }
.admin-shell { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 26px; align-items: start; }
.admin-menu { position: sticky; top: calc(var(--header-height) + 20px); display: grid; gap: 7px; align-content: start; }
.admin-menu button {
    width: 100%; padding: 12px 14px; text-align: left; border: 0; border-radius: 11px;
    background: transparent; color: var(--muted); font-weight: 700;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.admin-menu button:hover { color: var(--text); background: var(--surface-soft); transform: translateX(2px); }
.admin-menu button.active { color: #fff; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); box-shadow: 0 10px 22px rgba(35, 86, 151, .18); }

.admin-content-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-content-header h2 { margin: 0; font-size: 1.8rem; }
.admin-content-header p { margin: 4px 0 0; color: var(--muted); }

.admin-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.admin-item-card {
    overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.admin-item-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.admin-item-image { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.admin-item-content { padding: 20px; }
.admin-item-content h3 { margin: 10px 0 8px; }
.admin-item-content p { color: var(--muted); }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

.admin-media-preview-wrap { margin-bottom: 10px; }
.admin-media-preview { width: 100%; max-height: 320px; object-fit: contain; border-radius: 14px; background: #000; }
.admin-empty, .admin-loading, .admin-error {
    padding: 40px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: var(--surface-soft);
}

/* TABLES */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { padding: 14px 16px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
th { background: var(--surface-soft); color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: var(--surface-soft); }
table input { min-width: 100px; }

/* MODALS */
body.modal-open { overflow: hidden; }
.admin-modal-backdrop {
    position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 20px;
    background: rgba(4, 16, 30, .68); backdrop-filter: blur(7px);
}
.admin-modal {
    position: relative; width: min(680px, 100%); max-height: 88vh; overflow-y: auto; padding: 28px;
    border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg);
    animation: adminModalIn .28s cubic-bezier(.22, 1, .36, 1);
}
.admin-modal-close {
    position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 50%; background: var(--surface-soft); color: var(--text); font-size: 1.5rem;
}
.admin-modal form { display: grid; gap: 16px; }

@keyframes adminModalIn {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.detail-modal-root { position: fixed; inset: 0; z-index: 6000; }
.detail-modal-backdrop {
    position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px;
    background: rgba(5, 16, 30, .75); backdrop-filter: blur(10px); opacity: 0; transition: opacity .22s ease;
}
.detail-modal-root.show .detail-modal-backdrop { opacity: 1; }
.detail-modal {
    position: relative; width: min(900px, 100%); max-height: 92vh; overflow-y: auto;
    border: 1px solid var(--line); border-radius: 26px; background: var(--surface); color: var(--text);
    box-shadow: 0 40px 120px rgba(0, 0, 0, .38); opacity: 0; transform: translateY(25px) scale(.97);
    transition: opacity .28s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
}
.detail-modal-root.show .detail-modal { opacity: 1; transform: translateY(0) scale(1); }
.detail-modal-close {
    position: absolute; right: 16px; top: 16px; z-index: 10; width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
    border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: rgba(12, 25, 42, .78); color: #fff;
    font-size: 1.8rem; line-height: 1; backdrop-filter: blur(10px); transition: transform .2s ease, background .2s ease;
}
.detail-modal-close:hover { transform: rotate(90deg); background: var(--brand); }

.detail-modal-media-wrap { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 26px 26px 0 0; background: #000; }
.detail-modal-media { display: block; width: 100%; height: 100%; }
.detail-modal-image, .detail-modal-video { object-fit: contain; }
.detail-modal-video { background: #000; }

.detail-modal-body { padding: 32px; }
.detail-modal-body h2 { margin: 12px 0 6px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.035em; }
.detail-modal-subtitle { margin: 0 0 20px; color: var(--muted); }
.detail-modal-description, .detail-modal-content { margin-top: 24px; line-height: 1.75; }
.detail-modal-content { padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.detail-modal-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.detail-meta-item { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.detail-meta-item small { display: block; margin-bottom: 4px; color: var(--muted); }
.detail-meta-item strong { display: block; }

/* FOOTER */
.footer { padding: 65px 0 28px; background: #05131f; color: #d9e4ef; }
.footer .brand { margin-bottom: 20px; }
.footer .brand img { max-height: 65px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 50px; margin-bottom: 45px; }
.footer h4 { margin-top: 0; color: #fff; }
.footer p, .footer small { color: #91a4b8; }

/* NOTICE & PWA BUTTON */
.notice {
    position: fixed; right: 24px; bottom: 24px; z-index: 8000; min-width: 260px; max-width: 420px;
    padding: 14px 18px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px;
    background: var(--brand); color: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
    opacity: 0; visibility: hidden; transform: translateY(15px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.notice::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--accent-solid); }
.notice.show { opacity: 1; visibility: visible; transform: translateY(0); }

#installAppBtn {
    position: fixed; right: 15px; bottom: 15px; z-index: 2000; display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 16px;
    background: linear-gradient(135deg, #235697, #183f73); color: #fff; font-family: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer;
    box-shadow: 0 10px 30px rgba(35, 86, 151, 0.28), 0 3px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    animation: installButtonIn 0.4s ease;
}
#installAppBtn[hidden] { display: none !important; }
#installAppBtn::before {
    content: "?"; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
    border-radius: 9px; background: rgba(252, 195, 0, 0.78); color: #235697; font-size: 1.15rem; font-weight: 900;
}
#installAppBtn:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(35, 86, 151, 0.35), 0 5px 12px rgba(0, 0, 0, 0.15); }
#installAppBtn:active { transform: translateY(0) scale(0.97); }
#installAppBtn:focus-visible { outline: 3px solid rgba(252, 195, 0, 0.78); outline-offset: 4px; }

@keyframes installButtonIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* SPA TRANSITIONS & LINES */
#pageContent { position: relative; min-height: 55vh; will-change: opacity, transform, filter; }
#pageContent.page-enter { animation: pageEnter .42s cubic-bezier(.22, 1, .36, 1) both; }
#pageContent.page-leave { animation: pageLeave .18s ease both; }

@keyframes pageEnter {
    0% { opacity: 0; transform: translateY(24px) scale(.992); filter: blur(3px); }
    55% { opacity: .75; }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes pageLeave {
    0% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
    100% { opacity: 0; transform: translateY(-12px) scale(.997); filter: blur(2px); }
}

.page-transition-line {
    position: fixed; top: 0; left: 0; z-index: 9999; width: 100%; height: 3px; pointer-events: none;
    background: linear-gradient(90deg, var(--brand), var(--accent-solid), var(--brand));
    box-shadow: 0 0 10px rgba(252, 195, 0, .35); transform: scaleX(0); transform-origin: left; opacity: 0;
}
.page-transition-line.active { animation: transitionLine .6s ease both; }

@keyframes transitionLine {
    0% { transform: scaleX(0); opacity: 1; }
    35% { transform: scaleX(.35); opacity: 1; }
    70% { transform: scaleX(.8); opacity: 1; }
    100% { transform: scaleX(1); opacity: 0; }
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1050px) {
    .navlinks {
        display: none; position: absolute; left: 0; right: 0; top: var(--header-height);
        padding: 14px 4vw 20px; flex-direction: column; align-items: stretch;
        background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    }
    .navlinks.open { display: flex; }
    .navlinks a { padding: 12px 14px; }
    .navlinks a.active::after { display: none; }
    .menuBtn { display: grid; }
    .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quote-layout { grid-template-columns: 1fr; }
    .pricebox { position: static; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-menu { position: static; display: flex; overflow-x: auto; padding-bottom: 5px; }
    .admin-menu button { width: auto; white-space: nowrap; }
    .admin-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    :root { --header-height: 70px; }
    .container { width: min(100% - 30px, 1240px); }
    .topbar { display: none; }
    .nav { min-height: var(--header-height); gap: 10px; }
    .brand img { height: 45px; }
    .actions { gap: 5px; }
    .iconbtn { width: 39px; height: 39px; }
    .hero-home { min-height: 620px; background-position: 62% center; }
    .hero-home h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
    .hero-home p { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .section, .page-hero { padding: 65px 0; }
    .grid-4, .grid-3, .grid-2, .form-grid, .footer-grid, .admin-card-grid { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .section-title { flex-direction: column; align-items: flex-start; gap: 12px; }
    .admin-content-header, .admin-dashboard-top { flex-direction: column; align-items: stretch; }
    .admin-user-area { justify-content: space-between; }
    .admin-content-header .btn { width: 100%; }
    .card:hover, .admin-item-card:hover { transform: none; }
    .footer-grid { gap: 30px; }
    .notice { left: 15px; right: 15px; bottom: 15px; min-width: 0; }
    .detail-modal-backdrop { padding: 10px; }
    .detail-modal { max-height: 95vh; border-radius: 20px; }
    .detail-modal-media-wrap { border-radius: 20px 20px 0 0; aspect-ratio: 16 / 10; }
    .detail-modal-body { padding: 22px; }
    .detail-modal-meta { grid-template-columns: 1fr; }
    #installAppBtn { right: 16px; bottom: 16px; min-height: 48px; padding: 0 16px; border-radius: 14px; font-size: 0.88rem; }
}

@media (max-width: 420px) {
    .brand img { height: 40px; max-width: 155px; }
    .page-hero h1 { font-size: 2.4rem; }
}

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