:root {
    --navy: #1a2332;
    --navy-light: #2a3a52;
    --navy-dark: #0f1620;
    --yellow: #f5c518;
    --yellow-dark: #d4a811;
    --bg: #fafaf7;
    --card: #ffffff;
    --border: #e5e5e0;
    --border-strong: #d0d0c8;
    --text: #1a2332;
    --muted: #888;
    --danger: #c0392b;
    --danger-light: #fff3f3;
    --success: #2a6020;
    --success-light: #f0f9f0;
    --warning: #c08020;
    --warning-light: #fff8e6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    background: #f0f0eb;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
}

pre {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    background: var(--navy-dark);
    color: #e8e8e0;
    padding: 14px 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

/* Topbar */
.topbar {
    background: var(--navy);
    color: white;
    border-bottom: 3px solid var(--yellow);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 56px;
}
.brand {
    color: white;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand span { color: var(--yellow); font-weight: 400; }

.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
.nav a {
    color: rgba(255,255,255,0.78);
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 13px;
    transition: background .12s, color .12s;
    white-space: nowrap;
}
.nav a:hover { background: rgba(255,255,255,0.08); color: white; text-decoration: none; }
.nav a.active { background: var(--yellow); color: var(--navy); font-weight: 600; }

.user { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.7); }
.user .who { color: var(--yellow); font-weight: 500; }

/* Main */
.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 24px 64px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.page-header-actions { display: flex; gap: 4px; }
.page-title { font-size: 26px; margin: 0; font-weight: 700; }
h2 { font-size: 18px; margin: 24px 0 14px; font-weight: 600; }
h3 { font-size: 15px; margin: 18px 0 10px; font-weight: 600; }

.muted { color: var(--muted); font-size: 14px; }
.back-link { display: inline-block; margin-bottom: 12px; color: var(--muted); font-size: 13px; }

/* Toasts & flashes */
.toast-zone {
    position: fixed;
    top: 72px;
    right: 24px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    background: white;
    border-left: 4px solid var(--success);
    padding: 12px 18px;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    pointer-events: auto;
    max-width: 360px;
    animation: toast-in .25s ease-out;
}
.toast.toast-error { border-left-color: var(--danger); }
.toast.toast-warning { border-left-color: var(--warning); }
@keyframes toast-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.flash {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid transparent;
}
.flash-success { background: var(--success-light); border-color: #b8e0b8; color: var(--success); }
.flash-error { background: var(--danger-light); border-color: #f5c2c2; color: var(--danger); }
.flash-warning { background: var(--warning-light); border-color: #f5d68a; color: var(--warning); }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
}
.stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.stat-value { font-size: 32px; font-weight: 700; margin: 6px 0 4px; }
.stat-link { font-size: 13px; color: var(--navy); }

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.dash-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 22px;
}
.dash-card h2 { margin-top: 0; }
.recent-list, .endpoint-list { list-style: none; margin: 0; padding: 0; }
.recent-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.recent-list li:last-child { border-bottom: 0; }
.endpoint-list li { padding: 6px 0; font-size: 13px; }

/* Card sections */
.card-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 18px;
}
.card-section > summary {
    cursor: pointer;
    padding: 4px 0;
    list-style: none;
    font-size: 15px;
}
.card-section > summary::-webkit-details-marker { display: none; }
.card-section > summary::before { content: '▸ '; color: var(--muted); }
.card-section[open] > summary::before { content: '▾ '; }

.advanced-options {
    background: var(--bg);
    border: 1px dashed var(--border-strong);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
}
.advanced-options summary { cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 500; }

/* Forms */
.upload-form, .edit-form { display: flex; flex-direction: column; gap: 13px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 12px; color: var(--text); text-transform: uppercase; letter-spacing: 0.3px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="url"],
.field input[type="number"],
.field input[type="search"],
.field input[type="datetime-local"],
.field input[type="file"],
.field select,
.field textarea {
    padding: 9px 11px;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    transition: border-color .12s, box-shadow .12s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 0;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.15);
}
.field input[type="color"] { width: 60px; height: 36px; padding: 2px; cursor: pointer; }
.field input[type="range"] { padding: 0; }
.field textarea { resize: vertical; min-height: 60px; }
.field label.checkbox { display: flex; align-items: center; gap: 8px; font-weight: 500; text-transform: none; letter-spacing: 0; cursor: pointer; }
.field .hint { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Buttons */
.btn-primary, .btn-danger {
    align-self: flex-start;
    padding: 10px 18px;
    border: 0;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .12s, transform .06s;
}
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-light); }
.btn-primary:active { transform: translateY(1px); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #a82e22; }
.btn-text {
    background: transparent;
    border: 0;
    color: var(--navy);
    cursor: pointer;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: inherit;
    transition: background .12s;
}
.btn-text:hover { background: rgba(0,0,0,0.04); text-decoration: none; }

.btn-copy {
    padding: 5px 10px;
    border: 1px solid var(--border-strong);
    background: white;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: background .12s, border-color .12s, color .12s;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-copy:hover { background: var(--yellow); border-color: var(--yellow); }
.btn-copy.copied { background: var(--success); color: white; border-color: var(--success); }

/* Filter bar */
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.filter-search {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
}
.filter-search:focus { outline: 0; border-color: var(--yellow); }
.filter-bar select {
    padding: 7px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    font-size: 13px;
    font-family: inherit;
    background: white;
}

/* Tag cloud / chips */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--card);
    border: 1px solid var(--border-strong);
    color: var(--navy);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    transition: background .12s, border-color .12s;
}
.tag-chip span { color: var(--muted); font-weight: 500; }
.tag-chip:hover { background: var(--yellow); border-color: var(--yellow); text-decoration: none; }
.tag-chip.active { background: var(--navy); color: white; border-color: var(--navy); }
.tag-chip.active span { color: var(--yellow); }

