:root {
    --page:#10100f;
    --panel:#111111;
    --panel2:#17110d;
    --warm:#2B1B12;
    --cream:#F0D8AB;
    --creamSoft:#f0e1ce;
    --creamDim:rgba(240,216,171,.70);
    --muted:#b9a889;
    --yellow:#F5A72A;
    --red:#EF4128;
    --green:#17905f;
    --line:rgba(245,167,42,.24);
    --shadow:rgba(0,0,0,.42);
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(60,131,85,.25), transparent 38%),
        radial-gradient(circle at bottom right, rgba(245,167,42,.10), transparent 32%),
        var(--page);
    color: var(--cream);
    margin: 0;
    min-height: 100vh;
}

h1, h2, h3 {
    color: var(--cream);
    margin-top: 0;
}

p {
    color: var(--creamDim);
}

input, select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    margin: 8px 0 14px;
    font-size: 15px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #0c0c0b;
    color: var(--creamSoft);
    outline: none;
}

input:focus, select:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(245,167,42,.12);
}

button {
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #15100b;
    background: linear-gradient(180deg, var(--yellow), #d98a14);
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

button:hover {
    filter: brightness(1.08);
}

/* Login */
.login-body-minimal {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 12%, rgba(245,167,42,.16), transparent 34%),
        radial-gradient(circle at 20% 85%, rgba(60,131,85,.22), transparent 32%),
        var(--page);
}

.login-card-minimal {
    width: 390px;
    max-width: calc(100vw - 48px);
    background:
        linear-gradient(180deg, rgba(23,17,13,.98), rgba(12,12,11,.98));
    border: 1px solid rgba(245,167,42,.28);
    border-radius: 28px;
    box-shadow:
        0 28px 90px rgba(0,0,0,.58),
        inset 0 1px 0 rgba(255,255,255,.04);
    padding: 38px;
}

.login-logo {
    text-align: center;
    color: var(--yellow);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.login-card-minimal h1 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--creamSoft);
}

.login-card-minimal label {
    display: block;
    margin: 16px 0 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.login-card-minimal input {
    height: 48px;
    margin: 0 0 14px;
    background: rgba(0,0,0,.34);
    border: 1px solid rgba(240,216,171,.18);
    border-radius: 14px;
}

.login-card-minimal input:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 4px rgba(245,167,42,.12);
}

.password-wrap {
    display: grid;
    grid-template-columns: 1fr 72px;
    gap: 9px;
}

.show-pass {
    height: 48px;
    padding: 0;
    font-size: 13px;
    background: rgba(43,27,18,.88);
    color: var(--cream);
    border: 1px solid rgba(245,167,42,.24);
    box-shadow: none;
}

.login-main-btn {
    width: 100%;
    height: 48px;
    margin-top: 14px;
    border-radius: 14px;
}

.caps-warning {
    color: var(--red);
    font-weight: 800;
    text-align: center;
    margin: 0 0 10px;
}

#message {
    min-height: 22px;
    text-align: center;
    color: var(--yellow);
    margin-top: 14px;
}

/* Dashboard compatibility */
.topbar {
    background: rgba(17,17,17,.92);
    color: var(--cream);
    padding: 18px 32px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar strong {
    color: var(--yellow);
    letter-spacing: .08em;
}

.topbar button {
    width: auto;
}

.card {
    max-width: 1100px;
    margin: 48px auto;
    background: linear-gradient(180deg, var(--panel), var(--panel2));
    padding: 32px;
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: 0 20px 60px var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: #0b0b0a;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
}

th, td {
    border-bottom: 1px solid rgba(240,216,171,.08);
    padding: 12px;
    text-align: left;
    color: var(--creamSoft);
}

th {
    background: var(--warm);
    color: var(--yellow);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

pre {
    background: #0b0b0a;
    color: var(--creamSoft);
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    overflow-x: auto;
}

#createUserMessage,
#createEntitlementMessage,
#activationMessage {
    color: var(--yellow);
    white-space: pre-wrap;
}

/* Dashboard premium override */
.card {
    max-width: 1180px;
    margin: 42px auto;
    padding: 34px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(17,17,17,.96), rgba(23,17,13,.96));
    border: 1px solid rgba(245,167,42,.22);
    box-shadow: 0 28px 90px rgba(0,0,0,.52);
}

.card > h1 {
    font-size: 34px;
    margin-bottom: 8px;
}

#userInfo {
    margin-bottom: 28px;
    color: var(--creamDim);
}

#adminBox,
#userBox {
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(245,167,42,.16);
    border-radius: 22px;
    padding: 26px;
    margin-top: 24px;
}

#adminBox {
    border-color: rgba(239,65,40,.28);
}

#userBox h2,
#adminBox h2 {
    color: var(--yellow);
    margin-top: 22px;
    margin-bottom: 12px;
}

#userBox h2:first-child,
#adminBox h2:first-child {
    margin-top: 0;
}

button {
    min-height: 42px;
    border-radius: 13px;
}

#activationFile {
    border-style: dashed;
    padding-top: 12px;
    cursor: pointer;
    background: rgba(245,167,42,.04);
}

table {
    margin-bottom: 24px;
}

td button {
    min-height: 36px;
    padding: 8px 12px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
}

.dropzone {
    border: 1px dashed rgba(245,167,42,.36);
    background: rgba(245,167,42,.05);
    padding: 26px;
    border-radius: 18px;
    color: var(--creamDim);
    margin: 14px 0;
    cursor: pointer;
    transition: .18s ease;
    text-align: center;
}

.dropzone strong {
    display: block;
    color: var(--cream);
    margin-bottom: 8px;
}

.dropzone span {
    color: var(--muted);
}

.dropzone.hover,
.dropzone.ready {
    border-color: var(--yellow);
    background: rgba(245,167,42,.12);
    box-shadow: 0 0 0 4px rgba(245,167,42,.08);
}

.generate-btn {
    width: 100%;
}