* {
    box-sizing: border-box;
}
#faq,
#videos {
    scroll-margin-top: 80px;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;
    color: #123246;
    background: #fff;
}

.mobile-menu-toggle {
    display: none;
}

a { color: #116f86; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: auto; }
.narrow { width: min(620px, calc(100% - 40px)); margin: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    border-bottom: 0;
    background: #123f5b;
    box-shadow: 0 4px 18px rgba(18, 50, 70, .12);
}

.nav { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    color: #fff;
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
}

.brand-tagline {
    color: #c7dce5;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.nav nav { display: flex; gap: 22px; align-items: center; }

.nav nav > a {
    color: #e9f3f7;
    font-weight: 650;
}

.nav nav > a:hover {
    color: #fff;
}

.hero {
    background: linear-gradient(90deg, #f7fbfc 0%, #edf8f8 100%);
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr);
    align-items: stretch;
    min-height: 520px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 56px 72px 0;
    position: relative;
    z-index: 2;
}

.eyebrow {
    margin: 0 0 18px;
    color: #0a8a72;
    font-weight: 800;
    letter-spacing: .16em;
    font-size: 13px;
}

.hero h1 {
    max-width: 700px;
    margin: 0 0 18px;
    color: #123246;
    font-size: clamp(48px, 5vw, 72px);
    line-height: 1.02;
    letter-spacing: -.025em;
}

.hero h1 span {
    white-space: nowrap;
}

.lead {
    margin: 0;
    color: #365968;
    max-width: 620px;
    font-size: 18px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    padding: 14px 22px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.hero-actions .btn:hover {
    transform: translateY(-1px);
}

.hero-actions .btn.primary {
    background: #0785a5;
    border-color: #0785a5;
    color: #fff;
}

.hero-actions .btn.primary:hover {
    background: #06758f;
    border-color: #06758f;
}

.hero-actions .btn.secondary {
    background: #fff;
    border-color: #0785a5;
    color: #0785a5;
}

.hero-actions .btn.secondary:hover {
    background: #eef9fb;
}

.hero-visual {
    min-height: 520px;
    margin-left: -90px;
    background-image:
        linear-gradient(
            90deg,
            #f7fbfc 0%,
            rgba(247, 251, 252, .92) 8%,
            rgba(247, 251, 252, .45) 18%,
            rgba(247, 251, 252, 0) 32%
        ),
        url('/uni/images/hero-coast-tech.png');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.section { padding: 36px 0 64px; }
.alt { background: #f3f7f7; }

.button,
button {
    display: inline-block;
    border: 0;
    border-radius: 8px;
    background: #167a96;
    color: #fff;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
}

.button:hover { color: #fff; text-decoration: none; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.secondary { background: #27675e; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { border: 1px solid #dce7e7; border-radius: 10px; padding: 20px; margin: 12px 0; background: #fff; }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 650; }
.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd9d9;
    border-radius: 7px;
    font: inherit;
    background: #fff;
}
.form textarea { min-height: 130px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.check { display: flex !important; grid-template-columns: auto 1fr !important; align-items: center; gap: 8px !important; }
.check input { width: auto; }

.notice { padding: 12px 15px; background: #eaf7ee; border: 1px solid #b8dfc3; border-radius: 7px; margin: 0 0 18px; }
.error { padding: 10px; color: #8a2020; background: #fff0f0; border-radius: 7px; }

.admin-main { padding-top: 45px; padding-bottom: 70px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin: 24px 0; }
.stat { padding: 24px; border: 1px solid #dce7e7; border-radius: 10px; }
.stat strong { display: block; font-size: 2rem; }
.stat span { color: #536b75; }

.actions,
.page-head,
.title-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px; border-bottom: 1px solid #dce7e7; }

.inline { display: inline; }
.link-button { padding: 0; background: none; color: #116f86; font-weight: 500; }
.danger { color: #a22; }
.price { font-size: 1.6rem; font-weight: 800; }

footer { border-top: 1px solid #e2ecec; padding: 30px 0; color: #536b75; }

/* Integration v4 catalog */
.product-thumb { width: 100%; height: 220px; object-fit: contain; background: #f3f8f8; border-radius: 8px; }
.product-image { width: 100%; max-height: 520px; object-fit: contain; background: #f3f8f8; border-radius: 12px; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.stock-ok { color: #24745f; font-weight: 700; }
.stock-out { color: #a33; font-weight: 700; }
.admin-thumb { width: 64px; height: 64px; object-fit: contain; background: #f3f8f8; border-radius: 6px; }
.image-admin { margin: 12px 0 18px; }

/* Integration v4 final admin product listing */
.admin-product-row {
    display: grid;
    grid-template-columns: 80px minmax(220px, 2fr) 100px 110px 150px 120px;
    gap: 18px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #dce7e7;
}

.admin-product-info { min-width: 0; }
.admin-product-info strong { display: block; }
.admin-product-info small,
.admin-product-field small { display: block; margin-top: 3px; color: #536b75; }
.admin-product-field span { display: block; }
.admin-product-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.admin-product-actions form { margin: 0; }

.admin-thumb-placeholder {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 6px;
    background: #f3f8f8;
    color: #536b75;
    font-size: .72rem;
    text-align: center;
}

/* Integration v5 cart / checkout */
.add-cart-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.add-cart-form label { display: grid; gap: 5px; font-weight: 650; }
.add-cart-form input { width: 90px; padding: 11px; border: 1px solid #cbd9d9; border-radius: 7px; font: inherit; }

.cart-row {
    display: grid;
    grid-template-columns: 80px minmax(220px, 1fr) 190px 120px 80px;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #dce7e7;
}

.cart-row small { display: block; color: #536b75; margin-top: 3px; }
.cart-thumb { width: 64px; height: 64px; object-fit: contain; background: #f3f8f8; border-radius: 6px; }
.cart-quantity { display: flex; gap: 8px; align-items: end; }
.cart-quantity label { display: grid; gap: 4px; }
.cart-quantity input { width: 70px; padding: 9px; border: 1px solid #cbd9d9; border-radius: 7px; }
.cart-quantity button { padding: 9px 12px; }
.cart-line-total { font-weight: 800; }

.cart-summary { width: min(420px, 100%); margin: 28px 0 0 auto; }
.cart-summary p,
.summary-line { display: flex; justify-content: space-between; gap: 20px; }
.cart-total { font-size: 1.2rem; border-top: 1px solid #dce7e7; padding-top: 12px; }

.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: 36px; align-items: start; }
.checkout-grid aside { margin: 0; position: sticky; top: 20px; }
.order-success {
    text-align: center;
    padding: 36px;
    margin-top: -24px;
}

@media (max-width: 900px) {
    .admin-product-row { grid-template-columns: 80px 1fr; gap: 10px 16px; }
    .admin-product-image { grid-column: 1; grid-row: 1 / span 5; }
    .admin-product-info,
    .admin-product-field,
    .admin-product-actions { grid-column: 2; }

    .cart-row { grid-template-columns: 80px 1fr; }
    .cart-row > * { grid-column: 2; }
    .cart-row > :first-child { grid-column: 1; grid-row: 1 / span 5; }

    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-grid aside { position: static; }
}

@media (max-width: 760px) {
    .product-detail {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-content {
        padding: 48px 24px 36px;
    }

    .hero h1 {
        max-width: none;
        font-size: clamp(42px, 12vw, 56px);
        line-height: 1.02;
    }

    .hero h1 span {
        white-space: normal;
    }

    .lead {
        font-size: 17px;
        line-height: 1.55;
    }

    .hero-actions {
        gap: 12px;
    }

    .hero-actions .btn {
        min-width: 0;
        flex: 1 1 160px;
    }

    .hero-visual {
        min-height: 300px;
        margin-left: 0;
        background-image: url('/uni/images/hero-coast-tech.png');
        background-size: cover;
        background-position: 72% center;
    }
}

@media (max-width: 650px) {
    .nav {
        position: relative;
        height: auto;
        min-height: 64px;
        padding: 12px 0;
        align-items: center;
        gap: 16px;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand-name {
        font-size: 18px;
        line-height: 1.1;
        white-space: nowrap;
    }

    .brand-tagline {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
        padding: 9px 12px;
        border: 1px solid rgba(255, 255, 255, .35);
        border-radius: 7px;
        background: transparent;
        color: #fff;
        font: inherit;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

    .mobile-menu-icon {
        font-size: 18px;
        line-height: 1;
    }

    .nav nav {
        display: none;
    }
    
    .nav nav.mobile-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 20px 16px;
        background: #154b68;
        border-top: 1px solid rgba(255, 255, 255, .12);
        box-shadow: 0 8px 18px rgba(18, 50, 70, .18);
        z-index: 1000;
    }

    .nav nav.mobile-open > a,
    .nav nav.mobile-open > span {
        width: 100%;
        padding: 12px 4px;
    }

    .section {
        padding: 28px 0 42px;
    }
}

@media (max-width: 520px) {
    .admin-product-row { grid-template-columns: 1fr; }
    .admin-product-image,
    .admin-product-info,
    .admin-product-field,
    .admin-product-actions { grid-column: 1; grid-row: auto; }

    .cart-row { grid-template-columns: 1fr; }
    .cart-row > *,
    .cart-row > :first-child { grid-column: 1; grid-row: auto; }
}

.field-help {
    display: block;
    margin-top: 2px;
    color: #536b75;
    font-weight: 400;
    line-height: 1.4;
}

.checkout-paypal-note {
    margin-top: 28px;
}

.checkout-paypal-note p {
    max-width: 620px;
    color: #536b75;
}

#paypal-payment-area {
    transition: opacity .18s ease;
}

#paypal-payment-area.payment-disabled {
    opacity: .38;
    pointer-events: none;
    filter: grayscale(1);
}

.payment-hint {
    margin: .75rem 0;
    color: #536b75;
    font-size: .92rem;
}

/* U.N.I. Support chat launcher */
.support-chat {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
}

.support-chat-launcher {
    box-shadow: 0 8px 24px rgba(18, 50, 70, .22);
}

@media (max-width: 650px) {
    .support-chat {
        right: 10px;
        bottom: 10px;
    }

    .support-chat-launcher {
        padding: 9px 12px;
        font-size: 13px;
    }
}

.support-chat-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(380px, calc(100vw - 32px));
    max-height: min(640px, calc(100vh - 120px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #dce7e7;
    border-radius: 14px;
    box-shadow: 0 16px 44px rgba(18, 50, 70, .22);
}

.support-chat-panel[hidden] { display: none; }

.support-chat-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: linear-gradient(100deg, #e9f7f9, #eff9f2);
    border-bottom: 1px solid #dce7e7;
}

.support-chat-head strong,
.support-chat-head span { display: block; }

.support-chat-head span {
    margin-top: 3px;
    color: #536b75;
    font-size: .9rem;
}

.support-chat-close {
    padding: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent;
    color: #123246;
    font-size: 1.5rem;
    line-height: 1;
}

.support-chat-close:hover { background: rgba(18, 50, 70, .08); }

.support-chat-body {
    padding: 18px;
    overflow-y: auto;
    min-height: 0;
}

.support-chat-form textarea {
    min-height: 110px;
    resize: vertical;
}

.support-chat-boundary {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #eff9f2;
    line-height: 1.45;
}

.support-chat-messages {
    display: grid;
    gap: 10px;
    max-height: 240px;
    overflow-y: auto;
    margin-bottom: 14px;
}

.support-chat-message {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 10px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.support-chat-message strong {
    display: block;
    margin-bottom: 3px;
    font-size: .82rem;
}

.support-chat-message.is-customer {
    justify-self: end;
    background: #e9f7f9;
}

.support-chat-message.is-support {
    justify-self: start;
    background: #f3f7f7;
}

.support-chat-error {
    margin-bottom: 14px;
}

.support-chat-form [data-support-chat-identity] {
    display: grid;
    gap: 14px;
}

.support-chat-form [data-support-chat-identity][hidden],
.support-chat-form [data-support-chat-identity].is-hidden {
    display: none;
}

@media (max-width: 520px) {
    .support-chat {
        right: 16px;
        bottom: 16px;
    }

    .support-chat-panel {
        width: calc(100vw - 32px);
        max-height: calc(100vh - 100px);
    }
}

/* Admin Support Conversations — Phase 3 */
.admin-support-thread {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.admin-support-message {
    max-width: 82%;
    padding: 14px 16px;
    border-radius: 10px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.admin-support-message.is-customer {
    justify-self: start;
    background: #f3f7f7;
    border: 1px solid #dce7e7;
}

.admin-support-message.is-support {
    justify-self: end;
    background: #e9f7f9;
    border: 1px solid #cfe8eb;
}

.admin-support-message-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 6px;
}

.admin-support-message-head small {
    color: #536b75;
    white-space: nowrap;
}

@media (max-width: 650px) {
    .admin-support-message {
        max-width: 100%;
    }

    .admin-support-message-head {
        display: block;
    }

    .admin-support-message-head small {
        display: block;
        margin-top: 3px;
    }
}
/* V5.7 Admin dashboard */
.admin-dashboard {
    --dashboard-ink: #17384a;
    --dashboard-muted: #647983;
    --dashboard-border: #dce7e7;
    --dashboard-shadow: 0 10px 30px rgba(18, 50, 70, .06);
}

.dashboard-heading {
    margin-bottom: 28px;
}

.dashboard-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.7rem);
    letter-spacing: -.03em;
    color: var(--dashboard-ink);
}

.dashboard-heading p {
    margin: 8px 0 0;
    color: var(--dashboard-muted);
    font-size: 1.02rem;
}

.dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.dashboard-summary-card {
    min-height: 190px;
    display: flex;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--dashboard-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--dashboard-shadow);
}

.dashboard-summary-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 900;
}

.dashboard-summary-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dashboard-summary-label {
    color: var(--dashboard-muted);
    font-size: .9rem;
    font-weight: 750;
}

.dashboard-summary-content strong {
    display: block;
    margin: 7px 0 14px;
    color: var(--dashboard-ink);
    font-size: 2.25rem;
    line-height: 1;
}

.dashboard-summary-content a {
    margin-top: auto;
    font-weight: 750;
}

.dashboard-summary-card.is-orders { background: #f3f8ff; border-color: #d9e8f7; }
.dashboard-summary-card.is-orders .dashboard-summary-icon { background: #e1efff; color: #246ba0; }

.dashboard-summary-card.is-products { background: #f2fbf6; border-color: #d7eadf; }
.dashboard-summary-card.is-products .dashboard-summary-icon { background: #dff3e7; color: #24745f; }

.dashboard-summary-card.is-services { background: #f0fafb; border-color: #d4eaec; }
.dashboard-summary-card.is-services .dashboard-summary-icon { background: #daf1f3; color: #167a96; }

.dashboard-summary-card.is-human { background: #fff5f5; border-color: #f0d6d6; }
.dashboard-summary-card.is-human .dashboard-summary-icon { background: #ffe2e2; color: #a13b3b; }

.dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .8fr);
    gap: 24px;
    align-items: start;
}

.dashboard-side-column {
    display: grid;
    gap: 24px;
}

.dashboard-panel {
    margin: 0;
    padding: 24px;
    border: 1px solid var(--dashboard-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--dashboard-shadow);
}

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

.dashboard-panel-head h2 {
    margin: 0;
    color: var(--dashboard-ink);
    font-size: 1.2rem;
}

.dashboard-panel-head p {
    margin: 5px 0 0;
    color: var(--dashboard-muted);
    font-size: .9rem;
}

.dashboard-panel-head > a {
    flex: 0 0 auto;
    font-weight: 750;
}

.dashboard-orders-table th {
    color: var(--dashboard-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.dashboard-orders-table th,
.dashboard-orders-table td {
    padding: 14px 10px;
}

.dashboard-orders-table th:first-child,
.dashboard-orders-table td:first-child {
    padding-left: 0;
}

.dashboard-orders-table th:last-child,
.dashboard-orders-table td:last-child {
    padding-right: 0;
}

.dashboard-orders-table tbody tr:last-child td {
    border-bottom: 0;
}

.dashboard-orders-table td:first-child a {
    font-weight: 750;
}

.dashboard-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
}

.dashboard-status-pill.is-paid {
    background: #e7f6ed;
    color: #24745f;
}

.dashboard-empty {
    padding: 30px 16px;
    border: 1px dashed var(--dashboard-border);
    border-radius: 12px;
    color: var(--dashboard-muted);
    text-align: center;
}

.dashboard-alert {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 13px;
    align-items: start;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
}

.dashboard-alert + .dashboard-alert {
    margin-top: 12px;
}

.dashboard-alert:hover {
    text-decoration: none;
}

.dashboard-alert-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-weight: 900;
}

.dashboard-alert strong,
.dashboard-alert small {
    display: block;
}

.dashboard-alert strong {
    color: var(--dashboard-ink);
    line-height: 1.35;
}

.dashboard-alert small {
    margin-top: 4px;
    color: var(--dashboard-muted);
    line-height: 1.4;
}

.dashboard-alert-arrow {
    align-self: center;
    font-size: 1.25rem;
    font-weight: 800;
}

.dashboard-alert.is-human-requested {
    background: #fff2f2;
    border: 1px solid #efd1d1;
}

.dashboard-alert.is-human-requested .dashboard-alert-icon {
    background: #ffdddd;
    color: #a13b3b;
}

.dashboard-alert.is-clear {
    grid-template-columns: auto 1fr;
    background: #f1faf5;
    border: 1px solid #d7eadf;
}

.dashboard-alert.is-clear .dashboard-alert-icon {
    background: #dff3e7;
    color: #24745f;
}

.dashboard-alert.is-fulfillment {
    background: #f3f8ff;
    border: 1px solid #d9e8f7;
}

.dashboard-alert.is-fulfillment .dashboard-alert-icon {
    background: #e1efff;
    color: #246ba0;
}

.dashboard-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dashboard-quick-grid a {
    display: block;
    min-height: 105px;
    padding: 16px;
    border: 1px solid var(--dashboard-border);
    border-radius: 12px;
    background: #fbfdfd;
}

.dashboard-quick-grid a:hover {
    background: #f3f8f8;
    text-decoration: none;
}

.dashboard-quick-grid strong,
.dashboard-quick-grid span {
    display: block;
}

.dashboard-quick-grid strong {
    color: var(--dashboard-ink);
}

.dashboard-quick-grid span {
    margin-top: 6px;
    color: var(--dashboard-muted);
    font-size: .86rem;
    line-height: 1.4;
}

@media (max-width: 1000px) {
    .dashboard-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .dashboard-summary-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-summary-card {
        min-height: 160px;
    }

    .dashboard-panel {
        padding: 18px;
    }

    .dashboard-panel-head {
        display: block;
    }

    .dashboard-panel-head > a {
        display: inline-block;
        margin-top: 10px;
    }

    .dashboard-quick-grid {
        grid-template-columns: 1fr;
    }
}


/* V5.7 Step 5 — Admin dashboard responsive and visual polish */
.dashboard-summary-content {
    width: 100%;
}

.dashboard-summary-content a {
    white-space: nowrap;
    font-size: .94rem;
}

.dashboard-orders-table {
    min-width: 650px;
}

.dashboard-orders-table td {
    vertical-align: middle;
}

.dashboard-orders-table td:first-child {
    min-width: 155px;
}

.dashboard-orders-table td:first-child a,
.dashboard-orders-table td:nth-child(2) {
    overflow-wrap: anywhere;
}

.dashboard-orders-table td:nth-child(3),
.dashboard-orders-table td:nth-child(4),
.dashboard-orders-table td:nth-child(5) {
    white-space: nowrap;
}

.dashboard-alert > span:nth-child(2) {
    min-width: 0;
}

.dashboard-alert strong,
.dashboard-alert small,
.dashboard-quick-grid strong,
.dashboard-quick-grid span {
    overflow-wrap: anywhere;
}

.dashboard-quick-grid a {
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.dashboard-quick-grid a:hover {
    border-color: #c7dcdc;
    transform: translateY(-1px);
}

@media (max-width: 1100px) and (min-width: 1001px) {
    .dashboard-summary-card {
        gap: 14px;
        padding: 19px;
    }

    .dashboard-summary-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .dashboard-summary-content a {
        white-space: normal;
    }
}

@media (max-width: 760px) {
    .admin-main {
        padding-top: 32px;
        padding-bottom: 50px;
    }

    .dashboard-heading {
        margin-bottom: 22px;
    }

    .dashboard-heading p {
        line-height: 1.5;
    }

    .dashboard-summary-grid {
        gap: 14px;
        margin-bottom: 18px;
    }

    .dashboard-summary-card {
        min-height: 145px;
        padding: 18px;
        gap: 15px;
    }

    .dashboard-summary-content strong {
        font-size: 2rem;
    }

    .dashboard-main-grid,
    .dashboard-side-column {
        gap: 18px;
    }

    .dashboard-orders-table {
        min-width: 620px;
    }

    .dashboard-alert {
        padding: 14px;
    }
}

@media (max-width: 650px) {
    .wrap {
        width: min(100% - 28px, 1120px);
    }

    .nav {
        gap: 14px;
    }

    .nav nav {
        width: 100%;
    }

    .dashboard-summary-content a {
        white-space: normal;
    }

    .dashboard-alert {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dashboard-alert-arrow {
        display: none;
    }

    .dashboard-alert.is-clear {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dashboard-quick-grid a {
        min-height: 0;
    }
}

@media (max-width: 430px) {
    .admin-main {
        padding-top: 26px;
    }

    .dashboard-heading h1 {
        font-size: 2rem;
    }

    .dashboard-summary-card {
        min-height: 132px;
        padding: 16px;
    }

    .dashboard-summary-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 10px;
    }

    .dashboard-summary-content strong {
        margin: 6px 0 11px;
        font-size: 1.85rem;
    }

    .dashboard-panel {
        padding: 16px;
        border-radius: 14px;
    }

    .dashboard-panel-head {
        margin-bottom: 16px;
    }

    .dashboard-alert {
        gap: 11px;
        padding: 13px;
    }

    .dashboard-alert-icon {
        width: 30px;
        height: 30px;
    }
}

/* V5.8 — Unified catalog and cart */

.catalog-grid {
    align-items: stretch;
}

.catalog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.catalog-card-bottom {
    margin-top: auto;
    padding-top: 1rem;
}

.catalog-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}

.catalog-actions form {
    margin: 0;
}

.catalog-actions .button,
.catalog-actions button.button {
    width: auto;
    min-width: 5.25rem;
    padding: .65rem 1rem;
}

.billing-unit {
    font-size: .9em;
    font-weight: 500;
}

.cart-shop-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Keep all four service cards on one row whenever desktop width permits. */
@media (min-width: 1180px) {
    .service-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Let the cards wrap naturally before they become cramped. */
@media (min-width: 700px) and (max-width: 1179px) {
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

/* V5.8 Step 1B Revision — recurring billing choices */
.service-plan-summary {
    display: grid;
    gap: .35rem;
    margin-bottom: .75rem;
}

.service-plan-choice {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    cursor: pointer;
    line-height: 1.35;
}

.service-plan-choice input[type="radio"] {
    flex: 0 0 auto;
    margin-top: .2rem;
}

.service-plan-choice-detail {
    padding: .75rem 0;
}

.service-plan-options {
    display: grid;
    gap: .25rem;
    margin-top: 1.25rem;
}

.catalog-card-bottom > form {
    width: 100%;
}

.catalog-card-bottom > form .catalog-actions {
    margin-top: .25rem;
}

/* V5.8 Step 1B final presentation cleanup */
.service-plan-options .service-plan-choice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: .6rem;
    width: 100%;
    margin: 0;
    padding: .45rem 0;
}

.service-plan-options .service-plan-choice + .service-plan-choice {
    margin-top: .15rem;
}

.service-plan-options .service-plan-choice-text {
    display: grid;
    gap: .1rem;
}

.service-plan-options .service-plan-choice-text strong,
.service-plan-options .service-plan-choice-text small {
    display: block;
}

.service-plan-options .service-plan-choice input[type="radio"] {
    margin-top: .22rem;
}
/* V5.8 Step 1C — subscription-aware cart */
.cart-row .cart-line-total small {
    display: block;
    margin-bottom: .2rem;
    font-weight: 600;
}

.cart-summary .notice {
    margin-top: 1rem;
}

.service-detail-card form > .button {
    margin-top: 1rem;
}

/* Cart icon/link and item-count badge. */
.cart-nav-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

.cart-nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 .28rem;
    border-radius: 999px;
    background: #176b87;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
}

/* Cart add confirmation notification. */
.cart-toast {
    position: fixed;
    top: 82px;
    left: 50%;
    transform: none;
    z-index: 1200;
    max-width: min(260px, calc(100vw - 16px));
    padding: .7rem 1rem;
    border: 1px solid #b9dfc6;
    border-radius: 9px;
    background: #eaf7ee;
    color: #123246;
    box-shadow: 0 8px 24px rgba(18, 50, 70, .18);
    font-weight: 700;
    line-height: 1.2;
    pointer-events: none;
}

.cart-toast[hidden] {
    display: none;
}

.cart-toast-error {
    border-color: #e4bcbc;
    background: #fdecec;
}

@media (max-width: 650px) {
    .cart-toast {
        top: 96px;
        max-width: min(240px, calc(100vw - 16px));
        text-align: center;
    }
}

/* V5.8 PayPal Subscriptions Step 4B — Admin lifecycle visuals */
.subscription-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .035em;
    line-height: 1;
    white-space: nowrap;
}

.subscription-status-pill.is-active {
    background: #e7f6ed;
    border-color: #cfe8d8;
    color: #24745f;
}

.subscription-status-pill.is-suspended {
    background: #fff7df;
    border-color: #eadca9;
    color: #7b6115;
}

.subscription-status-pill.is-cancelled {
    background: #fdecec;
    border-color: #e8caca;
    color: #983c3c;
}

.subscription-status-pill.is-expired {
    background: #f0f3f4;
    border-color: #d8e0e2;
    color: #596b73;
}

.subscription-status-pill:not(.is-active):not(.is-suspended):not(.is-cancelled):not(.is-expired) {
    background: #eef6f8;
    border-color: #d5e5e9;
    color: #376675;
}

.subscription-attention {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    margin: 0 0 1rem;
    padding: 15px 16px;
    border: 1px solid #eadca9;
    border-radius: 12px;
    background: #fff9e9;
}

.subscription-attention-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #f4e5ae;
    color: #765b0c;
    font-weight: 900;
}

.subscription-attention strong,
.subscription-attention span {
    display: block;
}

.subscription-attention strong {
    color: #624d12;
    line-height: 1.35;
}

.subscription-attention div > span {
    margin-top: 3px;
    color: #6f6442;
    line-height: 1.45;
}

@media (max-width: 650px) {
    .subscription-status-pill {
        min-width: 0;
    }

    .subscription-attention {
        padding: 13px;
    }
}

/* U.N.I. Homepage - Personal Technology Solutions */

.home-solutions {
    padding-top: 52px;
    padding-bottom: 64px;
}

.home-section-intro {
    max-width: 760px;
    margin-bottom: 36px;
}

.home-section-intro h2 {
    margin: 10px 0 14px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.12;
    color: #123246;
}

.home-section-lead {
    margin: 0;
    max-width: 720px;
    font-size: 18px;
    line-height: 1.65;
    color: #536b75;
}

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

.home-solution-card {
    position: relative;
    padding: 30px;
    min-height: 260px;
    border: 1px solid #dce7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(18, 50, 70, .07);
}

.home-solution-number {
    margin-bottom: 26px;
    color: #0b8c78;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .14em;
}

.home-solution-card h3 {
    margin: 0 0 14px;
    color: #123246;
    font-size: 22px;
    line-height: 1.25;
}

.home-solution-card p {
    margin: 0;
    color: #536b75;
    line-height: 1.6;
}

.home-solution-card a {
    display: inline-block;
    margin-top: 20px;
    font-weight: 700;
}

/* Homepage heritage / local experience */

.home-heritage {
    padding: 54px 0;
    background: #f7fbfc;
    border-bottom: 1px solid #e2ecef;
}

.home-heritage-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, .8fr);
    gap: 64px;
    align-items: center;
}

.home-heritage-copy h2 {
    margin: 10px 0 16px;
    color: #123246;
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.15;
}

.home-heritage-copy > p:last-child {
    max-width: 760px;
    margin: 0;
    color: #536b75;
    font-size: 17px;
    line-height: 1.65;
}

.home-heritage-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.home-heritage-stat {
    min-height: 150px;
    padding: 24px;
    border: 1px solid #dce7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(18, 50, 70, .07);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-heritage-stat strong {
    display: block;
    margin-bottom: 8px;
    color: #0b8c78;
    font-size: 38px;
    line-height: 1;
}

.home-heritage-stat span {
    color: #123246;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .home-heritage-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .home-heritage-stats {
        max-width: 520px;
    }
}

@media (max-width: 650px) {
    .home-heritage {
        padding: 40px 0;
    }

    .home-heritage-copy h2 {
        font-size: 30px;
    }

    .home-heritage-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .home-heritage-stat {
        min-height: 130px;
        padding: 20px;
    }

    .home-heritage-stat strong {
        font-size: 32px;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .home-solution-grid {
        grid-template-columns: 1fr;
    }

    .home-solution-card {
        min-height: 0;
    }
}

/* Phone */
@media (max-width: 650px) {
    .home-solutions {
        padding-top: 38px;
        padding-bottom: 46px;
    }

    .home-section-intro {
        margin-bottom: 26px;
    }

    .home-section-intro h2 {
        font-size: 30px;
    }

    .home-section-lead {
        font-size: 17px;
    }

    .home-solution-grid {
        gap: 16px;
    }

    .home-solution-card {
        padding: 24px;
    }

    .home-solution-number {
        margin-bottom: 18px;
    }

    .home-solution-card h3 {
        font-size: 21px;
    }
}
/* U.N.I. Services Page */

.services-page-intro {
    max-width: 820px;
    margin-bottom: 42px;
}

.services-page-intro h1 {
    margin: 10px 0 16px;
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1.12;
    color: #123246;
}

.services-page-lead {
    margin: 0;
    font-size: 18px;
    line-height: 1.65;
    color: #536b75;
}

.services-specialties {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 64px;
}

.services-specialty {
    padding: 30px;
    border: 1px solid #dce7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(18, 50, 70, .07);
}

.services-specialty-number {
    margin-bottom: 24px;
    color: #0b8c78;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .14em;
}

.services-specialty h2 {
    margin: 0 0 14px;
    color: #123246;
    font-size: 22px;
    line-height: 1.25;
}

.services-specialty p {
    margin: 0;
    color: #536b75;
    line-height: 1.6;
}

.services-specialty a {
    display: inline-block;
    margin-top: 20px;
    font-weight: 700;
}

.services-catalog-heading {
    margin-bottom: 28px;
}

.services-catalog-heading h2 {
    margin: 10px 0 0;
    color: #123246;
    font-size: 30px;
}

@media (max-width: 900px) {
    .services-specialties {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 650px) {
    .services-page-intro {
        margin-bottom: 30px;
    }

    .services-page-intro h1 {
        font-size: 32px;
    }

    .services-page-lead {
        font-size: 17px;
    }

    .services-specialties {
        margin-bottom: 44px;
    }

    .services-specialty {
        padding: 24px;
    }

    .services-specialty-number {
        margin-bottom: 18px;
    }

    .services-catalog-heading h2 {
        font-size: 27px;
    }
}

/* U.N.I. Hosting Plan Details */

.services-catalog-lead {
    max-width: 820px;
    margin: 14px 0 0;
    color: #536b75;
    font-size: 17px;
    line-height: 1.6;
}

.hosting-plan-features {
    margin: 20px 0 24px;
    padding: 0;
    list-style: none;
}

.hosting-plan-features li {
    position: relative;
    margin: 0;
    padding: 7px 0 7px 20px;
    border-bottom: 1px solid #edf2f4;
    color: #536b75;
    line-height: 1.4;
}

.hosting-plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0b8c78;
    font-weight: 800;
}

.hosting-plan-features li:last-child {
    border-bottom: 0;
}

.hosting-plan-features strong {
    color: #123246;
}