.tag-mini {
    display: inline-block;
    background: rgba(26, 35, 50, 0.06);
    color: var(--navy);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-right: 3px;
}
.cat-chip {
    display: inline-block;
    background: var(--yellow);
    color: var(--navy);
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Bulk bar */
.bulk-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    background: var(--navy);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.bulk-bar select, .bulk-input {
    padding: 6px 10px;
    border: 0;
    border-radius: 5px;
    font-size: 13px;
    font-family: inherit;
}
.bulk-bar .btn-primary { background: var(--yellow); color: var(--navy); padding: 6px 14px; }
.bulk-bar .btn-text { color: rgba(255,255,255,0.7); }
.bulk-bar .btn-text:hover { color: white; background: rgba(255,255,255,0.1); }

/* Dropzone */
.dropzone-section { margin-bottom: 22px; }
.dropzone {
    background: var(--card);
    border: 2px dashed var(--border-strong);
    border-radius: 14px;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .1s;
}
.dropzone:hover { border-color: var(--yellow); background: #fffce6; }
.dropzone.is-dragging {
    border-color: var(--yellow);
    background: #fff8e0;
    border-style: solid;
    transform: scale(1.005);
}
.dropzone:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.dropzone-icon { font-size: 42px; margin-bottom: 8px; }
.dropzone-title { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.dropzone-hint { font-size: 13px; color: var(--muted); margin-top: 4px; }

.dz-progress {
    margin-top: 16px;
    text-align: left;
    background: var(--bg);
    border-radius: 8px;
    padding: 12px;
}
.dz-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.dz-item:last-child { border-bottom: 0; }
.dz-item-name { font-weight: 500; word-break: break-all; }
.dz-item-bar {
    width: 120px;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.dz-item-bar-fill {
    height: 100%;
    background: var(--yellow);
    width: 0%;
    transition: width .2s;
}
.dz-item.is-success .dz-item-bar-fill { background: var(--success); width: 100% !important; }
.dz-item.is-error .dz-item-bar-fill { background: var(--danger); width: 100% !important; }
.dz-item-status { font-size: 11px; color: var(--muted); white-space: nowrap; }
.dz-item.is-error .dz-item-status { color: var(--danger); }

/* Image grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.image-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .12s, transform .12s, box-shadow .12s;
    position: relative;
}
.image-card:hover { border-color: var(--yellow); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.image-card.is-pinned { border-color: var(--yellow); }
.image-select {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background: white;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}
.image-select input { width: 14px; height: 14px; cursor: pointer; }
.image-card.is-checked { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
.image-thumb {
    display: block;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f5f5f0 0%, #e9e9e0 100%);
    overflow: hidden;
    position: relative;
}
.image-thumb img, .image-thumb object {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.pin-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: white;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
    box-shadow: var(--shadow-sm);
}
.image-meta { padding: 12px 14px; }
.image-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; line-height: 1.3; }
.image-slug { font-size: 11px; color: var(--muted); margin-bottom: 6px; word-break: break-all; }
.image-stats { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.image-tags { margin-bottom: 8px; }
.image-actions { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }

/* URL list */
.url-list { display: flex; flex-direction: column; gap: 8px; }
.url-row {
    --accent: var(--navy);
    display: grid;
    grid-template-columns: 24px 36px 48px 1fr auto auto;
    gap: 14px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 12px 16px;
    transition: border-color .12s, box-shadow .12s, transform .1s;
}
.url-row:hover { box-shadow: var(--shadow-sm); }
.url-row.is-inactive { opacity: 0.55; background: var(--bg); }
.url-row.is-expired { background: var(--danger-light); }
.url-row.is-checked { box-shadow: 0 0 0 2px var(--navy); }
.url-row.is-dragging { opacity: 0.4; }
.url-row.drag-over { border-top: 3px solid var(--yellow); }

.url-handle {
    cursor: grab;
    color: var(--muted);
    font-size: 14px;
    user-select: none;
    line-height: 1;
}
.url-handle:active { cursor: grabbing; }

.url-select { display: flex; align-items: center; }
.url-select input { width: 16px; height: 16px; cursor: pointer; }

.url-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.url-info { min-width: 0; }
.url-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.url-target { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.url-target a { color: var(--muted); }
.url-tags { margin-top: 4px; }
.url-status { font-size: 11px; margin-top: 4px; padding: 2px 8px; border-radius: 4px; display: inline-block; }
.status-ok { background: var(--success-light); color: var(--success); }
.status-bad { background: var(--danger-light); color: var(--danger); }

.url-stats { text-align: right; min-width: 80px; }
.stat-clicks { font-size: 18px; font-weight: 700; color: var(--navy); }
.stat-clicks span { display: block; font-size: 10px; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.status-toggle {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 3px 10px;
    font-size: 11px;
    cursor: pointer;
    margin-top: 4px;
    color: var(--success);
    font-weight: 600;
}
.url-row.is-inactive .status-toggle { color: var(--muted); }

.url-actions { display: flex; gap: 2px; align-items: center; }
.url-actions button, .url-actions a {
    padding: 6px 8px;
    border-radius: 5px;
    font-size: 13px;
}
.url-actions .btn-copy { padding: 5px 8px; }

/* Edit grid */
.edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) { .edit-grid { grid-template-columns: 1fr; } }

.edit-preview-col, .edit-form-col { display: flex; flex-direction: column; gap: 16px; }
.edit-preview {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}
.edit-preview img, .edit-preview object {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}
.edit-stats {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 13px;
    line-height: 1.7;
}
.edit-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px 24px;
}
.form-actions { display: flex; gap: 10px; align-items: center; padding-top: 8px; }
.action-row { display: flex; gap: 4px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border); margin-top: 12px; }

/* Snippets */
.snippet-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
}
.snippet-box h3 { margin: 0 0 10px; }
.snippet-row { margin-bottom: 12px; }
.snippet-row:last-child { margin-bottom: 0; }
.snippet-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; margin-bottom: 4px; }
.snippet-code {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.snippet-code code {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    overflow-x: auto;
    white-space: nowrap;
    color: var(--text);
}

/* Code block */
.code-block { position: relative; margin-bottom: 16px; }
.code-block .code-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
}

/* Builder */
.builder-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 22px;
}
.builder-tabs a {
    padding: 10px 18px;
    border-radius: 8px 8px 0 0;
    color: var(--muted);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.builder-tabs a:hover { background: rgba(0,0,0,0.03); text-decoration: none; }
.builder-tabs a.active { color: var(--navy); border-bottom-color: var(--yellow); }

.builder-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
}
@media (max-width: 900px) { .builder-grid { grid-template-columns: 1fr; } }

