/* ── Impulse V3 — Dark Theme ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:      #0a0a0f;
    --surface: #111118;
    --border:  #3f5f4c;
    --accent:  #90ffb5;
    --accent2: #ffffff;
    --text:    #e2e8f0;
    --muted:   #64748b;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
}

h2 {
    text-align: center;
}

.underhero {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.underhero h2 {
    color: #90ffb5;
    font-size: 32px;
}

/* ── PARTICLES BACKGROUND ── */
#particles-js {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

header, main, footer, .page-wrap { position: relative; z-index: 1; }

/* ── HEADER / NAV ── */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 64px;
    background: rgba(10,10,15,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent2);
    text-shadow: 0 0 12px rgba(255,255,255,0.4);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

nav { display: flex; gap: 28px; align-items: center; }

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
nav a:hover { color: var(--text); }
nav a.active { color: var(--text); }

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s, background 0.2s;
    text-decoration: none;
    border: none;
    font-family: inherit;
}
.btn:active { transform: scale(0.97); }

.btn-outline {
    border: 1px solid var(--accent);
    color: var(--accent2);
    background: transparent;
}
.btn-outline:hover { background: rgba(255,255,255,0.07); }

.btn-primary {
    background: #13ab65;
    color: #ffffff;
}
.btn-primary:hover { opacity: 0.85; }

.bp {
    height: 30px;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
}
.btn-danger:hover { opacity: 0.85; }

.btn-full { width: 100%; text-align: center; padding: 12px; font-size: 1rem; }

/* ── CARDS ── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 0 20px rgba(255,255,255,0.05);
}
.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.card p  { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ── GRID ── */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* ── SECTION WRAPPER ── */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* ── FORM ELEMENTS ── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 0.85rem; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: rgba(255,255,255,0.4);
}
.form-group textarea { resize: vertical; min-height: 80px; }

/* ── BADGE ── */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-green  { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.badge-yellow { background: rgba(234,179,8,0.15);  color: #facc15; border: 1px solid rgba(234,179,8,0.3); }
.badge-red    { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

/* ── FOOTER ── */
footer {
    text-align: center;
    padding: 32px;
    color: var(--muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}
footer a { color: var(--accent2); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── PAGE TITLE ── */
.page-title { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.page-sub   { color: var(--muted); font-size: 1rem; margin-bottom: 36px; }

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── TOAST ── */
#toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
#toast.show { opacity: 1; transform: translateY(0); }
