﻿/* Logos Platform — premium customer dashboard */
body:has(.dashboard-card) {
    --logos-navy: #101b32;
    --logos-navy-deep: #0a1223;
    --logos-gold: #d8b56a;
    --logos-gold-light: #f0d99b;
    --logos-text: #edf2fb;
    --logos-muted: #aab6ca;
    --logos-panel: rgba(22, 35, 58, 0.94);
    --logos-border: rgba(216, 181, 106, 0.22);
    background:
        radial-gradient(ellipse at 10% 0%, rgba(46, 77, 124, .28), transparent 42%),
        linear-gradient(145deg, var(--logos-navy-deep), var(--logos-navy) 58%, #14213b);
    color: var(--logos-text);
    min-height: 100vh;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body:has(.dashboard-card) h1,
body:has(.dashboard-card) h2,
body:has(.dashboard-card) h3 {
    color: var(--logos-text);
    letter-spacing: -0.025em;
}

body:has(.dashboard-card) p {
    color: var(--logos-muted);
    line-height: 1.7;
}

body:has(.dashboard-card) .dashboard-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    min-height: 205px;
    border: 1px solid var(--logos-border);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(29, 45, 72, .97), var(--logos-panel));
    box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

body:has(.dashboard-card) .dashboard-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--logos-gold), transparent 78%);
    opacity: .85;
}

body:has(.dashboard-card) .dashboard-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 217, 155, .62);
    box-shadow: 0 20px 42px rgba(0, 0, 0, .25);
}

body:has(.dashboard-card) .dashboard-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border: 1px solid rgba(216, 181, 106, .32);
    border-radius: 14px;
    background: rgba(216, 181, 106, .10);
    color: var(--logos-gold-light);
}

body:has(.dashboard-card) .dashboard-action,
body:has(.dashboard-card) button {
    border: 1px solid rgba(216, 181, 106, .52);
    border-radius: 10px;
    background: linear-gradient(135deg, #e8cb87, #c49b4c);
    color: #182239;
    font-weight: 700;
    padding: 11px 17px;
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

body:has(.dashboard-card) .dashboard-action:hover,
body:has(.dashboard-card) button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, .2);
}

body:has(.dashboard-card) a {
    color: var(--logos-gold-light);
}

body:has(.dashboard-card) input,
body:has(.dashboard-card) select {
    border-color: rgba(170, 182, 202, .28);
    border-radius: 10px;
}

body:has(.dashboard-card) :focus-visible {
    outline: 3px solid var(--logos-gold-light);
    outline-offset: 3px;
}

@media (max-width: 700px) {
    body:has(.dashboard-card) .dashboard-card {
        min-height: 0;
        padding: 21px;
        border-radius: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body:has(.dashboard-card) .dashboard-card,
    body:has(.dashboard-card) .dashboard-action,
    body:has(.dashboard-card) button {
        transition: none;
    }
    body:has(.dashboard-card) .dashboard-card:hover {
        transform: none;
    }
}

/* Stage 1: premium welcome area */
body:has(.dashboard-welcome) .dashboard-welcome {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr);
    align-items: center;
    gap: clamp(24px, 4vw, 54px);
    overflow: hidden;
    padding: clamp(30px, 5vw, 58px);
    margin-bottom: 32px;
    border: 1px solid rgba(80, 151, 255, .34);
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 5% 100%, rgba(0, 197, 255, .18), transparent 48%),
        radial-gradient(ellipse at 92% 0%, rgba(38, 100, 255, .28), transparent 48%),
        linear-gradient(120deg, #101b32 0%, #12284d 58%, #101a34 100%);
    box-shadow: 0 22px 65px rgba(0, 0, 0, .24);
}

body:has(.dashboard-welcome) .welcome-copy,
body:has(.dashboard-welcome) .welcome-account-card {
    position: relative;
    z-index: 2;
}

body:has(.dashboard-welcome) .welcome-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #80eaff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
}