.builder-controls {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-self: start;
    position: sticky;
    top: 80px;
}
.builder-controls h2 { margin-top: 0; }

.builder-preview { display: flex; flex-direction: column; gap: 14px; }
.preview-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    min-height: 200px;
}
.preview-image { display: flex; align-items: center; justify-content: center; }
.preview-image img { max-width: 100%; max-height: 400px; }

/* Endpoint cards */
.endpoint-card {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 14px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
}
.endpoint-method {
    background: var(--success);
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    font-family: monospace;
}
.endpoint-path code { font-size: 14px; }
.endpoint-desc { font-size: 12px; color: var(--muted); margin-top: 3px; }
.endpoint-actions { display: flex; gap: 6px; align-items: center; }

/* Export grid */
.export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.export-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px;
}
.export-card h2 { margin-top: 0; }
.export-buttons { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    font-size: 14px;
}
.data-table th, .data-table td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.data-table th { background: #f5f5f0; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); }
.data-table tr:last-child td { border-bottom: 0; }

/* Login */
.login-page {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-card {
    background: var(--card);
    padding: 36px 32px;
    border-radius: 14px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border-top: 4px solid var(--yellow);
}
.login-brand { color: var(--navy); font-weight: 700; margin-bottom: 4px; font-size: 14px; }
.login-brand span { color: var(--yellow); font-weight: 400; }
.login-card h1 { margin: 0 0 24px; font-size: 22px; }
.login-card .field { margin-bottom: 16px; }
.login-card .btn-primary { width: 100%; padding: 12px; font-size: 15px; }
