:root {
    --bg: #0f172a;
    --card: #0b1224;
    --accent: #8b5cf6;
    --accent-2: #22d3ee;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 16px;
    --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.18), transparent 25%),
        radial-gradient(circle at 85% 10%, rgba(139, 92, 246, 0.2), transparent 28%),
        radial-gradient(circle at 30% 80%, rgba(34, 211, 238, 0.16), transparent 25%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px 48px;
}

.page {
    width: min(1100px, 100%);
    display: grid;
    gap: 20px;
}

.header {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(34, 211, 238, 0.35));
    color: #e0e7ff;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

h1 {
    margin: 12px 0 8px;
    font-size: clamp(26px, 4vw, 32px);
    letter-spacing: -0.02em;
}

.subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #e0f2fe;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.section-title span {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(34, 211, 238, 0.35));
    color: #0b1224;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

textarea {
    width: 100%;
    min-height: 180px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    padding: 14px;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border 0.2s ease, transform 0.1s ease;
}

textarea:focus {
    outline: none;
    border-color: rgba(34, 211, 238, 0.7);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15);
    transform: translateY(-1px);
}

.helper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 10px;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

button {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    color: #0b1224;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(34, 211, 238, 0.18);
}

footer {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

footer a {
    color: #a5b4fc;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.toast {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: #67e8f9;
    font-weight: 600;
    font-size: 13px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}
