:root {
    --ink: #07152f;
    --ink-2: #0b2248;
    --muted: #58677e;
    --muted-strong: #41516a;
    --line: #d8e5f4;
    --line-soft: #e8f0f8;
    --surface: #ffffff;
    --soft: #f6f9fd;
    --soft-blue: #eaf6ff;
    --brand: #0578ff;
    --brand-2: #00b8f5;
    --brand-3: #0057ff;
    --accent: #f97316;
    --accent-2: #ffb020;
    --success: #039855;
    --danger: #c24132;
    --shadow-sm: 0 10px 28px rgba(7, 21, 47, 0.08);
    --shadow-md: 0 18px 46px rgba(7, 21, 47, 0.11);
    --shadow-lg: 0 28px 80px rgba(7, 21, 47, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #f8fafc;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: var(--brand); }
a:hover { color: var(--brand-3); }
.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(234, 246, 255, 0.76) 0, rgba(248, 250, 252, 0) 420px), #f8fafc;
}
main { flex: 1; }
.text-muted { color: var(--muted) !important; }

.public-nav {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(216, 229, 244, 0.82);
    box-shadow: 0 12px 30px rgba(7, 21, 47, 0.04);
    backdrop-filter: blur(18px);
}
.public-nav .nav-link {
    color: var(--muted-strong);
    font-weight: 750;
    padding: 0.68rem 0.85rem;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.public-nav .nav-link:hover,
.public-nav .nav-link:focus { color: var(--ink); background: var(--soft-blue); }
.navbar-toggler { border-color: var(--line); border-radius: 12px; }
.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: 0;
    text-decoration: none;
}
.brand-mark:hover { color: var(--ink); }
.brand-mark span {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
}
.brand-mark img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 10px 24px rgba(7, 21, 47, 0.1);
}

