:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #0f0f10;
    --bg-tertiary: #131314;
    --text-primary: #f4f4f5;
    --text-secondary: rgba(255, 255, 255, 0.5);
    --text3: rgba(255, 255, 255, 0.3);
    --border-color: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.07);
    --border-2: rgba(255, 255, 255, 0.11);
    --accent-color: #9146ff;
    --accent-rgb: 145, 70, 255;
    --gold: #a970ff;
    --font-sans: 'Geist', -apple-system, system-ui, "Segoe UI", sans-serif;

    --btn-grad: linear-gradient(180deg, #a25cff 0%, #8636f0 100%);
    --btn-grad-hover: linear-gradient(180deg, #ad6eff 0%, #9146ff 100%);
    --btn-glass: linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .03) 100%);
    --btn-glass-hover: linear-gradient(180deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .06) 100%);
    --shine-inset: inset 0 1px 0 rgba(255, 255, 255, 0.28);
    --shine-inset-subtle: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 0 0 1px rgba(255, 255, 255, .07);
    --glow-accent: 0 2px 8px rgba(var(--accent-rgb), 0.25);
    --glow-accent-hover: 0 6px 18px rgba(var(--accent-rgb), 0.42);
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    font-weight: 700;
}
h1 { font-size: clamp(38px, 6vw, 72px); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 4vw, 46px); }
h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
p { line-height: 1.65; }

.page-center-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 48px 16px;
}

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-sans);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

.btn-block { display: flex; width: 100%; }
.btn-narrow { max-width: 340px; margin: 0 auto; }
.btn-sm { padding: 8px 16px; font-size: 13px; font-weight: 600; }

.btn-primary, .btn-gold {
    background: var(--btn-grad);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shine-inset), var(--glow-accent);
}
.btn-primary:hover, .btn-gold:hover {
    background: var(--btn-grad-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shine-inset), var(--glow-accent-hover);
}
.btn-primary:active, .btn-gold:active { transform: translateY(0); box-shadow: var(--shine-inset), var(--glow-accent); }

.btn-ghost {
    background: transparent;
    border-color: var(--border-2);
    color: var(--text-primary);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); color: var(--text-primary); }

.btn-neutral {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color);
    color: var(--text-secondary);
}
.btn-neutral:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-primary); }

.btn-copy, .btn-copy-gold {
    flex-shrink: 0;
    height: 32px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    background: rgba(var(--accent-rgb), 0.14);
    color: #b98bff;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}
.btn-copy:hover, .btn-copy-gold:hover { background: rgba(var(--accent-rgb), 0.22); }

.input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}
.input:focus { border-color: var(--accent-color); }
.input::placeholder { color: var(--text3); }

.copy-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
}
.copy-field-value {
    flex: 1;
    min-width: 0;
    font-family: ui-monospace, monospace;
    font-size: 12.5px;
    color: var(--text-primary);
    word-break: break-all;
    line-height: 1.5;
    user-select: all;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.show { display: flex; }

.modal-box {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
    max-height: 92vh;
    overflow-y: auto;
    animation: modalIn .22s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(10px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
