:root {
    --bg: #0b0f14;
    --card: #10161f;
    --muted: #778196;
    --text: #e8eef9;
    --accent: #3b82f6;
    --accent-2: #22d3ee;
    --accent-3: #0b1e2d;
    --accent-4: #1f3a4d;
    --accent-5: #5a1a2a;
    --accent-6: #871c4e;
    --accent-7: #5a4700;
    --accent-8: #8c6a00;
    --ok: #10b981;
    --warn: #f59e0b;
    --err: #ef4444;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
    background: linear-gradient(180deg, #0b0f14 0%, #0a0d12 100%);
    color: var(--text);
}

a {
    color: var(--text);
    text-decoration: none;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

.container {
    width: 100%;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    position: relative;
}

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

.logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-image: url("/images/logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    box-shadow: var(--shadow);
}

.brand strong {
    font-size: 1rem;
}

.brand small {
    color: var(--muted);
}

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

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.menu-item {
    padding: 10px 14px;
}

.main-nav a {
    opacity: 0.85;
}

.main-nav a:hover {
    opacity: 1;
}

.nav-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-burger {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #233143;
    color: var(--text);
    background: #10161f;
    cursor: pointer;
}

.btn,
.btn-primary {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 12px;
    border: 0;
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    transition: transform 0.12s ease;
    cursor: pointer;
}

.btn:hover,
.btn-primary:hover {
    transform: translateY(-1px);
}

.btn.secondary,
.btn-ghost {
    background: #17202b;
    color: var(--text);
    border: 1px solid #233143;
    box-shadow: none;
}

.is-hidden {
    display: none !important;
}

h1,
h2 {
    margin: 0 0 10px;
}

h1 {
    font-size: 40px;
    line-height: 1.1;
}

h2 {
    font-size: 26px;
}

h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.lead {
    font-size: 18px;
    color: var(--muted);
    margin: 0 0 18px;
}

.section-sub,
.muted,
small {
    color: var(--muted);
}

.section {
    margin: 48px 0;
}

.hero {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 24px;
    align-items: stretch;
    margin: 28px 0 18px;
}

.card,
.auth-card {
    background: linear-gradient(180deg, #10161f, #0f141b);
    border: 1px solid #1e293b;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-card,
.account-page .card,
.instructions-page .card {
    padding: 18px;
}

.hero .left {
    padding: 28px;
}

.hero em {
    font-style: italic;
}

.hero-visual {
    display: grid;
}

.hero-visual-card {
    padding: 18px;
    height: 100%;
    background:
        radial-gradient(80% 100% at 20% 0%, rgba(59, 130, 246, 0.24) 0%, rgba(59, 130, 246, 0) 60%),
        linear-gradient(180deg, #0f1a2a, #0b111b);
}

.hero-visual-card ol {
    margin: 0 0 16px;
    padding-left: 20px;
    color: #cfe2ff;
}

.hero-image-cover {
    width: 100%;
    min-height: 500px;
}

.badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.badge {
    font-size: 12px;
    border: 1px solid #223247;
    color: #cde1ff;
    padding: 8px 10px;
    border-radius: 999px;
    background: #0d1420;
}

.cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.grid {
    display: grid;
    gap: 16px;
}

.cards-2,
.cards-3 {
    display: grid;
    gap: 16px;
}

.cards-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

.feature {
    padding: 18px;
    border-radius: 14px;
    border: 1px solid #1e293b;
    background: #0e1520;
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

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

.kpi {
    padding: 18px;
    border-radius: 14px;
    border: 1px solid #243040;
    background: #0f1520;
    text-align: center;
}

.kpi strong {
    display: block;
    font-size: 22px;
}

.kpi span {
    color: var(--muted);
}

.pricing {
    grid-template-columns: repeat(3, 1fr);
    margin: 16px 0;
}

.price {
    padding: 22px;
    border-radius: 16px;
    border: 1px solid #233143;
    background: linear-gradient(180deg, #0f1622, #0c121a);
}

.price:nth-child(3n + 1) {
    background: linear-gradient(135deg, var(--accent-3), var(--accent-4));
}

.price:nth-child(3n + 2) {
    background: linear-gradient(135deg, var(--accent-5), var(--accent-6));
}

.price:nth-child(3n + 3) {
    background: linear-gradient(135deg, var(--accent-7), var(--accent-8));
}

.price .tag {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #152234;
    border: 1px solid #243649;
}

.price .amount {
    font-size: 28px;
    margin: 10px 0 16px;
}

.price .btn {
    min-width: 118px;
}

.price-meta {
    color: #c8d9f5;
    font-size: 14px;
}

.price-benefits {
    list-style: none;
    margin: 12px 0 18px;
    padding: 0;
    color: #c8d9f5;
}

.price-benefits li {
    margin: 8px 0;
}

.check {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 6px;
    background: #162834;
    display: inline-grid;
    place-items: center;
    margin-right: 6px;
}

.how-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.how-card {
    padding: 18px;
}

.code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background: #0a1220;
    border: 1px solid #1f2b3b;
    border-radius: 12px;
    padding: 14px;
    white-space: pre-wrap;
    color: #c0dcff;
    margin: 12px 0;
}

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

.tab {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #223247;
    background: #132238;
    font-size: 13px;
    cursor: pointer;
    color: #fff;
    white-space: nowrap;
    transition: transform 0.12s ease, border-color 0.2s ease, background 0.2s ease;
}

.tab:hover {
    transform: translateY(-1px);
    border-color: #355b84;
}

.tab.is-active {
    border-color: #4ca0ff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
}

.payment-system-image {
    filter: brightness(150%) grayscale();
}

.faq-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.faq-item {
    border: 1px solid #233143;
    border-radius: 12px;
    padding: 0;
    background: #0f1622;
}

.faq-q {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    font-weight: 600;
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.faq-a {
    display: none;
    margin-top: 0;
    color: #cfe2ff;
    padding: 0 14px 12px;
}

.faq-icon {
    color: #cfe2ff;
    font-weight: 700;
}

.faq-item.open .faq-a {
    display: block;
}

.buy-card {
    padding: 22px;
}

.auth-wrap {
    max-width: 620px;
    margin: 48px auto;
}

.auth-card {
    padding: 22px;
}

.account-head {
    margin-bottom: 16px;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.account-grid-wide-main {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.account-card-wide {
    margin-bottom: 16px;
}

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

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

.stack-sm {
    display: grid;
    gap: 10px;
}

.stack-xs {
    display: grid;
    gap: 6px;
}

.label {
    color: #d8e4f8;
    font-size: 0.92rem;
}

.input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #233143;
    background: #0b121c;
    color: #f2f7ff;
    padding: 0.66rem 0.8rem;
}

.input:focus {
    outline: 2px solid rgba(59, 130, 246, 0.42);
    border-color: transparent;
}

.auth-foot {
    margin: 12px 0 0;
    color: #becde7;
}

.auth-foot a {
    color: #cfe2ff;
}

.form-error {
    color: var(--err);
    margin: 10px 0 0;
}

.alert {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 16px;
}

.alert-success {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.16);
}

.alert-error {
    border-color: rgba(239, 68, 68, 0.48);
    background: rgba(239, 68, 68, 0.15);
}

.price-preview {
    padding: 10px;
    border: 1px dashed #233143;
    border-radius: 12px;
}

.referral-capture {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 14px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.summary-card {
    border: 1px solid #233143;
    border-radius: 14px;
    padding: 12px;
    background: #0c131d;
}

.summary-card .summary-label {
    color: #9bb0cf;
    font-size: 12px;
    margin-bottom: 6px;
}

.summary-card .summary-value {
    color: #f2f7ff;
    font-size: 20px;
    font-weight: 700;
}

.summary-card .summary-note {
    color: #8ca3c5;
    font-size: 12px;
    margin-top: 4px;
}

.list-stack {
    display: grid;
    gap: 10px;
}

.device-item,
.list-item {
    border: 1px solid #233143;
    border-radius: 14px;
    padding: 14px;
    background: #0c131d;
}

.item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.item-title {
    font-size: 15px;
    font-weight: 700;
    color: #f2f7ff;
}

.item-subtitle {
    color: #96abc9;
    font-size: 13px;
    margin-top: 3px;
}

.item-meta {
    display: grid;
    gap: 5px;
    color: #afc1db;
    font-size: 12px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #2c4260;
    background: #142437;
    color: #d8e8ff;
}

.status-pill.is-success {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.12);
    color: #93f0cb;
}

.status-pill.is-pending {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.12);
    color: #ffd289;
}

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

.copy-input {
    flex: 1 1 320px;
    min-width: 0;
    border-radius: 12px;
    border: 1px solid #233143;
    background: #0b121c;
    color: #eaf2ff;
    padding: 0.8rem 0.9rem;
}

.empty-state {
    color: #9bb0cf;
    border: 1px dashed #233143;
    border-radius: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.link-inline {
    color: #9fd0ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.payment-checking-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 28, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    backdrop-filter: blur(8px);
}

.payment-checking-modal {
    width: min(92vw, 420px);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.22);
    background: linear-gradient(180deg, rgba(16, 24, 38, 0.98), rgba(10, 18, 28, 0.98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    padding: 28px;
    display: grid;
    gap: 14px;
    text-align: center;
}

.payment-checking-spinner {
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border-radius: 50%;
    border: 4px solid rgba(59, 130, 246, 0.18);
    border-top-color: #48b1ff;
    animation: payment-spin 1s linear infinite;
}

@keyframes payment-spin {
    to {
        transform: rotate(360deg);
    }
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.tiny {
    font-size: 0.8rem;
}

.mt-md {
    margin-top: 12px;
}

.mt-lg {
    margin-top: 24px;
}

.w-full {
    width: 100%;
}

.site-footer {
    margin: 40px 0 20px;
    color: #93a6c7;
    font-size: 13px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.account-shell-page {
    --text: #0f172a;
    --muted: #64748b;
    --card: #ffffff;
    background: linear-gradient(180deg, #f7fafd 0%, #edf4fb 100%);
    color: var(--text);
}

.account-shell-page .wrap {
    max-width: 1320px;
    padding: 20px 24px 32px;
}

.account-shell-page .brand,
.account-shell-page .account-side-link,
.account-shell-page .account-shortcut {
    color: var(--text);
}

.account-shell-page .brand small,
.account-shell-page .section-sub,
.account-shell-page .muted,
.account-shell-page small {
    color: var(--muted);
}

.account-shell-page .section {
    margin: 24px 0 0;
}

.account-shell-page .card {
    background: #ffffff;
    border: 1px solid #dde7f2;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    padding: 20px;
}

.account-topbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0 20px;
}

.account-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.account-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.account-sidebar {
    position: sticky;
    top: 24px;
    padding: 22px;
    display: grid;
    gap: 18px;
}

.account-sidebar-head h2 {
    margin-bottom: 8px;
}

.account-eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2563eb;
}

.account-sidebar-summary {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff, #f1f7fd);
    border: 1px solid #dbe7f4;
}

.account-summary-row {
    display: grid;
    gap: 4px;
}

.account-summary-row .summary-label {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.account-summary-row .summary-value {
    color: #0f172a;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.account-side-nav {
    display: grid;
    gap: 8px;
}

.account-side-link {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #dbe5f1;
    background: #f8fbff;
    color: #0f172a;
    font-weight: 600;
    transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}

.account-side-link:hover {
    transform: translateY(-1px);
    border-color: #bfd5eb;
}

.account-side-link.is-active {
    border-color: #bfdbfe;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(34, 211, 238, 0.14));
}

.account-main {
    display: grid;
    gap: 18px;
}

.account-main-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.account-main-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.account-mobile-menu-toggle,
.account-sidebar-close,
.account-sidebar-backdrop {
    display: none;
}

.account-mobile-menu-toggle {
    padding: 0;
    width: 46px;
    min-width: 46px;
    height: 46px;
    border-radius: 16px;
}

.account-mobile-menu-lines {
    display: inline-grid;
    gap: 5px;
}

.account-mobile-menu-lines span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.account-sidebar-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.account-sidebar-close {
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    border: 1px solid #dbe5f1;
    border-radius: 14px;
    background: #f8fbff;
    color: #0f172a;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}

.account-sidebar-close:hover {
    transform: translateY(-1px);
    border-color: #bfd5eb;
    background: #f1f7fd;
}

.account-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 18px;
    align-items: start;
}

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

.account-shortcut {
    padding: 20px;
    display: grid;
    gap: 8px;
}

.account-shortcut strong {
    font-size: 18px;
}

.account-shortcut-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2563eb;
}

.account-billing-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
}

.subscription-overview {
    display: grid;
    gap: 14px;
}

.subscription-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 42%),
        linear-gradient(135deg, #f9fcff, #eef6ff);
}

.subscription-hero.is-trial {
    border-color: rgba(245, 158, 11, 0.24);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 42%),
        linear-gradient(135deg, #fffaf0, #fff4e2);
}

.subscription-hero-main {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.subscription-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.subscription-status-pill.is-trial {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.subscription-hero-title {
    color: #0f172a;
    font-size: 24px;
    line-height: 1.15;
}

.subscription-hero .section-sub {
    margin: 0;
    max-width: 620px;
    line-height: 1.55;
}

.subscription-hero-side {
    min-width: 120px;
    display: grid;
    align-content: center;
    justify-items: end;
    gap: 4px;
    text-align: right;
}

.subscription-hero-caption {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.subscription-hero-days {
    color: #0f172a;
    font-size: 46px;
    line-height: 0.95;
}

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

.subscription-meta-card {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #d8e3f0;
    background: #f8fbff;
}

.subscription-meta-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.subscription-meta-value {
    color: #0f172a;
    font-size: 18px;
    line-height: 1.35;
}

.subscription-meta-note {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.subscription-meta-card.is-usage {
    align-content: start;
}

.subscription-usage-bar {
    display: block;
    width: 100%;
    height: 8px;
    margin-top: 4px;
    border-radius: 999px;
    background: #dbe7f4;
    overflow: hidden;
}

.subscription-usage-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #3b82f6, #22d3ee);
}

.subscription-config-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(34, 211, 238, 0.08));
}

.subscription-config-panel.is-empty {
    border-color: #d8e3f0;
    background: #f8fbff;
}

.subscription-config-title {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.2;
}

.subscription-config-panel .section-sub {
    margin: 8px 0 0;
    line-height: 1.5;
}

.subscription-config-btn {
    min-width: 180px;
    white-space: nowrap;
}

.account-shell-page .label {
    color: #475569;
}

.account-shell-page .input {
    border: 1px solid #d5e1ef;
    background: #f8fafc;
    color: #0f172a;
}

.account-shell-page .input::placeholder {
    color: #94a3b8;
}

.account-shell-page .input:focus {
    outline: 2px solid rgba(37, 99, 235, 0.2);
}

.account-shell-page .price-preview {
    border-color: #d8e3f0;
    background: #f8fbff;
}

.account-shell-page .summary-card,
.account-shell-page .device-item,
.account-shell-page .list-item {
    border-color: #dbe5f1;
    background: #fcfdff;
}

.account-shell-page .summary-card .summary-label,
.account-shell-page .item-subtitle,
.account-shell-page .item-meta,
.account-shell-page .summary-card .summary-note,
.account-shell-page .empty-state {
    color: #64748b;
}

.account-shell-page .summary-card .summary-value,
.account-shell-page .item-title {
    color: #0f172a;
}

.account-shell-page .empty-state {
    border-color: #d8e3f0;
    background: #f8fbff;
}

.account-shell-page .copy-input {
    border-color: #d5e1ef;
    background: #ffffff;
    color: #0f172a;
}

.account-shell-page .status-pill {
    border-color: #d8e3f0;
    background: #f8fbff;
    color: #355074;
}

.account-shell-page .link-inline {
    color: #2563eb;
}

.account-shell-page .btn.secondary,
.account-shell-page .btn-ghost {
    border: 1px solid #d5e1ef;
    background: #ffffff;
    color: #0f172a;
    box-shadow: none;
}

.account-shell-page .alert-success {
    border-color: rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.1);
}

.account-shell-page .alert-error {
    border-color: rgba(239, 68, 68, 0.24);
    background: rgba(239, 68, 68, 0.08);
}

.account-shell-page .payment-checking-overlay {
    background: rgba(15, 23, 42, 0.28);
}

.account-shell-page .payment-checking-modal {
    border-color: #dbe5f1;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.account-shell-page .payment-checking-spinner {
    border-color: rgba(37, 99, 235, 0.14);
    border-top-color: #2563eb;
}

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

    .cards-2,
    .cards-3,
    .features,
    .pricing,
    .how-grid,
    .account-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .kpis {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .account-shell {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }

    .account-overview-grid,
    .account-shortcuts,
    .account-billing-grid,
    .subscription-meta-grid {
        grid-template-columns: 1fr;
    }

    .subscription-hero {
        flex-direction: column;
    }

    .subscription-hero-side {
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 760px) {
    h1 {
        font-size: 30px;
    }

    .wrap {
        padding: 16px;
    }

    .hero .left {
        padding: 18px;
    }

    .hero-visual-card {
        padding: 14px;
    }

    .hero-image-cover {
        min-height: 360px;
    }

    .btn,
    .btn-primary,
    .btn-ghost {
        padding: 10px 14px;
        font-size: 14px;
    }

    .nav-burger {
        display: inline-grid;
        place-items: center;
    }

    .nav-menu {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        display: none;
        padding: 12px;
        border-radius: 12px;
        border: 1px solid #233143;
        background: #10161f;
        flex-direction: column;
        align-items: stretch;
        z-index: 30;
    }

    .nav-menu.open {
        display: flex;
    }

    .main-nav {
        display: grid;
        gap: 2px;
    }

    .nav-actions {
        display: grid;
        gap: 8px;
    }

    .menu-item {
        padding: 8px 10px;
    }

    .tab {
        padding: 8px 10px;
        font-size: 12px;
    }

    .section-head,
    .referral-capture {
        flex-direction: column;
    }

    .kpis {
        grid-template-columns: 1fr;
    }

    .account-shell-page .wrap {
        padding: 16px;
    }

    .account-topbar,
    .account-main-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-topbar {
        padding-right: 62px;
    }

    .account-main-head-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .account-topbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .account-mobile-menu-toggle {
        display: inline-flex;
        position: absolute;
        top: 8px;
        right: 0;
        align-items: center;
        justify-content: center;
    }

    .subscription-hero-title {
        font-size: 20px;
    }

    .subscription-hero-days {
        font-size: 36px;
    }

    .subscription-config-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .subscription-config-btn {
        width: 100%;
        min-width: 0;
    }

    .account-sidebar-backdrop {
        position: fixed;
        inset: 0;
        display: block;
        background: rgba(15, 23, 42, 0.4);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.18s ease, visibility 0.18s ease;
        z-index: 49;
    }

    .account-sidebar-backdrop.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .account-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(340px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        height: 100vh;
        border-radius: 0 24px 24px 0;
        overflow-y: auto;
        box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-18px);
        transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
        z-index: 50;
    }

    .account-sidebar.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }

    .account-sidebar-close {
        display: inline-flex;
    }

    .account-side-nav {
        display: grid;
        overflow: visible;
        padding-bottom: 0;
    }

    .account-side-link {
        white-space: normal;
    }

    body.account-menu-open {
        overflow: hidden;
    }
}
