/* =============================================
   easy-host — Warm Slate Editorial Theme
   ============================================= */

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/fonts/dm-sans-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'DM Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/dm-sans-latin-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/fonts/fraunces-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Fraunces';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url('/fonts/fraunces-latin-italic.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #151820;
    --bg-warm: #1a1d26;
    --surface: #1f2330;
    --surface-hover: #272b3a;
    --surface-raised: #2a2f40;
    --border: #2e3347;
    --border-subtle: #252940;
    --text: #e8e6e1;
    --text-secondary: #8e8d8a;
    --text-tertiary: #5c5b59;
    --accent: #e2a84b;
    --accent-hover: #edb85e;
    --accent-dim: rgba(226, 168, 75, 0.12);
    --accent-glow: rgba(226, 168, 75, 0.06);
    --danger: #d4544a;
    --danger-dim: rgba(212, 84, 74, 0.1);
    --success: #5dba6e;
    --success-dim: rgba(93, 186, 110, 0.1);
    --radius: 10px;
    --radius-lg: 16px;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Fraunces', Georgia, serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.25), 0 2px 4px rgba(0,0,0,0.15);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.3);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg);
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

/* Typography */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Code */
code, pre {
    font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
    font-size: 0.85em;
}
code {
    padding: 3px 7px;
    background: var(--surface-raised);
    border-radius: 5px;
    color: var(--accent);
}
pre {
    padding: 20px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    overflow-x: auto;
    line-height: 1.7;
}
pre code {
    padding: 0;
    background: none;
    color: var(--text);
    border-radius: 0;
}

/* ============ Animations ============ */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-in {
    animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Stagger children */
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 50ms; }
.stagger > *:nth-child(3) { animation-delay: 100ms; }
.stagger > *:nth-child(4) { animation-delay: 150ms; }
.stagger > *:nth-child(5) { animation-delay: 200ms; }
.stagger > *:nth-child(6) { animation-delay: 250ms; }
.stagger > *:nth-child(7) { animation-delay: 300ms; }
.stagger > *:nth-child(8) { animation-delay: 350ms; }

/* ============ Navigation ============ */

.nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 28px;
    height: 60px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(31, 35, 48, 0.85);
    animation: slideDown 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.nav-inner {
    max-width: 1040px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15em;
    color: var(--text) !important;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-brand::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    transform: rotate(45deg);
}
.nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
}
.nav-links a, .nav-links .btn-link {
    color: var(--text-secondary);
    font-size: 0.88em;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all var(--transition);
}
.nav-links a:hover, .nav-links .btn-link:hover {
    color: var(--text);
    background: var(--surface-hover);
}

/* ============ Nav Dropdown ============ */

.nav-dropdown {
    position: relative;
}
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.88em;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
}
.nav-dropdown-toggle:hover {
    color: var(--text);
    background: var(--surface-hover);
}
.nav-dropdown-arrow {
    font-size: 0.7em;
    transition: transform var(--transition);
}
.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown:focus-within .nav-dropdown-arrow {
    transform: rotate(180deg);
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 7px;
    color: var(--text-secondary) !important;
    font-size: 0.88em;
    font-weight: 500;
    transition: all var(--transition);
    text-decoration: none;
}
.nav-dropdown-item:hover {
    background: var(--surface-hover);
    color: var(--text) !important;
}
.nav-dropdown-active {
    color: var(--accent) !important;
    background: var(--accent-dim);
}
.nav-dropdown-active:hover {
    color: var(--accent-hover) !important;
    background: var(--accent-dim);
}
.nav-app-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

/* ============ Container ============ */

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 40px 28px;
    animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.1s;
}

/* ============ Page Header ============ */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.page-header h1 {
    font-size: 1.75em;
    color: var(--text);
}

/* ============ Buttons ============ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.88em;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn:hover {
    background: var(--surface-hover);
    color: var(--text);
    border-color: var(--border);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.btn:active {
    transform: translateY(0);
    box-shadow: none;
}
.btn-primary {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    font-weight: 600;
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--bg);
    border-color: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(226, 168, 75, 0.25);
}
.btn-danger {
    color: var(--danger);
    border-color: rgba(212, 84, 74, 0.3);
    background: transparent;
}
.btn-danger:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}
.btn-small {
    padding: 5px 12px;
    font-size: 0.82em;
}
.btn-full {
    width: 100%;
    text-align: center;
}
.btn-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.88em;
    font-weight: 500;
    padding: 6px 14px;
}
.btn-link:hover { color: var(--text); }

/* ============ Table ============ */

