* {
    box-sizing: border-box;
}

:root {
    --bg-1: #070b12;
    --bg-2: #0d1420;
    --panel: rgba(14, 20, 31, 0.92);
    --panel-soft: rgba(255, 255, 255, 0.04);
    --border: rgba(125, 170, 255, 0.18);
    --border-strong: rgba(125, 170, 255, 0.34);

    --text: #edf4ff;
    --text-soft: #9fb0c9;
    --text-dim: #7a8ba6;

    --accent: #66c7ff;
    --accent-2: #7d8cff;
    --accent-warm: #ffb35c;
    --accent-warm-2: #ff7f50;

    --success: #7ce4bd;
    --danger: #ff6e7a;

    --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    --radius: 18px;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(102, 199, 255, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(125, 140, 255, 0.14), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255, 179, 92, 0.10), transparent 24%),
        linear-gradient(180deg, #060910 0%, #0a111c 35%, #081019 100%);
    min-height: 100vh;
}

.topbar {
    max-width: 1280px;
    margin: 16px auto 0;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(120, 160, 255, 0.16);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(102, 199, 255, 0.24), rgba(125, 140, 255, 0.28));
    border: 1px solid rgba(125, 170, 255, 0.28);
    box-shadow: 0 0 24px rgba(102, 199, 255, 0.12);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.brand strong {
    display: block;
    font-size: 15px;
    color: var(--text);
}

.brand small {
    display: block;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 10px;
    margin-top: 2px;
}

.nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: 0.2s ease;
}

.nav a:hover {
    background: rgba(102, 199, 255, 0.10);
    border-color: rgba(102, 199, 255, 0.22);
}

.container {
    max-width: 1280px;
    margin: 34px auto;
    padding: 0 14px 60px;
}

.hero {
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: bold;
}

h1 {
    margin: 0 0 10px;
    font-size: 42px;
    line-height: 1.05;
    color: #ffffff;
}

h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #f4f8ff;
    font-size: 22px;
}

h3 {
    color: #f4f8ff;
}

p {
    color: var(--text-soft);
    line-height: 1.55;
}

.notice {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 24px;
    background: linear-gradient(90deg, rgba(102, 199, 255, 0.12), rgba(255, 179, 92, 0.10));
    border: 1px solid rgba(125, 170, 255, 0.22);
    color: var(--text);
    box-shadow: var(--shadow);
}

.layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 22px;
}

.card,
.preview-card {
    background: linear-gradient(180deg, rgba(14, 20, 31, 0.94), rgba(10, 15, 24, 0.95));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.preview-card {
    background:
        radial-gradient(circle at top left, rgba(102, 199, 255, 0.12), transparent 25%),
        radial-gradient(circle at bottom right, rgba(255, 179, 92, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(16, 23, 36, 0.96), rgba(11, 16, 27, 0.98));
}

.live-pill,
.active-tag {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: rgba(102, 199, 255, 0.12);
    border: 1px solid rgba(102, 199, 255, 0.24);
    color: #bfeaff;
}

.badge-row {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

label {
    display: block;
    margin-top: 16px;
    margin-bottom: 7px;
    font-weight: bold;
    color: #dfe9f8;
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    outline: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.08);
    transition: 0.2s ease;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(102, 199, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(102, 199, 255, 0.10);
}

input[type="range"] {
    padding: 0;
    accent-color: var(--accent);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

button {
    padding: 11px 14px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    color: #081018;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 18px rgba(102, 199, 255, 0.20);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(102, 199, 255, 0.28);
}

button.choice {
    color: var(--text);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: none;
}

button.choice.active {
    color: #081018;
    background: linear-gradient(135deg, var(--accent), #9ce3ff);
    border: none;
}

button.danger {
    color: #fff;
    background: linear-gradient(135deg, #ff7a88, #ff5e6f);
    box-shadow: 0 8px 18px rgba(255, 110, 122, 0.20);
}

.card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

#colorGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.color-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 14px;
}

.color-title {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 10px;
}

.color-title small {
    display: block;
    color: var(--text-dim);
    font-size: 11px;
    margin-top: 3px;
}

.color-title button {
    padding: 6px 8px;
    font-size: 11px;
    border-radius: 10px;
}

.color-control {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 10px;
    align-items: center;
}

.color-control input[type="color"] {
    height: 46px;
    padding: 3px;
    border-radius: 10px;
}

.palette-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 8px;
    border-radius: 12px;
}

.palette-color {
    height: 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
}

.preview-box {
    margin-top: 24px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}

.dino-card {
    min-height: 210px;
    display: grid;
    place-items: center;
    text-align: center;
}

.dino-gradient {
    width: 230px;
    height: 110px;
    border-radius: 120px 120px 80px 80px;
    border: 2px solid rgba(255,255,255,0.22);
    box-shadow: 0 20px 55px rgba(0,0,0,0.35);
}

.preset-item,
.pack-card {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.pack-card {
    display: block;
}

.pack-title-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.preset-item h3,
.pack-card h3 {
    margin: 0 0 6px;
}

.preset-item p,
.pack-card p {
    margin: 0 0 8px;
    font-size: 13px;
}

.preset-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dots {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
}

.steps {
    color: var(--text);
    line-height: 1.85;
    padding-left: 18px;
}

pre {
    min-height: 60px;
    overflow-x: auto;
    padding: 14px;
    border-radius: 14px;
    color: #dff2ff;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.08);
}

.source-box,
.admin-box {
    padding: 14px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    margin-bottom: 14px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.admin-section {
    margin-bottom: 22px;
}

.hidden {
    display: none !important;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 12, 0.82);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-modal {
    width: min(520px, 100%);
    background:
        radial-gradient(circle at top left, rgba(102, 199, 255, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(16, 23, 36, 0.98), rgba(8, 12, 20, 0.98));
    border: 1px solid rgba(125, 170, 255, 0.28);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 28px 80px rgba(0,0,0,0.55);
}

.modal-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(102, 199, 255, 0.12);
    border: 1px solid rgba(102, 199, 255, 0.24);
    color: #bfeaff;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 14px;
}

.discord-login {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 22px;
    padding: 14px 18px;
    color: white;
    background: linear-gradient(135deg, #5865F2, #7d8cff);
    border-radius: 14px;
    font-weight: bold;
    box-shadow: 0 12px 28px rgba(88, 101, 242, 0.28);
}

.discord-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 12px;
    border-radius: 14px;
    margin: 18px 0;
}

.discord-profile.compact {
    margin: 0 0 14px;
}

.discord-profile img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid rgba(102, 199, 255, 0.32);
}

.discord-profile small {
    display: block;
    color: var(--text-dim);
    margin-top: 3px;
}

.small-note {
    font-size: 13px;
    color: var(--text-dim);
}

#accountButton {
    color: var(--text);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: none;
}

.account-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.account-pill img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

@media (max-width: 900px) {
    .layout,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 32px;
    }

    .topbar {
        margin: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .preset-item {
        flex-direction: column;
        align-items: stretch;
    }
}