body:has(.dashboard-welcome) .welcome-eyebrow-dot,
body:has(.dashboard-welcome) .highlight-dot,
body:has(.dashboard-welcome) .welcome-live-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38ddf4;
    box-shadow: 0 0 12px rgba(56, 221, 244, .65);
}

body:has(.dashboard-welcome) .welcome-title {
    margin: 20px 0 15px;
    color: #f5f8ff;
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
}

body:has(.dashboard-welcome) .welcome-title #accountName {
    color: #60e5ff;
    background: linear-gradient(90deg, #65e9ff, #8bb7ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body:has(.dashboard-welcome) .welcome-title-period {
    color: #d8b56a;
}

body:has(.dashboard-welcome) .welcome-description {
    max-width: 620px;
    margin: 0;
    color: #c2d0e6;
    font-size: 15px;
    line-height: 1.85;
}

body:has(.dashboard-welcome) .welcome-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 25px;
}

body:has(.dashboard-welcome) .welcome-highlights > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d5e2f6;
    font-size: 12px;
    font-weight: 600;
}

body:has(.dashboard-welcome) .welcome-highlights .highlight-dot {
    width: 6px;
    height: 6px;
}

body:has(.dashboard-welcome) .welcome-account-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    padding: 24px;
    border: 1px solid rgba(123, 173, 255, .3);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(21, 40, 72, .94), rgba(11, 24, 46, .9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05),
                0 16px 40px rgba(0, 0, 0, .16);
    backdrop-filter: blur(12px);
}

body:has(.dashboard-welcome) .welcome-account-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

body:has(.dashboard-welcome) .welcome-account-icon {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    flex: 0 0 auto;
    border: 1px solid rgba(67, 218, 255, .3);
    border-radius: 14px;
    background: rgba(42, 174, 255, .12);
    color: #6ce9ff;
}

body:has(.dashboard-welcome) .welcome-account-icon svg {
    width: 25px;
    height: 25px;
}

body:has(.dashboard-welcome) .welcome-account-label {
    color: #9bb3d7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
}

body:has(.dashboard-welcome) .welcome-account-details {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

body:has(.dashboard-welcome) .welcome-account-details strong {
    color: #f2f6ff;
    font-size: 17px;
    line-height: 1.45;
}

body:has(.dashboard-welcome) .welcome-account-details #accountEmail {
    color: #b8c9e1;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

body:has(.dashboard-welcome) .welcome-account-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-top: 16px;
    border-top: 1px solid rgba(160, 188, 229, .15);
    color: #a9bdd9;
    font-size: 12px;
}

body:has(.dashboard-welcome) .welcome-live-dot {
    width: 6px;
    height: 6px;
    background: #56e3b1;
    box-shadow: 0 0 10px rgba(86, 227, 177, .6);
}

body:has(.dashboard-welcome) .welcome-decoration {
    position: absolute;
    z-index: 1;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(94, 174, 255, .09);
    border-radius: 50%;
    pointer-events: none;
}

body:has(.dashboard-welcome) .welcome-decoration-one {
    top: -130px;
    right: 28%;
}

body:has(.dashboard-welcome) .welcome-decoration-two {
    right: -115px;
    bottom: -150px;
    width: 300px;
    height: 300px;
}

@media (max-width: 760px) {
    body:has(.dashboard-welcome) .dashboard-welcome {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
        padding: 28px 22px;
        border-radius: 19px;
    }

    body:has(.dashboard-welcome) .welcome-title {
        font-size: clamp(30px, 8vw, 42px);
    }

    body:has(.dashboard-welcome) .welcome-description {
        font-size: 14px;
    }

    body:has(.dashboard-welcome) .welcome-account-card {
        padding: 20px;
    }
}

/* Stage 2: premium customer navigation */
body:has(.dashboard-main-nav) .site-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 17px clamp(20px, 4vw, 54px);
    border-bottom: 1px solid rgba(103, 157, 237, .17);
    background: rgba(8, 17, 33, .9);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
    backdrop-filter: blur(16px);
}

