:root {
    color-scheme: dark;
    --bg: #090914;
    --panel: rgba(20, 20, 38, .82);
    --panel2: rgba(30, 30, 54, .72);
    --line: rgba(255,255,255,.09);
    --text: #f7f7ff;
    --muted: #a7a7bd;
    --accent: #ff2d72;
    --accent2: #24f4ee;
    --danger: #ff4d5e;
    --ok: #46e6a6;
    --shadow: 0 24px 70px rgba(0,0,0,.42);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(255,45,114,.22), transparent 30rem),
        radial-gradient(circle at 84% 0%, rgba(36,244,238,.16), transparent 28rem),
        linear-gradient(135deg, #070711, #101020 52%, #070711);
    color: var(--text);
}
a { color: inherit; text-decoration: none; }
.topbar {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 0;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(10,10,22,.66);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 12px;
    z-index: 10;
}
.brand { font-weight: 900; letter-spacing: -.04em; font-size: 1.32rem; margin-right: auto; }
.brand span { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; color: transparent; }
.nav, .lang-switch { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nav a, .lang-switch a {
    color: var(--muted);
    padding: 9px 12px;
    border-radius: 999px;
    transition: .2s ease;
}
.nav a:hover, .lang-switch a:hover, .lang-switch a.active { background: rgba(255,255,255,.08); color: var(--text); }
.container { width: min(1180px, calc(100% - 32px)); margin: 34px auto 80px; }
.hero {
    min-height: 68vh;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 32px;
    align-items: center;
}
.eyebrow { color: var(--accent2); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { font-size: clamp(3.4rem, 8vw, 7.8rem); line-height: .86; margin: 0 0 28px; letter-spacing: -.08em; }
.hero-actions, .admin-links { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-panel {
    padding: 28px;
    min-height: 360px;
    border-radius: 34px;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(255,45,114,.17), rgba(36,244,238,.12)), var(--panel);
    box-shadow: var(--shadow);
    display: grid;
    gap: 14px;
    align-content: center;
}
.hero-panel span { padding: 24px; border-radius: 24px; background: rgba(255,255,255,.07); font-size: 1.4rem; font-weight: 800; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: clamp(2.2rem, 4vw, 4rem); letter-spacing: -.06em; }
.card {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 24px;
    backdrop-filter: blur(18px);
}
.card h1, .card h2 { margin: 0 0 18px; letter-spacing: -.04em; }
.narrow { max-width: 480px; margin: 56px auto; }
.grid { display: grid; gap: 20px; margin-bottom: 20px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.stat { display: block; }
.stat span { color: var(--muted); display: block; margin-bottom: 12px; }
.stat strong { font-size: 2.7rem; letter-spacing: -.05em; }
.form { display: grid; gap: 14px; }
.form.compact { gap: 12px; }
label { display: grid; gap: 8px; color: var(--muted); font-weight: 700; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.06);
    color: var(--text);
    border-radius: 16px;
    padding: 13px 14px;
    outline: none;
    font: inherit;
}
textarea { resize: vertical; min-height: 120px; }
select option { background: #151525; color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: rgba(36,244,238,.45); box-shadow: 0 0 0 4px rgba(36,244,238,.08); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }
.button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 13px 18px;
    background: linear-gradient(90deg, var(--accent), #8f43ff);
    color: white;
    font-weight: 900;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 12px 32px rgba(255,45,114,.22);
}
.button.ghost { background: rgba(255,255,255,.07); box-shadow: none; }
.button.small { padding: 9px 12px; font-size: .88rem; }
.button.tiny { padding: 8px 11px; }
.button.danger { background: rgba(255,77,94,.18); color: #ffd7dc; box-shadow: none; }
.alert { padding: 14px 16px; border-radius: 18px; margin-bottom: 18px; background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.alert.error { background: rgba(255,77,94,.14); }
.alert.success { background: rgba(70,230,166,.12); }
.muted, .compact-link { color: var(--muted); }
.compact-link { margin: 16px 0 0; }
.split-heading { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 18px; }
.token-card { display: grid; gap: 12px; }
.gift-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gift-card { padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.045); display: grid; gap: 12px; }
.gift-main { display: flex; align-items: center; gap: 12px; }
.gift-main img, .gift-name img { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; background: rgba(255,255,255,.06); }
.gift-main strong { display: block; }
.gift-main span { color: var(--muted); font-size: .9rem; }
.gift-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.07); color: var(--accent2); }
.check { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 10px; color: var(--text); }
.check input { width: auto; }
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; }
.actions-cell { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form.stacked { margin-top: 10px; display: grid; gap: 8px; min-width: 220px; }
.sound-list { display: grid; gap: 12px; }
.sound-row { display: grid; grid-template-columns: 1fr minmax(180px, 260px) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.04); }
.sound-row span { display: block; color: var(--muted); margin-top: 4px; }
audio { width: 100%; height: 38px; }
.gift-name { display: flex; align-items: center; gap: 10px; }
.overlay-body { background: transparent; overflow: hidden; }
.overlay-events { position: fixed; inset: auto 24px 24px auto; width: min(460px, calc(100vw - 48px)); display: grid; gap: 14px; }
.overlay-alert {
    transform: translateY(18px) scale(.98);
    opacity: 0;
    transition: .45s cubic-bezier(.2,.8,.2,1);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255,45,114,.9), rgba(36,244,238,.72));
    color: #fff;
    box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.overlay-alert.show { transform: translateY(0) scale(1); opacity: 1; }
.overlay-alert img, .overlay-gem { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 18px; background: rgba(255,255,255,.18); object-fit: contain; display: grid; place-items: center; font-size: 1.8rem; }
.overlay-alert strong { display: block; font-size: 1.22rem; }
.overlay-alert span { display: block; opacity: .9; margin-top: 3px; }
@media (max-width: 900px) {
    .hero, .grid.two, .stats-grid { grid-template-columns: 1fr; }
    .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topbar { align-items: flex-start; flex-wrap: wrap; }
    .brand { width: 100%; }
}
@media (max-width: 620px) {
    .container, .topbar { width: min(100% - 20px, 1180px); }
    .gift-grid { grid-template-columns: 1fr; }
    .sound-row { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3.4rem; }
}
.inline-link { color: var(--accent2); font-weight: 900; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.plan-badge, .nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: .82rem;
    font-weight: 900;
    border: 1px solid var(--line);
}
.plan-badge.pro, .nav-badge.pro { background: linear-gradient(90deg, rgba(255,45,114,.28), rgba(36,244,238,.22)); color: #fff; border-color: rgba(36,244,238,.34); }
.plan-badge.free { background: rgba(255,255,255,.07); color: var(--muted); }
.config-create { grid-template-columns: minmax(220px, 1.2fr) minmax(180px, .9fr) minmax(160px, .7fr) auto auto; align-items: end; }
.configured-only .gift-card { background: linear-gradient(145deg, rgba(255,45,114,.08), rgba(36,244,238,.06)); }
.danger-check { color: #ffd7dc; }
.pro-card { display: grid; gap: 18px; }
.price-line { font-size: 2.8rem; font-weight: 950; letter-spacing: -.06em; }
.price-line span { color: var(--muted); font-size: 1rem; letter-spacing: 0; font-weight: 800; }
.pro-list { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.pro-list li { padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.paypal-form { display: grid; }
@media (max-width: 900px) {
    .config-create { grid-template-columns: 1fr; }
}
