:root {
    --bg: #050b18;
    --card: #0f172a;
    --border: rgba(255, 255, 255, 0.08);
    --accent: #3b82f6;
    --accent2: #2563eb;
    --success: #22c55e;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --radius: 12px;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(circle at top, #0f172a, #020617);
    color: var(--text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px 10px 20px;
    /* smaller bottom padding */
}

/* APP */

.app {
    max-width: 1100px;
    margin: auto;
}

/* HEADER */

.header {
    margin-bottom: 30px;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.subtitle {
    color: var(--muted);
    font-size: 14px;
}

/* GRID */

.grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 24px;
}

@media(max-width:900px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* CARD */

.card {
    background: linear-gradient(180deg, #0f172a, #0b1220);
    border: 1px solid var(--border);
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

.card h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 16px;
}

/* LABELS */

label {
    display: block;
    font-size: 13px;
    margin-top: 12px;
    margin-bottom: 6px;
    color: var(--muted);
}

/* INPUTS */

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 11px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #020617;
    color: var(--text);
    font-size: 14px;
}

input::placeholder {
    color: #64748b;
}

input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* CHECKBOX */

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 14px;
}

input[type="text"],
input[type="number"] {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
    padding: 11px;
    border-radius: 8px;
    font-size: 14px;
}

.check input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.check input:checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

.check input:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 12px;
    left: 3px;
    top: -1px;
}

.check input {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

/* NAME ROW */

.name-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.name-row input {
    flex: 1;
}

/* BUTTONS */

button {
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
}

.name-row button {
    background: var(--success);
    color: white;
}

.name-row button:hover {
    transform: translateY(-1px);
}

/* GENERATE */

.generate {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    color: white;
}

.generate:hover {
    transform: translateY(-2px);
}

/* DOWNLOAD */

.download {
    margin-top: 12px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

/* NAME ITEMS */

.nameItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #020617;
    border-radius: 8px;
    margin-top: 8px;
    border: 1px dashed var(--border);
}

.name-row input {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.name-row input::placeholder {
    color: #64748b;
}

/* OUTPUT */

.output {
    margin-top: 10px;
    background: #020617;
    border-radius: 10px;
    padding: 14px;
    min-height: 180px;
    font-family: var(--mono);
    font-size: 13px;
    overflow: auto;
    white-space: pre-wrap;
}

/* DIVIDER */

.divider {
    height: 1px;
    background: var(--border);
    margin: 15px 0;
}

/* INFO */

.info {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
}

.app {
    max-width: 1100px;
    width: 100%;
    margin: auto;
    padding-bottom: 10px;
}