body:has(.dashboard-main-nav) .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body:has(.dashboard-main-nav) .brand-mark {
    flex: 0 0 auto;
    filter: drop-shadow(0 0 10px rgba(32, 153, 255, .24));
}

body:has(.dashboard-main-nav) .brand h1 {
    margin: 0;
    color: #f2f7ff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.02em;
}

body:has(.dashboard-main-nav) .brand p {
    margin: 4px 0 0;
    color: #91a9cb;
    font-size: 10px;
    letter-spacing: .04em;
}

body:has(.dashboard-main-nav) .main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

body:has(.dashboard-main-nav) .dashboard-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #bdcbe0;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

body:has(.dashboard-main-nav) .dashboard-nav-link:hover {
    border-color: rgba(75, 166, 255, .24);
    background: rgba(48, 113, 201, .12);
    color: #77e7ff;
}

body:has(.dashboard-main-nav) .dashboard-nav-link.is-active {
    border-color: rgba(65, 183, 255, .28);
    background: linear-gradient(135deg, rgba(27, 119, 255, .2), rgba(0, 211, 237, .08));
    color: #75eaff;
    box-shadow: inset 0 0 18px rgba(33, 155, 255, .05);
}

body:has(.dashboard-main-nav) .dashboard-signout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    margin-left: 8px;
    padding: 0 16px;
    border: 1px solid rgba(65, 175, 255, .48);
    border-radius: 10px;
    background: linear-gradient(135deg, #1674f9, #0aadd7);
    color: white;
    font-size: 13px;
    font-weight: 750;
    box-shadow: 0 5px 18px rgba(0, 114, 255, .17);
}

body:has(.dashboard-main-nav) .dashboard-signout:hover {
    filter: brightness(1.1);
    box-shadow: 0 7px 22px rgba(0, 151, 255, .27);
}

body:has(.dashboard-main-nav) .dashboard-signout:disabled {
    opacity: .65;
    cursor: wait;
}

@media (max-width: 760px) {
    body:has(.dashboard-main-nav) .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        padding: 16px 20px;
    }

    body:has(.dashboard-main-nav) .main-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 5px;
    }

    body:has(.dashboard-main-nav) .dashboard-nav-link {
        min-height: 37px;
        padding: 0 11px;
        font-size: 12px;
    }

    body:has(.dashboard-main-nav) .dashboard-signout {
        margin-left: auto;
        min-height: 37px;
        padding: 0 12px;
    }
}

/* Stage 3: premium service-card refinement */
body:has(.dashboard-card) .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
    margin-top: 26px;
}

body:has(.dashboard-card) .dashboard-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    min-height: 228px;
    padding: 27px;
    border-color: rgba(90, 151, 225, .25);
    background: radial-gradient(ellipse at 100% 0%, rgba(0, 197, 255, .09), transparent 48%),
                linear-gradient(145deg, rgba(25, 43, 72, .98), rgba(13, 25, 46, .97));
}

body:has(.dashboard-card) .dashboard-card:hover {
    border-color: rgba(89, 201, 255, .62);
    box-shadow: 0 20px 42px rgba(0, 0, 0, .25), 0 0 24px rgba(0, 160, 255, .08);
}

body:has(.dashboard-card) .dashboard-card::before {
    background: linear-gradient(90deg, #56d8ff, #438dff 42%, rgba(216, 181, 106, .55) 76%, transparent);
    height: 3px;
}

body:has(.dashboard-card) .dashboard-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    margin-bottom: 19px;
    border-color: rgba(86, 216, 255, .28);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(63, 145, 255, .20), rgba(0, 197, 255, .08));
    color: #8beaff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
}

body:has(.dashboard-card) .dashboard-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: clamp(18px, 1.5vw, 21px);
    line-height: 1.3;
}

body:has(.dashboard-card) .dashboard-card p {
    margin-top: 0;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.75;
}

body:has(.dashboard-card) .dashboard-card .dashboard-action {
    margin-top: auto;
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    text-align: center;
    font-size: 13px;
}

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

