* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    color: #fff;
    background: radial-gradient(circle at 30% 20%, #202a55, #070812 65%);
}

.auth-page,
.dashboard,
.admin-page {
    min-height: 100vh;
}

.auth-page,
.dashboard {
    display: grid;
    place-items: center;
    padding: 32px;
}

.admin-page {
    padding: 28px;
}

.panel {
    width: min(520px, 100%);
    padding: 36px;
    border-radius: 18px;
    background: rgba(12, 14, 24, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
}

.panel.wide {
    width: min(920px, 100%);
}

h1 {
    margin: 0 0 28px;
    font-size: 40px;
}

label {
    display: block;
    margin: 18px 0 8px;
    font-weight: 700;
}

input,
select,
button {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 10px;
    padding: 0 16px;
    font: inherit;
}

input,
select {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

button {
    margin-top: 22px;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(90deg, #c016c9, #722ff0);
}

.pay-button {
    background: linear-gradient(90deg, #00b894, #0984e3);
}

.notice {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(0, 184, 148, 0.18);
    border: 1px solid rgba(0, 184, 148, 0.45);
}

.notice.warning {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.6);
}

.mac {
    direction: ltr;
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
}

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

.status-grid span {
    padding: 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.playlist-list {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.playlist-list h2 {
    margin: 0;
    font-size: 24px;
}

.playlist-item,
.playlist-admin-row {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.playlist-item button,
.playlist-admin-row button,
.playlist-admin-form button {
    width: auto;
    min-height: 38px;
    margin: 0;
    padding: 0 12px;
    font-size: 14px;
}

.playlist-admin-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.playlist-admin-form input,
.playlist-admin-form select {
    min-height: 40px;
}

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

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-header h1,
.admin-header p {
    margin: 0;
}

.logout-link {
    color: #fff;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.stats-row div,
.admin-card {
    border-radius: 14px;
    background: rgba(12, 14, 24, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.stats-row div {
    padding: 18px;
}

.stats-row strong {
    display: block;
    font-size: 34px;
}

.stats-row span {
    color: rgba(255, 255, 255, 0.72);
}

.admin-card {
    padding: 22px;
    margin-bottom: 24px;
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.admin-card-header h2 {
    margin: 0;
}

.admin-password-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
    align-items: end;
    gap: 12px;
}

.admin-password-form label,
.admin-password-form button {
    margin: 0;
}

.admin-password-form input {
    margin-top: 8px;
}

.admin-password-form button {
    width: auto;
    white-space: nowrap;
}

.payment-settings-card .admin-card-header p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.62);
}

.gateway-status {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 999px;
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.12);
    font-size: 12px;
    font-weight: 800;
}

.gateway-status.is-ready {
    border-color: rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
}

.payment-settings-form {
    display: grid;
    gap: 16px;
}

.payment-settings-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.payment-settings-form legend {
    padding: 0 8px;
    color: #9fffea;
    font-weight: 900;
}

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

.settings-grid.compact-grid { grid-template-columns: minmax(220px, 360px); }
.settings-grid label { margin: 0; }
.settings-grid input,
.settings-grid select { margin-top: 8px; }
.settings-span-2 { grid-column: 1 / -1; }
.field-help { margin: 12px 0 0; color: rgba(255, 255, 255, 0.58); font-size: 13px; line-height: 1.7; }
.checkbox-setting { display: flex; align-items: center; gap: 9px; margin: 14px 0 0; color: rgba(255, 255, 255, 0.7); font-size: 13px; }
.checkbox-setting input { width: 18px; min-height: 18px; height: 18px; padding: 0; }
.payment-settings-form > button { width: auto; min-width: 240px; justify-self: start; margin: 0; }

.admin-search,
.bulk-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-search input {
    width: 220px;
}

.admin-search button,
.admin-search a,
.bulk-actions button {
    width: auto;
    min-height: 34px;
    margin: 0;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
}

.admin-search a {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
}

.bulk-actions {
    justify-content: flex-start;
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 700;
}

.danger,
.bulk-actions .danger {
    background: linear-gradient(90deg, #d63031, #b71540);
}

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

table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-devices-table {
    min-width: 1280px;
}

th,
td {
    text-align: right;
    vertical-align: top;
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    color: #9fffea;
}

.ltr {
    direction: ltr;
    text-align: left;
}

.select-col {
    width: 42px;
    text-align: center;
}

.select-col input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    padding: 0;
}

td small {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.62);
}

.inline-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.inline-actions input {
    width: 56px;
    min-height: 32px;
    padding: 0 8px;
}

.inline-actions button {
    width: auto;
    min-height: 32px;
    margin: 0;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 12px;
}

.inline-actions .danger {
    background: linear-gradient(90deg, #d63031, #b71540);
}

.inline-actions .credential-action {
    background: linear-gradient(90deg, #0284c7, #0369a1);
}

.admin-page input,
.admin-page select {
    min-height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 12px;
}

.playlist-admin-row {
    gap: 6px;
    padding: 8px;
    border-radius: 8px;
}

.playlist-admin-row strong {
    font-size: 13px;
}

.playlist-admin-row small.ltr {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-admin-row form {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.playlist-admin-row label,
.playlist-admin-form label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    white-space: nowrap;
    font-size: 12px;
}

.playlist-admin-row input[type="checkbox"],
.playlist-admin-form input[type="checkbox"] {
    width: 16px;
    min-height: 16px;
    height: 16px;
    padding: 0;
}

.playlist-admin-form {
    grid-template-columns: 110px 86px minmax(150px, 1.3fr) minmax(130px, 1fr) 90px 90px 76px 70px;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.playlist-admin-form input,
.playlist-admin-form select {
    min-width: 0;
    min-height: 32px;
}

.playlist-admin-form button,
.playlist-admin-row button {
    min-height: 32px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 12px;
}

.playlist-form-row td {
    padding-top: 6px;
    padding-bottom: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.playlist-admin-form-wide {
    display: grid;
    grid-template-columns: 150px 86px 220px 200px 100px 100px 70px 72px;
    align-items: center;
    gap: 8px;
    width: auto;
    margin: 0;
    justify-content: start;
}

.playlist-admin-form-wide input,
.playlist-admin-form-wide select {
    width: 100%;
    min-width: 0;
    min-height: 34px;
}

.playlist-admin-form-wide label {
    justify-content: center;
    min-height: 34px;
    padding: 0 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.playlist-admin-form-wide button {
    width: 100%;
    min-height: 34px;
    margin: 0;
}

@media (max-width: 900px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-card-header,
    .admin-search,
    .bulk-actions,
    .admin-password-form {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-password-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-search input,
    .admin-search button,
    .admin-search a,
    .bulk-actions button {
        width: 100%;
    }
}

/* Public landing page and customer portal */
:root {
    --nexo-blue: #058cff;
    --nexo-cyan: #21d9ff;
    --nexo-purple: #592486;
    --nexo-ink: #050811;
    --nexo-card: rgba(12, 19, 36, 0.78);
}

.landing-body,
.portal-body {
    background:
        radial-gradient(circle at 12% 12%, rgba(0, 151, 255, 0.18), transparent 30%),
        radial-gradient(circle at 86% 18%, rgba(118, 42, 181, 0.24), transparent 32%),
        #050811;
    font-family: Tahoma, Arial, sans-serif;
}

.portal-nav {
    position: relative;
    z-index: 20;
    display: flex;
    width: min(1240px, calc(100% - 40px));
    min-height: 82px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 8, 17, 0.78);
    backdrop-filter: blur(18px);
}

.site-header-inner {
    display: flex;
    width: min(1240px, calc(100% - 40px));
    min-height: 82px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    text-decoration: none;
}

.brand img {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    object-fit: cover;
    box-shadow: 0 0 28px rgba(33, 217, 255, 0.22);
}

.site-header nav {
    display: flex;
    gap: 30px;
}

.site-header nav a,
.ghost-link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-weight: 700;
}

.site-header nav a:hover,
.site-header nav a.is-active,
.ghost-link:hover {
    color: #fff;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-label {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 700;
}

.language-menu {
    position: relative;
    z-index: 80;
}

.language-menu summary {
    position: relative;
    display: flex;
    min-width: 132px;
    min-height: 42px;
    padding: 0 38px 0 14px;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    color: #fff;
    background: #111827;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    list-style: none;
    user-select: none;
}

[dir="rtl"] .language-menu summary {
    padding-right: 14px;
    padding-left: 38px;
}

.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after {
    content: "";
    position: absolute;
    right: 15px;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.72);
    border-bottom: 2px solid rgba(255, 255, 255, 0.72);
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
}

[dir="rtl"] .language-menu summary::after { right: auto; left: 15px; }
.language-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }

.language-menu-list {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    display: grid;
    width: 190px;
    padding: 7px;
    gap: 3px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: #0b1220;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.62);
}

[dir="rtl"] .language-menu-list { right: auto; left: 0; }

.language-menu-list a {
    display: block;
    padding: 11px 13px;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.language-menu-list a:hover,
.language-menu-list a:focus-visible,
.language-menu-list a.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(0, 190, 255, 0.3), rgba(89, 36, 134, 0.42));
    outline: none;
}

.header-cta,
.primary-cta,
.secondary-cta {
    display: inline-flex;
    min-height: 50px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.header-cta,
.primary-cta {
    background: linear-gradient(135deg, var(--nexo-cyan), var(--nexo-blue) 52%, #6b39f4);
    box-shadow: 0 12px 35px rgba(5, 140, 255, 0.24);
}

.secondary-cta {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
}

.landing-hero {
    display: grid;
    width: min(1240px, calc(100% - 40px));
    min-height: 720px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
    align-items: center;
    gap: 68px;
    padding: 70px 0 86px;
}

.hero-kicker,
.eyebrow {
    display: inline-block;
    color: var(--nexo-cyan);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.hero-copy h1 {
    max-width: 650px;
    margin: 18px 0 24px;
    font-size: clamp(38px, 4.1vw, 58px);
    line-height: 1.14;
    letter-spacing: -0.03em;
}

.hero-copy > p {
    max-width: 600px;
    margin: 0;
    color: rgba(255, 255, 255, 0.69);
    font-size: 18px;
    line-height: 1.85;
}

.hero-actions,
.hero-trust {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions { margin-top: 34px; }
.hero-trust { margin-top: 25px; }
.hero-trust span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.63);
    background: rgba(255, 255, 255, 0.04);
    font-size: 12px;
    font-weight: 800;
}

.hero-visual {
    position: relative;
    width: min(512px, 100%);
    aspect-ratio: 1;
    margin-inline: auto;
}
.tv-frame {
    position: relative;
    overflow: hidden;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.03));
    box-shadow: 0 40px 110px rgba(0, 0, 0, 0.58), 0 0 80px rgba(0, 123, 255, 0.14);
    transform: perspective(1100px) rotateY(-7deg) rotateX(2deg);
}

.hero-square {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    padding: 8px;
    background: #111417;
    transform: none;
}

.hero-square .hero-logo-image {
    position: absolute;
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    object-fit: cover;
    border-radius: 23px;
}

.tv-frame img,
.experience-image img {
    display: block;
    width: 100%;
    border-radius: 23px;
}

.screen-glow {
    position: absolute;
    z-index: 3;
    inset: 8px;
    border-radius: 23px;
    box-shadow: inset 0 0 55px rgba(0, 168, 255, 0.14);
    pointer-events: none;
}

.floating-card {
    position: absolute;
    display: flex;
    min-width: 190px;
    padding: 14px 16px;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(7, 13, 25, 0.88);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
}

.floating-card b { color: var(--nexo-cyan); font-size: 18px; }
.floating-card span { color: rgba(255, 255, 255, 0.78); font-size: 13px; font-weight: 700; }
.floating-live { top: -25px; left: -20px; }
.floating-subtitle { right: -25px; bottom: 34px; }

.metrics {
    display: grid;
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
}

.metrics div { padding: 26px; text-align: center; }
.metrics div + div { border-right: 1px solid rgba(255, 255, 255, 0.08); }
.metrics strong { display: block; color: #fff; font-size: 30px; }
.metrics span { color: rgba(255, 255, 255, 0.55); font-size: 13px; }

.landing-section,
.pricing-section {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 120px 0;
}

.section-intro { max-width: 680px; margin: 0 auto 46px; text-align: center; }
.section-intro h2,
.experience-copy h2,
.start-section h2 { margin: 10px 0 16px; font-size: clamp(36px, 4vw, 54px); line-height: 1.2; }
.section-intro p,
.experience-copy p,
.start-section p { color: rgba(255, 255, 255, 0.64); font-size: 17px; line-height: 1.85; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-grid article {
    min-height: 235px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(15, 25, 48, 0.76), rgba(8, 12, 24, 0.58));
}

.feature-grid article:hover { border-color: rgba(33, 217, 255, 0.38); transform: translateY(-4px); }
.feature-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #087eef, #672ad7); font-size: 14px; font-weight: 900; }
.feature-grid h3 { margin: 22px 0 10px; font-size: 22px; }
.feature-grid p { margin: 0; color: rgba(255, 255, 255, 0.59); line-height: 1.75; }

.experience-section {
    display: grid;
    width: min(1160px, calc(100% - 40px));
    margin: 10px auto 0;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
    padding: 84px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    background: radial-gradient(circle at 20% 30%, rgba(0, 139, 255, 0.16), transparent 44%), rgba(12, 18, 34, 0.72);
}

.experience-image { overflow: hidden; border-radius: 26px; box-shadow: 0 28px 75px rgba(0, 0, 0, 0.46); }
.experience-copy ul,
.price-card ul { padding: 0; list-style: none; }
.experience-copy li,
.price-card li { position: relative; margin: 13px 0; padding-right: 27px; color: rgba(255, 255, 255, 0.76); }
.experience-copy li::before,
.price-card li::before { content: '✓'; position: absolute; right: 0; color: var(--nexo-cyan); font-weight: 900; }

.pricing-section { padding-bottom: 100px; }
.price-card {
    position: relative;
    width: min(480px, 100%);
    margin: 0 auto;
    padding: 42px;
    border: 1px solid rgba(33, 217, 255, 0.32);
    border-radius: 28px;
    background: linear-gradient(155deg, rgba(13, 30, 57, 0.96), rgba(20, 10, 39, 0.94));
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
    text-align: center;
}
.price-card > img { width: 82px; height: 82px; border-radius: 22px; object-fit: cover; }
.price-card h3 { margin: 18px 0 12px; font-size: 28px; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 10px; direction: ltr; }
.price strong { font-size: 54px; }
.price span { color: rgba(255, 255, 255, 0.58); }
.price-card ul { margin: 28px 0; text-align: right; }
.price-card .primary-cta { width: 100%; }
.price-card > small { display: block; margin-top: 15px; color: rgba(255, 255, 255, 0.48); }
.price-badge { position: absolute; top: 20px; left: 20px; padding: 7px 11px; border-radius: 999px; color: #03111c; background: var(--nexo-cyan); font-size: 11px; font-weight: 900; }

.start-section {
    display: flex;
    width: min(1040px, calc(100% - 40px));
    margin: 0 auto 100px;
    padding: 54px;
    align-items: center;
    gap: 38px;
    border-radius: 28px;
    background: linear-gradient(120deg, rgba(10, 126, 239, 0.24), rgba(90, 35, 132, 0.42));
}
.start-section img { width: 126px; height: 126px; flex: 0 0 auto; border-radius: 30px; object-fit: cover; }
.start-section h2 { font-size: 38px; }
.start-section p { margin-bottom: 0; }

.legal-notice {
    display: flex;
    width: min(1040px, calc(100% - 40px));
    margin: 0 auto 70px;
    padding: 24px 28px;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.07);
}

.legal-notice > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #111827;
    background: #fbbf24;
    font-family: Georgia, serif;
    font-weight: 900;
}

.legal-notice strong { color: #fde68a; }
.legal-notice p { margin: 6px 0 0; color: rgba(255, 255, 255, 0.67); font-size: 14px; line-height: 1.8; }

.site-footer {
    display: flex;
    width: min(1240px, calc(100% - 40px));
    min-height: 110px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-copy { display: grid; max-width: 760px; gap: 12px; }
.site-footer p { margin: 0; color: rgba(255, 255, 255, 0.48); font-size: 12px; line-height: 1.65; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 9px 18px; }
.footer-legal-links a,
.footer-admin-link { color: rgba(255, 255, 255, 0.7); font-size: 12px; font-weight: 800; text-decoration: none; }
.footer-legal-links a:hover,
.footer-admin-link:hover { color: var(--nexo-cyan); }

/* Public policy pages */
.policy-body { min-height: 100vh; }
.policy-header-nav a.is-active { color: var(--nexo-cyan); }
.policy-shell {
    display: grid;
    width: min(1180px, calc(100% - 40px));
    margin: 58px auto 80px;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    gap: 34px;
}
.policy-index {
    position: sticky;
    top: 118px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: rgba(10, 17, 32, 0.78);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}
.policy-index nav { display: grid; margin-top: 18px; gap: 7px; }
.policy-index a {
    padding: 12px 14px;
    border-radius: 11px;
    color: rgba(255, 255, 255, 0.66);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}
.policy-index a:hover,
.policy-index a.is-active { color: #fff; background: linear-gradient(135deg, rgba(0, 174, 255, 0.22), rgba(89, 36, 134, 0.34)); }
.policy-article {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    background: rgba(8, 14, 27, 0.82);
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.35);
}
.policy-hero {
    padding: 58px 62px 48px;
    background: linear-gradient(135deg, rgba(0, 151, 255, 0.12), rgba(89, 36, 134, 0.2));
}
.policy-hero h1 { margin: 14px 0 18px; font-size: clamp(38px, 5vw, 62px); line-height: 1.12; }
.policy-hero p { max-width: 760px; margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 17px; line-height: 1.85; }
.policy-hero small { display: block; margin-top: 22px; color: rgba(255, 255, 255, 0.42); }
.policy-sections { display: grid; padding: 14px 62px 46px; }
.policy-sections section {
    display: grid;
    padding: 34px 0;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}
.policy-sections section:last-child { border-bottom: 0; }
.policy-sections section > span { color: var(--nexo-cyan); font-size: 13px; font-weight: 900; }
.policy-sections h2 { margin: -5px 0 12px; font-size: 23px; }
.policy-sections p { margin: 0; color: rgba(255, 255, 255, 0.64); font-size: 15px; line-height: 1.95; }
.policy-contact {
    display: flex;
    margin: 0 62px 58px;
    padding: 24px;
    align-items: flex-start;
    gap: 17px;
    border: 1px solid rgba(33, 217, 255, 0.2);
    border-radius: 18px;
    background: rgba(33, 217, 255, 0.055);
}
.policy-contact > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: #02131c; background: var(--nexo-cyan); font-weight: 900; }
.policy-contact h2 { margin: 0 0 8px; font-size: 19px; }
.policy-contact p { margin: 0 0 7px; color: rgba(255, 255, 255, 0.62); line-height: 1.75; }
.policy-contact a { color: var(--nexo-cyan); font-weight: 800; text-decoration: none; }
.policy-footer { margin-bottom: 20px; }

html[dir="ltr"] .experience-copy li,
html[dir="ltr"] .price-card li { padding-right: 0; padding-left: 27px; }
html[dir="ltr"] .experience-copy li::before,
html[dir="ltr"] .price-card li::before { right: auto; left: 0; }
html[dir="ltr"] .price-card ul { text-align: left; }
html[dir="ltr"] th,
html[dir="ltr"] td { text-align: left; }

.portal-body { min-height: 100vh; }
.portal-nav { min-height: 86px; }
.portal-dashboard { min-height: auto; padding-top: 20px; align-items: start; }
.portal-panel { width: min(1040px, 100%); padding: 38px; }
.portal-heading,
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portal-heading h1 { margin: 6px 0 0; }
.status-grid span { display: grid; gap: 7px; }
.status-grid small { color: rgba(255, 255, 255, 0.55); }
.status-grid strong { font-size: 15px; }
.payment-card { display: grid; grid-template-columns: 1fr 0.9fr; gap: 30px; margin: 28px 0; padding: 28px; border: 1px solid rgba(33, 217, 255, 0.2); border-radius: 20px; background: linear-gradient(135deg, rgba(5, 140, 255, 0.13), rgba(89, 36, 134, 0.2)); }
.payment-card h2 { margin: 7px 0 8px; }
.payment-card p { color: rgba(255, 255, 255, 0.66); line-height: 1.7; }
.payment-card .payment-legal { padding: 10px 12px; border: 1px solid rgba(245, 158, 11, 0.28); border-radius: 10px; color: #fde68a; background: rgba(245, 158, 11, 0.07); font-size: 12px; }
.payment-options { display: grid; gap: 10px; }
.payment-options button { display: flex; min-height: 62px; margin: 0; align-items: center; justify-content: space-between; }
.payment-options button span { font-size: 18px; }
.payment-options button small { opacity: 0.8; }
.paypal-button { color: #082b58; background: linear-gradient(90deg, #ffc439, #ffda73); }
.stripe-button { background: linear-gradient(90deg, #635bff, #8c72ff); }
.payment-options button:disabled { cursor: not-allowed; filter: grayscale(1); opacity: 0.42; }
.payment-message { grid-column: 1 / -1; margin: 0 !important; }
.section-heading h2 { margin: 4px 0 0; }
.section-heading > span { color: rgba(255, 255, 255, 0.58); }
.playlist-item { grid-template-columns: 1fr auto; align-items: center; }
.playlist-item form { display: flex; gap: 8px; }
.playlist-item small { display: block; margin-top: 5px; color: rgba(255, 255, 255, 0.52); }
.empty-state { padding: 24px; border-radius: 14px; color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.04); text-align: center; }
.playlist-details { margin-top: 25px; padding: 20px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; background: rgba(255, 255, 255, 0.035); }
.playlist-details summary { cursor: pointer; color: var(--nexo-cyan); font-weight: 900; }
.playlist-details .playlist-form label { margin: 0; }
.playlist-details .playlist-form input,
.playlist-details .playlist-form select { margin-top: 7px; }

/* Public purchase flow */
.purchase-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 16% 16%, rgba(0, 151, 255, 0.16), transparent 32%),
        radial-gradient(circle at 84% 12%, rgba(118, 42, 181, 0.22), transparent 30%),
        #050811;
}

.purchase-header {
    display: flex;
    width: min(1320px, calc(100% - 40px));
    min-height: 82px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.purchase-home-link {
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.055);
    font-weight: 800;
}

.purchase-shell {
    display: grid;
    width: min(1320px, calc(100% - 40px));
    min-height: calc(100vh - 112px);
    margin: 0 auto 30px;
    grid-template-columns: minmax(0, 1fr) minmax(460px, 0.88fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 30px;
    background: rgba(7, 11, 22, 0.9);
    box-shadow: 0 38px 120px rgba(0, 0, 0, 0.5);
}

.purchase-showcase {
    position: relative;
    display: flex;
    min-height: 700px;
    overflow: hidden;
    padding: 64px;
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    background:
        linear-gradient(180deg, rgba(3, 7, 16, 0.2), rgba(3, 7, 16, 0.92)),
        url('assets/hero.png') center / cover no-repeat;
}

.purchase-showcase::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(5, 8, 17, 0.52));
    pointer-events: none;
}

html[dir="ltr"] .purchase-showcase::after { background: linear-gradient(270deg, transparent, rgba(5, 8, 17, 0.52)); }
.purchase-showcase > * { position: relative; z-index: 1; }
.purchase-logo { width: 150px; height: 150px; border-radius: 34px; object-fit: cover; box-shadow: 0 24px 70px rgba(0, 119, 255, 0.34); }
.purchase-showcase h1 { margin: 9px 0 13px; font-size: clamp(38px, 4.4vw, 66px); }
.purchase-showcase > div > p { max-width: 620px; margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 17px; line-height: 1.85; }

.purchase-legal {
    max-width: 680px;
    padding: 19px 21px;
    border: 1px solid rgba(245, 158, 11, 0.31);
    border-radius: 17px;
    background: rgba(3, 7, 16, 0.68);
    backdrop-filter: blur(12px);
}
.purchase-legal strong { color: #fde68a; }
.purchase-legal p { margin: 7px 0 0 !important; font-size: 13px !important; line-height: 1.75 !important; }

.purchase-panel {
    position: relative;
    padding: 52px 48px;
    background: linear-gradient(155deg, rgba(14, 23, 43, 0.97), rgba(7, 10, 19, 0.98));
}

.purchase-secure {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6ee7b7;
    font-size: 12px;
    font-weight: 900;
}
.purchase-secure i { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 14px #10b981; }
.purchase-panel > h2 { margin: 15px 0 12px; font-size: clamp(31px, 3.2vw, 48px); line-height: 1.2; }
.purchase-warning { margin: 0 0 24px; color: rgba(255, 255, 255, 0.63); line-height: 1.75; }

.purchase-plan {
    display: flex;
    min-height: 104px;
    padding: 20px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 2px solid rgba(33, 217, 255, 0.58);
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(5, 140, 255, 0.13), rgba(89, 36, 134, 0.2));
}
.purchase-plan > div:first-child { display: grid; gap: 6px; }
.purchase-plan > div:first-child span { font-size: 19px; font-weight: 900; }
.purchase-plan small { color: rgba(255, 255, 255, 0.55); }
.purchase-price { display: flex; align-items: baseline; gap: 7px; direction: ltr; margin-inline-start: auto; }
.purchase-price strong { font-size: 30px; }
.purchase-price span { color: rgba(255, 255, 255, 0.62); font-weight: 800; }
.purchase-plan > b { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #03111c; background: var(--nexo-cyan); }

.purchase-message {
    margin: 18px 0 0;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    line-height: 1.65;
}
.purchase-message.success { border-color: rgba(16, 185, 129, 0.45); color: #a7f3d0; background: rgba(16, 185, 129, 0.1); }
.purchase-message.warning { border-color: rgba(245, 158, 11, 0.45); color: #fde68a; background: rgba(245, 158, 11, 0.09); }
.purchase-message.error { border-color: rgba(239, 68, 68, 0.45); color: #fecaca; background: rgba(239, 68, 68, 0.09); }

.purchase-form { margin-top: 25px; }
.purchase-form label { margin: 18px 0 0; }
.purchase-form label > input:not([type="checkbox"]) { margin-top: 8px; }
.purchase-form label > small { display: block; margin-top: 7px; color: rgba(255, 255, 255, 0.48); font-size: 11px; font-weight: 400; }
.purchase-form input:focus { outline: 2px solid rgba(33, 217, 255, 0.55); border-color: transparent; }
.purchase-terms { display: grid !important; grid-template-columns: 21px 1fr; align-items: start; gap: 10px; color: rgba(255, 255, 255, 0.68); font-size: 12px; line-height: 1.7; font-weight: 500; }
.purchase-terms input { width: 19px; min-height: 19px; height: 19px; margin-top: 2px; padding: 0; accent-color: var(--nexo-blue); }
.purchase-policy-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: -5px; }
.purchase-policy-links a { color: var(--nexo-cyan); font-size: 11px; font-weight: 800; text-decoration: none; }
.purchase-policy-links a:hover { text-decoration: underline; }
.purchase-continue { width: 100%; margin-top: 22px; border: 0; cursor: pointer; }
.purchase-hint { margin: 12px 0 0; color: rgba(255, 255, 255, 0.48); font-size: 12px; line-height: 1.65; text-align: center; }

.purchase-verified {
    display: flex;
    margin-top: 22px;
    padding: 16px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 14px;
    background: rgba(16, 185, 129, 0.07);
}
.purchase-verified > div { display: grid; gap: 4px; }
.purchase-verified span { color: #6ee7b7; font-size: 11px; font-weight: 900; }
.purchase-verified small { color: rgba(255, 255, 255, 0.52); }
.purchase-verified a { color: var(--nexo-cyan); font-size: 12px; font-weight: 900; }
.purchase-payment { margin-top: 24px; }
.purchase-payment h3 { margin: 0 0 13px; font-size: 17px; }
.purchase-provider {
    display: flex;
    width: 100%;
    min-height: 68px;
    margin: 10px 0 0;
    padding: 12px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 13px;
}
.purchase-provider > span { display: grid; gap: 3px; text-align: start; }
.purchase-provider b { font-size: 18px; }
.purchase-provider small { opacity: 0.72; }
.purchase-provider > strong { direction: ltr; white-space: nowrap; }
.purchase-provider:disabled { cursor: not-allowed; filter: grayscale(1); opacity: 0.38; }

@media (max-width: 980px) {
    .purchase-shell { grid-template-columns: 1fr; }
    .purchase-showcase { min-height: 430px; padding: 44px; }
    .purchase-logo { width: 105px; height: 105px; border-radius: 25px; }
}

@media (max-width: 620px) {
    .purchase-header { width: calc(100% - 24px); min-height: 72px; }
    .purchase-header .brand span { display: none; }
    .purchase-home-link { display: none; }
    .purchase-shell { width: calc(100% - 16px); margin-bottom: 8px; border-radius: 22px; }
    .purchase-showcase { min-height: 330px; padding: 28px 24px; gap: 18px; }
    .purchase-logo { width: 78px; height: 78px; border-radius: 20px; }
    .purchase-showcase h1 { font-size: 34px; }
    .purchase-showcase > div > p { font-size: 14px; }
    .purchase-legal { padding: 14px; }
    .purchase-panel { padding: 32px 20px; }
    .purchase-panel > h2 { font-size: 31px; }
    .purchase-plan { min-height: 92px; padding: 15px; gap: 10px; }
    .purchase-price strong { font-size: 24px; }
    .purchase-plan > b { display: none; }
    .purchase-provider { padding: 10px 13px; }
}

@media (max-width: 900px) {
    .site-header nav { display: none; }
    .landing-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 55px; }
    .hero-copy { text-align: center; }
    .hero-copy > p { margin-inline: auto; }
    .hero-actions,
    .hero-trust { justify-content: center; }
    .hero-visual { margin: 30px auto 0; }
    .metrics { grid-template-columns: repeat(2, 1fr); }
    .metrics div + div { border-right: 0; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .experience-section { grid-template-columns: 1fr; padding: 45px; }
    .payment-card { grid-template-columns: 1fr; }
    .payment-message { grid-column: auto; }
    .payment-settings-card .admin-card-header { align-items: flex-start; flex-direction: column; }
    .policy-header-nav { display: none !important; }
    .policy-shell { grid-template-columns: 1fr; }
    .policy-index { position: static; }
    .policy-index nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .site-header-inner,
    .portal-nav { width: min(100% - 24px, 1240px); }
    .site-header .header-cta { display: none; }
    .language-label { display: none; }
    .language-menu summary { min-width: 108px; }
    .landing-hero,
    .landing-section,
    .pricing-section,
    .experience-section,
    .start-section,
    .site-footer { width: calc(100% - 24px); }
    .landing-hero { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .hero-copy h1 { font-size: 36px; }
    .hero-copy > p { font-size: 17px; }
    .floating-card { display: none; }
    .metrics { grid-template-columns: 1fr 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .experience-section { padding: 28px; }
    .price-card { padding: 32px 24px; }
    .start-section { display: block; padding: 32px; text-align: center; }
    .start-section img { margin-bottom: 22px; }
    .site-footer { flex-direction: column; justify-content: center; padding: 30px 0; text-align: center; }
    .footer-copy { justify-items: center; }
    .footer-legal-links { justify-content: center; }
    .policy-shell { width: calc(100% - 24px); margin-top: 30px; gap: 18px; }
    .policy-index { padding: 18px; }
    .policy-hero { padding: 38px 24px 32px; }
    .policy-hero h1 { font-size: 38px; }
    .policy-hero p { font-size: 15px; }
    .policy-sections { padding: 8px 24px 28px; }
    .policy-sections section { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 27px 0; }
    .policy-sections h2 { font-size: 20px; }
    .policy-contact { margin: 0 24px 34px; padding: 19px; }
    .policy-home-button { display: none; }
    .legal-notice { width: calc(100% - 24px); padding: 20px; }
    .settings-grid,
    .settings-grid.compact-grid { grid-template-columns: 1fr; }
    .settings-span-2 { grid-column: auto; }
    .payment-settings-form > button { width: 100%; min-width: 0; }
    .portal-dashboard { padding: 10px 12px 28px; }
    .portal-panel { padding: 24px 18px; }
    .portal-heading,
    .section-heading { align-items: flex-start; flex-direction: column; }
    .playlist-item { grid-template-columns: 1fr; }
    .playlist-item form { margin-top: 8px; }
}
