:root {
    --bg: #0b0614;
    --bg-soft: rgba(255, 255, 255, 0.05);
    --bg-soft-2: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.10);

    /* Sakura theme colors */
    --primary: #a855f7;      /* purple */
    --primary-2: #ec4899;    /* pink */
    --accent: #f472b6;       /* sakura pink */

    --text: #f5f3ff;
    --muted: #c4b5fd;

    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;

    --shadow: 0 25px 70px rgba(0,0,0,0.55);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(179, 92, 255, 0.2), transparent 28%),
        radial-gradient(circle at top right, rgba(226, 76, 240, 0.15), transparent 24%),
        linear-gradient(180deg, #0a0a12 0%, #08080d 100%);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.container-app {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.page-shell {
    padding: 28px 0 40px;
}

.topbar {
    position: sticky;
    top: 16px;
    z-index: 30;
    margin-bottom: 28px;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    background: rgba(10, 10, 18, 0.65);
    backdrop-filter: blur(18px);
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background-image: url(/assets/logo.png);
    background-size: cover;
    
}

.nav-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-modern {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    color: var(--text);
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 12px 30px rgba(0,0,0,0.25);
}

.btn-modern:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border: none;
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border: none;
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border: none;
    color: white;
}

.hero {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 24px;
    margin-bottom: 26px;
}

.card-modern,
.glass-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    backdrop-filter: blur(18px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card-modern::before,
.glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 40%);
    pointer-events: none;
}

.hero-card {
    padding: 32px;
    min-height: 280px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: #cdd3ff;
    font-size: 14px;
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.02;
}

.hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 16px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px;
}

.stat-box {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.stat-label {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
}

.grid-two {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
}

.panel-body {
    padding: 24px;
}

.panel-title {
    margin: 0 0 16px;
    font-size: 20px;
}

.form-modern {
    display: grid;
    gap: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #d7ddff;
}

.input-modern,
.textarea-modern,
.file-modern {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    border-radius: 16px;
    padding: 14px 16px;
    outline: none;
}

.textarea-modern {
    min-height: 110px;
    resize: vertical;
}

.input-modern:focus,
.textarea-modern:focus,
.file-modern:focus {
    border-color: rgba(124, 92, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.14);
}

.upload-dropzone {
    padding: 26px;
    border-radius: 18px;
    border: 1px dashed rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.04);
    text-align: center;
}

.table-wrap {
    overflow-x: auto;
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
}

.table-modern th,
.table-modern td {
    padding: 16px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    vertical-align: middle;
}

.table-modern th {
    color: #d7ddff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.table-modern td {
    color: #eef1ff;
}

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.08);
}

.badge-pending {
    background: rgba(245, 158, 11, 0.14);
    color: #ffcc6c;
}

.badge-approved {
    background: rgba(34, 197, 94, 0.14);
    color: #7bf0a5;
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.14);
    color: #ff9a9a;
}

.alert-modern {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    color: #9af0b8;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    color: #ffabab;
}

.code-link {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.28);
    color: #9be7ff;
    border-radius: 14px;
    padding: 12px 14px;
}

.preview-frame {
    padding: 18px;
}

.preview-frame img {
    width: 100%;
    display: block;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
}

.meta-list {
    display: grid;
    gap: 12px;
}

.meta-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.meta-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(520px, 100%);
    padding: 30px;
}

.auth-title {
    margin: 0 0 8px;
    font-size: 32px;
}

.auth-subtitle {
    margin: 0 0 24px;
    color: var(--muted);
}

.footer-note {
    margin-top: 26px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 980px) {
    .hero,
    .grid-two {
        grid-template-columns: 1fr;
    }

    .topbar-inner {
        border-radius: 24px;
        align-items: flex-start;
        flex-direction: column;
    }
}