@media (max-width: 620px) {
    body:has(.dashboard-card) .dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        margin-top: 20px;
    }

    body:has(.dashboard-card) .dashboard-card {
        min-height: 0;
        padding: 23px;
    }

    body:has(.dashboard-card) .dashboard-card .dashboard-action {
        width: 100%;
    }
}


/* Logos Security Center Premium Styling */
body.dashboard-page {
    min-height: 100vh;
    color: #e8eef9;
    background:
        radial-gradient(ellipse at 12% 0%, rgba(0, 174, 255, .13), transparent 38%),
        radial-gradient(ellipse at 90% 12%, rgba(211, 170, 91, .08), transparent 30%),
        linear-gradient(145deg, #07111f 0%, #0b1729 52%, #101c30 100%);
}

body.dashboard-page .top-nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 18px clamp(20px, 5vw, 72px);
    border-bottom: 1px solid rgba(126, 171, 226, .18);
    background: rgba(7, 17, 31, .88);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .16);
}

body.dashboard-page .brand-name {
    color: #f4f7ff;
    font-weight: 750;
    letter-spacing: .02em;
}

body.dashboard-page .brand-subtitle {
    margin-top: 4px;
    color: #9aacc7;
    font-size: 12px;
    letter-spacing: .035em;
}

body.dashboard-page .nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

body.dashboard-page .nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid rgba(115, 164, 222, .28);
    border-radius: 10px;
    color: #dceaff;
    background: rgba(25, 45, 73, .72);
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

body.dashboard-page .nav-button:hover {
    border-color: #55d5ff;
    background: rgba(27, 81, 120, .55);
    transform: translateY(-1px);
}

body.dashboard-page .dashboard-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(30px, 5vw, 58px) 0 64px;
}

body.dashboard-page .page-heading {
    margin-bottom: 30px;
}

body.dashboard-page .page-heading .eyebrow {
    margin: 0 0 10px;
    color: #68ddff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
}

body.dashboard-page .page-heading h1 {
    margin: 0;
    color: #f4f7ff;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 760;
    line-height: 1.15;
    letter-spacing: -.035em;
}

body.dashboard-page .page-description {
    max-width: 680px;
    margin-top: 14px;
    color: #a9b8ce;
    font-size: 15px;
    line-height: 1.8;
}

body.dashboard-page .security-overview-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    overflow: hidden;
    margin: 0 0 24px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(100, 160, 225, .24);
    border-radius: 20px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(0, 197, 255, .10), transparent 48%),
        linear-gradient(145deg, rgba(24, 42, 69, .98), rgba(12, 24, 43, .98));
    box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
}

body.dashboard-page .security-overview-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #55d8ff, #428cff 48%, #d8b56a);
    content: "";
}

body.dashboard-page .security-overview-card .card-icon {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid rgba(88, 213, 255, .25);
    border-radius: 16px;
    color: #83e7ff;
    background: rgba(41, 139, 190, .15);
    font-size: 24px;
}

body.dashboard-page .security-overview-card .card-content {
    flex: 1;
    min-width: 0;
}

body.dashboard-page .security-overview-card h2,
body.dashboard-page .account-card h2 {
    margin-top: 0;
    color: #f0f5ff;
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 730;
    letter-spacing: -.02em;
}

body.dashboard-page .security-overview-card .card-description {
    color: #aabbd2;
    line-height: 1.75;
}

body.dashboard-page .security-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

body.dashboard-page .security-overview-item {
    min-width: 0;
    padding: 17px;
    border: 1px solid rgba(123, 165, 216, .17);
    border-radius: 13px;
    background: rgba(6, 17, 32, .45);
}

body.dashboard-page .security-overview-item .detail-label {
    display: block;
    margin-bottom: 8px;
    color: #91a7c4;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase;
}

body.dashboard-page .security-overview-item > :not(.detail-label) {
    overflow-wrap: anywhere;
}

body.dashboard-page .account-card:not(.security-overview-card) {
    margin-top: 22px;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid rgba(100, 160, 225, .20);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(22, 39, 64, .96), rgba(11, 23, 41, .97));
    box-shadow: 0 14px 36px rgba(0, 0, 0, .15);
}