.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover,
.btn:focus { transform: translateY(-1px); }
.btn-primary-soft {
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 0 14px 26px rgba(249, 115, 22, 0.2);
}
.btn-primary-soft:hover,
.btn-primary-soft:focus {
    color: #fff;
    background: #ea580c;
    border-color: #ea580c;
    box-shadow: 0 18px 32px rgba(249, 115, 22, 0.26);
}
.btn-ghost {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
}
.btn-ghost:hover,
.btn-ghost:focus {
    color: var(--brand-3);
    border-color: rgba(5, 120, 255, 0.32);
    background: var(--soft-blue);
}
.btn-dark-premium {
    color: #fff;
    background: linear-gradient(135deg, var(--ink), #0d2f66);
    border: 1px solid var(--ink);
    box-shadow: 0 16px 34px rgba(7, 21, 47, 0.18);
}
.btn-dark-premium:hover,
.btn-dark-premium:focus {
    color: #fff;
    background: linear-gradient(135deg, #0a1f43, var(--brand-3));
    border-color: #0a1f43;
}
.btn-outline-premium {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
}
.btn-outline-premium:hover,
.btn-outline-premium:focus {
    color: var(--brand-3);
    background: var(--soft-blue);
    border-color: rgba(5, 120, 255, 0.28);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.46rem;
    margin-bottom: 12px;
    color: var(--brand-3);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.1);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 78px 0 52px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(234, 246, 255, 0.92)), #f8fafc;
}
.hero-section::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--line-soft);
}
.hero-section .container { position: relative; z-index: 1; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
    gap: 52px;
    align-items: center;
}
.hero-copy h1,
.page-hero h1 {
    margin: 0 0 20px;
    color: var(--ink);
    font-size: clamp(2.35rem, 6vw, 5rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: 0;
}
.hero-copy p,
.page-hero p {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.8;
}
.search-hero,
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 30px 0 22px;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(5, 120, 255, 0.18);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}
.search-hero i { color: var(--brand-3); margin-left: 8px; }
.search-hero input,
.filter-bar input,
.filter-bar select {
    min-width: 0;
    min-height: 46px;
    flex: 1;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
    font-weight: 700;
}
.search-hero input::placeholder,
.filter-bar input::placeholder { color: #7a8aa1; }
.search-hero button {
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    padding: 0 20px;
    color: #fff;
    background: var(--accent);
    font-weight: 900;
    box-shadow: 0 14px 26px rgba(249, 115, 22, 0.2);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 720px;
    margin-top: 30px;
}
.hero-proof-item,
.trust-card,
.benefit-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
}
.hero-proof-item strong,
.trust-card strong,
.benefit-card strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 900; }
.hero-proof-item span,
.trust-card span,
.benefit-card p {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}
.hero-phone { min-width: 0; }
.hero-business-stage { position: relative; }
.hero-device-shell {
    max-width: 420px;
    margin-left: auto;
    padding: 14px;
    border: 1px solid rgba(5, 120, 255, 0.18);
    border-radius: 32px;
    background: linear-gradient(180deg, #fff, #f3f8ff);
    box-shadow: var(--shadow-lg);
}
.hero-device-top { display: flex; align-items: center; gap: 6px; padding: 6px 4px 14px; }
.hero-device-top span { width: 9px; height: 9px; border-radius: 999px; background: #d8e5f4; }
.hero-device-top span:first-child { background: var(--accent); }
.hero-business-card {
    width: 100%;
    overflow: hidden;
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 16px 38px rgba(7, 21, 47, 0.08);
    transition: opacity 0.35s ease;
}
.hero-business-cover {
    height: 178px;
    background-color: #eaf1f8;
    background-position: center;
    background-size: cover;
}
.hero-business-content { padding: 18px; }
.hero-logo { margin-top: -54px; }
.hero-business-card h3 { margin-bottom: 8px; color: var(--ink); font-size: 1.35rem; font-weight: 900; }
.hero-business-card p { min-height: 54px; color: var(--muted); line-height: 1.6; }

.section-block { padding: 72px 0; background: #fff; }
.section-block + .section-block { border-top: 1px solid var(--line-soft); }
.muted-band { background: #f6f9fd; }
.section-head { margin-bottom: 30px; }
.section-head h2,
.plain-section h2,
.panel-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.6rem, 3vw, 2.55rem);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: 0;
}
.section-head p { max-width: 680px; margin: 10px 0 0; color: var(--muted); line-height: 1.7; }
.section-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}
.category-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 13px 16px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    text-decoration: none;
    font-weight: 850;
    box-shadow: 0 10px 26px rgba(7, 21, 47, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.category-pill i {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--brand-3);
    background: var(--soft-blue);
    border-radius: 12px;
}
.category-pill:hover,
.category-pill:focus {
    color: var(--brand-3);
    border-color: rgba(5, 120, 255, 0.3);
    background: #fbfdff;
    box-shadow: var(--shadow-sm);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.business-card,
.plan-card,
.panel-card,
.side-panel,
.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}
.business-card,
.plan-card,
.product-card,
.trust-card,
.benefit-card { transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.business-card:hover,
.plan-card:hover,
.product-card:hover,
.trust-card:hover,
.benefit-card:hover {
    transform: translateY(-2px);
    border-color: rgba(5, 120, 255, 0.26);
    box-shadow: var(--shadow-md);
}
.business-cover {
    height: 164px;
    background-color: #eaf1f8;
    background-position: center;
    background-size: cover;
    border-radius: 20px 20px 0 0;
}
.business-body { padding: 18px; }
.business-logo,
.profile-logo {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-top: -50px;
    color: var(--brand-3);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(7, 21, 47, 0.12);
}
.business-logo img,
.profile-logo img { width: 100%; height: 100%; object-fit: cover; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.soft-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 5px 10px;
    color: var(--brand-3);
    background: var(--soft-blue);
    border: 1px solid rgba(5, 120, 255, 0.12);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
    text-decoration: none;
}
.soft-badge.gold { color: #9a5b00; background: #fff7e6; border-color: #ffe0a8; }
.soft-badge.green { color: #027a48; background: #ecfdf3; border-color: #abefc6; }
.business-card h3,
.product-card h3 { color: var(--ink); font-size: 1.16rem; font-weight: 900; }
.business-card p,
.product-card p,
.plan-card p { color: var(--muted); line-height: 1.62; }
.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}
.meta-line i { color: var(--brand-3); }
.card-actions { display: flex; gap: 8px; margin-top: 16px; }
.card-actions .btn:last-child { width: 42px; padding: 0; }
.empty-state {
    width: 100%;
    padding: 30px;
    color: var(--muted);
    background: #fff;
    border: 1px dashed #b7c7db;
    border-radius: 20px;
}
.business-grid > .empty-state,
.category-grid > .empty-state,
.product-row > .empty-state { grid-column: 1 / -1; }
.empty-state h2,
.empty-state h3 { color: var(--ink); font-weight: 900; }
.empty-state.wide { text-align: center; padding: 58px; }

.benefit-grid,
.plans-grid,
.trust-grid { display: grid; gap: 24px; }
.benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plans-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.benefit-card,
.trust-card,
.plan-card { padding: 24px; }
.benefit-card i,
.trust-card i,
.plan-card i {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 16px;
    color: var(--brand-3);
    background: var(--soft-blue);
    border-radius: 14px;
}
.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.plan-card.featured { border-color: rgba(249, 115, 22, 0.42); box-shadow: 0 18px 46px rgba(249, 115, 22, 0.12); }
.plan-card h3 { margin: 0; color: var(--ink); font-size: 1.25rem; font-weight: 900; }
.plan-card .price-tag { display: flex; align-items: baseline; gap: 6px; color: var(--ink); font-size: 2rem; font-weight: 900; }
.plan-card .price-tag small { color: var(--muted); font-size: 0.86rem; }
.feature-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.feature-list li { display: flex; gap: 8px; color: var(--muted-strong); font-weight: 700; }
.feature-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--brand-2);
}

.page-hero.compact {
    padding: 54px 0 44px;
    background: linear-gradient(135deg, rgba(234, 246, 255, 0.98), rgba(255, 255, 255, 0.92)), #fff;
    border-bottom: 1px solid var(--line-soft);
}
.directory-hero h1 { max-width: 760px; }
.filter-bar { margin-bottom: 0; box-shadow: var(--shadow-sm); flex-wrap: wrap; }
.filter-bar input,
.filter-bar select {
    min-width: 150px;
    padding: 0 8px;
    border-right: 1px solid var(--line-soft);
}
.filter-bar select:last-of-type { border-right: 0; }
.filter-bar button { min-height: 48px; padding-inline: 20px; }

.profile-cover {
    min-height: 310px;
    background-color: #eaf1f8;
    background-position: center;
    background-size: cover;
    position: relative;
}
.profile-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 21, 47, 0.08), rgba(7, 21, 47, 0.38));
}
.profile-shell {
    margin-top: -92px;
    padding-bottom: 72px;
    position: relative;
    z-index: 1;
}
.profile-card {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(216, 229, 244, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
}
.profile-logo { width: 116px; height: 116px; margin-top: 0; border-radius: 26px; }
.profile-main h1 {
    margin-bottom: 10px;
    color: var(--ink);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.04;
    font-weight: 900;
}
.profile-main p { max-width: 840px; color: var(--muted); line-height: 1.72; }
.quick-action-bar {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 26px;
}
.quick-action-bar a {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 78px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    text-decoration: none;
    font-weight: 850;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.quick-action-bar a:hover {
    color: var(--brand-3);
    background: var(--soft-blue);
    border-color: rgba(5, 120, 255, 0.28);
    box-shadow: var(--shadow-md);
}
.quick-action-bar i { font-size: 1.25rem; color: var(--brand-3); }
.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    align-items: start;
}
.plain-section {
    padding: 30px;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}
.plain-section p { color: var(--muted); line-height: 1.72; }
.product-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}
.product-card {
    display: flex;
    flex-direction: column;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}
