:root {
    --ink: #15243b;
    --ink-2: #273851;
    --muted: #68758a;
    --muted-2: #8792a3;
    --brand: #155f55;
    --brand-strong: #0e4d45;
    --brand-soft: #e8f4f1;
    --accent: #d6f36c;
    --accent-strong: #b8d846;
    --navy: #101d30;
    --surface: #ffffff;
    --surface-2: #f6f8fb;
    --surface-3: #eef2f6;
    --line: #dfe5ed;
    --line-strong: #ccd5e1;
    --danger: #b42318;
    --danger-soft: #fff0ee;
    --warning: #a15c07;
    --warning-soft: #fff7e6;
    --success: #137548;
    --success-soft: #eaf8f1;
    --info: #1e5ba8;
    --info-soft: #edf5ff;
    --shadow-sm: 0 5px 16px rgba(28, 43, 66, .06);
    --shadow-md: 0 16px 45px rgba(28, 43, 66, .09);
    --shadow-lg: 0 28px 80px rgba(17, 34, 55, .14);
    --radius-sm: 9px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--surface-2);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.public-page { background: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.container-narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }
.page-shell { min-height: calc(100vh - 156px); padding: 38px 0 64px; }
.section { padding: 84px 0; }
.section-sm { padding: 52px 0; }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--navy); color: #fff; }