body.dashboard-page .account-card p {
    color: #b0bfd4;
    line-height: 1.75;
}

body.dashboard-page .account-card button,
body.dashboard-page .account-card input,
body.dashboard-page .account-card select {
    max-width: 100%;
    border-radius: 10px;
}

body.dashboard-page .account-card input,
body.dashboard-page .account-card select {
    border: 1px solid rgba(123, 165, 216, .3);
    color: #edf5ff;
    background: #0c192b;
}

body.dashboard-page .account-card input:focus,
body.dashboard-page .account-card select:focus {
    border-color: #55d5ff;
    outline: 2px solid rgba(85, 213, 255, .15);
    outline-offset: 1px;
}

@media (max-width: 760px) {
    body.dashboard-page .top-nav {
        align-items: flex-start;
        padding: 16px 20px;
    }

    body.dashboard-page .nav-actions {
        justify-content: flex-start;
        width: 100%;
    }

    body.dashboard-page .dashboard-container {
        width: calc(100% - 28px);
        padding-top: 30px;
    }

    body.dashboard-page .security-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.dashboard-page .security-overview-card {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    body.dashboard-page .security-overview-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.dashboard-page .security-overview-card {
        flex-direction: column;
    }

    body.dashboard-page .nav-button {
        padding: 9px 11px;
        font-size: 12px;
    }
}

/* Logos Premium: Products, Devices and Certificates */

/* Shared page foundation */
body:has(.products-brand-header),
body:has(.devices-page),
body:has(#certificate) {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 12% 0%, rgba(0,174,255,.13), transparent 38%),
        radial-gradient(ellipse at 90% 12%, rgba(211,170,91,.08), transparent 30%),
        linear-gradient(145deg, #07111f 0%, #0b1729 52%, #101c30 100%) !important;
    color: #e8eef9 !important;
}

/* PRODUCTS */
body:has(.products-brand-header) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: Arial, sans-serif;
}

body:has(.products-brand-header) .products-brand-header,
body:has(.products-brand-header) .page-header {
    width: min(1180px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
    color: #f1f6ff;
}

body:has(.products-brand-header) .products-brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(126,171,226,.18);
}

body:has(.products-brand-header) .products-brand,
body:has(.products-brand-header) .products-account-link {
    color: #8be7ff;
    text-decoration: none;
    font-weight: 700;
}

body:has(.products-brand-header) .page-header {
    margin-top: 38px;
    margin-bottom: 25px;
}

body:has(.products-brand-header) .page-header h1 {
    color: #f4f7ff;
    font-size: clamp(30px, 4vw, 43px);
    letter-spacing: -.03em;
}

body:has(.products-brand-header) main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 60px;
}

body:has(.products-brand-header) .product {
    position: relative;
    overflow: hidden;
    padding: clamp(22px, 4vw, 36px) !important;
    border: 1px solid rgba(100,160,225,.25);
    border-radius: 20px;
    color: #e8eef9;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(0,197,255,.10), transparent 48%),
        linear-gradient(145deg, rgba(24,42,69,.98), rgba(12,24,43,.98));
    box-shadow: 0 18px 48px rgba(0,0,0,.2);
}

body:has(.products-brand-header) .product h2 {
    color: #f4f7ff;
}

body:has(.products-brand-header) .product p,
body:has(.products-brand-header) #status,
body:has(.products-brand-header) #checkoutStatus {
    color: #b5c5dc;
    line-height: 1.75;
}

body:has(.products-brand-header) .product label {
    color: #dceaff;
}

body:has(.products-brand-header) .product select {
    max-width: 100%;
    border: 1px solid rgba(123,165,216,.3);
    border-radius: 10px;
    color: #edf5ff;
    background: #0c192b;
}

