:root {
    --ink: #07111f;
    --ink-2: #0b1b32;
    --paper: #f4f2ec;
    --white: #fff;
    --muted: #647083;
    --line: rgba(7, 17, 31, .12);
    --cyan: #48d9ff;
    --gold: #d7a84b;
    --gold-light: #f0cf86;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(7, 17, 31, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { color: var(--ink); background: var(--paper); font-family: "Noto Sans TC", sans-serif; line-height: 1.75; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { color: var(--ink); background: var(--cyan); }

.navbar { padding: 18px 0; transition: background .3s ease, padding .3s ease, box-shadow .3s ease; }
.navbar.scrolled { padding: 10px 0; background: rgba(7, 17, 31, .94); box-shadow: 0 12px 30px rgba(0, 0, 0, .15); backdrop-filter: blur(18px); }
.navbar-brand, .footer-brand { color: #fff; }
.brand-mark { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(72, 217, 255, .6); transform: rotate(45deg); }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; position: absolute; border: 1px solid rgba(215, 168, 75, .68); }
.brand-mark::before { width: 20px; height: 20px; }
.brand-mark::after { width: 8px; height: 8px; background: var(--cyan); border: 0; box-shadow: 0 0 16px var(--cyan); }
.brand-mark span { width: 48px; height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 1.05rem; letter-spacing: .12em; }
.brand-copy small { margin-top: 6px; color: rgba(255, 255, 255, .58); font-family: "Space Grotesk", sans-serif; font-size: .59rem; letter-spacing: .28em; }
.navbar-nav .nav-link { position: relative; padding: .65rem .8rem !important; color: rgba(255, 255, 255, .72); font-size: .92rem; letter-spacing: .035em; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: #fff; }
.navbar-nav .nav-link.active::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .35rem; height: 1px; background: var(--cyan); }
.navbar-nav .dev-link span { margin-left: 3px; padding: 2px 5px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 30px; color: rgba(255, 255, 255, .55); font-size: .58rem; vertical-align: 2px; }

.btn { border-radius: 3px; font-weight: 600; letter-spacing: .035em; }
.btn-lg { padding: .88rem 1.5rem; font-size: .98rem; }
.btn-brand { border-color: var(--gold); color: var(--ink); background: var(--gold); }
.btn-brand:hover, .btn-brand:focus { border-color: var(--gold-light); color: var(--ink); background: var(--gold-light); transform: translateY(-1px); }
.btn-outline-light { border-color: rgba(255, 255, 255, .38); }
.btn-outline-light:hover { color: var(--ink); background: #fff; }

.hero-home { position: relative; min-height: 760px; color: #fff; background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(7, 17, 31, .97) 0%, rgba(7, 17, 31, .82) 42%, rgba(7, 17, 31, .16) 80%), linear-gradient(0deg, rgba(7, 17, 31, .72), transparent 48%), url("../img/hero-tech.png"); background-position: center; background-size: cover; transform: scale(1.02); }
.hero-home::after { content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(to right, #000, transparent 65%); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .67); font-family: "Space Grotesk", sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .2em; }
.eyebrow span { width: 34px; height: 1px; background: var(--cyan); }
.eyebrow.dark { color: #6c7580; }
.hero-home h1, .page-hero h1 { margin: 26px 0; font-size: clamp(3.25rem, 6vw, 6.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -.055em; }
.hero-home h1 em, .page-hero h1 em { color: var(--gold-light); font-style: normal; }
.hero-lead { max-width: 650px; color: rgba(255, 255, 255, .72); font-size: clamp(1.05rem, 1.4vw, 1.24rem); line-height: 1.9; }
.hero-trust { margin-top: 70px; }
.hero-trust div { display: flex; flex-direction: column; padding-left: 15px; border-left: 1px solid rgba(72, 217, 255, .45); }
.hero-trust strong { font-size: .95rem; letter-spacing: .15em; }
.hero-trust span { color: rgba(255, 255, 255, .48); font-size: .75rem; }
.scroll-cue { position: absolute; z-index: 2; right: 32px; bottom: 40px; display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .48); font-family: "Space Grotesk", sans-serif; font-size: .61rem; letter-spacing: .25em; writing-mode: vertical-rl; }
.scroll-cue span { width: 1px; height: 45px; background: linear-gradient(var(--cyan), transparent); animation: scrollPulse 1.8s infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: .3; transform: scaleY(.55); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

.intro-strip { padding: 58px 0; border-bottom: 1px solid var(--line); background: #fff; }
.section-index, .solution-index { color: #89919c; font-family: "Space Grotesk", sans-serif; font-size: .7rem; font-weight: 700; letter-spacing: .18em; }
.intro-strip p { margin: 0; font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 500; line-height: 1.6; letter-spacing: -.02em; }
.section-padding { padding: 120px 0; }
.section-heading h2, .process-section h2, .company-facts h2 { margin: 17px 0 0; font-size: clamp(2.35rem, 4vw, 4.2rem); font-weight: 700; line-height: 1.18; letter-spacing: -.045em; }
.section-heading p { max-width: 560px; margin: 0; color: var(--muted); font-size: 1.05rem; }

.service-card { position: relative; padding: 40px; border: 1px solid var(--line); background: rgba(255, 255, 255, .48); overflow: hidden; transition: .35s ease; }
.service-card::after { content: ""; position: absolute; inset: auto -80px -100px auto; width: 220px; height: 220px; border: 1px solid rgba(72, 217, 255, .15); transform: rotate(45deg); transition: .4s ease; }
.service-card:hover { border-color: rgba(7, 17, 31, .32); background: #fff; box-shadow: var(--shadow); transform: translateY(-7px); }
.service-card:hover::after { border-color: rgba(72, 217, 255, .5); transform: translate(-16px, -16px) rotate(45deg); }
.service-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 50px; }
.service-card-top i { color: #117f9b; font-size: 2.15rem; }
.service-number { color: #a3a9b0; font-family: "Space Grotesk", sans-serif; font-size: .75rem; letter-spacing: .15em; }
.service-card small, .service-detail small { color: #9299a1; font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: .15em; }
.service-card h3 { margin: 8px 0 14px; font-size: 1.7rem; font-weight: 700; letter-spacing: -.025em; }
.service-card p { min-height: 58px; color: var(--muted); }
.service-card a, .text-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; border-bottom: 1px solid var(--ink); font-size: .9rem; font-weight: 700; }
.service-card a:hover, .text-link:hover { color: #0c7e9b; border-color: #0c7e9b; }

.process-section { color: #fff; background: var(--ink); }
.process-sticky { top: 130px; }
.process-section h2 { margin: 20px 0 26px; }
.process-section .process-sticky > p { color: rgba(255, 255, 255, .62); font-size: 1.05rem; }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 60px 1fr; gap: 25px; padding: 38px 0; border-top: 1px solid rgba(255, 255, 255, .13); }
.process-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .13); }
.process-list > li > span { color: var(--cyan); font-family: "Space Grotesk", sans-serif; font-size: .76rem; }
.process-list h3 { margin: -6px 0 9px; font-size: 1.55rem; }
.process-list p { margin: 0; color: rgba(255, 255, 255, .55); }

.solution-preview { background: #ebe8e0; }
.solution-tile { display: flex; flex-direction: column; padding: 34px; border-top: 2px solid var(--ink); background: rgba(255,255,255,.35); transition: .3s ease; }
.solution-tile > i { margin-bottom: 65px; color: #168ca8; font-size: 2rem; }
.solution-tile h3 { font-size: 1.45rem; font-weight: 700; }
.solution-tile p { flex: 1; color: var(--muted); }
.solution-tile span { margin-top: 25px; font-size: .86rem; font-weight: 700; }
.solution-tile:hover { color: #fff; background: var(--ink); transform: translateY(-5px); }
.solution-tile:hover p { color: rgba(255,255,255,.6); }

.cta-section { padding: 0 0 100px; background: var(--ink); }
.solution-preview + .cta-section, .service-detail-section + .cta-section, .company-facts + .cta-section { padding-top: 100px; }
.cta-panel { position: relative; padding: 64px; border: 1px solid rgba(72, 217, 255, .24); color: #fff; background: linear-gradient(120deg, rgba(72, 217, 255, .08), rgba(215, 168, 75, .06)); overflow: hidden; }
.cta-panel::after { content: ""; position: absolute; right: -90px; top: -90px; width: 230px; height: 230px; border: 1px solid rgba(215, 168, 75, .18); transform: rotate(45deg); }
.cta-panel h2 { margin: 14px 0 8px; font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 700; letter-spacing: -.04em; }
.cta-panel p { margin: 0; color: rgba(255,255,255,.58); }
.cta-panel .btn { position: relative; z-index: 1; }

.site-footer { padding-top: 90px; color: #fff; background: #030a13; }
.footer-main { padding-bottom: 70px; }
.footer-intro { max-width: 480px; color: rgba(255,255,255,.48); }
.footer-title { margin-bottom: 22px; color: rgba(255,255,255,.45); font-family: "Space Grotesk", sans-serif; font-size: .7rem; letter-spacing: .18em; }
.footer-links, .footer-contact { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover, .footer-contact a:hover, .footer-bottom a:hover { color: var(--cyan); }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 13px; color: rgba(255,255,255,.65); }
.footer-contact i { color: var(--gold); }
.footer-bottom { padding: 24px 0; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.35); font-size: .78rem; }
.toast { background: #fff; }
.text-brand { color: #0a91b2 !important; }

.page-hero { min-height: 650px; padding: 210px 0 100px; color: #fff; background: radial-gradient(circle at 75% 40%, rgba(31, 169, 201, .22), transparent 32%), linear-gradient(125deg, #07111f, #0d2138); }
.page-hero::after { content: ""; position: absolute; }
.page-hero h1 { font-size: clamp(3rem, 6vw, 5.8rem); }
.page-hero p { max-width: 700px; color: rgba(255,255,255,.62); font-size: 1.12rem; }
.page-hero-light { color: var(--ink); background: linear-gradient(135deg, #ebe8e0, #fff); }
.page-hero-light p { color: var(--muted); }
.page-hero-light h1 em { color: #a47722; }
.page-hero.compact { min-height: 420px; padding-top: 190px; }
.page-hero.compact h1 { font-size: clamp(2.8rem, 5vw, 4.8rem); }

.service-detail { padding: 85px 0; border-top: 1px solid var(--line); }
.service-detail:first-child { padding-top: 0; border: 0; }
.service-detail-index { display: flex; align-items: center; justify-content: space-between; margin-bottom: 42px; }
.service-detail-index span { color: #9299a1; font-family: "Space Grotesk", sans-serif; font-size: .76rem; }
.service-detail-index i { color: #148aa5; font-size: 2.4rem; }
.service-detail h2 { margin: 12px 0; font-size: clamp(2.2rem, 3.5vw, 3.5rem); font-weight: 700; letter-spacing: -.04em; }
.service-detail .lead { color: #4d5968; font-size: 1.1rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 30px 0 12px; }
.feature-grid span { padding: 13px 15px; border: 1px solid var(--line); background: rgba(255,255,255,.45); font-size: .88rem; }
.feature-grid i { margin-right: 9px; color: #0a8eac; }

.solution-detail { margin-bottom: 28px; padding: 58px; border: 1px solid var(--line); background: rgba(255,255,255,.56); }
.solution-detail:last-child { margin: 0; }
.solution-icon { display: block; margin: 35px 0 24px; color: #158ba7; font-size: 2.6rem; }
.solution-detail h2 { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; }
.solution-detail .scenario { color: var(--muted); }
.solution-detail h3 { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 700; }
.solution-detail h3 span { color: #0e91af; font-family: "Space Grotesk", sans-serif; font-size: .65rem; }
.solution-detail p { color: var(--muted); }
.solution-detail ul { margin: 22px 0; padding: 0; list-style: none; }
.solution-detail li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.solution-detail li i { color: #0b8eab; }

.about-hero { background: linear-gradient(90deg, rgba(7,17,31,.94), rgba(7,17,31,.54)), url("../img/hero-tech.png") center/cover; }
.about-story { background: #fff; }
.display-copy { margin-bottom: 35px; font-size: clamp(1.7rem, 3vw, 2.8rem); font-weight: 600; line-height: 1.5; letter-spacing: -.03em; }
.about-story .col-lg-8 > p:last-child { max-width: 760px; color: var(--muted); font-size: 1.07rem; }
.values-section { background: #ebe8e0; }
.value-card { height: 100%; padding: 40px; border-top: 2px solid var(--ink); background: rgba(255,255,255,.45); }
.value-card > span { color: #118da8; font-family: "Space Grotesk", sans-serif; font-size: .7rem; }
.value-card h2 { margin: 55px 0 16px; font-size: 1.5rem; font-weight: 700; }
.value-card p { color: var(--muted); }
.company-facts { background: #fff; }
.facts-list { margin: 0; }
.facts-list > div { display: grid; grid-template-columns: 130px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts-list dt { color: #9299a1; font-size: .84rem; font-weight: 500; }
.facts-list dd { margin: 0; font-weight: 600; }

.contact-hero { min-height: 600px; }
.contact-section { background: linear-gradient(180deg, var(--ink) 0, var(--ink) 130px, var(--paper) 130px); }
.contact-aside { padding-top: 175px; }
.contact-aside h2 { margin: 20px 0 32px; font-size: 2rem; font-weight: 700; }
.contact-aside ol { margin: 0; padding: 0; list-style: none; }
.contact-aside li { display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-aside li span { color: #118ca6; font-family: "Space Grotesk", sans-serif; font-size: .69rem; }
.contact-aside li p { margin: 0; color: var(--muted); font-size: .9rem; }
.privacy-note { display: flex; gap: 14px; margin-top: 30px; padding: 20px; background: rgba(72,217,255,.08); }
.privacy-note i { color: #087f9a; font-size: 1.4rem; }
.privacy-note p { margin: 0; color: var(--muted); font-size: .82rem; }
.contact-form-card { position: relative; min-height: 660px; padding: 55px; background: #fff; box-shadow: var(--shadow); }
.form-section-label { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-size: .82rem; font-weight: 700; }
.form-section-label span { color: #0d8eaa; font-family: "Space Grotesk", sans-serif; font-size: .68rem; }
.form-label { margin-bottom: 7px; font-size: .82rem; font-weight: 600; }
.form-label b, .form-check-label b { color: #b04a43; }
.form-control, .form-select { min-height: 50px; border: 0; border-bottom: 1px solid #ccd0d4; border-radius: 0; background-color: #f8f8f6; box-shadow: none !important; }
.form-control:focus, .form-select:focus { border-color: #168ca7; background-color: #fff; }
textarea.form-control { padding-top: 15px; }
.form-check-label { color: var(--muted); font-size: .8rem; }
.form-check-label a { color: #087e98; text-decoration: underline; }
.char-count { color: #a0a6ad; font-size: .72rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-btn { display: flex; align-items: center; justify-content: center; gap: 12px; }
.form-success { padding: 80px 20px; text-align: center; }
.form-success > i { color: #118e77; font-size: 4rem; }
.form-success h2 { margin: 18px 0 10px; font-size: 2rem; font-weight: 700; }

.legal-content { max-width: 850px; margin: 0 auto; }
.legal-content .lead { margin-bottom: 55px; font-size: 1.2rem; }
.legal-content h2 { margin-top: 40px; font-size: 1.35rem; font-weight: 700; }
.legal-content p { color: var(--muted); }

.login-page { min-height: 100vh; background: radial-gradient(circle at 15% 15%, rgba(72,217,255,.18), transparent 25%), var(--ink); }
.login-shell { display: grid; min-height: 100vh; place-items: center; padding: 30px; }
.login-brand { position: absolute; left: 35px; top: 30px; display: flex; align-items: center; gap: 12px; color: #fff; }
.login-card { width: min(460px, 100%); padding: 48px; background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.login-card h1 { margin: 14px 0 30px; font-size: 2.5rem; font-weight: 700; }
.back-home { display: block; margin-top: 28px; color: var(--muted); font-size: .84rem; text-align: center; }

[data-reveal] { opacity: 0; transform: translateY(25px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* Admin */
.admin-page { min-height: 100vh; background: #f2f4f6; }
.admin-sidebar { position: fixed; z-index: 1040; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 270px; padding: 30px 22px; color: #fff; background: var(--ink); transition: transform .3s ease; }
.admin-logo { display: flex; align-items: center; gap: 14px; margin: 0 8px 55px; }
.admin-logo > span:last-child { display: flex; flex-direction: column; }
.admin-logo strong { letter-spacing: .1em; }
.admin-logo small { margin-top: 4px; color: rgba(255,255,255,.4); font-family: "Space Grotesk", sans-serif; font-size: .55rem; letter-spacing: .18em; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 6px; }
.admin-sidebar nav a, .admin-sidebar nav button, .admin-sidebar-footer a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 15px; border: 0; color: rgba(255,255,255,.58); background: transparent; font-size: .88rem; text-align: left; }
.admin-sidebar nav a:hover, .admin-sidebar nav button:hover, .admin-sidebar nav a.active { color: #fff; background: rgba(255,255,255,.08); }
.admin-sidebar nav a.active { border-left: 2px solid var(--cyan); }
.admin-sidebar nav small { margin-left: auto; color: var(--gold-light); font-size: .6rem; }
.admin-sidebar-footer { display: flex; flex-direction: column; margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 15px; }
.admin-main { min-height: 100vh; margin-left: 270px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 118px; padding: 25px 42px; border-bottom: 1px solid #dfe3e8; background: #fff; }
.admin-topbar h1 { margin: 2px 0 0; font-size: 1.75rem; font-weight: 700; }
.admin-topbar > div:first-of-type > span { color: #9a9fa7; font-family: "Space Grotesk", sans-serif; font-size: .65rem; letter-spacing: .16em; }
.admin-user { display: flex; align-items: center; gap: 12px; color: #6a7380; font-size: .8rem; }
.admin-user img, .admin-user > i { width: 38px; height: 38px; border-radius: 50%; font-size: 2rem; }
.admin-menu-toggle { display: none; border: 0; background: transparent; font-size: 1.5rem; }
.admin-content { padding: 36px 42px 60px; }
.stat-cards article { position: relative; min-height: 142px; padding: 27px; border: 1px solid #e3e6e9; background: #fff; }
.stat-cards span { color: #7c8591; font-size: .78rem; }
.stat-cards strong { display: block; margin-top: 11px; font-family: "Space Grotesk", sans-serif; font-size: 2.25rem; }
.stat-cards i { position: absolute; right: 25px; top: 25px; color: #168da8; font-size: 1.4rem; }
.admin-panel { border: 1px solid #e0e4e8; background: #fff; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 26px 28px; border-bottom: 1px solid #e6e8eb; }
.admin-panel-head span { color: #9b9fa6; font-family: "Space Grotesk", sans-serif; font-size: .62rem; letter-spacing: .16em; }
.admin-panel-head h2 { margin: 3px 0 0; font-size: 1.25rem; font-weight: 700; }
.admin-panel-head a { font-size: .8rem; font-weight: 600; }
.admin-panel .table { margin: 0; }
.admin-panel .table th { padding: 14px 24px; color: #8d949d; background: #fafafa; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.admin-panel .table td { padding: 17px 24px; border-color: #eceef0; font-size: .82rem; }
.status-badge { display: inline-flex; padding: 4px 9px; border-radius: 30px; font-size: .68rem; font-weight: 700; }
.status-new { color: #9a5b06; background: #fff1d6; }
.status-in_progress { color: #0c718c; background: #dff5fa; }
.status-replied { color: #14704b; background: #e0f5e9; }
.status-closed { color: #5f6772; background: #ebedf0; }
.status-spam { color: #9d3939; background: #f9e4e4; }
.admin-filter { padding: 20px; border: 1px solid #e0e4e8; background: #fff; }
.search-box { position: relative; }
.search-box i { position: absolute; z-index: 2; left: 16px; top: 14px; color: #9298a0; }
.search-box input { padding-left: 43px; }
.message-list-panel { min-height: 650px; }
.message-list-item { display: block; width: 100%; padding: 20px 24px; border: 0; border-bottom: 1px solid #e7e9eb; background: #fff; text-align: left; transition: .2s; }
.message-list-item:hover, .message-list-item.active { background: #f1f8fa; }
.message-list-item.active { box-shadow: inset 3px 0 #1592af; }
.message-list-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.message-list-meta strong { font-size: .86rem; }
.message-list-meta time { color: #9aa0a8; font-size: .66rem; }
.message-list-item h3 { margin: 12px 0 5px; font-size: 1rem; font-weight: 700; }
.message-list-item p { margin: 0; color: #707985; font-size: .77rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pagination-wrap { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 18px; }
.pagination-wrap button { width: 34px; height: 34px; border: 1px solid #dfe2e5; background: #fff; font-size: .75rem; }
.pagination-wrap button.active { color: #fff; border-color: var(--ink); background: var(--ink); }
.message-detail { position: sticky; top: 25px; min-height: 650px; padding: 28px; }
.empty-state { display: grid; min-height: 580px; place-content: center; color: #98a0a9; text-align: center; }
.empty-state i { font-size: 2.6rem; }
.empty-state h2 { margin: 12px 0 4px; color: #69727d; font-size: 1.15rem; }
.message-detail-head { padding-bottom: 22px; border-bottom: 1px solid #e6e8ea; }
.message-detail-head > span { color: #1289a3; font-family: "Space Grotesk", sans-serif; font-size: .72rem; }
.message-detail-head h2 { margin: 8px 0 4px; font-size: 1.45rem; font-weight: 700; }
.message-detail-head p { margin: 0; color: #7b8490; font-size: .8rem; }
.message-fields { margin: 22px 0; }
.message-fields > div { display: grid; grid-template-columns: 90px 1fr; padding: 9px 0; font-size: .8rem; }
.message-fields dt { color: #9299a2; font-weight: 500; }
.message-fields dd { margin: 0; overflow-wrap: anywhere; }
.message-body { max-height: 220px; padding: 18px; background: #f5f5f2; white-space: pre-wrap; overflow-y: auto; font-size: .84rem; }
.message-edit { margin-top: 24px; padding-top: 22px; border-top: 1px solid #e6e8ea; }
.admin-overlay { display: none; }

@media (max-width: 991.98px) {
    .navbar-collapse { margin-top: 15px; padding: 15px; background: rgba(7,17,31,.98); }
    .hero-home { min-height: 720px; }
    .hero-bg { background-position: 65% center; }
    .hero-home h1 { font-size: clamp(3rem, 10vw, 5rem); }
    .section-padding { padding: 85px 0; }
    .process-sticky { position: static !important; }
    .contact-section { background: var(--paper); }
    .contact-aside { padding-top: 0; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: none; }
    .admin-main { margin-left: 0; }
    .admin-menu-toggle { display: block; }
    .admin-overlay { position: fixed; z-index: 1035; inset: 0; background: rgba(0,0,0,.4); }
    .admin-overlay.show { display: block; }
}

@media (max-width: 767.98px) {
    .navbar { padding: 12px 0; background: rgba(7,17,31,.82); }
    .hero-home { min-height: 760px; }
    .hero-bg { opacity: .62; background-position: 65% center; }
    .hero-home h1, .page-hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
    .hero-lead { font-size: .98rem; }
    .hero-trust { gap: 20px !important; margin-top: 48px; }
    .hero-trust div { width: calc(50% - 10px); }
    .scroll-cue { display: none; }
    .intro-strip { padding: 40px 0; }
    .intro-strip p { font-size: 1.18rem; }
    .section-padding { padding: 68px 0; }
    .service-card { padding: 28px; }
    .service-card-top { margin-bottom: 35px; }
    .cta-section { padding-bottom: 60px; }
    .cta-panel { padding: 38px 26px; }
    .page-hero { min-height: 540px; padding: 165px 0 70px; }
    .page-hero.compact { min-height: 360px; padding-top: 150px; }
    .feature-grid { grid-template-columns: 1fr; }
    .solution-detail { padding: 32px 25px; }
    .contact-form-card { padding: 34px 24px; }
    .login-card { padding: 35px 25px; }
    .login-brand { left: 22px; top: 22px; }
    .admin-topbar { min-height: 95px; padding: 20px; }
    .admin-topbar .admin-user span { display: none; }
    .admin-content { padding: 20px; }
    .message-detail { position: static; min-height: auto; }
}
