:root {
    --bg: #0f1419;
    --surface: #1a2332;
    --surface-2: #243044;
    --text: #e8eef4;
    --muted: #8b9cb3;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --success: #22c55e;
    --error: #ef4444;
    --border: #2d3a4f;
    --radius: 12px;
    --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    background: linear-gradient(160deg, #0a0e14 0%, #121a28 50%, #0f1419 100%);
    color: var(--text);
    line-height: 1.5;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.brand h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tagline {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.75rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.card h2 {
    margin: 0 0 1rem;
    font-size: 1.15rem;
}

.card-success {
    border-color: rgba(34, 197, 94, 0.35);
}

.card-error {
    border-color: rgba(239, 68, 68, 0.35);
}

.card-error h2 {
    color: #fca5a5;
}

.form label {
    display: block;
    margin: 1rem 0 0.35rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form label:first-of-type {
    margin-top: 0;
}

.optional {
    font-weight: 400;
    color: var(--muted);
}

.form input[type="text"],
.form input[type="email"],
.form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
}

.form textarea {
    resize: vertical;
    min-height: 120px;
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.checkbox {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem !important;
    cursor: pointer;
}

.checkbox input {
    width: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.25rem;
    padding: 0.7rem 1.25rem;
    border: none;
    border-radius: 8px;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    width: 100%;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #2d3d54;
}

.form-error {
    margin: 0.75rem 0 0;
    color: #fca5a5;
    font-size: 0.9rem;
}

.url-box {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.url-box input {
    flex: 1;
    padding: 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--success);
    font-family: ui-monospace, monospace;
    font-size: 0.9rem;
}

.secret-content {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, monospace;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.warning {
    color: #fbbf24;
    font-size: 0.9rem;
}

.hint,
.meta {
    color: var(--muted);
    font-size: 0.85rem;
}

.footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

code {
    font-family: ui-monospace, monospace;
    font-size: 0.9em;
    color: var(--success);
}
