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

:root {
    --bg:        #080e10;
    --surface:   #0d1518;
    --surface2:  #121d20;
    --surface3:  #192428;
    --border:    #1e2d31;
    --border2:   #263439;
    --teal:      #2dd4bf;
    --teal-dim:  #14b8a6;
    --teal-glow: rgba(45,212,191,.12);
    --red:       #f87171;
    --red-dim:   #dc2626;
    --text:      #e2f0ef;
    --text2:     #7fa8ae;
    --text3:     #3d5e63;
    --mono:      'JetBrains Mono', monospace;
    --sans:      'Inter', sans-serif;
    --radius:    8px;
    --radius-lg: 12px;
}

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

html { font-size: 16px; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1 { font-size: 1.5rem;  font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 1rem;    font-weight: 500; }
h4 { font-size: .875rem; font-weight: 500; }

a { color: var(--teal); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }

/* ── Layout ── */
.page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* ── Card ── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

/* ── Buttons ── */
button {
    font-family: var(--sans);
    font-size: .875rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .15s, opacity .15s, transform .1s;
    padding: .5rem 1rem;
    line-height: 1.4;
}

.btn-primary {
    background: var(--teal);
    color: #071112;
}
.btn-primary:hover:not(:disabled) { background: #5eead4; }

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--text2);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }

.btn-danger {
    background: transparent;
    border: 1px solid transparent;
    color: var(--red);
}
.btn-danger:hover:not(:disabled) { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.3); }

button:disabled { opacity: .45; cursor: not-allowed; }
button:active:not(:disabled) { transform: scale(.97); }

/* ── Inputs ── */
input, select, textarea {
    font-family: var(--sans);
    font-size: .875rem;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    color: var(--text);
    padding: .5rem .875rem;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-glow);
}
input::placeholder, textarea::placeholder { color: var(--text3); }

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237fa8ae' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    padding-right: 2.25rem;
    cursor: pointer;
}
option { background: var(--surface2); color: var(--text); }

/* ── Notification ── */
.notification-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.notification {
    background: var(--surface3);
    border: 1px solid var(--border2);
    color: var(--text);
    padding: .875rem 1.125rem;
    border-radius: var(--radius);
    font-size: .875rem;
    max-width: 320px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s, transform .25s;
}
.notification.show { opacity: 1; transform: none; }
.notification.error { border-color: rgba(248,113,113,.4); background: rgba(220,38,38,.12); color: var(--red); }

/* ── Section header ── */
.section-label {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: .75rem;
}
