:root {
    --bg: #050a16;
    --bg-2: #07101f;
    --panel: rgba(9, 15, 29, .78);
    --panel-2: rgba(12, 20, 38, .88);
    --line: rgba(143, 156, 190, .22);
    --line-strong: rgba(142, 111, 255, .56);
    --text: #f7f9ff;
    --muted: #9aa6bd;
    --soft: #6f7b94;
    --purple: #7c5cff;
    --pink: #f06fcb;
    --cyan: #25d5ca;
    --green: #13ba18;
    --gold: #e8bf36;
    --shadow: 0 26px 90px rgba(0, 0, 0, .38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 50% 15%, rgba(39, 73, 127, .34), transparent 34%),
        radial-gradient(circle at 35% 46%, rgba(124, 92, 255, .16), transparent 28%),
        radial-gradient(circle at 64% 44%, rgba(240, 111, 203, .14), transparent 24%),
        linear-gradient(180deg, #030814 0%, #07101e 48%, #040914 100%);
    font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.5;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 76%);
}

body::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, .38) 75%);
    pointer-events: none;
}

body.is-locked .content {
    filter: blur(7px);
    pointer-events: none;
    user-select: none;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    width: min(1260px, calc(100% - 36px));
    margin: 0 auto;
    padding-bottom: 84px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    padding: 14px 0;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    color: white;
    background: linear-gradient(135deg, #6c47ff, #8e63ff);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(124, 92, 255, .34);
}

.brand-mark svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand strong,
.brand small,
.auth-brand strong,
.auth-brand small {
    display: block;
}

.brand strong {
    font-size: 20px;
    line-height: 1.05;
}

.brand small,
.auth-brand small {
    color: #8ea0d5;
    font-size: 12px;
}

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

select,
.outline-btn {
    height: 40px;
    color: var(--text);
    background: rgba(9, 15, 29, .74);
    border: 1px solid var(--line);
    border-radius: 999px;
}

select {
    padding: 0 12px;
    outline: none;
}

.outline-btn {
    padding: 0 18px;
}

.content {
    transition: filter .25s ease;
}

.hero {
    min-height: 442px;
    padding: 44px 0 30px;
    text-align: center;
}

.mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 17px;
    color: #c9d2ff;
    background: rgba(48, 43, 101, .6);
    border: 1px solid rgba(130, 107, 255, .46);
    border-radius: 999px;
    box-shadow: 0 0 34px rgba(124, 92, 255, .2);
    font-size: 14px;
}

.mini-badge svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 2;
}

.hero h1 {
    margin: 18px auto 0;
    font-size: clamp(50px, 6vw, 76px);
    line-height: .98;
    letter-spacing: 0;
}

.hero h2 {
    margin: 0 auto;
    font-size: clamp(38px, 5.6vw, 70px);
    line-height: 1.04;
    letter-spacing: 0;
    background: linear-gradient(90deg, #7d8cff 8%, #a86cff 48%, #ff78c8 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    width: min(790px, 100%);
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 18px;
}

.hero .hero-notice {
    width: min(880px, 100%);
    margin-top: 26px;
    padding: 16px 22px;
    color: #fff4c9;
    background:
        linear-gradient(90deg, rgba(232, 191, 54, .16), rgba(124, 92, 255, .18), rgba(240, 111, 203, .16)),
        rgba(10, 17, 32, .78);
    border: 1px solid rgba(232, 191, 54, .42);
    border-radius: 16px;
    box-shadow: 0 0 36px rgba(232, 191, 54, .12), 0 0 50px rgba(124, 92, 255, .12);
    font-weight: 800;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.hero-links a,
.hero-links button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 15px;
    color: #dbe8ff;
    background: rgba(15, 29, 53, .72);
    border: 1px solid rgba(85, 115, 167, .56);
    border-radius: 999px;
    font-size: 13px;
}

.hero-links a:first-child {
    border-color: rgba(37, 213, 202, .42);
    background: rgba(8, 89, 84, .35);
}

.hero-links button {
    border-color: rgba(240, 111, 203, .38);
    background: rgba(82, 42, 104, .36);
}

.search-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(448px, 100%);
    height: 50px;
    margin: 18px auto 0;
    padding: 0 18px;
    background: rgba(7, 12, 25, .92);
    border: 1px solid rgba(131, 103, 255, .18);
    border-radius: 999px;
    box-shadow: 0 0 36px rgba(124, 92, 255, .2);
}

.search-wrap svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: #67748c;
    stroke-width: 2;
}

.search-wrap input {
    width: 100%;
    color: var(--text);
    background: transparent;
    border: 0;
    outline: none;
}

.search-wrap input::placeholder {
    color: #657189;
}

.section-block {
    padding: 18px 0 24px;
    border-top: 1px solid rgba(143, 156, 190, .16);
}

#types {
    padding-top: 26px;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-title span {
    font-size: 24px;
    font-weight: 800;
}

.section-title small {
    color: var(--soft);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 18px;
    color: #aab4c8;
    background: rgba(8, 13, 25, .64);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 700;
    transition: border .2s ease, transform .2s ease, color .2s ease, background .2s ease;
}

.category-pill svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.category-pill:hover,
.category-pill.active {
    color: white;
    transform: translateY(-1px);
    background: rgba(87, 73, 173, .56);
    border-color: var(--line-strong);
    box-shadow: 0 0 24px rgba(124, 92, 255, .18);
}

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

