:root {
    --bg: #08090d;
    --panel: #11131b;
    --panel-soft: #1a1d27;
    --text: #f7f8fa;
    --muted: #a6acbf;
    --accent: #22d15d;
    --accent-strong: #17af4b;
    --danger: #ff5f5f;
    --warning: #f9b654;
    --line: #2e3343;
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: 'Barlow', sans-serif;
    color: var(--text);
    background: radial-gradient(130% 120% at 10% 0%, #18192e 0%, #08090d 52%, #05060a 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.brand-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7f57ff, #22d15d);
    box-shadow: 0 0 0 5px rgba(127, 87, 255, 0.16);
}

.btn {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-size: 1.03rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    padding: 13px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--accent);
    color: #0a0c0f;
    box-shadow: 0 10px 25px rgba(34, 209, 93, 0.34);
}

.btn-primary:hover {
    background: var(--accent-strong);
}

.btn-secondary {
    background: #262a38;
    color: var(--text);
}

.btn-secondary:hover {
    background: #30364a;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.card {
    background: linear-gradient(180deg, #171a24 0%, #0f1118 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.field {
    display: grid;
    gap: 10px;
}

.field label {
    font-weight: 700;
    color: #f2f4f8;
}

.input,
.select,
.textarea {
    width: 100%;
    border: 1px solid #434a5e;
    border-radius: 12px;
    background: #0c0e14;
    color: #ffffff;
    font-size: 1rem;
    padding: 14px 16px;
    font-family: 'Barlow', sans-serif;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: #7f57ff;
    box-shadow: 0 0 0 4px rgba(127, 87, 255, 0.18);
}

.textarea {
    min-height: 110px;
    resize: vertical;
}

.alert {
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 600;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(34, 209, 93, 0.17);
    border-color: rgba(34, 209, 93, 0.38);
    color: #8cf5b1;
}

.alert-error {
    background: rgba(255, 95, 95, 0.18);
    border-color: rgba(255, 95, 95, 0.4);
    color: #ffc2c2;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.83rem;
    font-weight: 700;
    background: #2d3347;
    color: #c7cee2;
}

.badge-active {
    background: rgba(34, 209, 93, 0.2);
    color: #73ea9f;
}

.badge-inactive {
    background: rgba(255, 95, 95, 0.2);
    color: #ffb1b1;
}

.fade-up {
    animation: fadeUp 0.55s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