.skip-link { position: fixed; left: 12px; top: -60px; padding: 10px 15px; background: #fff; z-index: 999; border-radius: 8px; box-shadow: var(--shadow-md); }
.skip-link:focus { top: 12px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(219, 226, 235, .82);
    backdrop-filter: blur(16px);
}
.navbar { min-height: 74px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: -.025em; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--navy); color: var(--accent); border-radius: 10px; font-size: 16px; transform: rotate(-3deg); }
.brand-name { font-size: 17px; }
.nav-links { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.nav-link { padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 14px; }
.nav-link:hover, .nav-link.active { background: var(--surface-2); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 9px; }
.cart-link { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border-radius: 10px; font-weight: 800; }
.cart-count { min-width: 21px; height: 21px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--accent); color: var(--navy); font-size: 11px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--ink); margin: auto; position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.2;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 7px 18px rgba(21, 95, 85, .18); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: var(--accent-strong); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-outline { border-color: var(--line-strong); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-outline { color: var(--danger); background: #fff; border-color: #efb4ae; }
.btn-sm { min-height: 34px; padding: 7px 10px; border-radius: 9px; font-size: 12px; }
.btn-lg { min-height: 51px; padding: 13px 20px; border-radius: 13px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .58; pointer-events: none; transform: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 13px; color: var(--brand); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 23px; height: 2px; background: currentColor; }
.section-title { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.06; letter-spacing: -.045em; }
.section-lead { max-width: 680px; margin: 16px 0 0; color: var(--muted); font-size: 17px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head h2 { margin: 0; font-size: clamp(27px, 3vw, 40px); line-height: 1.12; letter-spacing: -.04em; }
.section-head p { max-width: 610px; color: var(--muted); margin: 8px 0 0; }

.hero { position: relative; overflow: hidden; padding: 78px 0 64px; background: linear-gradient(150deg, #f0f7f5 0%, #fff 44%, #f3f5fa 100%); }
.hero::before { content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%; background: rgba(214, 243, 108, .28); filter: blur(1px); right: -160px; top: -210px; }
.hero::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(21, 95, 85, .08); left: -120px; bottom: -170px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 58px; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(44px, 6.5vw, 76px); line-height: .98; letter-spacing: -.065em; }
.hero h1 .accent-underline { position: relative; white-space: nowrap; }
.hero h1 .accent-underline::after { content: ""; position: absolute; height: 12px; background: var(--accent); left: -2px; right: -3px; bottom: 2px; z-index: -1; transform: rotate(-1deg); }
.hero-copy > p { max-width: 610px; margin: 23px 0 27px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; color: var(--muted); font-size: 13px; font-weight: 700; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust span::before { content: "✓"; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 900; }
.hero-panel { position: relative; min-height: 470px; }
.command-card { position: absolute; inset: 16px 0 auto 22px; background: var(--navy); color: #fff; border-radius: 26px; padding: 24px; box-shadow: var(--shadow-lg); transform: rotate(1.5deg); }
.command-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.command-label { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.signal { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(214,243,108,.11); }
.command-status { color: #aeb7c6; font-size: 12px; }
.command-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin-top: 18px; }
.command-item { min-height: 106px; padding: 15px; border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.045); border-radius: 14px; }
.command-item strong { display: block; font-size: 15px; }
.command-item span { color: #9eabbc; font-size: 12px; }
.command-icon { width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 11px; border-radius: 9px; background: rgba(214,243,108,.13); color: var(--accent); font-weight: 900; }
.float-stat { position: absolute; z-index: 2; right: -12px; bottom: 25px; min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-md); transform: rotate(-2deg); }
.float-stat small { color: var(--muted); font-weight: 700; }
.float-stat strong { display: block; margin-top: 2px; font-size: 24px; letter-spacing: -.035em; }
.float-stat .bar { height: 6px; margin-top: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.float-stat .bar span { display: block; width: 82%; height: 100%; background: var(--brand); border-radius: inherit; }

.logo-strip { padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.logo-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; color: var(--muted); }
.logo-strip-label { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.logo-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; }
.logo-pill i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-3); font-style: normal; color: var(--ink); }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.category-card { min-height: 155px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.category-card:hover { transform: translateY(-3px); border-color: #bdc9d6; box-shadow: var(--shadow-md); }
.category-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--brand-soft); color: var(--brand); font-weight: 900; }
.category-card h3 { margin: 17px 0 5px; font-size: 17px; }
.category-card p { margin: 0; color: var(--muted); font-size: 13px; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c8d1de; }
.product-visual { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #eef4f3; border-bottom: 1px solid var(--line); }
.product-visual img { width: 100%; height: 100%; object-fit: cover; }
.product-flag { position: absolute; left: 14px; top: 14px; padding: 6px 9px; border-radius: 8px; background: rgba(16,29,48,.88); color: #fff; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; backdrop-filter: blur(5px); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.product-category { color: var(--brand); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.product-card h3 { margin: 7px 0 7px; font-size: 20px; line-height: 1.2; letter-spacing: -.025em; }
.product-card .description { margin: 0; color: var(--muted); font-size: 13px; }
.product-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font-size: 11px; }
.product-meta span { padding: 4px 7px; border-radius: 7px; background: var(--surface-2); }
.product-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 18px; margin-top: auto; }
.price { font-weight: 900; font-size: 20px; letter-spacing: -.035em; }
.price-old { display: block; color: var(--muted-2); font-size: 11px; text-decoration: line-through; font-weight: 600; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); background: rgba(255,255,255,.12); }
.process-item { position: relative; padding: 28px 24px; background: var(--navy); }
.process-number { color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.process-item h3 { margin: 25px 0 7px; font-size: 18px; }
.process-item p { margin: 0; color: #9fabbb; font-size: 13px; }

.cta-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: 38px 42px; border-radius: var(--radius-xl); background: var(--brand); color: #fff; }
.cta-panel::after { content: ""; position: absolute; width: 210px; height: 210px; border: 45px solid rgba(214,243,108,.12); border-radius: 50%; right: 17%; top: -110px; }
.cta-panel h2 { position: relative; z-index: 1; margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.05; letter-spacing: -.045em; }
.cta-panel p { position: relative; z-index: 1; margin: 11px 0 0; color: rgba(255,255,255,.76); }
.cta-panel .btn { position: relative; z-index: 1; }

.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; color: var(--muted); font-size: 12px; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span::before { content: "/"; margin-right: 7px; color: var(--line-strong); }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.page-heading h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.06; letter-spacing: -.045em; }
.page-heading p { margin: 8px 0 0; color: var(--muted); }

.catalog-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.filter-card { position: sticky; top: 98px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.filter-card h3 { margin: 0 0 14px; font-size: 15px; }
.filter-list { display: grid; gap: 5px; }
.filter-link { display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 700; }
.filter-link:hover, .filter-link.active { background: var(--brand-soft); color: var(--brand); }
.filter-count { color: var(--muted-2); font-size: 11px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.search-box { display: flex; gap: 8px; width: min(470px, 100%); }
.search-box .form-control { flex: 1; }

.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; }
.product-detail-visual { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--brand-soft); box-shadow: var(--shadow-sm); }
.product-detail-visual img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.product-detail-content .product-category { margin-bottom: 10px; }
.product-detail-content h1 { margin: 0; font-size: clamp(35px, 5vw, 58px); line-height: 1; letter-spacing: -.055em; }
.product-detail-content .lead { color: var(--muted); font-size: 17px; margin: 18px 0; }
.detail-price { margin: 23px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-price strong { font-size: 31px; letter-spacing: -.045em; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-assurance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 18px; }
.assurance-item { padding: 12px; background: var(--surface-2); border-radius: 11px; font-size: 11px; color: var(--muted); }
.assurance-item strong { display: block; color: var(--ink); font-size: 12px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 34px; align-items: start; }
.content-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.content-card h2, .content-card h3 { margin-top: 0; letter-spacing: -.025em; }
.content-card + .content-card { margin-top: 18px; }
.rich-text { color: var(--ink-2); }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; }
.feature-list li { position: relative; padding: 12px 12px 12px 38px; background: var(--surface-2); border-radius: 11px; font-size: 13px; }
.feature-list li::before { content: "✓"; position: absolute; left: 13px; top: 12px; color: var(--brand); font-weight: 900; }
.sticky-card { position: sticky; top: 98px; }
.spec-list { display: grid; gap: 0; margin: 0; }
.spec-row { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.spec-row:last-child { border: 0; }
.spec-row dt { color: var(--muted); }
.spec-row dd { margin: 0; font-weight: 800; text-align: right; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.card-header h2, .card-header h3 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.card-body { padding: 22px; }
.card-footer { padding: 16px 22px; border-top: 1px solid var(--line); background: #fbfcfd; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card-flat { box-shadow: none; }

.form-group { margin-bottom: 17px; }
.form-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; font-weight: 800; font-size: 13px; }
.form-help { margin-top: 6px; color: var(--muted); font-size: 11px; }
.form-control, .form-select, .form-textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-control:focus, .form-select:focus, .form-textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(21,95,85,.1); }
.form-control[readonly] { background: var(--surface-2); color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 17px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 17px; }
.form-check { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 13px; }
.form-check input { margin-top: 4px; accent-color: var(--brand); }
.input-group { display: flex; }
.input-group .form-control { border-radius: 10px 0 0 10px; }
.input-group .btn { border-radius: 0 10px 10px 0; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(440px, .95fr); background: #fff; }
.auth-visual { position: relative; overflow: hidden; padding: 58px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: var(--navy); }
.auth-visual::before { content: ""; position: absolute; width: 420px; height: 420px; border: 80px solid rgba(214,243,108,.09); border-radius: 50%; right: -180px; top: -170px; }
.auth-visual::after { content: ""; position: absolute; width: 240px; height: 240px; background: rgba(21,95,85,.55); border-radius: 50%; left: -100px; bottom: -130px; }
.auth-visual > * { position: relative; z-index: 1; }
.auth-visual .brand { color: #fff; }
.auth-visual .brand-mark { background: var(--accent); color: var(--navy); }
.auth-message h1 { margin: 0; max-width: 630px; font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.06em; }
.auth-message p { max-width: 540px; color: #aeb9c8; font-size: 16px; }
.auth-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.auth-point { padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(255,255,255,.04); }
.auth-point strong { display: block; color: var(--accent); font-size: 18px; }
.auth-point span { color: #9cabbc; font-size: 11px; }
.auth-form-wrap { display: grid; place-items: center; padding: 45px; background: linear-gradient(160deg,#fff,#f7f9fb); }
.auth-card { width: min(470px, 100%); }
.auth-card h2 { margin: 0; font-size: 34px; letter-spacing: -.045em; }
.auth-card > p { margin: 8px 0 25px; color: var(--muted); }
.auth-card-footer { margin-top: 18px; color: var(--muted); text-align: center; font-size: 13px; }
.auth-card-footer a { color: var(--brand); font-weight: 800; }

.alert { position: relative; margin-bottom: 16px; padding: 13px 42px 13px 15px; border: 1px solid transparent; border-radius: 11px; font-size: 13px; }
.alert-success { color: var(--success); background: var(--success-soft); border-color: #bfe8d0; }
.alert-warning { color: var(--warning); background: var(--warning-soft); border-color: #f3d9a9; }
.alert-danger { color: var(--danger); background: var(--danger-soft); border-color: #f1beb9; }
.alert-info { color: var(--info); background: var(--info-soft); border-color: #c5dcfa; }
.alert-dismiss { position: absolute; right: 10px; top: 9px; border: 0; background: transparent; font-size: 18px; cursor: pointer; opacity: .55; }
.error-list { margin: 0; padding-left: 18px; }

.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .045em; white-space: nowrap; }
.badge-success { color: var(--success); background: var(--success-soft); }
.badge-warning { color: var(--warning); background: var(--warning-soft); }
.badge-danger { color: var(--danger); background: var(--danger-soft); }
.badge-muted { color: var(--muted); background: var(--surface-3); }
.badge-info { color: var(--info); background: var(--info-soft); }

.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 11px 13px; color: var(--muted); background: #fafbfd; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 900; text-align: left; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
.table td { padding: 13px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fcfdfd; }
.table-title { font-weight: 800; }
.table-sub { color: var(--muted); font-size: 11px; }
.table-actions { display: flex; justify-content: flex-end; gap: 6px; white-space: nowrap; }

.empty-state { padding: 50px 24px; text-align: center; }
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 18px; background: var(--surface-3); color: var(--muted); font-weight: 900; }
.empty-state h3 { margin: 0; font-size: 19px; }
.empty-state p { max-width: 440px; margin: 7px auto 17px; color: var(--muted); font-size: 13px; }

.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 24px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 100px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); }
.cart-item:first-child { padding-top: 0; }
.cart-item:last-child { padding-bottom: 0; border-bottom: 0; }
.cart-thumb { overflow: hidden; width: 100px; aspect-ratio: 4/3; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { font-weight: 900; font-size: 16px; }
.cart-info { color: var(--muted); font-size: 12px; }
.cart-price { text-align: right; font-weight: 900; }
.order-summary { position: sticky; top: 98px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 13px; }
.summary-row.total { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 900; }
.summary-row.discount { color: var(--success); }
.coupon-form { display: flex; gap: 7px; margin: 15px 0; }
.coupon-form .form-control { min-width: 0; }
.payment-option { position: relative; display: block; padding: 16px 16px 16px 48px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.payment-option:hover { border-color: var(--brand); }
.payment-option input { position: absolute; left: 17px; top: 20px; accent-color: var(--brand); }
.payment-option strong { display: block; font-size: 14px; }
.payment-option span { color: var(--muted); font-size: 12px; }

.payment-hero { max-width: 760px; margin: 0 auto; text-align: center; }
.payment-state { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 23px; background: var(--warning-soft); color: var(--warning); font-size: 28px; font-weight: 900; }
.payment-hero h1 { margin: 0; font-size: 37px; letter-spacing: -.045em; }
.payment-hero > p { color: var(--muted); }
.payment-box { max-width: 680px; margin: 24px auto 0; text-align: left; }
.bank-card { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 20px; margin: 15px 0; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--surface-2); }
.bank-card strong { display: block; }
.account-number { margin-top: 3px; font-size: 24px; letter-spacing: .04em; font-weight: 900; }

.dashboard-shell { display: grid; grid-template-columns: 248px minmax(0,1fr); min-height: calc(100vh - 74px); }
.dashboard-sidebar { position: sticky; top: 74px; height: calc(100vh - 74px); padding: 24px 15px; background: var(--navy); color: #fff; overflow-y: auto; }
.sidebar-user { padding: 6px 9px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-user small { display: block; color: #8fa0b5; }
.sidebar-user strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-section { margin-top: 19px; }
.sidebar-label { padding: 0 10px 8px; color: #778aa1; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: 4px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 10px; color: #aeb9c8; font-size: 13px; font-weight: 750; }
.sidebar-link:hover, .sidebar-link.active { color: #fff; background: rgba(255,255,255,.08); }
.sidebar-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.06); font-size: 11px; }
.sidebar-link.active .sidebar-icon { background: var(--accent); color: var(--navy); }
.dashboard-main { min-width: 0; padding: 30px; }
.dashboard-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.dashboard-top h1 { margin: 0; font-size: 29px; letter-spacing: -.035em; }
.dashboard-top p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.dashboard-actions { display: flex; align-items: center; gap: 8px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 22px; }
.metric-card { min-height: 125px; padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 800; }
.metric-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-weight: 900; }
.metric-value { margin-top: 15px; font-size: 27px; line-height: 1; letter-spacing: -.04em; font-weight: 900; }
.metric-foot { margin-top: 6px; color: var(--muted); font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 18px; }
.quick-links { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
.quick-link { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.quick-link strong { display: block; font-size: 13px; }
.quick-link span { color: var(--muted); font-size: 11px; }

.license-card { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.license-card + .license-card { margin-top: 12px; }
.license-head { display: flex; justify-content: space-between; gap: 18px; }
.license-product { display: flex; gap: 13px; align-items: center; }
.license-product img { width: 54px; height: 54px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.license-product strong { display: block; }
.license-product span { color: var(--muted); font-size: 11px; }
.license-key { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 13px; background: var(--navy); color: #fff; border-radius: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.license-key button { border: 0; background: rgba(255,255,255,.1); color: #fff; border-radius: 7px; padding: 5px 8px; cursor: pointer; font-family: inherit; }
.license-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 12px; }
.license-meta div { padding: 10px; border-radius: 9px; background: var(--surface-2); }
.license-meta small { display: block; color: var(--muted); }
.license-meta strong { font-size: 12px; }

.ticket-message { display: flex; gap: 12px; margin-bottom: 16px; }
.ticket-message.admin-message { flex-direction: row-reverse; }
.message-avatar { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-3); font-weight: 900; font-size: 11px; }
.admin-message .message-avatar { background: var(--brand); color: #fff; }
.message-bubble { max-width: min(720px, calc(100% - 50px)); padding: 13px 15px; background: #fff; border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; }
.admin-message .message-bubble { background: var(--brand-soft); border-color: #cde3df; border-radius: 14px 4px 14px 14px; }
.message-meta { margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.message-body { white-space: pre-wrap; font-size: 13px; }

.admin-header { position: sticky; top: 0; z-index: 55; background: #fff; border-bottom: 1px solid var(--line); }
.admin-header-inner { min-height: 68px; display: flex; align-items: center; gap: 20px; padding: 0 24px; }
.admin-header .brand { margin-right: auto; }
.admin-context { padding-left: 17px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 800; }
.admin-profile { display: flex; align-items: center; gap: 9px; }
.admin-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--navy); color: var(--accent); font-weight: 900; }
.admin-profile strong { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.admin-profile span { display: block; color: var(--muted); font-size: 10px; }
.admin-shell { display: grid; grid-template-columns: 245px minmax(0,1fr); min-height: calc(100vh - 68px); }
.admin-sidebar { position: sticky; top: 68px; height: calc(100vh - 68px); padding: 21px 14px; background: #172439; color: #fff; overflow-y: auto; }
.admin-main { min-width: 0; padding: 28px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.admin-toolbar h1 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.admin-toolbar p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.admin-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-filters .form-control, .admin-filters .form-select { width: auto; min-width: 150px; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); }
.stat-card span { color: var(--muted); font-size: 11px; font-weight: 800; }
.stat-card strong { display: block; margin-top: 8px; font-size: 25px; letter-spacing: -.035em; }
.stat-card small { color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(280px,.6fr); gap: 18px; }

.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 20px; }
.page-link { min-width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 800; }
.page-link:hover, .page-link.active { color: #fff; background: var(--brand); border-color: var(--brand); }

.kpi-bar { display: flex; align-items: center; gap: 10px; }
.kpi-track { flex: 1; height: 7px; overflow: hidden; border-radius: 999px; background: var(--surface-3); }
.kpi-fill { height: 100%; border-radius: inherit; background: var(--brand); }

.invoice { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-sm); }
.invoice-head { display: flex; align-items: start; justify-content: space-between; gap: 30px; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.invoice-title { font-size: 38px; font-weight: 900; letter-spacing: -.05em; }
.invoice-meta { text-align: right; font-size: 13px; }
.invoice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 25px; padding: 25px 0; }
.invoice-label { color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.invoice-total { width: min(380px, 100%); margin: 25px 0 0 auto; }

.site-footer { padding: 52px 0 24px; background: var(--navy); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, .7fr); gap: 34px; }
.footer-brand p { max-width: 380px; color: #94a2b4; font-size: 13px; }
.footer-title { margin-bottom: 13px; color: #fff; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.footer-links { display: grid; gap: 7px; color: #9eabbc; font-size: 13px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09); color: #8190a4; font-size: 11px; }

.text-muted { color: var(--muted) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.fw-bold { font-weight: 800; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.gap-1 { gap: 8px !important; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.hide { display: none !important; }
.mobile-only { display: none; }

@media (max-width: 1080px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .metric-grid, .stat-grid { grid-template-columns: repeat(2,1fr); }
    .process-grid { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1.4fr repeat(2,.8fr); }
    .footer-grid > :last-child { grid-column: 2/4; }
}

@media (max-width: 920px) {
    .nav-toggle { display: grid; place-items: center; margin-left: auto; }
    .nav-links { position: fixed; inset: 74px 16px auto; display: none; flex-direction: column; align-items: stretch; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
    .nav-links.open { display: flex; }
    .nav-actions .btn { display: none; }
    .nav-link { padding: 12px; }
    .hero-grid, .product-detail { grid-template-columns: 1fr; }
    .hero { padding-top: 58px; }
    .hero-panel { min-height: 430px; max-width: 620px; width: 100%; margin: 0 auto; }
    .catalog-layout, .detail-layout, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .filter-card, .sticky-card, .order-summary { position: static; }
    .filter-list { grid-template-columns: repeat(2,1fr); }
    .dashboard-shell, .admin-shell { grid-template-columns: 1fr; }
    .dashboard-sidebar, .admin-sidebar { position: fixed; z-index: 60; top: 0; bottom: 0; left: -270px; width: 250px; height: 100vh; transition: left .2s ease; box-shadow: var(--shadow-lg); }
    .dashboard-sidebar.open, .admin-sidebar.open { left: 0; }
    .dashboard-main, .admin-main { padding: 22px; }
    .mobile-only { display: inline-flex; }
    .admin-grid, .dashboard-grid { grid-template-columns: 1fr; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-form-wrap { min-height: 100vh; }
}

@media (max-width: 700px) {
    .container, .container-narrow { width: min(100% - 26px, var(--container)); }
    .section { padding: 60px 0; }
    .page-shell { padding: 25px 0 48px; }
    .navbar { min-height: 66px; }
    .nav-links { inset-top: 66px; }
    .hero { padding: 48px 0; }
    .hero h1 { font-size: clamp(42px, 13vw, 63px); }
    .hero-copy > p { font-size: 16px; }
    .hero-panel { min-height: 380px; }
    .command-card { left: 0; right: 0; padding: 18px; }
    .float-stat { right: 0; }
    .logo-strip-inner { overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
    .logo-strip-label { min-width: 150px; }
    .category-grid, .product-grid, .feature-list { grid-template-columns: 1fr; }
    .category-card { min-height: 0; }
    .process-grid { grid-template-columns: 1fr; }
    .cta-panel { grid-template-columns: 1fr; padding: 28px; }
    .section-head, .page-heading, .admin-toolbar, .dashboard-top { align-items: flex-start; flex-direction: column; }
    .detail-assurance { grid-template-columns: 1fr; }
    .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
    .auth-form-wrap { padding: 28px 18px; }
    .metric-grid, .stat-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-main, .admin-main { padding: 17px 13px 30px; }
    .admin-header-inner { padding: 0 13px; }
    .admin-context, .admin-profile > div { display: none; }
    .cart-item { grid-template-columns: 72px minmax(0,1fr); }
    .cart-thumb { width: 72px; }
    .cart-price { grid-column: 2; text-align: left; }
    .license-head { display: block; }
    .license-head > .badge { margin-top: 10px; }
    .license-meta { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1/-1; }
    .footer-grid > :last-child { grid-column: auto; }
    .footer-bottom, .invoice-head { display: block; }
    .invoice-meta { margin-top: 20px; text-align: left; }
    .invoice-grid { grid-template-columns: 1fr; }
    .invoice { padding: 22px; }
    .table td, .table th { padding: 10px; }
}

@media (max-width: 440px) {
    .brand-name { font-size: 14px; }
    .cart-link > span:first-child { display: none; }
    .metric-grid, .stat-grid { grid-template-columns: 1fr; }
    .filter-list { grid-template-columns: 1fr; }
    .catalog-toolbar { display: block; }
    .catalog-toolbar .text-muted { margin-bottom: 10px; }
    .quick-links { grid-template-columns: 1fr; }
}

@media print {
    .site-header, .site-footer, .dashboard-sidebar, .admin-header, .admin-sidebar, .no-print, .dashboard-top { display: none !important; }
    body, .page-shell, .dashboard-main, .admin-main { background: #fff; padding: 0; }
    .dashboard-shell, .admin-shell { display: block; }
    .invoice { border: 0; box-shadow: none; max-width: none; }
}