.product-card img {
    width: 100%;
    height: 190px;
    margin-bottom: 12px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
}
.product-card strong { margin-top: auto; color: var(--ink); font-weight: 900; }
.review-item { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.review-item:last-child { border-bottom: 0; }
.review-item strong { color: var(--ink); }
.review-item span { display: block; color: var(--accent-2); letter-spacing: 0; }
.side-panel {
    position: sticky;
    top: 94px;
    height: max-content;
    padding: 24px;
}
.side-panel h3 { color: var(--ink); font-weight: 900; }
.site-footer { padding: 38px 0; background: #fff; border-top: 1px solid var(--line); }
.site-footer a {
    display: inline-flex;
    margin-left: 18px;
    color: var(--muted-strong);
    font-weight: 800;
    text-decoration: none;
}
.site-footer a:hover { color: var(--brand-3); }

.panel-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    background: linear-gradient(180deg, #f6f9fd 0, #eef5fb 100%), #f6f9fd;
}
.panel-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    color: #fff;
    background: linear-gradient(180deg, #07152f 0, #0b2248 58%, #07152f 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.panel-sidebar .brand-mark { color: #fff; width: 100%; }
.panel-sidebar .brand-mark img { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18); }
.panel-brand-caption {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
    font-weight: 700;
}
.panel-nav { display: grid; gap: 6px; }
.panel-sidebar a { color: rgba(255, 255, 255, 0.76); text-decoration: none; }
.panel-nav-item,
.panel-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 11px 13px;
    border-radius: 14px;
    font-weight: 800;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.panel-nav-item i,
.panel-sidebar-footer i { width: 18px; text-align: center; color: var(--brand-2); }
.panel-nav-item:hover,
.panel-nav-item.is-active,
.panel-sidebar-footer a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.panel-sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.panel-main { min-width: 0; padding: 34px; }
.panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}
.panel-top h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1.06;
    font-weight: 900;
}
.panel-subtitle { margin: 6px 0 0; color: var(--muted); font-weight: 750; }
.stat-grid,
.catalog-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.stat-grid.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-card { min-width: 0; padding: 18px; }
.metric-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}
.metric-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--brand-3);
    background: var(--soft-blue);
    border-radius: 14px;
}
.stat-card span,
.stat-label {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
}
.stat-card strong,
.stat-value {
    display: block;
    color: var(--ink);
    font-size: clamp(1.55rem, 3vw, 2.05rem);
    line-height: 1.1;
    font-weight: 900;
    word-break: break-word;
}
.panel-card { padding: 24px; }
.panel-card-header,
.catalog-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.panel-card-header p,
.catalog-toolbar p { margin: 5px 0 0; color: var(--muted); }
.form-premium label {
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 850;
}
.form-control,
.form-select {
    min-height: 48px;
    color: var(--ink);
    border-color: var(--line);
    border-radius: 13px;
    box-shadow: none;
}
.form-control:focus,
.form-select:focus {
    border-color: rgba(5, 120, 255, 0.56);
    box-shadow: 0 0 0 4px rgba(5, 120, 255, 0.12);
}
.form-premium .ts-wrapper.form-select {
    min-height: 48px;
    padding: 0;
    background: transparent;
    border: 0;
}
.form-premium .ts-control {
    min-height: 48px;
    color: var(--ink);
    border-color: var(--line);
    border-radius: 13px;
    box-shadow: none;
}
.form-premium .ts-wrapper.focus .ts-control {
    border-color: rgba(5, 120, 255, 0.56);
    box-shadow: 0 0 0 4px rgba(5, 120, 255, 0.12);
}
.form-premium .ts-wrapper.disabled .ts-control {
    color: var(--muted);
    background: var(--soft);
}
.form-premium .ts-dropdown {
    border-color: var(--line);
    border-radius: 13px;
}
textarea.form-control { min-height: 120px; }
.form-help { color: var(--muted); font-size: 0.86rem; }
.form-checkline { display: flex; flex-wrap: wrap; gap: 12px; }
.form-checkline label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 12px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
}
.form-checkline input { accent-color: var(--brand); }
.table-responsive { border: 1px solid var(--line-soft); border-radius: 16px; }
.table { margin-bottom: 0; }
.table > :not(caption) > * > * {
    padding: 0.95rem;
    border-bottom-color: var(--line-soft);
    vertical-align: middle;
}
.table thead th {
    color: var(--muted-strong);
    background: #f8fbff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.table tbody tr:hover { background: #fbfdff; }
.table-actions,
.product-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.table-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 10px;
    color: var(--ink);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
}
.table-actions a:hover { color: var(--brand-3); background: var(--soft-blue); }

