* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #15171a;
    color: #f5f7fa;
}

.topbar {
    height: 68px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 32px;
    border-bottom: 1px solid #30343a;
    background: #1d2024;
}

.brand {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 1px;
}

.product {
    color: #9ca3af;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 46px 24px;
}

.auth-card {
    max-width: 480px;
    margin: 30px auto;
    background: #20242a;
    padding: 32px;
    border: 1px solid #343941;
    border-radius: 14px;
}

.auth-card.wide {
    max-width: 680px;
}

.auth-card.no-margin {
    margin: 0;
}

h1, h2 {
    margin-top: 0;
}

label {
    display: block;
    margin: 17px 0 7px;
    font-weight: 650;
}

input, select {
    width: 100%;
    background: #16191d;
    color: white;
    border: 1px solid #444b55;
    border-radius: 8px;
    padding: 12px 13px;
    font-size: 15px;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

button,
.button-link {
    margin-top: 22px;
    border: 0;
    border-radius: 8px;
    padding: 12px 18px;
    background: #2f7df6;
    color: white;
    font-weight: 750;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

button.secondary {
    background: #343941;
    margin-top: 0;
}

.secondary-link {
    background: #343941;
    margin-top: 0;
}

button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.muted {
    color: #9ca3af;
}

.good {
    color: #55d98b;
}

.bad {
    color: #ff7f8b;
}

.error {
    background: #4b1f25;
    border: 1px solid #8b313c;
    color: #ffb4bd;
    padding: 11px 13px;
    border-radius: 8px;
    margin: 15px 0;
}

.warning {
    background: #493b18;
    border: 1px solid #806b2a;
    color: #ffe29a;
    padding: 13px 15px;
    border-radius: 9px;
    margin-bottom: 18px;
}

.auth-link {
    text-align: center;
    margin-top: 24px;
}

a {
    color: #70a7ff;
}

.grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.info-card,
.checker-placeholder,
.table-card {
    background: #20242a;
    border: 1px solid #343941;
    border-radius: 14px;
    padding: 22px;
}

.info-card {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.info-card strong {
    font-size: 25px;
}

.eyebrow {
    color: #8e98a7;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .8px;
}

.checker-placeholder {
    margin-top: 20px;
}

.table-card {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 13px 11px;
    border-bottom: 1px solid #343941;
}

th {
    color: #9ca3af;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.check-row {
    margin-top: 18px;
}

.check-row label {
    display: flex;
    align-items: center;
    margin: 0;
}

.summary-box {
    margin-top: 20px;
    background: #171a1e;
    border: 1px solid #343941;
    padding: 13px;
    border-radius: 8px;
}

@media (max-width: 850px) {
    .cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .grid-two,
    .cards {
        grid-template-columns: 1fr;
    }

    .dashboard-head {
        align-items: flex-start;
        gap: 18px;
        flex-direction: column;
    }
}


.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.action-row form {
    margin: 0;
}

.action-row button,
.action-row .button-link {
    margin-top: 0;
}

.privacy-note {
    background: #182f28;
    border: 1px solid #2d7059;
    color: #b6f2d7;
    padding: 15px 17px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.success-box {
    background: #173b25;
    border: 1px solid #2f8d58;
    color: #aaf0c5;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.account-layout {
    align-items: start;
}

.account-card {
    margin-bottom: 14px;
}

.account-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: start;
}

.account-top h3 {
    margin: 5px 0 0;
}

.key-mask {
    background: #15191d;
    border: 1px solid #3c444e;
    padding: 7px 10px;
    border-radius: 7px;
    color: #aeb7c2;
    font-family: Consolas, monospace;
}

.small-button {
    padding: 9px 12px;
    font-size: 13px;
}

button.danger {
    background: #8c3038;
}

.tiny {
    font-size: 12px;
}

.checker-search-card {
    background: #20242a;
    border: 1px solid #343941;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}

.scanner-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.scanner-form button {
    margin-top: 0;
}

.product-result {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 24px;
    background: #20242a;
    border: 1px solid #343941;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 16px;
}

.product-image {
    width: 190px;
    height: 190px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-placeholder {
    color: #656d78;
}

.product-details h2 {
    margin: 8px 0 18px;
}

.product-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.product-meta div {
    background: #171a1e;
    padding: 12px;
    border-radius: 8px;
}

.product-meta strong,
.product-meta span {
    display: block;
}

.product-meta span {
    color: #b9c0ca;
    margin-top: 5px;
    word-break: break-all;
}

@media (max-width: 720px) {
    .scanner-form,
    .product-result,
    .product-meta {
        grid-template-columns: 1fr;
    }

    .product-image {
        width: 100%;
        max-width: 260px;
        height: 260px;
    }
}


/* ==========================================================
   ATVIXA WHITE + CANDY RED THEME
   Visual override only — Phase 2 functionality is unchanged.
   ========================================================== */

:root {
    --atvixa-red: #E63946;
    --atvixa-red-dark: #C92F3B;
    --atvixa-red-soft: #FFF0F2;
    --page-bg: #F7F8FA;
    --card-bg: #FFFFFF;
    --text-main: #20242A;
    --text-muted: #6B7280;
    --border: #E3E6EA;
}

html, body {
    background: var(--page-bg) !important;
    color: var(--text-main) !important;
}

body,
main,
.container,
.page,
.content {
    color: var(--text-main);
}

header,
nav,
.navbar,
.topbar {
    background: #FFFFFF !important;
    color: var(--text-main) !important;
    border-color: var(--border) !important;
}

header a,
nav a,
.navbar a,
.topbar a {
    color: var(--text-main) !important;
}

.brand,
.logo,
.brand-name {
    color: var(--atvixa-red) !important;
}

h1, h2, h3, h4, h5, h6,
label,
strong {
    color: var(--text-main);
}

p,
.muted,
.tiny {
    color: var(--text-muted) !important;
}

.card,
.info-card,
.stat-card,
.checker-placeholder,
.checker-search-card,
.product-result,
.login-card,
.auth-card,
.admin-card,
.panel,
section.info-card {
    background: var(--card-bg) !important;
    border-color: var(--border) !important;
    color: var(--text-main) !important;
    box-shadow: 0 8px 24px rgba(20, 24, 30, 0.06);
}

input,
select,
textarea {
    background: #FFFFFF !important;
    color: var(--text-main) !important;
    border: 1px solid #CDD2D8 !important;
}

input::placeholder,
textarea::placeholder {
    color: #9AA1AA !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--atvixa-red) !important;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12) !important;
    outline: none;
}

button,
.button-link,
.btn,
input[type="submit"] {
    background: var(--atvixa-red) !important;
    color: #FFFFFF !important;
    border-color: var(--atvixa-red) !important;
}

button:hover,
.button-link:hover,
.btn:hover,
input[type="submit"]:hover {
    background: var(--atvixa-red-dark) !important;
    border-color: var(--atvixa-red-dark) !important;
}

button.secondary,
.secondary-link,
.btn-secondary {
    background: #FFFFFF !important;
    color: var(--atvixa-red) !important;
    border: 1px solid var(--atvixa-red) !important;
}

button.secondary:hover,
.secondary-link:hover,
.btn-secondary:hover {
    background: var(--atvixa-red-soft) !important;
    color: var(--atvixa-red-dark) !important;
}

button.danger {
    background: #B4232E !important;
    border-color: #B4232E !important;
    color: #FFFFFF !important;
}

.privacy-note {
    background: #F1FBF6 !important;
    border-color: #A9DEC2 !important;
    color: #246B49 !important;
}

.privacy-note strong {
    color: #205E41 !important;
}

.success-box,
.success {
    background: #F1FBF6 !important;
    border-color: #A9DEC2 !important;
    color: #246B49 !important;
}

.error,
.error-box {
    background: #FFF0F2 !important;
    border-color: #F2AAB0 !important;
    color: #A82431 !important;
}

.warning {
    background: #FFF8E8 !important;
    border-color: #E9C66C !important;
    color: #765817 !important;
}

.key-mask {
    background: #F3F4F6 !important;
    border-color: #D9DDE2 !important;
    color: #606873 !important;
}

.product-meta div {
    background: #F7F8FA !important;
    border: 1px solid var(--border);
}

.product-meta span {
    color: #59616C !important;
}

.product-image {
    background: #FFFFFF !important;
    border: 1px solid var(--border);
}

.eyebrow {
    color: var(--atvixa-red) !important;
}

table,
thead,
tbody,
tr,
td,
th {
    border-color: var(--border) !important;
}

table {
    background: #FFFFFF !important;
    color: var(--text-main) !important;
}

th {
    background: #F6F7F9 !important;
    color: var(--text-main) !important;
}

td {
    background: #FFFFFF !important;
    color: var(--text-main) !important;
}

a {
    color: var(--atvixa-red);
}

hr {
    border-color: var(--border) !important;
}


.link-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 12px;
}

.link-form button {
    margin-top: 0;
}

@media (max-width: 720px) {
    .link-form {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   ATVIXA FINAL ADMIN WHITE + CANDY RED FIX
   ========================================================== */

.table-card {
    background: #FFFFFF !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
    box-shadow: 0 8px 24px rgba(20, 24, 30, 0.06) !important;
}

.summary-box {
    background: #FFFFFF !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
}

.table-card table,
.table-card thead,
.table-card tbody,
.table-card tr,
.table-card td {
    background: #FFFFFF !important;
    color: var(--text-main) !important;
}

.table-card th {
    background: #F6F7F9 !important;
    color: var(--text-main) !important;
}

.auth-card select,
.auth-card input,
.admin-card select,
.admin-card input,
.summary-box select,
.summary-box input {
    background: #FFFFFF !important;
    color: var(--text-main) !important;
    border: 1px solid #CDD2D8 !important;
}

select option {
    background: #FFFFFF !important;
    color: var(--text-main) !important;
}

.table-card button,
.table-card .button-link,
.auth-card button,
.admin-card button {
    background: var(--atvixa-red) !important;
    color: #FFFFFF !important;
    border: 1px solid var(--atvixa-red) !important;
}

.table-card button:hover,
.table-card .button-link:hover,
.auth-card button:hover,
.admin-card button:hover {
    background: var(--atvixa-red-dark) !important;
    border-color: var(--atvixa-red-dark) !important;
}


/* ==========================================================
   ATVIXA USERS / SEATS
   ========================================================== */

.users-layout {
    align-items: start;
}

.user-card {
    margin-bottom: 14px;
}

.user-status {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.active-user {
    background: #ECFDF3;
    color: #147A45;
    border: 1px solid #B7E5C9;
}

.inactive-user {
    background: #FFF0F2;
    color: #A82431;
    border: 1px solid #F2AAB0;
}

.password-reset-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1 1 360px;
}

.password-reset-row input {
    min-width: 180px;
}

.password-reset-row button {
    white-space: nowrap;
}

@media (max-width: 720px) {
    .password-reset-row {
        flex-direction: column;
        align-items: stretch;
    }
}


.inline-action-form {
    margin: 0;
    display: inline-block;
}

.inline-action-form button {
    margin-top: 0 !important;
}


/* ==========================================================
   ATVIXA CUSTOM PRODUCT PICTURES
   ========================================================== */

.picture-edit-box {
    margin-top: 18px;
    padding: 14px;
    background: #FFF7F8;
    border: 1px solid #F2C4C9;
    border-radius: 10px;
}

.picture-edit-box > div:first-child {
    margin-bottom: 10px;
}

.picture-edit-box > div:first-child strong,
.picture-edit-box > div:first-child span {
    display: block;
}

.picture-upload-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.picture-upload-form input[type="file"] {
    flex: 1 1 280px;
    background: #FFFFFF !important;
}

.picture-upload-form button,
.picture-edit-box form button {
    margin-top: 0 !important;
}

@media (max-width: 720px) {
    .picture-upload-form {
        flex-direction: column;
        align-items: stretch;
    }
}


/* ==========================================================
   ATVIXA REPRICER - PHASE 1
   ========================================================== */

.repricer-toolbar {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(20, 24, 30, 0.05);
}

.repricer-filter-form {
    display: grid;
    grid-template-columns: 220px 180px 1fr auto;
    gap: 12px;
    align-items: end;
}

.repricer-filter-form label {
    margin-top: 0;
}

.repricer-search-button button {
    margin-top: 0;
    min-height: 45px;
}

.repricer-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.repricer-table-card {
    padding: 0 !important;
    overflow: auto;
}

.repricer-table {
    min-width: 1050px;
}

.repricer-product-cell {
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.repricer-product-cell img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 7px;
}

.repricer-product-cell strong,
.repricer-product-cell span {
    display: block;
}

.repricer-product-cell span {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}

.money-cell {
    white-space: nowrap;
    font-weight: 700;
}

.empty-table-cell {
    text-align: center;
    padding: 30px !important;
    color: var(--text-muted) !important;
}

@media (max-width: 800px) {
    .repricer-filter-form,
    .repricer-summary {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   ATVIXA REPRICER TOOLBAR FINAL OVERRIDE
   ========================================================== */
.repricer-filter-form {
    display: grid !important;
    grid-template-columns: 220px 180px minmax(320px, 1fr) auto !important;
    gap: 12px !important;
    align-items: end !important;
}

.repricer-filter-form label {
    margin-top: 0 !important;
}

.repricer-search-button button {
    margin-top: 0 !important;
    min-height: 45px !important;
}

@media (max-width: 900px) {
    .repricer-filter-form {
        grid-template-columns: 1fr !important;
    }
}


/* Repricer product-title link */
.repricer-title-link {
    display: block;
    color: #20242A !important;
    font-weight: 750;
    text-decoration: none;
    line-height: 1.3;
}

.repricer-title-link:hover {
    color: var(--atvixa-red) !important;
    text-decoration: underline;
}


/* ==========================================================
   ATVIXA REPRICER PHASE 2 - SAFE SIMULATION
   ========================================================== */

.minimum-price-form {
    margin: 0;
}

.minimum-price-control {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 185px;
}

.minimum-price-control > span {
    font-weight: 700;
}

.minimum-price-control input {
    width: 82px !important;
    min-width: 82px !important;
    padding: 8px !important;
    margin: 0 !important;
}

.minimum-price-control button {
    padding: 8px 10px !important;
    margin: 0 !important;
    min-height: auto !important;
    font-size: 12px;
}

.sim-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.sim-badge.change {
    background: #FFF1F2;
    color: #D92D3A;
    border: 1px solid #F4BCC2;
}

.sim-badge.safe {
    background: #ECFDF3;
    color: #067647;
    border: 1px solid #ABEFC6;
}

.sim-badge.neutral {
    background: #F2F4F7;
    color: #475467;
    border: 1px solid #D0D5DD;
}

.sim-reason {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    white-space: nowrap;
}

.repricer-table {
    min-width: 1320px !important;
}


/* ==========================================================
   ATVIXA REPRICER PLAN LIMITS
   ========================================================== */

.repricer-plan-bar {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(20, 24, 30, 0.04);
}

.repricer-plan-bar strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

.repricer-progress {
    height: 8px;
    background: #F1F2F4;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 10px;
}

.repricer-progress-fill {
    height: 100%;
    background: var(--atvixa-red);
}

.repricer-admin-grid {
    margin-top: 8px;
}

.repricer-unlimited-box {
    padding-top: 18px;
}


/* ==========================================================
   ATVIXA QUANTITY PRICING
   ========================================================== */
.repricer-price-card {
    margin: 14px 0 18px;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #FFF7F8;
}

.repricer-price-card strong,
.repricer-price-card span,
.repricer-plan-price {
    display: block;
}

.repricer-price-card strong {
    font-size: 17px;
    margin-bottom: 5px;
}

.repricer-price-card span,
.repricer-plan-price {
    color: var(--text-muted);
    margin-top: 4px;
}

.automatic-plan-limits{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 18px}
.automatic-plan-limits>div{background:#fff;border:1px solid var(--border);border-radius:12px;padding:14px 16px}
.automatic-plan-limits strong{display:block;margin-top:5px;font-size:18px}
.billing-line{display:flex!important;justify-content:space-between;gap:18px;padding:7px 0;border-bottom:1px solid var(--border)}
.billing-line span{margin:0!important}.billing-total{font-size:17px;border-bottom:0;padding-top:11px}.vat-note{font-weight:700;margin-top:10px!important}
@media(max-width:700px){.automatic-plan-limits{grid-template-columns:1fr}}


/* ==========================================================
   ATVIXA V3 - FREQUENCY / BILLING UI
   ========================================================== */

.freq-admin-grid,
.frequency-summary {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin: 18px 0 !important;
}

.freq-admin-grid label,
.frequency-summary > div {
    background: #FFFFFF !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    padding: 18px !important;
    box-shadow: 0 6px 18px rgba(20, 24, 30, 0.04) !important;
}

.freq-admin-grid label {
    margin: 0 !important;
    display: block !important;
    font-weight: 750 !important;
}

.freq-admin-grid input {
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 10px !important;
    padding: 12px 13px !important;
}

.frequency-summary > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    border-top: 4px solid var(--atvixa-red) !important;
}

.frequency-summary b {
    font-size: 16px !important;
}

.frequency-summary span {
    color: var(--text-muted) !important;
    font-size: 13px !important;
}

.frequency-summary strong {
    font-size: 23px !important;
    margin-top: 4px !important;
}

.price-summary {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 22px 0 !important;
}

.price-summary > div {
    background: #FFF7F8 !important;
    border: 1px solid #F2D4D7 !important;
    border-radius: 12px !important;
    padding: 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
}

.price-summary b {
    white-space: nowrap !important;
    font-size: 17px !important;
}

.repricer-controls {
    display: grid !important;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto !important;
    gap: 12px !important;
    align-items: end !important;
    margin-top: 14px !important;
}

.repricer-controls label {
    margin: 0 !important;
}

.repricer-controls input,
.repricer-controls select {
    width: 100% !important;
    margin-top: 6px !important;
}

.repricer-controls button {
    margin-top: 0 !important;
    min-height: 45px !important;
}

.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 42px 24px !important;
}

.container > h1 {
    margin-bottom: 22px !important;
}

.container > .card,
.container form.card {
    background: #FFFFFF !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 8px 24px rgba(20, 24, 30, 0.06) !important;
    margin-bottom: 18px !important;
}

.container form.card > h2 {
    margin-top: 24px !important;
}

.container form.card > h2:first-child {
    margin-top: 0 !important;
}

.container form.card > select {
    margin-bottom: 8px !important;
}

.container form.card > label {
    margin-top: 14px !important;
}

.repricer-offer,
.repricer-list > .card {
    background: #FFFFFF !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    padding: 20px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 6px 18px rgba(20, 24, 30, 0.04) !important;
}

.repricer-offer h3,
.repricer-list h3 {
    margin: 0 0 8px !important;
}

.repricer-offer h3 a,
.repricer-list h3 a {
    color: var(--text-main) !important;
    text-decoration: none !important;
}

.repricer-offer h3 a:hover,
.repricer-list h3 a:hover {
    color: var(--atvixa-red) !important;
    text-decoration: underline !important;
}

@media (max-width: 800px) {
    .freq-admin-grid,
    .frequency-summary,
    .price-summary,
    .repricer-controls {
        grid-template-columns: 1fr !important;
    }

    .price-summary > div {
        align-items: flex-start !important;
        flex-direction: column !important;
    }
}

/* ==========================================================
   ATVIXA DEDICATED ADMIN LAYOUT - FINAL FIX
   ========================================================== */

.admin-topbar {
    min-height: 72px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    padding: 0 32px !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--border) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
}

.admin-brand {
    color: var(--atvixa-red) !important;
    text-decoration: none !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    letter-spacing: .5px !important;
}

.admin-brand span {
    color: var(--text-main) !important;
    font-size: 11px !important;
    letter-spacing: 1.3px !important;
    margin-left: 7px !important;
}

.admin-nav {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.admin-nav > a {
    color: var(--text-main) !important;
    text-decoration: none !important;
    font-weight: 750 !important;
}

.admin-nav form {
    margin: 0 !important;
}

.admin-logout {
    margin: 0 !important;
    border: 1px solid var(--atvixa-red) !important;
    background: #FFFFFF !important;
    color: var(--atvixa-red) !important;
    border-radius: 9px !important;
    padding: 10px 15px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
}

.admin-logout:hover {
    background: var(--atvixa-red-soft) !important;
}

.admin-page-shell {
    min-height: calc(100vh - 72px) !important;
    background: var(--page-bg) !important;
}

.admin-content {
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 42px 24px 70px !important;
}

.admin-page-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 20px !important;
    margin-bottom: 24px !important;
}

.admin-page-head h1 {
    margin: 7px 0 5px !important;
    font-size: 34px !important;
}

.admin-page-head p,
.admin-muted {
    color: var(--text-muted) !important;
}

.admin-eyebrow {
    color: var(--atvixa-red) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: 1px !important;
}

.admin-back-btn,
.admin-manage-btn {
    display: inline-block !important;
    text-decoration: none !important;
    border: 1px solid var(--atvixa-red) !important;
    color: var(--atvixa-red) !important;
    background: #FFFFFF !important;
    border-radius: 9px !important;
    padding: 10px 15px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

.admin-back-btn:hover,
.admin-manage-btn:hover {
    background: var(--atvixa-red-soft) !important;
}

.admin-main-card,
.admin-customers-card {
    background: #FFFFFF !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 8px 24px rgba(20, 24, 30, 0.06) !important;
}

.admin-section {
    margin-bottom: 28px !important;
}

.admin-section h2 {
    margin: 0 0 13px !important;
    font-size: 24px !important;
}

.admin-section > select {
    width: 100% !important;
    margin-top: 6px !important;
}

.admin-checks {
    display: grid !important;
    gap: 12px !important;
}

.admin-checks label {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.admin-trial {
    display: flex !important;
    justify-content: space-between !important;
    gap: 20px !important;
    background: #FFF7F8 !important;
    border: 1px solid #F2C4C9 !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    margin: 18px 0 !important;
}

.admin-save-btn {
    margin-top: 8px !important;
    border: 1px solid var(--atvixa-red) !important;
    background: var(--atvixa-red) !important;
    color: #FFFFFF !important;
    border-radius: 9px !important;
    padding: 12px 18px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
}

.admin-save-btn:hover {
    background: var(--atvixa-red-dark) !important;
}

.admin-customer-table-wrap {
    overflow-x: auto !important;
}

.admin-customer-table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.admin-customer-table th,
.admin-customer-table td {
    padding: 15px 12px !important;
    border-bottom: 1px solid var(--border) !important;
    text-align: left !important;
}

.admin-status {
    display: inline-block !important;
    padding: 6px 10px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.admin-status.active {
    background: #ECFDF3 !important;
    color: #147A45 !important;
}

.admin-status.inactive {
    background: #FFF0F2 !important;
    color: #A82431 !important;
}

@media (max-width: 760px) {
    .admin-topbar {
        padding: 0 16px !important;
    }

    .admin-brand span {
        display: none !important;
    }

    .admin-content {
        padding: 28px 16px 50px !important;
    }

    .admin-page-head {
        flex-direction: column !important;
    }

    .admin-trial {
        flex-direction: column !important;
    }
}

/* ATVIXA V4 - CUSTOMER SUBSCRIPTION PAGE */
.subscription-page{max-width:1180px;margin:0 auto;padding:42px 24px 70px}
.subscription-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}
.subscription-head h1{margin:8px 0}.subscription-head p{color:var(--text-muted);max-width:720px}
.trial-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff7f8;border:1px solid #f2c4c9;border-radius:14px;padding:16px 18px;margin:0 0 20px}
.trial-banner>div{display:grid;gap:3px}.trial-banner a{font-weight:800;color:var(--atvixa-red)}
.subscription-builder{background:#fff;border:1px solid var(--border);border-radius:18px;padding:26px;box-shadow:0 8px 24px rgba(20,24,30,.06)}
.billing-choice{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:22px;padding-bottom:20px;border-bottom:1px solid var(--border)}
.billing-choice>span{font-weight:850;margin-right:6px}.billing-choice label{margin:0;display:flex;align-items:center;gap:7px}
.frequency-builder{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.frequency-builder article{border:1px solid var(--border);border-radius:15px;padding:20px;display:flex;flex-direction:column;min-height:240px}
.frequency-builder article.priority-card{border-top:4px solid var(--atvixa-red)}
.freq-tag{font-size:11px;font-weight:900;letter-spacing:1px;color:var(--atvixa-red)}
.frequency-builder h2{margin:8px 0 4px}.frequency-builder strong{font-size:30px}.frequency-builder small{color:var(--text-muted);margin-bottom:20px}
.frequency-builder label{margin-top:auto}.frequency-builder input{width:100%;box-sizing:border-box;margin-top:7px}
.subscription-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px}
.subscription-summary>div{background:#f7f8fa;border:1px solid var(--border);border-radius:12px;padding:15px;display:flex;justify-content:space-between;gap:12px}
.subscription-summary .summary-total{background:#fff7f8;border-color:#f2c4c9}.subscription-summary b{white-space:nowrap}
.subscription-note{margin-top:20px;background:#f7f8fa;border-radius:12px;padding:16px}.subscription-note p{margin:5px 0 0;color:var(--text-muted)}
@media(max-width:800px){.subscription-head{flex-direction:column}.frequency-builder,.subscription-summary{grid-template-columns:1fr}.trial-banner{align-items:flex-start;flex-direction:column}}

/* ==========================================================
   ATVIXA V4 - CUSTOMER / PUBLIC HEADER + FOOTER
   ========================================================== */

.site-header {
    min-height: 72px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    padding: 0 32px !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: 0 1px 0 rgba(20, 24, 30, 0.02) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
}

.site-header .brand {
    color: var(--atvixa-red) !important;
    text-decoration: none !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    letter-spacing: .7px !important;
    line-height: 1 !important;
}

.site-nav {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.site-nav a {
    color: var(--text-main) !important;
    text-decoration: none !important;
    font-weight: 750 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
}

.site-nav a:hover {
    color: var(--atvixa-red) !important;
}

.site-nav .nav-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0 16px !important;
    border-radius: 9px !important;
    color: #FFFFFF !important;
    background: var(--atvixa-red) !important;
    border: 1px solid var(--atvixa-red) !important;
}

.site-nav .nav-cta:hover {
    color: #FFFFFF !important;
    background: var(--atvixa-red-dark) !important;
    border-color: var(--atvixa-red-dark) !important;
}

.public-footer {
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 24px !important;
    border-top: 1px solid var(--border) !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 20px !important;
    color: var(--text-muted) !important;
    font-size: 13px !important;
}

.public-footer > div:first-child {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
}

.public-footer strong {
    color: var(--text-main) !important;
}

@media (max-width: 760px) {
    .site-header {
        min-height: auto !important;
        padding: 16px !important;
        align-items: flex-start !important;
    }

    .site-nav {
        gap: 11px !important;
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
    }

    .public-footer {
        flex-direction: column !important;
    }
}

/* ==========================================================
   ATVIXA CUSTOMER DASHBOARD - FINAL RED PREMIUM LAYOUT
   ========================================================== */

.customer-site-header{
  min-height:74px !important;
  padding:0 48px !important;
  background:#fff !important;
  border-bottom:1px solid #e6e8ec !important;
  box-shadow:0 2px 10px rgba(20,24,30,.04) !important;
}

.customer-site-header .brand{
  font-size:28px !important;
  font-weight:900 !important;
  color:#d6202f !important;
  letter-spacing:.5px !important;
}

.customer-nav{
  gap:34px !important;
  margin-left:auto !important;
}

.customer-nav-link{
  position:relative !important;
  color:#121820 !important;
  font-size:14px !important;
  font-weight:800 !important;
  letter-spacing:.2px !important;
  padding:27px 0 24px !important;
  text-decoration:none !important;
}

.customer-nav-link.active{
  color:#b10f1b !important;
}

.customer-nav-link.active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:3px;
  border-radius:999px;
  background:#d6202f;
}

.customer-user-chip{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  color:#9e0f19 !important;
  font-weight:900 !important;
  margin-left:8px !important;
}

.customer-user-icon{
  width:34px !important;
  height:34px !important;
  border:2px solid #c91523 !important;
  border-radius:50% !important;
  display:grid !important;
  place-items:center !important;
  font-size:21px !important;
  line-height:1 !important;
}

.customer-user-name{
  color:#9e0f19 !important;
  letter-spacing:.4px !important;
}

.customer-dashboard{
  max-width:1440px !important;
  margin:0 auto !important;
  padding:54px 54px 30px !important;
}

.customer-dashboard-head{
  display:flex !important;
  justify-content:space-between !important;
  align-items:flex-start !important;
  gap:30px !important;
  margin:0 12px 42px !important;
}

.customer-business-name{
  margin:0 0 16px !important;
  padding-left:14px !important;
  color:#8f0c16 !important;
  font-size:38px !important;
  font-weight:900 !important;
  letter-spacing:.4px !important;
  text-transform:uppercase !important;
}

.customer-login-line{
  margin:0 !important;
  padding-left:14px !important;
  color:#667085 !important;
  font-size:16px !important;
}

.customer-logout-form{
  margin:0 !important;
}

.customer-logout-btn{
  margin:0 !important;
  min-width:134px !important;
  min-height:54px !important;
  background:#fff !important;
  color:#c91523 !important;
  border:1px solid #ef4a56 !important;
  border-radius:10px !important;
  font-weight:800 !important;
}

.customer-logout-btn:hover{
  background:#fff3f4 !important;
}

.customer-stat-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:22px !important;
  margin:0 0 24px !important;
}

.customer-stat-card{
  min-height:176px !important;
  display:flex !important;
  align-items:flex-start !important;
  gap:18px !important;
  padding:25px 22px !important;
  background:#fff !important;
  border:1px solid #e9ebef !important;
  border-radius:16px !important;
  box-shadow:0 10px 28px rgba(20,24,30,.07) !important;
}

.customer-stat-icon{
  flex:0 0 60px !important;
  width:60px !important;
  height:60px !important;
  border-radius:50% !important;
  display:grid !important;
  place-items:center !important;
  background:#fff0f2 !important;
  color:#cf1524 !important;
  font-size:27px !important;
  font-weight:900 !important;
}

.customer-stat-card>div:last-child{
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  gap:8px !important;
}

.customer-stat-label{
  color:#cb1524 !important;
  font-size:13px !important;
  font-weight:900 !important;
  letter-spacing:.45px !important;
}

.customer-stat-card strong{
  color:#121820 !important;
  font-size:25px !important;
  line-height:1.15 !important;
}

.customer-stat-good{
  color:#16a34a !important;
  font-size:15px !important;
}

.customer-stat-muted{
  color:#667085 !important;
  font-size:15px !important;
}

.customer-tool-card{
  background:#fff !important;
  border:1px solid #e8eaee !important;
  border-radius:16px !important;
  padding:34px 28px !important;
  box-shadow:0 10px 28px rgba(20,24,30,.06) !important;
}

.customer-tool-card h2{
  margin:0 0 16px !important;
  font-size:29px !important;
  color:#121820 !important;
}

.customer-tool-card p{
  margin:0 0 28px !important;
  color:#667085 !important;
  font-size:16px !important;
}

.customer-action-row{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:22px !important;
}

.customer-outline-btn,
.customer-primary-btn{
  min-height:54px !important;
  padding:0 25px !important;
  border-radius:9px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-decoration:none !important;
  font-weight:850 !important;
  font-size:15px !important;
  white-space:nowrap !important;
}

.customer-outline-btn{
  background:#fff !important;
  color:#c91523 !important;
  border:1px solid #ef4a56 !important;
}

.customer-outline-btn:hover{
  background:#fff3f4 !important;
  color:#a40f1a !important;
}

.customer-outline-btn.wide{
  padding-left:28px !important;
  padding-right:28px !important;
}

.customer-primary-btn{
  background:linear-gradient(180deg,#ef3543 0%,#dd1828 100%) !important;
  color:#fff !important;
  border:1px solid #dd1828 !important;
  box-shadow:0 8px 18px rgba(221,24,40,.16) !important;
}

.customer-primary-btn:hover{
  color:#fff !important;
  background:#c91523 !important;
}

.customer-inline-form{
  margin:0 !important;
}

.customer-inline-form .button-reset{
  margin:0 !important;
  font-family:inherit !important;
  cursor:pointer !important;
}

.customer-footer{
  margin-top:10px !important;
  max-width:1240px !important;
  padding:30px 24px 50px !important;
}

.customer-footer strong{
  color:#c91523 !important;
}

@media(max-width:1150px){
  .customer-nav{gap:18px !important}
  .customer-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}

@media(max-width:780px){
  .customer-site-header{
    padding:15px 20px !important;
    align-items:flex-start !important;
  }

  .customer-nav{
    gap:12px !important;
    flex-wrap:wrap !important;
    justify-content:flex-end !important;
  }

  .customer-nav-link{
    padding:8px 0 !important;
  }

  .customer-nav-link.active::after{
    bottom:-3px !important;
  }

  .customer-dashboard{
    padding:32px 18px !important;
  }

  .customer-dashboard-head{
    flex-direction:column !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }

  .customer-business-name,
  .customer-login-line{
    padding-left:10px !important;
  }

  .customer-stat-grid{
    grid-template-columns:1fr !important;
  }

  .customer-action-row{
    align-items:stretch !important;
    flex-direction:column !important;
  }

  .customer-outline-btn,
  .customer-primary-btn,
  .customer-inline-form,
  .customer-inline-form button{
    width:100% !important;
  }
}

/* ==========================================================
   ATVIXA V6 - ANALYTICS
   ========================================================== */
.analytics-page{max-width:1440px;margin:0 auto;padding:48px 54px 70px}
.analytics-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:28px}
.analytics-kicker{color:#c91523;font-size:12px;font-weight:900;letter-spacing:1px}
.analytics-head h1{margin:7px 0 7px!important;color:#8f0c16!important;font-size:36px!important}
.analytics-head p{margin:0;color:#667085!important}
.analytics-range{display:flex;gap:8px;background:#fff;border:1px solid var(--border);border-radius:11px;padding:5px}
.analytics-range a{padding:10px 14px;border-radius:8px;text-decoration:none!important;color:#475467!important;font-weight:800;font-size:13px}
.analytics-range a.active{background:#d6202f;color:#fff!important}
.analytics-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:20px}
.analytics-stats article{background:#fff;border:1px solid #e8eaee;border-radius:15px;padding:22px;box-shadow:0 8px 24px rgba(20,24,30,.055);display:flex;flex-direction:column;gap:8px}
.analytics-stats span{color:#c91523;font-size:12px;font-weight:900;letter-spacing:.7px}
.analytics-stats strong{font-size:27px!important;color:#121820!important}
.analytics-stats small{color:#667085}
.analytics-card{background:#fff;border:1px solid #e8eaee;border-radius:16px;padding:24px;box-shadow:0 8px 24px rgba(20,24,30,.055)}
.analytics-chart-card{margin-bottom:20px}
.analytics-card-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:18px}
.analytics-card-head h2{margin:0 0 5px!important;font-size:22px!important}
.analytics-card-head p{margin:0;color:#667085!important;font-size:13px}
.analytics-card-head>span{font-size:11px;font-weight:900;color:#c91523;background:#fff0f2;border-radius:999px;padding:7px 10px}
.sales-chart-wrap{width:100%;overflow:hidden}
.sales-chart-wrap canvas{display:block;width:100%;height:330px}
.analytics-two-col{display:grid;grid-template-columns:minmax(0,2fr) minmax(320px,1fr);gap:20px;align-items:start}
.analytics-side-stack{display:grid;gap:20px}
.analytics-table-wrap{overflow-x:auto}
.analytics-table{width:100%;border-collapse:collapse}
.analytics-table th,.analytics-table td{padding:13px 10px!important;border-bottom:1px solid #eef0f2!important}
.analytics-table td strong{display:block;font-size:14px!important}
.analytics-table td small{display:block;color:#667085;margin-top:4px}
.analytics-breakdown-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #eef0f2}
.analytics-breakdown-row:last-child{border-bottom:0}
.analytics-breakdown-row span{font-weight:750}
.analytics-breakdown-row b{color:#667085!important;font-size:12px}
.analytics-breakdown-row strong{color:#c91523!important;font-size:14px!important}
.no-vat-summary{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.admin-price-no-vat{grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media(max-width:1050px){.analytics-stats{grid-template-columns:repeat(2,1fr)}.analytics-two-col{grid-template-columns:1fr}.customer-nav{gap:14px!important}}
@media(max-width:760px){.analytics-page{padding:30px 16px 50px}.analytics-head{flex-direction:column}.analytics-stats{grid-template-columns:1fr}.analytics-range{width:100%}.analytics-range a{flex:1;text-align:center}.no-vat-summary{grid-template-columns:1fr!important}}

/* ATVIXA V6.1 - TOP 10 PRODUCT IMAGE + TITLE */
.top-product-cell{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:300px;
}
.top-product-image-wrap{
  flex:0 0 58px;
  width:58px;
  height:58px;
  border:1px solid #e7e9ee;
  border-radius:10px;
  background:#fff;
  display:grid;
  place-items:center;
  overflow:hidden;
}
.top-product-image{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.top-product-image-placeholder{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  padding:5px;
  background:#f6f7f9;
  color:#98a2b3;
  font-size:9px;
  font-weight:800;
  text-align:center;
}
.top-product-copy{
  min-width:0;
}
.top-product-copy strong{
  display:block;
  color:#121820!important;
  font-size:14px!important;
  line-height:1.3;
  margin-bottom:5px;
}
.top-product-copy small{
  display:block;
  color:#667085!important;
  font-size:12px;
}

/* ==========================================================
   ATVIXA V6.2 - COMPACT REPRICER TABLE
   ========================================================== */

.compact-repricer{
  max-width:1440px;
  margin:0 auto;
  padding:34px 44px 60px;
}

.repricer-page-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}

.repricer-page-head h1{
  margin:4px 0 4px!important;
  font-size:31px!important;
}

.repricer-page-head p{
  margin:0!important;
  color:#667085!important;
}

.repricer-kicker{
  color:#c91523;
  font-size:11px;
  font-weight:900;
  letter-spacing:1px;
}

.compact-frequency-summary{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  margin-bottom:14px!important;
}

.compact-frequency-summary>div{
  min-height:auto!important;
  padding:12px 16px!important;
  border-radius:12px!important;
}

.repricer-filter-bar{
  display:grid;
  grid-template-columns:220px 190px minmax(260px,1fr) 130px;
  gap:10px;
  align-items:center;
  background:#fff;
  border:1px solid #e6e8ec;
  border-radius:13px;
  padding:12px;
  margin-bottom:14px;
  box-shadow:0 5px 18px rgba(20,24,30,.04);
}

.repricer-filter-bar select,
.repricer-filter-bar input,
.repricer-filter-bar button{
  height:40px!important;
  min-height:40px!important;
  margin:0!important;
}

.repricer-table-shell{
  background:#fff;
  border:1px solid #e6e8ec;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 7px 24px rgba(20,24,30,.05);
}

.repricer-table-toolbar{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:8px 14px;
  border-bottom:1px solid #eceef1;
  background:#fff;
}

.repricer-table-toolbar>div:first-child{
  display:flex;
  align-items:center;
  gap:12px;
}

.repricer-table-toolbar b{
  font-size:13px;
}

.repricer-table-toolbar span{
  color:#667085;
  font-size:12px;
}

.bottom-toolbar{
  border-top:1px solid #eceef1;
  border-bottom:0;
}

.repricer-table-wrap{
  overflow-x:auto;
}

.repricer-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}

.repricer-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#f6f7f9;
  color:#344054;
  font-size:11px;
  font-weight:900;
  letter-spacing:.35px;
  text-transform:uppercase;
  padding:8px 10px!important;
  border-bottom:1px solid #dde1e6!important;
}

.repricer-table tbody td{
  padding:6px 10px!important;
  border-bottom:1px solid #edf0f2!important;
  vertical-align:middle!important;
  font-size:12px!important;
  line-height:1.2!important;
}

.repricer-table tbody tr:hover{
  background:#fffafa;
}

.repricer-table .col-product{
  width:34%;
}

.repricer-table th:nth-child(2){
  width:13%;
}

.repricer-table th:nth-child(3){
  width:8%;
}

.repricer-table th:nth-child(4){
  width:13%;
}

.repricer-table th:nth-child(5){
  width:22%;
}

.repricer-table .col-action{
  width:10%;
}

.repricer-product-cell a,
.repricer-product-cell>span{
  display:block;
  color:#c91523!important;
  text-decoration:none!important;
  font-weight:800!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}

.repricer-product-cell a:hover{
  text-decoration:underline!important;
}

.repricer-product-cell small{
  display:block;
  margin-top:2px;
  color:#98a2b3!important;
  font-size:10px!important;
}

.repricer-sku{
  color:#475467;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.repricer-current{
  font-weight:850;
  color:#121820;
  white-space:nowrap;
}

.repricer-inline-form-cell{
  padding:4px 8px!important;
}

.repricer-inline-row{
  display:grid;
  grid-template-columns:minmax(105px,130px) minmax(155px,1fr) 70px;
  gap:7px;
  align-items:center;
  margin:0!important;
}

.repricer-inline-row input,
.repricer-inline-row select,
.repricer-inline-row button{
  height:32px!important;
  min-height:32px!important;
  margin:0!important;
  padding:4px 8px!important;
  border-radius:7px!important;
  font-size:11px!important;
}

.repricer-save-btn{
  background:#ef3340!important;
  color:#fff!important;
  border:1px solid #ef3340!important;
  font-weight:850!important;
}

.repricer-save-btn:hover{
  background:#cf1725!important;
}

.repricer-pagination{
  display:flex;
  align-items:center;
  gap:8px;
}

.repricer-pagination button{
  width:30px!important;
  height:30px!important;
  min-height:30px!important;
  padding:0!important;
  margin:0!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#c91523!important;
  border:1px solid #ef4a56!important;
  font-size:17px!important;
  font-weight:850!important;
}

.repricer-pagination button:disabled{
  opacity:.35!important;
}

.repricer-pagination span{
  min-width:90px;
  text-align:center;
  color:#344054!important;
  font-weight:750;
}

.repricer-empty-state{
  padding:30px;
  background:#fff;
  border:1px solid #e6e8ec;
  border-radius:13px;
  color:#667085;
}

@media(max-width:1050px){
  .repricer-filter-bar{
    grid-template-columns:1fr 1fr;
  }
  .compact-frequency-summary{
    grid-template-columns:1fr!important;
  }
  .repricer-table{
    min-width:1050px;
  }
}

@media(max-width:700px){
  .compact-repricer{
    padding:25px 12px 45px;
  }
  .repricer-page-head{
    flex-direction:column;
  }
  .repricer-filter-bar{
    grid-template-columns:1fr;
  }
}

/* ==========================================================
   ATVIXA V6.4 - ANALYTICS ENRICHMENT + COMPETITION DETECTION
   ========================================================== */
.competition-toolbar{
  display:grid;
  grid-template-columns:minmax(320px,1fr) 330px 170px;
  gap:12px;
  align-items:center;
  background:#fff;
  border:1px solid #e6e8ec;
  border-radius:13px;
  padding:11px 13px;
  margin:0 0 12px;
  box-shadow:0 5px 18px rgba(20,24,30,.04);
}
.competition-toolbar-copy{display:flex;flex-direction:column;gap:3px}
.competition-toolbar-copy b{font-size:13px;color:#121820}
.competition-toolbar-copy span{font-size:11px;color:#667085}
.competition-toolbar select{height:38px!important;margin:0!important}
.repricer-sort-btn{height:38px!important;min-height:38px!important;padding:0 12px!important;font-size:11px!important}
.repricer-competition-table{min-width:1320px}
.repricer-competition-table .col-product{width:25%}
.repricer-competition-table th:nth-child(2){width:11%}
.repricer-competition-table th:nth-child(3){width:7%}
.repricer-competition-table th:nth-child(4){width:8%}
.repricer-competition-table th:nth-child(5){width:11%}
.repricer-competition-table th:nth-child(6){width:10%}
.repricer-competition-table th:nth-child(7){width:14%}
.repricer-competition-table th:nth-child(8){width:7%}
.repricer-competition-table th:nth-child(9){width:7%}
.repricer-benchmark{font-weight:800;color:#344054;white-space:nowrap}
.competition-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:3px 8px;
  border-radius:999px;
  font-size:10px;
  font-weight:900;
  white-space:nowrap;
}
.competition-above{background:#fff0f1;color:#b42318;border:1px solid #ffc7cc}
.competition-at{background:#eef8f1;color:#067647;border:1px solid #b7e4c4}
.competition-below{background:#eef6ff;color:#175cd3;border:1px solid #bfd7ff}
.competition-none{background:#f2f4f7;color:#667085;border:1px solid #e4e7ec}
.repricer-inline-row-wide{grid-template-columns:minmax(95px,120px) minmax(145px,1fr) 62px 68px!important}
.repricer-status-badge{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  height:26px;
  border-radius:999px;
  font-size:9px;
  font-weight:900;
}
.repricer-status-badge.is-active{background:#ecfdf3;color:#067647;border:1px solid #abefc6}
.repricer-status-badge.is-off{background:#f2f4f7;color:#667085;border:1px solid #e4e7ec}
@media(max-width:1050px){
  .competition-toolbar{grid-template-columns:1fr}
}

/* ==========================================================
   ATVIXA PUBLIC HOMEPAGE
   ========================================================== */

.public-section {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 60px;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-copy {
    max-width: 650px;
}

.hero-kicker {
    display: inline-block;
    color: #d6202f;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.4px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 58px;
    line-height: 1.03;
    letter-spacing: -1.7px;
    margin: 0 0 24px;
    color: #121820;
}

.hero-copy > p {
    font-size: 18px;
    line-height: 1.7;
    color: #667085 !important;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 30px;
    align-items: center;
}

.button {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 800;
}

.button.primary {
    background: #e63946;
    border: 1px solid #e63946;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(230, 57, 70, .17);
}

.button.primary:hover {
    background: #c92f3b;
}

.button.secondary {
    background: #ffffff;
    border: 1px solid #e63946;
    color: #e63946 !important;
}

.button.secondary:hover {
    background: #fff0f2;
}

.hero-note {
    margin-top: 18px !important;
    font-size: 14px !important;
}

.hero-panel {
    display: flex;
    justify-content: center;
}

.mini-window {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 24px 60px rgba(20, 24, 30, .11);
}

.mini-top {
    display: flex;
    gap: 7px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eeeeee;
}

.mini-top span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e63946;
}

.mini-top span:nth-child(2) {
    opacity: .55;
}

.mini-top span:nth-child(3) {
    opacity: .25;
}

.mini-card {
    margin-top: 16px;
    padding: 18px;
    border-radius: 13px;
    background: #f7f8fa;
    border: 1px solid #eceef1;
}

.mini-card b,
.mini-card span {
    display: block;
}

.mini-card b {
    color: #121820;
    margin-bottom: 6px;
}

.mini-card span {
    color: #667085;
    line-height: 1.5;
}

.mini-card.secure {
    background: #fff5f6;
    border-color: #f5d0d4;
}

.section-block,
.pricing-section,
.security-section,
.final-cta {
    padding-top: 78px;
    padding-bottom: 78px;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 36px;
}

.section-heading > span {
    display: block;
    color: #d6202f;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: 40px;
    line-height: 1.15;
    margin: 0 0 12px;
}

.section-heading p {
    font-size: 16px;
    line-height: 1.6;
}

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

.feature-card {
    background: #ffffff;
    border: 1px solid #e6e8ec;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(20, 24, 30, .06);
}

.feature-number {
    color: #d6202f;
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 28px;
    margin: 0 0 14px;
}

.feature-card p {
    line-height: 1.65;
}

.feature-card ul {
    padding-left: 20px;
    line-height: 1.9;
}

.pricing-section {
    max-width: none;
    background: #ffffff;
    padding-left: max(24px, calc((100% - 1180px) / 2 + 24px));
    padding-right: max(24px, calc((100% - 1180px) / 2 + 24px));
}

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

.price-card {
    background: #ffffff;
    border: 1px solid #e3e6ea;
    border-radius: 17px;
    padding: 28px;
    min-height: 230px;
    display: flex;
    flex-direction: column;
}

.price-card.featured {
    border: 2px solid #e63946;
    box-shadow: 0 14px 35px rgba(230, 57, 70, .10);
}

.price-card > span {
    color: #d6202f;
    font-weight: 900;
}

.price-card > strong {
    font-size: 42px;
    margin-top: 18px;
}

.price-card small {
    color: #667085;
    margin-top: 5px;
}

.price-card hr {
    width: 100%;
    margin: 24px 0;
}

.pricing-example {
    margin-top: 22px;
    padding: 18px 20px;
    background: #fff5f6;
    border: 1px solid #f4ced2;
    border-radius: 12px;
}

.security-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.security-copy h2 {
    font-size: 38px;
    line-height: 1.15;
}

.security-copy p {
    line-height: 1.7;
}

.security-points {
    display: grid;
    gap: 14px;
}

.security-points > div {
    background: #ffffff;
    border: 1px solid #e6e8ec;
    border-radius: 14px;
    padding: 22px;
}

.security-points b,
.security-points span {
    display: block;
}

.security-points b {
    margin-bottom: 7px;
}

.security-points span {
    color: #667085;
    line-height: 1.55;
}

.final-cta {
    text-align: center;
}

.final-cta > span {
    display: block;
    color: #d6202f;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.final-cta h2 {
    font-size: 40px;
    max-width: 720px;
    margin: 15px auto 28px;
}

@media (max-width: 850px) {
    .hero,
    .security-section {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 46px;
    }

    .feature-grid,
    .price-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .section-heading h2,
    .final-cta h2 {
        font-size: 32px;
    }
}
/* ==========================================================
   ATVIXA V6.5 - REPRICER WIDTH / CUT-OFF FIX
   Keeps every control inside the page and gives all 10 table
   columns an explicit width.
   ========================================================== */

.compact-repricer {
  width: 100% !important;
  max-width: 1540px !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
  overflow-x: hidden !important;
}

.compact-frequency-summary,
.repricer-filter-bar,
.competition-toolbar,
.repricer-table-shell {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Top account / status / search bar */
.repricer-filter-bar {
  grid-template-columns: 220px 190px minmax(0, 1fr) 130px !important;
}

.repricer-filter-bar > * {
  min-width: 0 !important;
}

/* Competition row: copy | filter | Needs Action First */
.competition-toolbar {
  grid-template-columns: minmax(0, 1fr) 330px 170px !important;
}

.competition-toolbar > * {
  min-width: 0 !important;
}

.competition-toolbar select,
.repricer-sort-btn {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Never clip the table at the shell edge. */
.repricer-table-shell {
  overflow: visible !important;
}

.repricer-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
}

/* There are TEN columns on the current competition table. */
.repricer-table.repricer-competition-table {
  width: 100% !important;
  min-width: 1220px !important;
  table-layout: fixed !important;
}

.repricer-competition-table th:nth-child(1),
.repricer-competition-table td:nth-child(1) { width: 21% !important; }
.repricer-competition-table th:nth-child(2),
.repricer-competition-table td:nth-child(2) { width: 10% !important; }
.repricer-competition-table th:nth-child(3),
.repricer-competition-table td:nth-child(3) { width: 7% !important; }
.repricer-competition-table th:nth-child(4),
.repricer-competition-table td:nth-child(4) { width: 7% !important; }
.repricer-competition-table th:nth-child(5),
.repricer-competition-table td:nth-child(5) { width: 9% !important; }
.repricer-competition-table th:nth-child(6),
.repricer-competition-table td:nth-child(6) { width: 10% !important; }
.repricer-competition-table th:nth-child(7),
.repricer-competition-table td:nth-child(7) { width: 9% !important; }
.repricer-competition-table th:nth-child(8),
.repricer-competition-table td:nth-child(8) { width: 12% !important; }
.repricer-competition-table th:nth-child(9),
.repricer-competition-table td:nth-child(9) { width: 6% !important; }
.repricer-competition-table th:nth-child(10),
.repricer-competition-table td:nth-child(10) { width: 9% !important; }

/* Product title can truncate cleanly instead of pushing columns. */
.repricer-product-cell,
.repricer-product-cell > div {
  min-width: 0 !important;
  max-width: 100% !important;
}

.repricer-product-cell a,
.repricer-product-cell > span,
.repricer-sku {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: 100% !important;
}

/* Inputs and selects must remain inside their own cells. */
.repricer-competition-table input,
.repricer-competition-table select,
.repricer-competition-table button {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.repricer-competition-table td:nth-child(7) input,
.repricer-competition-table td:nth-child(8) select {
  width: 100% !important;
  min-width: 0 !important;
}

.repricer-status-badge {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 6px !important;
  white-space: nowrap !important;
}

/* Full Activate/Test button instead of a chopped red button. */
.repricer-competition-table td:nth-child(10) button,
.repricer-competition-table .col-action button {
  width: 100% !important;
  min-width: 0 !important;
  height: 32px !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 7px !important;
  font-size: 10px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Keep pagination fully visible. */
.repricer-table-toolbar {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  flex-wrap: wrap !important;
}

.repricer-pagination {
  margin-left: auto !important;
  flex: 0 0 auto !important;
}

/* Safe/test mode strip */
.repricer-safe-banner,
.safe-test-banner,
.test-mode-banner {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

@media (max-width: 1320px) {
  .compact-repricer {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .competition-toolbar {
    grid-template-columns: minmax(0, 1fr) 270px 155px !important;
  }
}

@media (max-width: 1050px) {
  .repricer-filter-bar,
  .competition-toolbar {
    grid-template-columns: 1fr !important;
  }

  .repricer-table.repricer-competition-table {
    min-width: 1220px !important;
  }
}