/* ============================================
   BurnLink — Styles
   ============================================ */

:root {
    --bg:         #0a0a0b;
    --card:       #18181b;
    --card-hover: #1f1f23;
    --border:     #27272a;
    --text:       #e4e4e7;
    --muted:      #71717a;
    --dim:        #3f3f46;
    --accent:     #a3e635;
    --accent-dark:#65a30d;
    --danger:     #ef4444;
    --warning:    #fbbf24;
    --font-mono:  'IBM Plex Mono', 'JetBrains Mono', 'Fira Code', monospace;
    --font-sans:  'Space Grotesk', system-ui, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-mono);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
}

/* ── Animated background ────────────────── */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent);
    animation: float 20s ease-in-out infinite alternate;
}

@keyframes float {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(30px, -40px) scale(1.5); }
    66%  { transform: translate(-20px, 20px) scale(0.8); }
    100% { transform: translate(15px, -15px) scale(1.2); }
}

/* ── Header / Logo ──────────────────────── */
.brand {
    text-align: center;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.4s ease-out;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
}

.brand h1 {
    font-family: var(--font-sans);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-sub {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Card ────────────────────────────────── */
.card {
    width: 100%;
    max-width: 520px;
    background: linear-gradient(180deg, rgba(24,24,27,0.95), rgba(17,17,19,0.98));
    border: 1px solid rgba(163,230,53,0.08);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
    animation: fadeUp 0.6s ease-out, breathe 4s ease-in-out infinite;
}

/* ── Form elements ──────────────────────── */
label {
    display: block;
    font-size: 12px;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    font-weight: 500;
}

textarea,
input[type="email"],
input[type="text"] {
    width: 100%;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--text);
    font-size: 14px;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
}

textarea:focus,
input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(163,230,53,0.15);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.input-group {
    margin-bottom: 16px;
}

/* ── Badges ──────────────────────────────── */
.badges {
    display: flex;
    gap: 12px;
    margin: 16px 0 24px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--muted);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 5px 10px;
}

/* ── Buttons ─────────────────────────────── */
.btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--bg);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: rgba(255,255,255,0.05);
    color: #52525b;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--muted);
}

.btn-secondary:hover {
    border-color: rgba(255,255,255,0.2);
    color: #a1a1aa;
}

.btn-success {
    background: rgba(163,230,53,0.15);
    border: 1px solid rgba(163,230,53,0.3);
    color: var(--accent);
}

/* ── Result / URL box ────────────────────── */
.url-box {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(163,230,53,0.15);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
    word-break: break-all;
    font-size: 12px;
    color: var(--accent);
    line-height: 1.6;
}

.secret-box {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(163,230,53,0.15);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 14px;
    color: var(--accent);
    line-height: 1.6;
}

/* ── Alerts ──────────────────────────────── */
.alert {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
    margin: 12px 0;
}

.alert-warning {
    background: rgba(234,179,8,0.06);
    border: 1px solid rgba(234,179,8,0.12);
    color: var(--warning);
}

.alert-danger {
    background: rgba(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,0.12);
    color: #fca5a5;
}

.alert-success {
    background: rgba(163,230,53,0.06);
    border: 1px solid rgba(163,230,53,0.12);
    color: var(--accent);
}

.alert-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #fca5a5;
}

/* ── Status icon (circle) ───────────────── */
.status-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.status-icon--success {
    background: rgba(163,230,53,0.1);
    border: 2px solid rgba(163,230,53,0.3);
    color: var(--accent);
}

.status-icon--pending {
    background: rgba(163,230,53,0.1);
    border: 2px solid rgba(163,230,53,0.2);
    color: var(--accent);
    animation: breathe 2s ease-in-out infinite;
}

.status-icon--expired {
    background: rgba(239,68,68,0.1);
    border: 2px solid rgba(239,68,68,0.2);
    color: var(--danger);
}

/* ── Centered content ────────────────────── */
.text-center {
    text-align: center;
}

.mb-sm  { margin-bottom: 8px; }
.mb-md  { margin-bottom: 16px; }
.mb-lg  { margin-bottom: 24px; }
.mt-sm  { margin-top: 8px; }
.mt-md  { margin-top: 16px; }

/* ── Footer ──────────────────────────────── */
.footer {
    margin-top: 32px;
    text-align: center;
    font-size: 11px;
    color: var(--dim);
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

/* ── Animations ──────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes breathe {
    0%, 100% { box-shadow: 0 0 20px rgba(163,230,53,0.05); }
    50%      { box-shadow: 0 0 40px rgba(163,230,53,0.12); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

.anim-fadeup  { animation: fadeUp 0.5s ease-out; }
.anim-pulse   { animation: pulse 1s infinite; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 560px) {
    .card { padding: 24px 20px; }
    .badges { gap: 8px; }
    .badge { font-size: 10px; padding: 4px 8px; }
}
