@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg: #08080c;
    --bg-glow-1: rgba(167, 139, 250, 0.16);
    --bg-glow-2: rgba(240, 171, 252, 0.10);
    --surface: #131319;
    --surface-2: #1b1b23;
    --border: #26262f;
    --border-soft: #1d1d25;
    --text: #ece9f5;
    --text-muted: #948fa3;
    --text-faint: #605c6d;
    --accent: #a78bfa;
    --accent-strong: #c4b1ff;
    --accent-soft: rgba(167, 139, 250, 0.14);
    --accent-2: #f0abfc;
    --success: #34d399;
    --success-soft: rgba(52, 211, 153, 0.14);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, 0.14);
    --pending: #fbbf24;
    --pending-soft: rgba(251, 191, 36, 0.14);
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 9px;
    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    background:
        radial-gradient(680px 420px at 12% -8%, var(--bg-glow-1), transparent 60%),
        radial-gradient(620px 440px at 108% 10%, var(--bg-glow-2), transparent 55%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: inherit;
}

button {
    font-family: inherit;
}

::selection {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 0 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(155deg, var(--accent) 0%, var(--accent-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-mark svg {
    width: 16px;
    height: 16px;
}

.brand-sub {
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 12px;
    margin-left: 2px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 9px 15px;
    border-radius: 100px;
    border: 1px solid var(--border);
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.nav-link:hover {
    color: var(--text);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.nav-link svg {
    width: 14px;
    height: 14px;
}

/* Hero / request layout */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    padding: 56px 0 100px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--accent-strong);
    background: var(--accent-soft);
    border: 1px solid rgba(167, 139, 250, 0.28);
    padding: 6px 12px;
    border-radius: 100px;
    margin-bottom: 22px;
}

.eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-strong);
}

.headline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

.headline em {
    font-style: normal;
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subhead {
    color: var(--text-muted);
    font-size: 15.5px;
    line-height: 1.65;
    max-width: 430px;
    margin: 0 0 34px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.field .hint {
    font-weight: 400;
    color: var(--text-faint);
    margin-left: 6px;
}

.field input[type="text"],
.field input[type="password"] {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 14.5px;
    padding: 13px 15px;
    border-radius: var(--radius-sm);
    transition: border-color .15s ease, background .15s ease;
}

.field input[type="text"]::placeholder,
.field input[type="password"]::placeholder {
    color: var(--text-faint);
    font-family: var(--font-body);
}

.field input[type="text"]:focus,
.field input[type="password"]:focus {
    border-color: var(--accent);
    background: var(--surface-2);
    outline: none;
}

.field-error {
    color: var(--danger);
    font-size: 12.5px;
    margin-top: 7px;
}

.dropzone {
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
    position: relative;
}

.dropzone:hover,
.dropzone.is-dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.dropzone-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropzone-icon svg {
    width: 18px;
    height: 18px;
    color: var(--accent-strong);
}

.dropzone-text {
    min-width: 0;
}

.dropzone-title {
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 2px;
}

.dropzone-sub {
    font-size: 12px;
    color: var(--text-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.submit-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14.5px;
    padding: 14px 26px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.btn svg {
    width: 15px;
    height: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #100a1f;
    box-shadow: 0 8px 24px -8px rgba(167, 139, 250, 0.55);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -8px rgba(167, 139, 250, 0.65);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.btn-danger-ghost {
    background: var(--surface);
    color: var(--danger);
    border: 1px solid var(--border);
}

.btn-danger-ghost:hover {
    border-color: var(--danger);
    background: var(--danger-soft);
}

.btn-sm {
    padding: 9px 16px;
    font-size: 13px;
    border-radius: 9px;
}

.sla-note {
    font-size: 12.5px;
    color: var(--text-faint);
    display: flex;
    align-items: center;
    gap: 7px;
}

.sla-note svg {
    width: 14px;
    height: 14px;
    color: var(--accent-strong);
    flex-shrink: 0;
}

/* Signature: live badge preview */

.preview-col {
    position: sticky;
    top: 30px;
}

.preview-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    position: relative;
    overflow: hidden;
}

.preview-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: radial-gradient(340px 200px at 50% 0%, var(--accent-soft), transparent 70%);
    pointer-events: none;
}

.preview-label {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-faint);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
    position: relative;
}

.discord-mock {
    background: #0c0c12;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
}

.discord-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.discord-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865f2, #a78bfa);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}

.discord-identity {
    min-width: 0;
}

.discord-name-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.discord-name {
    font-weight: 600;
    font-size: 14.5px;
    color: #fff;
}

.badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 3px 9px 3px 4px;
    border-radius: 100px;
    transition: all .18s ease;
}

.badge-chip-img {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    object-fit: cover;
    background: var(--surface);
    flex-shrink: 0;
}

.badge-chip-placeholder {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-chip-placeholder svg {
    width: 10px;
    height: 10px;
    color: var(--text-faint);
}

.badge-chip-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--accent-strong);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discord-id-line {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-faint);
    margin-top: 4px;
}

.discord-mock-msg {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
    font-size: 13px;
    color: var(--text-muted);
}

.status-track {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.status-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    position: relative;
}

.status-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 28px;
    width: 1px;
    height: calc(100% - 10px);
    background: var(--border);
}

