@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
    --bg: #07080d;
    --card: rgba(16, 18, 28, 0.88);
    --line: rgba(255, 255, 255, 0.08);
    --text: #f1f5f9;
    --muted: #94a3b8;
    --accent: #a78bfa;
    --ok: #34d399;
}

* { box-sizing: border-box; }

body.dreg-page {
    margin: 0;
    min-height: 100vh;
    font-family: "Plus Jakarta Sans", sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.dreg-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 40% at 20% 0%, rgba(124, 58, 237, 0.18), transparent 60%),
        radial-gradient(ellipse 40% 35% at 90% 20%, rgba(6, 182, 212, 0.12), transparent 55%),
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: auto, auto, 40px 40px, 40px 40px;
}

.dreg-shell {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 18px 48px;
}

.dreg-shell--narrow { max-width: 720px; }

.dreg-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
}

.dreg-brand { font-weight: 800; font-size: 1.05rem; }
.dreg-tag { color: var(--muted); font-size: 0.72rem; margin-top: 3px; letter-spacing: 0.03em; }

.dreg-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.dreg-langs {
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
}

.dreg-lang-btn {
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 999px;
    cursor: pointer;
}

.dreg-lang-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }
.dreg-lang-btn.active {
    color: #fff;
    background: rgba(139, 92, 246, 0.28);
}

.dreg-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
}

.dreg-pill--tg {
    border-color: rgba(139, 92, 246, 0.35);
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.1);
}

.dreg-hero { text-align: center; margin-bottom: 28px; }
.dreg-hero h1 { margin: 0 0 10px; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; letter-spacing: -0.03em; }
.dreg-hero p { margin: 0 auto; max-width: 52ch; color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

.dreg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.dreg-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dreg-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.dreg-card h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.dreg-badge {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.12);
    color: #67e8f9;
    border: 1px solid rgba(6, 182, 212, 0.28);
}
.dreg-blurb { margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.5; flex: 1; }
.dreg-price { display: flex; align-items: baseline; gap: 8px; }
.dreg-price strong { font-size: 1.2rem; }
.dreg-price span { color: var(--muted); font-size: 0.82rem; }

.dreg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.45);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.55), rgba(79, 70, 229, 0.55));
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
}
.dreg-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.dreg-btn--ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--muted);
    margin-top: 8px;
}

.dreg-note {
    margin-top: 22px;
    text-align: center;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.55;
}

.dreg-dialog {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #0f121c;
    color: var(--text);
    padding: 0;
    width: min(420px, calc(100vw - 24px));
}
.dreg-dialog::backdrop { background: rgba(0,0,0,0.65); backdrop-filter: blur(6px); }
.dreg-dialog-inner { padding: 20px; margin: 0; }
.dreg-dialog h3 { margin: 0 0 6px; }
.dreg-dialog-price { margin: 0 0 14px; color: var(--accent); font-weight: 700; }
.dreg-label { display: block; font-size: 0.72rem; color: var(--muted); margin: 10px 0 6px; }
.dreg-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(0,0,0,0.35);
    color: var(--text);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
}
.dreg-form-error { color: #fda4af; font-size: 0.78rem; margin: 10px 0 0; }
.dreg-dialog-actions { margin-top: 16px; display: grid; gap: 8px; }

.dreg-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 14px;
}

.dreg-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
}
.dreg-row:last-child { border-bottom: 0; }
.dreg-row span { color: var(--muted); }
.dreg-row code { font-family: "JetBrains Mono", monospace; }

.dreg-notice {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.25);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 14px;
}
.dreg-timer { font-family: "JetBrains Mono", monospace; color: var(--ok); }

.dreg-pay h3 { margin: 0 0 8px; font-size: 1rem; }
.dreg-muted { color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.dreg-pay-block { margin-top: 12px; }
.dreg-pay-title { font-weight: 700; margin-bottom: 8px; }
.dreg-banks { font-size: 0.75rem; color: var(--muted); margin: 8px 0 12px; }
.dreg-copyline {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.dreg-copyline code {
    flex: 1;
    min-width: 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    word-break: break-all;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--line);
}
.dreg-copyline button {
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 0.72rem;
}

.dreg-warn {
    margin: 14px 0;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.08);
    font-size: 0.78rem;
    line-height: 1.5;
}
.dreg-crypto { margin-top: 8px; color: var(--muted); font-size: 0.84rem; }
.dreg-crypto-body { margin-top: 10px; }
.dreg-status-msg { text-align: center; margin: 14px 0 8px; color: var(--muted); font-size: 0.82rem; }

.dreg-success { text-align: center; border-color: rgba(52, 211, 153, 0.35); }
.dreg-success-icon {
    width: 56px; height: 56px; margin: 0 auto 12px;
    border-radius: 16px;
    display: grid; place-items: center;
    background: rgba(52, 211, 153, 0.14);
    color: var(--ok);
    font-size: 1.5rem; font-weight: 800;
}
.dreg-success h2 { margin: 0 0 8px; }
.dreg-success .dreg-btn { margin-top: 12px; }