.table-wrap {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    padding: 14px 20px;
    text-align: left;
}
.table th {
    font-size: 0.72em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    font-weight: 600;
    background: var(--surface);
    border-bottom: 1px solid var(--border-subtle);
}
.table td {
    font-size: 0.9em;
    border-bottom: 1px solid var(--border-subtle);
}
.table tbody tr {
    transition: background var(--transition);
}
.table tbody tr:hover {
    background: var(--accent-glow);
}
.table tbody tr:last-child td {
    border-bottom: none;
}

/* Selectable rows */
.table-selectable tbody tr {
    cursor: pointer;
    user-select: none;
}
.table-selectable tbody tr.row-selected {
    background: var(--accent-dim);
    box-shadow: inset 3px 0 0 var(--accent);
}
.table-selectable tbody tr.row-selected:hover {
    background: var(--accent-dim);
}

/* Toolbar actions (appear on selection) */
.page-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.toolbar-action {
    animation: fadeIn 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ============ Table Toolbar ============ */

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.page-size-picker {
    display: flex;
    align-items: center;
    gap: 4px;
}
.page-size-label {
    font-size: 0.8em;
    color: var(--text-tertiary);
    margin-right: 6px;
}
.page-size-opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
}
.page-size-opt:hover {
    color: var(--text);
    background: var(--surface-hover);
}
.page-size-active {
    color: var(--accent) !important;
    background: var(--accent-dim);
    border-color: rgba(226, 168, 75, 0.2);
}

/* ============ Pagination ============ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    transition: all var(--transition);
}
.pagination-btn:hover {
    color: var(--text);
    background: var(--surface-hover);
    border-color: var(--border);
}
.pagination-active {
    color: var(--bg) !important;
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    font-weight: 600;
}
.pagination-active:hover {
    background: var(--accent-hover) !important;
}
.pagination-disabled {
    color: var(--text-tertiary);
    opacity: 0.4;
    pointer-events: none;
}

/* ============ Cards ============ */

.card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition);
}
.card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-md);
}

/* ============ Dropzone ============ */

.dropzone {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-warm);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}
.dropzone:hover {
    border-color: var(--text-tertiary);
    background: rgba(226, 168, 75, 0.03);
}
.dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: -1;
}
.dropzone-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    gap: 8px;
    text-align: center;
}
.dropzone-icon {
    color: var(--text-tertiary);
    margin-bottom: 4px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.dropzone:hover .dropzone-icon {
    color: var(--accent);
    transform: translateY(-3px);
}
.dropzone-text {
    font-size: 0.95em;
    font-weight: 500;
    color: var(--text-secondary);
}
.dropzone-hint {
    font-size: 0.82em;
    color: var(--text-tertiary);
}
.dropzone-browse {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(226, 168, 75, 0.3);
    text-underline-offset: 2px;
}
.dropzone-formats {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}
.dropzone-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 0.72em;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Drag over state */
.dropzone-dragover {
    border-color: var(--accent) !important;
    background: var(--accent-dim) !important;
    box-shadow: 0 0 0 4px rgba(226, 168, 75, 0.08);
}
.dropzone-dragover .dropzone-icon {
    color: var(--accent);
    transform: translateY(-6px) scale(1.1);
}
.dropzone-dragover .dropzone-text {
    color: var(--accent);
}

/* Error shake */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
.dropzone-error {
    animation: shake 0.4s ease;
    border-color: var(--danger) !important;
    background: var(--danger-dim) !important;
}

/* File selected state */
.dropzone-has-file {
    border-style: solid;
    border-color: var(--accent);
    background: var(--accent-dim);
}
.dropzone-has-file:hover {
    background: var(--accent-dim);
}
.dropzone-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
}
.dropzone-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(226, 168, 75, 0.1);
    border-radius: 10px;
    color: var(--accent);
    flex-shrink: 0;
}
.dropzone-file-info {
    flex: 1;
    min-width: 0;
}
.dropzone-file-name {
    font-size: 0.92em;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dropzone-file-meta {
    font-size: 0.78em;
    color: var(--text-secondary);
    margin-top: 2px;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
}
.dropzone-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(212, 84, 74, 0.1);
    border-radius: 8px;
    color: var(--danger);
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition);
}
.dropzone-remove:hover {
    background: var(--danger);
    color: #fff;
}

/* ============ Forms ============ */