.status-dot {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.status-dot svg {
    width: 9px;
    height: 9px;
    color: var(--bg);
}

.status-step.is-active .status-dot {
    background: var(--accent);
    border-color: var(--accent);
}

.status-copy-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-faint);
}

.status-step.is-active .status-copy-title {
    color: var(--text);
}

.status-copy-sub {
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 1px;
}

/* Confirmation state */

.confirm-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 560px;
    margin: 40px auto 0;
    text-align: center;
}

.confirm-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--success-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.confirm-icon svg {
    width: 24px;
    height: 24px;
    color: var(--success);
}

.confirm-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
}

.confirm-sub {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 28px;
}

.confirm-sub strong {
    color: var(--text);
    font-family: var(--font-mono);
    font-weight: 500;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Alerts */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    margin-bottom: 22px;
}

.alert svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-error {
    background: var(--danger-soft);
    color: #ffb4b4;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.alert-success {
    background: var(--success-soft);
    color: #8be8c4;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.alert ul {
    margin: 0;
    padding-left: 16px;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border-soft);
    padding: 22px 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--text-faint);
    font-family: var(--font-mono);
}

.site-footer a {
    color: var(--text-faint);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent-strong);
}

/* Login page */

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 38px 34px;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: radial-gradient(300px 180px at 50% -10%, var(--accent-soft), transparent 70%);
    pointer-events: none;
}

.login-mark {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(155deg, var(--accent) 0%, var(--accent-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    position: relative;
}

.login-mark svg {
    width: 19px;
    height: 19px;
}

.login-title {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 6px;
    position: relative;
}

.login-sub {
    color: var(--text-muted);
    font-size: 13.5px;
    margin: 0 0 26px;
    position: relative;
}

.login-card .field {
    position: relative;
}

.login-card .btn {
    width: 100%;
    margin-top: 6px;
}

.login-foot {
    text-align: center;
    margin-top: 20px;
    font-size: 12.5px;
    color: var(--text-faint);
    position: relative;
}

.login-foot a {
    color: var(--accent-strong);
    text-decoration: none;
}

/* Panel */

.panel-header {
    padding: 30px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.panel-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px;
}

.panel-sub {
    color: var(--text-muted);
    font-size: 13.5px;
    margin: 0;
}

.tabs {
    display: flex;
    gap: 6px;
    margin: 28px 0 22px;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 0;
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .15s ease, border-color .15s ease;
}

.tab:hover {
    color: var(--text);
}

.tab.is-active {
    color: var(--accent-strong);
    border-color: var(--accent);
}

.tab-count {
    font-family: var(--font-mono);
    font-size: 11px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 1px 7px;
    border-radius: 100px;
    color: var(--text-faint);
}

.tab.is-active .tab-count {
    color: var(--accent-strong);
    border-color: rgba(167, 139, 250, 0.35);
}

.request-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 60px;
}

.request-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    flex-wrap: wrap;
}

.request-thumb {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    object-fit: cover;
    background: var(--surface-2);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.request-main {
    flex: 1;
    min-width: 200px;
}

.request-name {
    font-weight: 600;
    font-size: 14.5px;
    margin-bottom: 3px;
}

.request-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
    flex-wrap: wrap;
}

.request-meta .sep {
    opacity: 0.5;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 100px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.status-pill.pending {
    background: var(--pending-soft);
    color: var(--pending);
}

.status-pill.accepted {
    background: var(--success-soft);
    color: var(--success);
}

.status-pill.rejected {
    background: var(--danger-soft);
    color: var(--danger);
}

.request-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.empty-state {
    text-align: center;
    padding: 70px 20px;
    color: var(--text-faint);
}

.empty-state svg {
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    color: var(--text-faint);
}

.empty-state p {
    font-size: 14px;
    margin: 0;
}

@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
        padding-bottom: 60px;
    }

    .preview-col {
        position: static;
        order: -1;
    }

    .headline {
        font-size: 34px;
    }

    .request-actions {
        margin-left: 0;
        width: 100%;
    }

    .request-actions .btn {
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