body:has(.products-brand-header) .product button,
body:has(.products-brand-header) .product a.button {
    border: 1px solid rgba(85,213,255,.25);
    border-radius: 10px;
    background: linear-gradient(135deg, #1765b5, #087fa5);
    color: #fff;
    font-weight: 700;
}

body:has(.products-brand-header) .product button.secondary {
    background: #243852;
    color: #e4edfc;
}

/* DEVICES */
body:has(.devices-page) .devices-page {
    background: transparent !important;
}

body:has(.devices-page) .devices-header {
    border-bottom: 1px solid rgba(126,171,226,.18);
    background: rgba(7,17,31,.88) !important;
}

body:has(.devices-page) .devices-header-inner {
    max-width: 1180px;
}

body:has(.devices-page) .devices-brand,
body:has(.devices-page) .brand-name {
    color: #f1f6ff !important;
}

body:has(.devices-page) .back-account {
    color: #79dfff !important;
}

body:has(.devices-page) .devices-main {
    max-width: 1180px;
    padding-top: clamp(32px, 5vw, 58px);
}

body:has(.devices-page) .devices-eyebrow {
    color: #68ddff !important;
    letter-spacing: .18em;
}

body:has(.devices-page) .devices-hero h1 {
    color: #f4f7ff !important;
    font-size: clamp(30px, 4vw, 43px);
    letter-spacing: -.03em;
}

body:has(.devices-page) .devices-hero p {
    color: #a9b8ce !important;
}

body:has(.devices-page) .devices-panel {
    overflow: hidden;
    border: 1px solid rgba(100,160,225,.24);
    border-radius: 20px;
    color: #e8eef9;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(0,197,255,.09), transparent 48%),
        linear-gradient(145deg, rgba(24,42,69,.98), rgba(12,24,43,.98));
    box-shadow: 0 18px 48px rgba(0,0,0,.2);
}

body:has(.devices-page) .devices-panel h2,
body:has(.devices-page) .devices-panel h3 {
    color: #f0f5ff;
}

body:has(.devices-page) .devices-panel p,
body:has(.devices-page) .devices-security-note {
    color: #adbed5;
    line-height: 1.75;
}

body:has(.devices-page) .devices-panel button {
    border-radius: 10px;
}

/* CERTIFICATES */
body:has(#certificate) > header {
    padding: 20px max(20px, calc((100% - 1140px) / 2));
    border-bottom: 1px solid rgba(126,171,226,.18);
    background: rgba(7,17,31,.92) !important;
}

body:has(#certificate) > header a {
    color: #8be7ff !important;
    font-weight: 750;
}

body:has(#certificate) > main {
    width: min(1140px, calc(100% - 40px));
    max-width: none;
    margin: 42px auto 64px;
    padding: 0;
}

body:has(#certificate) .panel {
    padding: clamp(22px, 4vw, 36px);
    border: 1px solid rgba(100,160,225,.24);
    border-radius: 20px;
    color: #e8eef9;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(0,197,255,.09), transparent 48%),
        linear-gradient(145deg, rgba(24,42,69,.98), rgba(12,24,43,.98));
    box-shadow: 0 18px 48px rgba(0,0,0,.2);
}

body:has(#certificate) .panel h1,
body:has(#certificate) .panel h2 {
    color: #f4f7ff;
}

body:has(#certificate) .muted {
    color: #a9b8ce;
}

body:has(#certificate) .status {
    border: 1px solid rgba(100,160,225,.2);
    color: #dceaff;
    background: rgba(6,17,32,.55);
    overflow-wrap: anywhere;
}

body:has(#certificate) .certificate {
    border: 1px solid rgba(100,160,225,.3);
    border-radius: 14px;
    background: rgba(6,17,32,.4);
}

body:has(#certificate) .details .detail {
    border: 1px solid rgba(123,165,216,.15);
    color: #e8eef9;
    background: rgba(8,21,38,.65);
}

body:has(#certificate) .details .detail strong {
    color: #8be7ff;
}

body:has(#certificate) .panel button,
body:has(#certificate) .panel a.button {
    border: 1px solid rgba(85,213,255,.25);
    border-radius: 10px;
    background: linear-gradient(135deg, #1765b5, #087fa5);
    color: #fff;
    font-weight: 700;
}

body:has(#certificate) .panel .secondary {
    background: #243852;
    color: #e4edfc;
}

@media (max-width: 640px) {
    body:has(.products-brand-header) .products-brand-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    body:has(.products-brand-header) main,
    body:has(.products-brand-header) .page-header {
        width: calc(100% - 28px);
    }

    body:has(.devices-page) .devices-main {
        padding-right: 14px;
        padding-left: 14px;
    }

    body:has(#certificate) > main {
        width: calc(100% - 28px);
        margin-top: 24px;
    }
}

@media print {
    body:has(#certificate) {
        color: #172033 !important;
        background: #fff !important;
    }

    body:has(#certificate) .panel,
    body:has(#certificate) .certificate {
        color: #172033;
        background: #fff;
        box-shadow: none;
    }
}

/* Logos Premium: Authorized Device Cards Refinement */
body:has(.devices-page) .device-item {
    gap: 20px;
    margin: 14px 18px;
    padding: 22px;
    border: 1px solid rgba(105, 164, 226, .24) !important;
    border-radius: 15px;
    color: #e8eef9 !important;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(0, 197, 255, .08), transparent 50%),
        linear-gradient(145deg, #172b47, #0d1b30) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .17);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

body:has(.devices-page) .device-item:hover {
    border-color: rgba(85, 213, 255, .55) !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}

body:has(.devices-page) .device-item p,
body:has(.devices-page) .device-item span {
    color: #b9c9df;
    line-height: 1.7;
}

body:has(.devices-page) .device-item strong,
body:has(.devices-page) .device-item b {
    color: #eaf5ff;
}

body:has(.devices-page) .device-item button {
    flex-shrink: 0;
    padding: 10px 15px;
    border: 1px solid rgba(255, 126, 126, .3);
    border-radius: 10px;
    color: #ffd6d6;
    background: rgba(130, 37, 53, .24);
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

body:has(.devices-page) .device-item button:hover {
    border-color: rgba(255, 126, 126, .7);
    background: rgba(155, 42, 58, .42);
}

body:has(.devices-page) .devices-panel-header {
    border-bottom-color: rgba(126, 171, 226, .15);
}

body:has(.devices-page) .back-account {
    border-color: rgba(85, 213, 255, .3) !important;
    border-radius: 10px;
    color: #8be7ff !important;
    background: rgba(25, 45, 73, .72) !important;
}

body:has(.devices-page) .back-account:hover {
    border-color: #55d5ff !important;
    background: rgba(27, 81, 120, .55) !important;
}

@media (max-width: 700px) {
    body:has(.devices-page) .device-item {
        margin: 12px;
        padding: 18px;
    }

    body:has(.devices-page) .device-item button {
        width: 100%;
    }
}

/* Logos Products: Final Premium Header Refinement */
body:has(.products-brand-header) .products-brand-header {
    box-sizing: border-box;
    width: min(1180px, calc(100% - 40px));
    min-height: 84px;
    margin: 0 auto;
    padding: 18px 24px;
    border: 1px solid rgba(100, 160, 225, .2) !important;
    border-top: 0 !important;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(135deg, #10233d, #0b1729) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
    color: #edf5ff !important;
}

body:has(.products-brand-header) .products-brand-header a,
body:has(.products-brand-header) .products-brand-header .products-brand,
body:has(.products-brand-header) .products-brand-header .products-account-link {
    color: #8be7ff !important;
}

body:has(.products-brand-header) .products-brand-header a:hover {
    color: #ffffff !important;
}

body:has(.products-brand-header) .page-header {
    padding-top: 10px;
}

body:has(.products-brand-header) .page-header a {
    color: #8be7ff;
    text-decoration: none;
}

body:has(.products-brand-header) .page-header a:hover {
    color: #ffffff;
}

body:has(.products-brand-header) .product {
    width: 100%;
}

@media (max-width: 600px) {
    body:has(.products-brand-header) .products-brand-header {
        width: calc(100% - 24px);
        padding: 16px;
    }
}