.form-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 580px;
    box-shadow: var(--shadow-sm);
}
.field {
    margin-bottom: 22px;
}
.field label {
    display: block;
    font-size: 0.82em;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.field input[type="text"],
.field input[type="url"],
.field input[type="password"],
.field input[type="file"] {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.92em;
    transition: all var(--transition);
}
.field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
.field input::placeholder {
    color: var(--text-tertiary);
}
.field input[type="file"] {
    cursor: pointer;
    padding: 10px 14px;
}
.field input[type="file"]::file-selector-button {
    background: var(--surface-raised);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 14px;
    margin-right: 12px;
    font-family: var(--font-body);
    font-size: 0.88em;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}
.field input[type="file"]::file-selector-button:hover {
    background: var(--surface-hover);
}
.hint {
    display: block;
    margin-top: 5px;
    font-size: 0.78em;
    color: var(--text-tertiary);
}
.slug-preview {
    margin-top: 10px;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 0.85em;
    color: var(--accent);
    padding: 8px 12px;
    background: var(--accent-dim);
    border-radius: 6px;
    display: inline-block;
}
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

/* ============ Flash Messages ============ */

.flash {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 0.9em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.flash::before {
    font-size: 1.1em;
    flex-shrink: 0;
}
.flash-success {
    background: var(--success-dim);
    border: 1px solid rgba(93, 186, 110, 0.25);
    color: var(--success);
}
.flash-success::before { content: '\2713'; }
.flash-error {
    background: var(--danger-dim);
    border: 1px solid rgba(212, 84, 74, 0.25);
    color: var(--danger);
}
.flash-error::before { content: '\2717'; }

/* ============ Login ============ */

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
    position: relative;
}
/* Ambient glow behind login */
.login-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.login-box {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 48px 36px 40px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.login-box h1 {
    text-align: center;
    margin-bottom: 6px;
    font-size: 1.65em;
}
.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 0.9em;
    font-style: italic;
    font-family: var(--font-display);
}
.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.85em;
}
.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
    color: var(--text-tertiary);
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.divider::before, .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: var(--border);
}
.divider::before { left: 0; }
.divider::after { right: 0; }
.btn-sso {
    border-color: var(--border);
    background: var(--surface-hover);
    margin-bottom: 8px;
    text-align: center;
}
.btn-sso:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

/* ============ File List ============ */

.file-list {
    list-style: none;
    background: var(--bg-warm);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 6px;
    max-height: 220px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 0.82em;
}
.file-list li {
    padding: 6px 10px;
    border-radius: 6px;
    transition: background var(--transition);
}
.file-list li:hover {
    background: var(--surface-hover);
}
.file-list::-webkit-scrollbar {
    width: 6px;
}
.file-list::-webkit-scrollbar-track {
    background: transparent;
}
.file-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* ============ Content Pages ============ */

.content-page h1 {
    margin-bottom: 28px;
    font-size: 2em;
}
.content-page h2 {
    margin: 32px 0 14px;
    font-size: 1.2em;
    color: var(--accent);
    font-weight: 500;
}
.content-page p, .content-page ul {
    margin-bottom: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}
.content-page p strong, .content-page li strong {
    color: var(--text);
    font-weight: 600;
}
.content-page ul {
    padding-left: 24px;
}
.content-page li {
    margin-bottom: 6px;
}
.content-page em {
    font-family: var(--font-display);
    color: var(--text-tertiary);
}

/* ============ Empty State ============ */

.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}
.empty-state p {
    font-size: 1em;
}

/* ============ Badge / Count ============ */

.text-secondary {
    color: var(--text-secondary);
    font-size: 0.88em;
    margin-bottom: 16px;
    display: block;
}
.item-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--accent-dim);
    border-radius: 20px;
    font-size: 0.82em;
    font-weight: 600;
    color: var(--accent);
}

/* ============ Footer ============ */

.footer {
    text-align: center;
    padding: 28px;
    margin-top: 60px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.82em;
}
.footer a {
    color: var(--text-tertiary);
    margin: 0 14px;
    transition: color var(--transition);
}
.footer a:hover { color: var(--text-secondary); }

/* ============ Responsive ============ */

@media (max-width: 768px) {
    .table th:nth-child(3), .table td:nth-child(3),
    .table th:nth-child(4), .table td:nth-child(4) { display: none; }
    .page-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    .nav { padding: 0 16px; }
    .container { padding: 28px 16px; }
    .form-card { padding: 24px 20px; }
    .login-box { padding: 36px 24px 32px; }
    .nav-links { gap: 2px; }
    .nav-links a, .nav-links .btn-link {
        padding: 6px 10px;
        font-size: 0.82em;
    }
}

@media (max-width: 480px) {
    .nav-brand { font-size: 1em; }
    .page-header h1 { font-size: 1.35em; }
    .content-page h1 { font-size: 1.5em; }
}