.account-card,
.free-card {
    overflow: hidden;
    min-height: 358px;
    background: rgba(8, 13, 25, .72);
    border: 1px solid rgba(143, 156, 190, .18);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.account-visual {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(circle at 52% 45%, rgba(255, 255, 255, .2), transparent 22%),
        linear-gradient(140deg, #0ea91a, #10d529);
}

.account-visual.blue {
    background: linear-gradient(140deg, #0c65e8, #18b7ff);
}

.account-visual.black {
    background: linear-gradient(140deg, #111827, #2a3446);
}

.account-visual.red {
    background: linear-gradient(140deg, #e52437, #ff6b4f);
}

.account-visual.purple {
    background: linear-gradient(140deg, #6639e7, #a56dff);
}

.account-visual.gold {
    background: linear-gradient(140deg, #bf831d, #f4c24e);
}

.account-visual.has-image {
    background: #08111f;
}

.account-visual.has-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.bubble-mark {
    position: relative;
    width: 114px;
    height: 86px;
}

.bubble-mark::before,
.bubble-mark::after {
    position: absolute;
    content: "";
    background: white;
    border-radius: 50%;
}

.bubble-mark::before {
    left: 0;
    top: 10px;
    width: 76px;
    height: 64px;
    box-shadow: 28px 28px 0 -13px white;
}

.bubble-mark::after {
    right: 0;
    bottom: 0;
    width: 66px;
    height: 55px;
    box-shadow: -28px -18px 0 -18px white;
}

.bubble-mark i,
.bubble-mark b {
    position: absolute;
    z-index: 1;
    width: 10px;
    height: 10px;
    background: currentColor;
    border-radius: 50%;
}

.bubble-mark i {
    left: 31px;
    top: 38px;
}

.bubble-mark b {
    left: 56px;
    top: 38px;
}

.account-body,
.free-card {
    padding: 18px;
}

.account-body h3,
.free-card h3 {
    margin: 0;
    font-size: 20px;
}

.product-price {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-top: 12px;
    padding: 0 12px;
    color: #fff4c9;
    background: rgba(232, 191, 54, .14);
    border: 1px solid rgba(232, 191, 54, .38);
    border-radius: 999px;
    font-size: 18px;
    letter-spacing: 0;
}

.account-body p,
.free-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    color: #c7d1e8;
    font-size: 13px;
}

.free-panel {
    margin-top: 44px;
}

.free-card {
    min-height: 246px;
}

.free-card button {
    width: 100%;
    height: 44px;
    margin-top: 22px;
    color: white;
    background: linear-gradient(90deg, #6e55ff, #f06fcb);
    border: 0;
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 14px 34px rgba(124, 92, 255, .28);
}

.auth-gate {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    place-items: center;
    padding: 20px;
    background:
        radial-gradient(circle at 50% 25%, rgba(124, 92, 255, .24), transparent 36%),
        rgba(2, 6, 14, .72);
    backdrop-filter: blur(14px);
}

.auth-gate.open {
    display: grid;
}

.auth-card {
    width: min(500px, 100%);
    padding: 26px;
    background: linear-gradient(180deg, rgba(14, 22, 42, .96), rgba(6, 11, 23, .96));
    border: 1px solid rgba(143, 156, 190, .22);
    border-radius: 20px;
    box-shadow: 0 34px 110px rgba(0, 0, 0, .58);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 22px 0 18px;
    padding: 6px;
    background: rgba(4, 8, 18, .7);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.auth-tabs button {
    height: 38px;
    color: #9aa6bd;
    background: transparent;
    border: 0;
    border-radius: 10px;
    font-weight: 800;
}

.auth-tabs button.active {
    color: white;
    background: rgba(124, 92, 255, .54);
}

.auth-card h2 {
    margin: 0;
    font-size: 28px;
}

.auth-card p {
    margin: 10px 0 0;
    color: var(--muted);
}

.auth-form {
    margin-top: 22px;
}

.auth-form label {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    color: #d9e1f5;
    font-weight: 800;
}

.auth-form input {
    height: 48px;
    padding: 0 14px;
    color: white;
    background: rgba(4, 8, 18, .78);
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
}

.auth-form input:focus {
    border-color: rgba(124, 92, 255, .78);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, .14);
}

.primary-btn {
    width: 100%;
    height: 48px;
    margin-top: 20px;
    color: white;
    background: linear-gradient(90deg, #6f58ff, #f06fcb);
    border: 0;
    border-radius: 12px;
    font-weight: 900;
}

.verify-box {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 18px;
    align-items: center;
    margin-top: 22px;
    padding: 18px;
    background: rgba(4, 8, 18, .62);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.countdown-ring {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: conic-gradient(var(--purple) 0deg, rgba(143, 156, 190, .2) 0deg);
}

.countdown-ring span {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    color: white;
    background: #07101f;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 900;
}

.verify-copy h3 {
    margin: 0;
}

.verify-copy p {
    margin-top: 6px;
}

.progress {
    height: 8px;
    margin-top: 14px;
    overflow: hidden;
    background: rgba(143, 156, 190, .2);
    border-radius: 999px;
}

.progress i {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--pink));
    transition: width .25s linear;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 70;
    width: min(440px, calc(100% - 36px));
    padding: 15px 18px;
    color: white;
    text-align: center;
    background: rgba(7, 12, 25, .94);
    border: 1px solid rgba(240, 111, 203, .36);
    border-radius: 14px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .45);
    opacity: 0;
    transform: translate(-50%, 16px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

html[dir="rtl"] body {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .search-wrap svg {
    transform: scaleX(-1);
}

@media (max-width: 960px) {
    .account-grid,
    .free-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 20px, 1260px);
    }

    .topbar {
        align-items: flex-start;
    }

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

    .hero {
        padding-top: 30px;
    }

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

    .hero h2 {
        font-size: 34px;
    }

    .hero p {
        font-size: 15px;
    }

    .section-title {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .auth-card {
        padding: 20px;
    }

    .verify-box {
        grid-template-columns: 1fr;
    }
}
