/* =========================================================
   VEYE — site styles
   ========================================================= */
:root {
  --navy: #0b2545;
  --navy-2: #123a6b;
  --blue: #1557b0;
  --blue-2: #2474d8;
  --cyan: #4bb8e8;
  --ink: #16243a;
  --muted: #66758c;
  --line: #e4eaf3;
  --bg: #ffffff;
  --tint: #f5f8fc;
  --card: #ffffff;
  --shadow: 0 12px 40px rgba(15, 44, 92, .08);
  --shadow-hover: 0 20px 55px rgba(15, 44, 92, .14);
  --radius: 14px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.container { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-wrap { height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; color: var(--blue); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; letter-spacing: .09em; color: var(--navy); font-weight: 800; }
.brand-text small { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a { font-size: 13.5px; font-weight: 600; color: #42526b; padding: 9px 13px; border-radius: 8px; transition: .18s; white-space: nowrap; }
.main-nav a:hover { color: var(--blue); background: #eef4fd; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle { border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 8px; padding: 7px 11px; font-size: 12.5px; font-weight: 700; transition: .18s; }
.lang-toggle:hover { border-color: var(--blue); color: var(--blue); }
.admin-entry { font-size: 12.5px; font-weight: 700; color: #fff; background: var(--navy); padding: 8px 14px; border-radius: 8px; transition: .18s; }
.admin-entry:hover { background: var(--blue); }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; }
.menu-toggle span { display: block; width: 21px; height: 2px; background: var(--navy); margin: 4px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 9px; font-size: 14px; font-weight: 700; border: 1px solid transparent; transition: .2s; text-align: center; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(21, 87, 176, .22); }
.btn-primary:hover { background: #0e4696; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(21, 87, 176, .3); }
.btn-outline { border-color: #cfdbea; color: var(--navy); background: rgba(255,255,255,.7); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eaf3ff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 52%, #e8f2ff 100%); padding: 88px 0 0; }
.hero-glow { position: absolute; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, rgba(75,184,232,.22), transparent 65%); top: -280px; right: -120px; pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-bottom: 78px; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 0 0 22px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(75,184,232,.16); }
.hero-copy h1 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.12; letter-spacing: -.03em; color: var(--navy); margin: 0 0 22px; font-weight: 800; }
.hero-copy h1 em { font-style: normal; color: var(--blue-2); }
.hero-desc { font-size: 16px; color: #4d5f78; max-width: 570px; margin: 0 0 30px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px 24px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #46586f; }
.hero-trust svg { width: 17px; height: 17px; color: var(--blue-2); }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 400px; }
.hero-lens { width: min(100%, 400px); position: relative; z-index: 2; filter: drop-shadow(0 30px 45px rgba(12, 52, 112, .22)); }
.visual-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(21,87,176,.13); }
.ring-1 { width: 320px; height: 320px; }
.ring-2 { width: 390px; height: 390px; border-style: dashed; }
.ring-3 { width: 460px; height: 460px; }
.visual-chip { position: absolute; z-index: 3; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 9px; padding: 9px 13px; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--navy); display: flex; align-items: center; gap: 7px; }
.chip-a { top: 14%; left: 2%; }
.chip-b { bottom: 16%; right: 0%; color: var(--blue); }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: #2fbf71; }
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transform: translateY(38px); position: relative; z-index: 5; }
.stat { text-align: center; padding: 26px 12px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 32px; line-height: 1; color: var(--navy); font-weight: 800; letter-spacing: -.02em; }
.stat strong span { color: var(--blue-2); }
.stat small { display: block; margin-top: 9px; font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 110px 0 96px; }
.section-tint { background: var(--tint); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head.center .section-desc { margin-inline: auto; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--blue); text-transform: uppercase; margin: 0 0 12px; }
.section-head h2, .contact-info h2, .about-copy h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -.025em; color: var(--navy); margin: 0 0 14px; font-weight: 800; }
.section-desc { font-size: 15px; color: var(--muted); max-width: 640px; margin: 0; }

/* ---------- Product filters & cards ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter-tab { border: 1px solid var(--line); background: #fff; color: #51627a; padding: 9px 17px; border-radius: 999px; font-size: 13px; font-weight: 700; transition: .18s; }
.filter-tab:hover { border-color: var(--blue); color: var(--blue); }
.filter-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .22s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: #cfdff4; }
.product-visual { height: 168px; background: linear-gradient(150deg, #f0f6ff, #e6f0fd); display: grid; place-items: center; position: relative; border-bottom: 1px solid var(--line); }
.product-visual svg { width: 150px; height: 118px; }
.product-type { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 15.5px; line-height: 1.4; color: var(--navy); margin: 0 0 8px; font-weight: 750; }
.product-body p { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; flex: 1; }
.spec-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
.spec-tags span { font-size: 10.5px; font-weight: 700; color: #41618f; background: #f0f5fc; border: 1px solid #e2ebf8; padding: 3px 8px; border-radius: 5px; }
.product-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--blue); border: 0; background: none; padding: 0; align-self: flex-start; }
.product-link:hover { gap: 10px; }
.empty-state { text-align: center; color: var(--muted); padding: 50px 0; }

/* ---------- Capabilities ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cap-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: .2s; }
.cap-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cap-icon { width: 48px; height: 48px; border-radius: 11px; background: #edf4ff; color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.cap-icon svg { width: 26px; height: 26px; }
.cap-card h3 { font-size: 15.5px; color: var(--navy); margin: 0 0 9px; font-weight: 750; }
.cap-card p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Applications ---------- */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app-card { position: relative; min-height: 280px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; color: #fff; padding: 28px; isolation: isolate; }
.app-security { background: linear-gradient(135deg, #0f3a6e, #1b6cb8); }
.app-auto { background: linear-gradient(135deg, #12354f, #2b7f8e); }
.app-industrial { background: linear-gradient(135deg, #20345e, #5263a8); }
.app-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: radial-gradient(circle at 78% 22%, rgba(255,255,255,.4) 0 1px, transparent 1.5px), radial-gradient(circle at 22% 68%, rgba(255,255,255,.28) 0 1px, transparent 1.5px); background-size: 26px 26px, 34px 34px; }
.app-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.34)); }
.app-content { position: relative; }
.app-tag { font-size: 10px; font-weight: 800; letter-spacing: .16em; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); padding: 4px 9px; border-radius: 5px; display: inline-block; margin-bottom: 12px; }
.app-card h3 { font-size: 21px; margin: 0 0 8px; font-weight: 750; }
.app-card p { font-size: 13px; margin: 0; color: rgba(255,255,255,.85); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.about-copy > p:not(.kicker) { font-size: 14.5px; color: #54657c; margin: 0 0 16px; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; font-weight: 600; color: #33465f; }
.check-list svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--blue-2); margin-top: 2px; }
.about-panel { background: linear-gradient(150deg, #0e2c53, #123e77); border-radius: 18px; padding: 6px; box-shadow: 0 22px 55px rgba(10, 42, 88, .22); }
.about-panel-inner { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 30px 32px; }
.panel-label { font-size: 11px; letter-spacing: .18em; font-weight: 800; color: #8fc4ff; margin: 0 0 18px; }
.panel-row { display: flex; gap: 18px; align-items: flex-start; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.12); }
.panel-num { font-size: 12px; font-weight: 800; color: #7fb8f5; min-width: 24px; padding-top: 3px; }
.panel-row strong { display: block; color: #fff; font-size: 15px; font-weight: 700; }
.panel-row small { display: block; color: rgba(255,255,255,.6); font-size: 12px; margin-top: 3px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy), #164f9b); color: #fff; padding: 52px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-inner h2 { font-size: clamp(24px, 3vw, 33px); margin: 0 0 8px; font-weight: 800; }
.cta-inner p { margin: 0; color: rgba(255,255,255,.78); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; }
.contact-details { margin-top: 32px; display: grid; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon { width: 42px; height: 42px; border-radius: 10px; background: #edf4ff; color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.contact-icon svg { width: 21px; height: 21px; }
.contact-item small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.contact-item strong { display: block; font-size: 14.5px; color: var(--navy); }
.inquiry-form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inquiry-form label { display: block; margin-bottom: 16px; }
.inquiry-form label > span { display: block; font-size: 12.5px; font-weight: 700; color: #394c66; margin-bottom: 7px; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea { width: 100%; border: 1px solid #dce4ef; border-radius: 9px; padding: 11px 13px; font-size: 14px; color: var(--ink); background: #fff; outline: none; transition: .18s; }
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,87,176,.1); }
.inquiry-form textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 11.5px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.form-success { margin: 14px 0 0; padding: 11px 14px; border-radius: 8px; background: #e9f8ef; border: 1px solid #bfe8cd; color: #1a7a45; font-size: 13px; font-weight: 700; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: #091d38; color: #c5d2e4; padding: 62px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 46px; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: #8fa7c4; }
.brand-footer .brand-mark { color: #6db8f7; }
.footer-brand p { font-size: 13px; color: #94a8c2; max-width: 300px; margin: 18px 0 0; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin: 4px 0 16px; }
.footer-col a, .footer-col > span { display: block; font-size: 13px; color: #a7b8d0; margin-bottom: 10px; transition: .18s; }
.footer-col a:hover { color: #6db8f7; }
.footer-admin { color: #6db8f7 !important; font-weight: 700; margin-top: 16px !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 20px 0; display: flex; gap: 8px; font-size: 12px; color: #7c92ae; }

/* ---------- Modal ---------- */
.modal-root { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 20, 40, .62); backdrop-filter: blur(4px); }
.modal-box { position: relative; width: min(100%, 620px); max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: 0 30px 90px rgba(0,0,0,.3); padding: 34px; }
.modal-close { position: absolute; top: 14px; right: 16px; border: 0; background: #f0f4f9; color: #54657c; width: 32px; height: 32px; border-radius: 8px; font-size: 22px; line-height: 1; }
.modal-close:hover { background: #e2eaf5; color: var(--navy); }
.modal-visual { height: 170px; background: linear-gradient(150deg, #f0f6ff, #e6f0fd); border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid var(--line); }
.modal-visual svg { width: 190px; height: 140px; }
.modal-box h2 { color: var(--navy); font-size: 24px; margin: 0 0 8px; }
.modal-box p.modal-desc { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.modal-box h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin: 0 0 10px; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 22px; }
.spec-list div { border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 13px; color: #3d5069; background: #fafcff; display: flex; gap: 8px; }
.spec-list div::before { content: "•"; color: var(--blue-2); font-weight: 800; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: #0d2a4f; color: #fff; padding: 12px 22px; border-radius: 9px; font-size: 13.5px; font-weight: 700; z-index: 200; box-shadow: 0 12px 35px rgba(0,0,0,.25); }

/* =========================================================
   ADMIN
   ========================================================= */
.admin-shell { min-height: 100vh; background: #f2f5fa; display: flex; font-size: 14px; }
.admin-side { width: 238px; background: #0c2546; color: #fff; flex-shrink: 0; display: flex; flex-direction: column; padding: 24px 0; }
.admin-side .admin-brand { padding: 0 22px 24px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 18px; }
.admin-side .admin-brand strong { display: block; font-size: 15px; letter-spacing: .08em; }
.admin-side .admin-brand small { font-size: 11px; color: #8fb3de; letter-spacing: .14em; }
.admin-nav { display: grid; gap: 4px; padding: 0 12px; }
.admin-nav button { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; color: #b7c9e0; padding: 11px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 600; text-align: left; transition: .18s; }
.admin-nav button:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav button.active { background: #1b5aa8; color: #fff; }
.admin-nav svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-side-foot { margin-top: auto; padding: 18px 22px 0; border-top: 1px solid rgba(255,255,255,.1); }
.admin-side-foot small { display: block; color: #7f9cc0; font-size: 11px; margin-bottom: 9px; }
.admin-logout { border: 1px solid rgba(255,255,255,.2); background: transparent; color: #d8e5f5; border-radius: 8px; padding: 8px 12px; font-size: 12.5px; font-weight: 700; width: 100%; }
.admin-logout:hover { background: rgba(255,255,255,.1); }
.admin-main { flex: 1; min-width: 0; }
.admin-top { height: 70px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; }
.admin-top h1 { font-size: 19px; color: var(--navy); margin: 0; font-weight: 800; }
.admin-top .admin-back { font-size: 12.5px; color: var(--blue); font-weight: 700; }
.admin-body { padding: 30px 32px 60px; }
.admin-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 30px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: 0 4px 18px rgba(15,44,92,.04); }
.admin-card span { font-size: 12px; color: var(--muted); font-weight: 700; }
.admin-card strong { display: block; font-size: 30px; color: var(--navy); margin-top: 6px; font-weight: 800; }
.admin-card.alert strong { color: #c2560f; }
.admin-section { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.admin-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.admin-section-head h2 { font-size: 16px; color: var(--navy); margin: 0; font-weight: 800; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; padding: 10px 12px; background: #f6f9fd; color: #5c6d85; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 12px; border-bottom: 1px solid #eef2f7; color: #3b4d66; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .cell-main { font-weight: 700; color: var(--navy); }
.admin-table .cell-sub { font-size: 11.5px; color: var(--muted); }
.badge { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.badge-new { background: #fff1e6; color: #b8540d; }
.badge-done { background: #e7f7ee; color: #1d7a47; }
.badge-type { background: #edf3fc; color: #2c5c9e; }
.btn-admin { border: 0; background: var(--blue); color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 12.5px; font-weight: 700; }
.btn-admin:hover { background: #104a9b; }
.btn-admin.sm { padding: 6px 10px; font-size: 11.5px; }
.btn-admin.ghost { background: #eef3fa; color: #3d5575; }
.btn-admin.ghost:hover { background: #e0e9f5; }
.btn-admin.danger { background: #fdecec; color: #b32727; }
.btn-admin.danger:hover { background: #fbdcdc; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-form { display: grid; gap: 15px; max-width: 620px; }
.admin-form label { display: block; }
.admin-form label > span { display: block; font-size: 12.5px; font-weight: 700; color: #394c66; margin-bottom: 6px; }
.admin-form input, .admin-form select, .admin-form textarea { width: 100%; border: 1px solid #dce4ef; border-radius: 8px; padding: 10px 12px; font-size: 13.5px; outline: none; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,87,176,.1); }
.admin-form textarea { min-height: 76px; resize: vertical; }
.admin-form-actions { display: flex; gap: 10px; margin-top: 6px; }
.admin-help { font-size: 11.5px; color: var(--muted); margin: 5px 0 0; }
.msg-preview { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-empty { text-align: center; color: var(--muted); padding: 44px 0; }

/* ---------- Login ---------- */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #f4f8ff, #e4eefc); }
.login-box { width: min(100%, 420px); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 70px rgba(12, 44, 92, .14); padding: 38px; }
.login-logo { width: 52px; height: 52px; border-radius: 13px; background: #edf4ff; color: var(--blue); display: grid; place-items: center; margin-bottom: 20px; }
.login-logo svg { width: 30px; height: 30px; }
.login-box h1 { font-size: 23px; color: var(--navy); margin: 0 0 6px; }
.login-box > p { font-size: 13px; color: var(--muted); margin: 0 0 26px; }
.login-hint { margin-top: 20px; padding: 12px 14px; border-radius: 9px; background: #f6f9fd; border: 1px solid var(--line); font-size: 12px; color: #5b6d85; }
.login-hint strong { color: var(--navy); }
.login-error { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: #fdecec; color: #b32727; font-size: 12.5px; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .product-grid, .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 330px; }
  .hero-lens { width: 320px; }
  .about-grid, .contact-grid { gap: 40px; }
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 24px 18px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 14px; }
  .menu-toggle { display: block; }
}
@media (max-width: 820px) {
  .container { width: min(100% - 32px, var(--maxw)); }
  .section { padding: 78px 0 66px; }
  .hero { padding-top: 60px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 210px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .admin-side { width: 68px; padding: 18px 0; }
  .admin-side .admin-brand { padding: 0 12px 18px; }
  .admin-side .admin-brand strong, .admin-side .admin-brand small, .admin-nav button span, .admin-side-foot { display: none; }
  .admin-nav button { justify-content: center; padding: 12px; }
  .admin-body, .admin-top { padding-inline: 18px; }
  .admin-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-wrap { height: 66px; gap: 12px; }
  .brand-text strong { font-size: 13px; }
  .brand-text small { font-size: 9px; }
  .admin-entry { display: none; }
  .main-nav { top: 66px; }
  .hero-copy h1 { font-size: 34px; }
  .hero-buttons .btn { flex: 1; }
  .product-grid, .cap-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .inquiry-form { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
  .modal-box { padding: 26px 20px; }
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 9px 7px; }
}