.qr-dashboard {
    display: grid;
    grid-template-columns: 430px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.qr-poster {
    padding: 30px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
}
.qr-poster img {
    width: 100%;
    max-width: 300px;
    margin: 24px auto;
    border-radius: 18px;
}
.qr-poster h2 { color: var(--ink); font-weight: 900; }
.qr-poster p { color: var(--muted); word-break: break-all; }
.plans-grid.compact .plan-card { padding: 18px; }

.product-admin-table { width: 100%; }
.product-admin-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}
.product-admin-thumb {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    color: var(--muted);
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.product-admin-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.product-admin-item strong { display: block; color: var(--ink); font-weight: 900; }
.product-admin-item small {
    display: block;
    max-width: 360px;
    color: var(--muted);
    line-height: 1.35;
}
.icon-action {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    color: var(--ink);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.icon-action:hover { color: var(--brand-3); background: var(--soft-blue); border-color: rgba(5, 120, 255, 0.28); }
.icon-action.danger { color: var(--danger); background: #fff5f4; border-color: #ffd4cf; }
.icon-action.danger:hover { color: #9f1f13; background: #ffe6e2; }
.product-admin-table .soft-badge { text-decoration: none; }
.dt-layout-row { margin-top: 12px; }
.dt-search input,
.dt-length select { border: 1px solid var(--line); border-radius: 10px; }

.product-image-button {
    width: 100%;
    display: block;
    padding: 0;
    cursor: zoom-in;
    background: transparent;
    border: 0;
}
.product-image-button img { transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.product-image-button:hover img { border-color: rgba(5, 120, 255, 0.28); box-shadow: var(--shadow-sm); }
.product-lightbox-modal .modal-content {
    overflow: hidden;
    background: #07152f;
    border: 0;
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}
.product-lightbox-frame { display: grid; place-items: center; min-height: min(78vh, 760px); padding: 24px; }
.product-lightbox-frame img {
    max-width: 100%;
    max-height: 74vh;
    object-fit: contain;
    background: #fff;
    border-radius: 16px;
}
.product-lightbox-caption { padding: 0 18px 20px; color: #fff; font-weight: 850; text-align: center; }
.product-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background-color: #fff;
    border-radius: 999px;
    opacity: 1;
}

.qr-card-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 22px;
    background: linear-gradient(180deg, rgba(234, 246, 255, 0.98), #fff 62%), #fff;
}
.qr-public-wrap { width: 100%; max-width: 520px; }
.qr-public-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}
.qr-public-cover { height: 190px; background-position: center; background-size: cover; }
.qr-public-body { padding: 0 24px 26px; text-align: center; }
.qr-public-logo {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin: -56px auto 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 16px 34px rgba(7, 21, 47, 0.14);
}
.qr-public-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.qr-public-card h1 { margin: 8px 0; color: var(--ink); font-size: clamp(2rem, 7vw, 3rem); font-weight: 900; }
.qr-public-card p { color: var(--muted); line-height: 1.65; }
.qr-public-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
}
.qr-public-meta span {
    padding: 7px 11px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 750;
}
.qr-public-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}
.qr-public-actions a {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 62px;
    color: var(--ink);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
}
.qr-public-actions a:hover { color: var(--brand-3); background: var(--soft-blue); }
.qr-public-actions i { color: var(--brand-3); font-size: 1.15rem; }
.qr-product-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.qr-product-strip span {
    padding: 7px 10px;
    color: var(--brand-3);
    background: var(--soft-blue);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 850;
}
.qr-products-carousel { margin-top: 16px; padding: 0 38px; }
.qr-product-mini {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    text-align: left;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 18px;
}
.qr-product-mini img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.qr-product-mini span {
    display: block;
    color: var(--brand-3);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.qr-product-mini strong { display: block; color: var(--ink); font-size: 0.98rem; line-height: 1.2; }
.qr-product-mini small { display: block; margin-top: 3px; color: var(--muted); font-weight: 850; }
.qr-products-carousel .carousel-control-prev,
.qr-products-carousel .carousel-control-next {
    top: 50%;
    width: 30px;
    height: 30px;
    color: #fff;
    background: var(--ink);
    border-radius: 999px;
    opacity: 1;
    transform: translateY(-50%);
}
.qr-products-carousel .carousel-control-prev { left: 0; }
.qr-products-carousel .carousel-control-next { right: 0; }

.rinari-ai-result {
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(7, 21, 47, 0.05);
}
.rinari-ai-result strong,
.rinari-ai-result small { display: block; }
.rinari-ai-result small { margin-top: 4px; color: var(--muted); }
.rinari-ai-result-actions { display: flex; gap: 8px; margin-top: 10px; }
.rinari-ai-result-actions a {
    padding: 7px 10px;
    color: var(--ink);
    background: var(--soft);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
}
.rinari-ai-result-actions a:first-child { color: #fff; background: var(--brand); }
.rinari-ai { position: fixed; right: 22px; bottom: 22px; z-index: 1050; }
.rinari-ai-button {
    position: relative;
    width: 66px;
    height: 66px;
    padding: 8px;
    background: #fff;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(7, 21, 47, 0.22);
}
.rinari-ai-button img { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; }
.rinari-ai-pulse {
    position: absolute;
    inset: -4px;
    border: 2px solid rgba(5, 120, 255, 0.28);
    border-radius: 26px;
    animation: rinariPulse 1.8s infinite;
}
.rinari-ai-panel {
    position: absolute;
    right: 0;
    bottom: 82px;
    width: min(360px, calc(100vw - 32px));
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
}
.rinari-ai-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--soft-blue);
    border-bottom: 1px solid var(--line);
}
.rinari-ai-header img { width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 14px; }
.rinari-ai-header strong,
.rinari-ai-header span { display: block; }
.rinari-ai-header span { color: var(--muted); font-size: 0.82rem; }
.rinari-ai-close {
    width: 34px;
    height: 34px;
    margin-left: auto;
    background: #fff;
    border: 0;
    border-radius: 10px;
}
.rinari-ai-messages { height: 310px; overflow: auto; padding: 16px; background: #fff; }
.rinari-ai-bubble {
    max-width: 86%;
    padding: 11px 13px;
    margin-bottom: 10px;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.45;
}
.rinari-ai-bubble-bot { color: var(--ink); background: var(--soft); border-bottom-left-radius: 6px; }
.rinari-ai-bubble-user { margin-left: auto; color: #fff; background: var(--brand); border-bottom-right-radius: 6px; }
.rinari-ai-form {
    display: grid;
    grid-template-columns: 1fr 42px 42px;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--line);
}
.rinari-ai-input { min-width: 0; padding: 0 12px; border: 1px solid var(--line); border-radius: 14px; }
.rinari-ai-mic,
.rinari-ai-send { color: var(--ink); background: var(--soft); border: 0; border-radius: 14px; }
.rinari-ai-send { color: #fff; background: var(--brand); }
.rinari-ai-action,
.rinari-ai-confirm {
    display: inline-flex;
    margin-top: 4px;
    padding: 9px 13px;
    color: #fff;
    background: var(--ink);
    border: 0;
    border-radius: 999px;
    font-weight: 850;
    text-decoration: none;
}
.rinari-ai-preview { padding: 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 16px; }
.rinari-ai-preview strong,
.rinari-ai-preview small,
.rinari-ai-preview span { display: block; }

.soft-badge.orange { color: #9a4b00; background: #fff3e8; border-color: #ffd4aa; }
.promo-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 8px 10px;
    color: #9a4b00;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 850;
}
.pricing-hero { background: linear-gradient(180deg, #eaf6ff 0, #fff 100%); }
.pricing-grid .pricing-card { display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
.pricing-card h2 { margin: 0; color: var(--ink); font-weight: 900; }
.plan-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-card-top > i {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-3));
    border-radius: 16px;
}
.feature-list i { width: 18px; color: var(--brand-3); text-align: center; }
.plans-teaser {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
    color: #fff;
    background: linear-gradient(135deg, var(--ink), #0d3b78);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}
.plans-teaser h2 { margin: 0; color: #fff; font-weight: 900; }
.plans-teaser p { max-width: 760px; margin: 10px 0 0; color: rgba(255,255,255,0.78); line-height: 1.65; }
.plans-teaser .eyebrow { color: #bfe5ff; }
.plans-teaser-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.compare-table { background: #fff; border-radius: 18px; }
.compare-table th,
.compare-table td { min-width: 160px; }
.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.faq-grid .plain-section { margin: 0; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: stretch;
}
.directory-map,
.panel-map-picker {
    min-height: 520px;
    overflow: hidden;
    background: #eaf1f8;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}
.panel-map-picker { min-height: 340px; box-shadow: none; }
.map-results {
    min-height: 520px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}
.map-result-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 14px 0;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line-soft);
}
.map-result-card:last-child { border-bottom: 0; }
.map-result-card i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: var(--brand);
    border-radius: 14px;
}
.map-result-card strong { display: block; color: var(--ink); font-weight: 900; }
.map-result-card span { display: block; color: var(--muted); font-size: 0.86rem; }
.map-pin {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 999px 999px 999px 6px;
    box-shadow: 0 12px 26px rgba(7, 21, 47, 0.2);
    transform: rotate(-45deg);
}
.map-pin i { transform: rotate(45deg); font-size: 0.9rem; }
.plan-status-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}
.plan-status-card h2 small { color: var(--muted); font-size: 1rem; }
.plan-cap-row,
.plan-upgrade-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.plan-cap-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: var(--ink);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 850;
}
.business-switcher {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}
.business-switch-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}
.business-switch-card > i {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--brand-3);
    background: var(--soft-blue);
    border-radius: 14px;
}
.business-switch-card strong { color: var(--ink); font-weight: 900; }
.business-switch-card span { color: var(--muted); font-size: 0.85rem; }
.business-switch-card.is-active { border-color: rgba(5, 120, 255, 0.45); box-shadow: var(--shadow-md); }
.panel-action-bar { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.form-icon-field label i,
.form-premium label i { width: 18px; color: var(--brand-3); text-align: center; }
.map-visible-check { min-height: 48px; align-items: center; margin: 0; }
.promo-public-grid,
.promo-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.promo-public-card,
.promo-admin-card {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}
.promo-public-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}
.promo-public-card > i {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #9a4b00;
    background: #fff7ed;
    border-radius: 14px;
}
.promo-public-card h3,
.promo-admin-card h3 { color: var(--ink); font-size: 1.05rem; font-weight: 900; }
.promo-public-card p,
.promo-admin-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.stats-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 24px;
}
.daily-chart {
    min-height: 210px;
    display: flex;
    align-items: end;
    gap: 7px;
    padding-top: 18px;
}
.daily-bar {
    flex: 1;
    min-width: 7px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: #fff;
    background: linear-gradient(180deg, var(--brand), var(--brand-3));
    border-radius: 8px 8px 0 0;
}
.daily-bar span { margin-top: -18px; color: var(--muted); font-size: 0.72rem; font-weight: 850; }
.stats-list { display: grid; gap: 10px; }
.stats-list > div:not(.empty-state) {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
}
.stats-list span { color: var(--muted); font-weight: 800; }
.stats-list strong { color: var(--ink); font-weight: 900; }
.result-count { margin: 6px 0 0; color: var(--muted); font-weight: 850; }
.rinari-ai.is-thinking .rinari-ai-send { opacity: 0.65; }
.rinari-ai.is-listening .rinari-ai-mic { color: #b42318; background: #fee4e2; }

@keyframes rinariPulse {
    0% { opacity: 1; transform: scale(0.98); }
    100% { opacity: 0; transform: scale(1.25); }
}

@media (max-width: 1199px) {
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .business-grid,
    .product-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .hero-grid,
    .content-grid,
    .qr-dashboard,
    .map-layout,
    .stats-layout { grid-template-columns: 1fr; }
    .hero-device-shell { margin-right: auto; margin-left: auto; }
    .benefit-grid,
    .plans-grid,
    .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .faq-grid { grid-template-columns: 1fr; }
    .quick-action-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .panel-layout { grid-template-columns: 1fr; }
    .panel-sidebar { position: static; height: auto; }
    .panel-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .panel-sidebar-footer { margin-top: 0; }
    .catalog-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .hero-section { padding-top: 48px; }
    .hero-proof,
    .category-grid,
    .business-grid,
    .product-row,
    .plans-grid,
    .benefit-grid,
    .trust-grid { grid-template-columns: 1fr; }
    .section-actions,
    .panel-card-header,
    .catalog-toolbar,
    .panel-top { display: block; }
    .plans-teaser,
    .promo-public-card { display: block; }
    .plans-teaser-actions { margin-top: 18px; }
    .section-actions .btn,
    .panel-top .btn,
    .catalog-toolbar .btn { width: 100%; margin-top: 14px; }
    .search-hero,
    .filter-bar { display: grid; align-items: stretch; }
    .search-hero i { display: none; }
    .filter-bar input,
    .filter-bar select { width: 100%; border-right: 0; border-bottom: 1px solid var(--line-soft); }
    .profile-card { display: block; }
    .profile-logo { margin-bottom: 14px; }
    .quick-action-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .panel-main { padding: 20px; }
    .panel-nav { grid-template-columns: 1fr 1fr; }
    .panel-action-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-grid,
    .catalog-summary-grid,
    .stat-grid.small { grid-template-columns: 1fr; }
    .product-admin-item { min-width: 220px; }
    .site-footer a { margin: 12px 16px 0 0; }
}
@media (max-width: 480px) {
    .hero-copy h1,
    .page-hero h1 { font-size: 2.35rem; }
    .panel-main { padding: 16px; }
    .panel-sidebar { padding: 16px; }
    .panel-nav { grid-template-columns: 1fr; }
    .quick-action-bar { grid-template-columns: 1fr; }
    .qr-public-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qr-products-carousel { padding: 0 32px; }
    .qr-product-mini { grid-template-columns: 56px 1fr; }
    .qr-product-mini img { width: 56px; height: 56px; }
    .qr-product-mini strong { font-size: 0.92rem; }
    .rinari-ai { right: 14px; bottom: 14px; }
    .rinari-ai-panel { bottom: 78px; }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
@media print {
    .panel-sidebar,
    .panel-top,
    .panel-card { display: none; }
    .panel-layout { display: block; background: #fff; }
    .panel-main { padding: 0; }
    .qr-dashboard { display: block; }
    .qr-poster { box-shadow: none; border: 0; }
}
