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

:root {
    --bg: #f4f0ea;
    --ink: #1a1a1a;
    --muted: #6b6b6b;
    --accent: #ff6a00;
    --accent-dark: #d14f00;
    --card: #ffffff;
    --border: #e2ddd5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    background: radial-gradient(circle at 10% 10%, #fff4e8 0%, transparent 45%),
        radial-gradient(circle at 80% 20%, #f6f1ff 0%, transparent 40%),
        var(--bg);
    color: var(--ink);
}

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

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

.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.brand {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    letter-spacing: 0.5px;
}

.brand strong {
    color: var(--accent);
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 500;
}

.nav a,
.nav-dropdown__trigger {
    padding: 6px 2px;
    line-height: 1.2;
}

.nav form {
    margin: 0;
}

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-size: 14px;
}

.nav-dropdown__menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
    display: none;
    flex-direction: column;
    padding: 6px;
    z-index: 20;
}

.nav-dropdown__divider {
    height: 1px;
    background: var(--border);
    margin: 6px 4px;
}

.nav-dropdown__menu a {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--ink);
    text-decoration: none;
}

.nav-dropdown__item {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
}

.nav-dropdown__item:hover {
    background: #fdf2e9;
}

.nav-dropdown__menu a:hover {
    background: #fdf2e9;
}

.nav-dropdown:hover .nav-dropdown__menu {
    display: flex;
}

.lang-switch {
    display: none;
    gap: 6px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 14px;
}

.main {
    padding: 40px 0 60px;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    align-items: center;
    margin-bottom: 40px;
}

.hero-text h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(32px, 5vw, 52px);
    margin: 12px 0;
}

.lead {
    font-size: 18px;
    color: var(--muted);
}

.hero-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.hero-card ul {
    padding-left: 18px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 0;
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.inline-form {
    display: inline-flex;
    margin-left: 6px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.grid-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 16px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.badge {
    background: #fff0e6;
    color: var(--accent-dark);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-pill {
    padding: 2px 8px;
    font-size: 11px;
    margin-left: 6px;
    background: #f1f3f5;
    color: #4a4a4a;
}

.badge-verified {
    background: #e3f2ff;
    color: #0b5ed7;
    margin-left: 6px;
}

.badge-group {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.table-wrap {
    overflow-x: auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th,
.table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.table th {
    background: #f8fafc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: #fdf2e9;
}

.table td .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #f1f5f9;
    color: #334155;
}

.status-badge--pending {
    background: #fff3cd;
    color: #8a6d1f;
}

.status-badge--approved {
    background: #e7f9ef;
    color: #17824a;
}

.status-badge--rejected {
    background: #ffe3e3;
    color: #b00020;
}

.badge-staff {
    background: #ffe3e3;
    color: #b00020;
    margin-left: 6px;
}

.seal {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    line-height: 1;
    vertical-align: middle;
}

.seal-verified {
    color: #0b5ed7;
}

.seal-staff {
    color: #b00020;
}

.seal-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}

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

.form {
    display: grid;
    gap: 16px;
}

.form-row {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

label {
    display: grid;
    gap: 8px;
    font-weight: 500;
}

input, textarea, select {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font: inherit;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 600;
    cursor: pointer;
    background: #fff;
}

.button.primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.button.primary:hover {
    background: var(--accent-dark);
}

.button.ghost {
    background: transparent;
}

.panel {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
}

section + section {
    margin-top: 28px;
}

.panel + .panel {
    margin-top: 28px;
}

.auth-panel {
    max-width: 520px;
    margin: 0 auto;
}

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.list-item:last-child {
    border-bottom: none;
}

.list-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.alert {
    background: #fff3e6;
    border: 1px solid #ffd9bf;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

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

.chat {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.chat-line {
    background: #fff;
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    gap: 10px;
}

.chat-line--me {
    margin-left: auto;
    background: #fff4e8;
    border-color: #ffd9bf;
}

.chat-line--them {
    margin-right: auto;
}

.chat-meta {
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.chat-time {
    font-size: 12px;
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    color: var(--muted);
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    object-fit: cover;
    margin-top: 10px;
    border: 2px solid #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.avatar-sm {
    width: 36px;
    height: 36px;
    margin-top: 0;
    border-width: 1px;
    box-shadow: none;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-updates {
    font-size: 11px;
    color: var(--muted);
    text-decoration: none;
}

.footer-updates:hover {
    color: var(--accent);
}

.changelog {
    white-space: pre-wrap;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 13px;
    line-height: 1.6;
}

.empty-state {
    background: #fff;
    border: 1px dashed var(--border);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
}

.pagination {
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
}

.pagination .active span,
.pagination [aria-current='page'] span {
    background: transparent;
    border-color: var(--border);
    color: var(--accent-dark);
}

.pagination svg {
    width: 14px;
    height: 14px;
}
