:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-2: #1e1e1e;
    --border: #2a2a2a;
    --text: #f0ece4;
    --text-muted: #8a8577;
    --gold: #c8a84e;
    --gold-light: #e0c872;
    --gold-dim: #c8a84e10;
    --green: #5a9e5a;
    --green-dim: #5a9e5a15;
    --red: #c45c5c;
    --red-dim: #c45c5c15;
    --blue: #5a7eb5;
}

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

html {
    scroll-behavior: smooth;
    overscroll-behavior: none;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg);
    position: relative;
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

#page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 150svh;
    background: url('/body-bg.png') no-repeat center top;
    background-size: cover;
    z-index: -2;
    pointer-events: none;
}

#page-overlay {
    position: fixed;
    inset: -9999px 0;
    width: 100%;
    background: rgba(10,10,10,0.82);
    z-index: -1;
    pointer-events: none;
}

/* ===== NAV ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

nav .nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
}

nav .brand-icon {
    width: 36px;
    height: 36px;
    background: var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

nav .brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

nav .brand-name span {
    color: var(--gold);
}

nav .nav-links {
    display: flex;
    gap: 4px;
}

nav .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

nav .nav-links a:hover,
nav .nav-links a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

/* ===== HERO ===== */
.hero {
    padding: 140px 24px 80px;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--gold-dim) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 20px;
    position: relative;
}

.hero h1 span {
    color: var(--gold);
}

.hero p {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 36px;
    position: relative;
}

.hero-divider {
    width: 120px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto;
    opacity: 0.4;
}

/* ===== SECTIONS ===== */
.section {
    max-width: 960px;
    margin: 0 auto;
    padding: 80px 24px;
    scroll-margin-top: 80px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 36px;
}

.section-divider {
    border: none;
    width: 240px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto;
    opacity: 0.4;
}

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

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    transition: border-color 0.3s;
}

.feature-card:hover {
    border-color: var(--gold);
}

.feature-card .feat-icon {
    font-size: 28px;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Contact */
.contact-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-item {
    flex: 1;
    min-width: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.contact-item .c-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.contact-item .c-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.contact-item .c-value {
    font-size: 15px;
    font-weight: 600;
}

.contact-item a {
    color: var(--gold);
    text-decoration: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 24px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== TRACKING ===== */
.tracking-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 100px 16px 40px;
    position: relative;
    min-height: calc(100vh - 64px);
}

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

.card h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

input[type="password"] {
    width: 100%;
    padding: 10px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: var(--gold);
}

.input-group {
    margin-bottom: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-primary {
    background: var(--gold);
    color: #000;
}

.btn-primary:hover {
    background: var(--gold-light);
}

.btn-danger {
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid #c45c5c30;
}

.btn-danger:hover {
    background: var(--red);
    color: #fff;
}

.btn-sm {
    width: auto;
    padding: 6px 14px;
    font-size: 12px;
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.keg-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}

.keg-card:hover {
    border-color: var(--gold);
}

.keg-card-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 14px;
}

.keg-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    font-weight: 600;
    color: var(--gold);
    min-width: 50px;
}

.keg-info {
    flex: 1;
    min-width: 0;
}

.keg-info .client {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.keg-info .time {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.keg-delivery-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.keg-delivery-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.delete-btn {
    background: var(--red);
    border: 1px solid var(--border);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.delete-btn:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-dim);
}

.card-price {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-dates {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: right;
    flex-shrink: 0;
}

.card-date {
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

.card-date.delivered { color: var(--green); }
.card-date.retrieved { color: var(--red); }

.keg-map-link {
    display: block;
    cursor: pointer;
}

.keg-map {
    width: 100%;
    height: 140px;
    border: none;
    border-top: 1px solid var(--border);
    pointer-events: none;
}

.scan-result {
    text-align: center;
    padding: 32px 16px;
}

.scan-result .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.scan-result h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.scan-result p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 24px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.msg {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.msg.error {
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid #c45c5c30;
}

.msg.success {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid #5a9e5a30;
}

.empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--text-muted);
}

.empty .icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.tab-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.tab-btn:hover {
    background: var(--surface-2);
    border-color: var(--gold);
    color: var(--text);
}

.tab-btn.active {
    background: var(--surface-2);
    border-color: var(--gold);
    color: var(--gold);
}

.sub-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.sub-filter-btn {
    flex: 1;
    padding: 8px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sub-filter-btn:hover {
    background: var(--surface-2);
    color: var(--text);
}

.sub-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    opacity: 0.7;
}

.sub-filter-btn.pending.active   { background: #2e2508; border-color: var(--gold); color: var(--gold); }
.sub-filter-btn.delivered.active { background: #0e2410; border-color: var(--green); color: var(--green); }
.sub-filter-btn.retrieved.active { background: #2a0e0e; border-color: var(--red); color: var(--red); }
.sub-filter-btn.available.active   { background: #0e2410; border-color: var(--green); color: var(--green); }
.sub-filter-btn.inuse.active       { background: #2e2508; border-color: var(--gold); color: var(--gold); }
.sub-filter-btn.maintenance.active { background: #2a0e0e; border-color: var(--red); color: var(--red); }

.status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 7px;
    vertical-align: middle;
}

.status-badge.pending {
    background: #c8a84e18;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.status-badge.delivered,
.status-badge.available {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid var(--green);
}

.status-badge.inuse {
    background: #2e2508;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.status-badge.retrieved {
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid var(--red);
}

.status-badge.maintenance {
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid var(--red);
}

.hidden {
    display: none !important;
}

.pin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    max-width: 360px;
    margin: 0 auto;
}

.pin-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pin-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.delivery-detail {
    text-align: left;
    padding: 4px 0;
    position: relative;
}

.delivery-id {
    position: absolute;
    top: 0;
    right: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.45;
}

.delivery-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.delivery-date {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.status-switch {
    margin: 16px 0 4px;
    user-select: none;
}

.switch-track {
    position: relative;
    height: 28px;
    margin-bottom: 10px;
    touch-action: none;
    cursor: default;
}

/* Transparent range input sits on top and handles all interaction natively */
.switch-range {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: default;
    margin: 0;
    padding: 0;
    z-index: 10;
    pointer-events: none;
}

/* Thin connecting line between nodes */
.switch-line {
    position: absolute;
    top: 50%;
    left: calc(16.667% + 4px);
    right: calc(16.667% + 4px);
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    transform: translateY(-50%);
}

/* Round nodes at each status stop — centered at 1/6, 1/2, 5/6 */
.switch-node {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.switch-node[data-pos="0"] { left: calc(16.667% - 10px); }
.switch-node[data-pos="1"] { left: calc(50% - 10px); }
.switch-node[data-pos="2"] { left: calc(83.333% - 10px); }

/* Draggable thumb */
.switch-thumb {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    top: 0;
    z-index: 11;
    cursor: grab;
    touch-action: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
    transition: left 0.25s ease, background 0.25s ease;
}

.switch-thumb:active { cursor: grabbing; }

.switch-thumb.pending   { background: var(--gold); }
.switch-thumb.delivered { background: var(--green); }
.switch-thumb.retrieved { background: var(--red); }

.status-labels {
    display: flex;
}

.status-labels span {
    flex: 1;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.status-labels .lbl-pending   { color: var(--gold); }
.status-labels .lbl-delivered { color: var(--green); }
.status-labels .lbl-retrieved { color: var(--red); }
.status-labels .lbl-owing     { color: var(--red); }
.status-labels .lbl-paid      { color: var(--green); }

.paid-switch-wrap {
    margin: 8px 0 4px;
    user-select: none;
}

.paid-labels {
    position: relative;
    height: 20px;
    margin-top: 6px;
}

.paid-labels span {
    position: absolute;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.paid-labels span:first-child { left: 25%; }
.paid-labels span:last-child  { left: 75%; }

.paid-labels .lbl-owing { color: var(--red); }
.paid-labels .lbl-paid  { color: var(--green); }

.switch-thumb.owing { background: var(--red); }
.switch-thumb.paid  { background: var(--green); }

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

.card-header-row h2 {
    margin-bottom: 0;
}

.btn-new-delivery {
    background: var(--gold-dim);
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 8px;
    padding: 5px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-new-delivery:hover {
    background: var(--gold);
    color: #000;
}

.toggle-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-track {
    position: absolute;
    inset: 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
}

.toggle-track::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.2s;
}

.toggle-switch input:checked + .toggle-track {
    background: var(--gold-dim);
    border-color: var(--gold);
}

.toggle-switch input:checked + .toggle-track::before {
    transform: translateX(20px);
    background: var(--gold);
}

.toggle-switch input:disabled + .toggle-track {
    opacity: 0.35;
    cursor: not-allowed;
}

.editable-row {
    gap: 10px;
}

.editable-row .toggle-value {
    flex: 1;
    text-align: right;
}

.keg-ids {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.7;
}

.edit-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 5px;
    cursor: pointer;
    padding: 3px 5px;
    color: var(--text-muted);
    flex-shrink: 0;
    line-height: 0;
    transition: border-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.confirm-btn {
    background: var(--green-dim);
    border: 1px solid var(--green);
    color: var(--green);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    flex-shrink: 0;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
    line-height: 1;
}

.confirm-btn:hover {
    background: var(--green);
    color: #fff;
}

.cancel-btn {
    background: var(--red-dim);
    border: 1px solid var(--red);
    color: var(--red);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    flex-shrink: 0;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
    line-height: 1;
}

.cancel-btn:hover {
    background: var(--red);
    color: #fff;
}

.edit-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.edit-input {
    flex: 1;
    padding: 5px 10px;
    background: var(--bg);
    border: 1px solid var(--gold);
    border-radius: 6px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    outline: none;
    min-width: 0;
}

.edit-textarea {
    resize: vertical;
    min-height: 80px;
    width: 100%;
    line-height: 1.5;
}

.desc-row {
    flex-wrap: wrap;
}

.desc-value {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
}

.keg-status-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    flex-shrink: 0;
}

.keg-toggle-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s;
    white-space: nowrap;
}

.keg-toggle-label.active-label {
    color: var(--text);
}

.keg-toggle-track {
    position: relative;
    width: 36px;
    height: 20px;
    background: var(--green-dim);
    border: 1px solid var(--green);
    border-radius: 10px;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.keg-toggle-track.maintenance {
    background: var(--red-dim);
    border-color: var(--red);
}

.keg-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--green);
    transition: transform 0.2s, background 0.2s;
}

.keg-toggle-track.maintenance .keg-toggle-thumb {
    transform: translateX(16px);
    background: var(--red);
}

.assign-section {
    margin-top: 16px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.assign-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.unassign-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: none;
    letter-spacing: 0;
}

.unassign-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

.assign-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.assign-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    min-height: 80px;
}

.assign-item:not(.linked):hover {
    border-color: var(--gold);
    background: var(--surface-2);
}

.assign-item.linked {
    border-color: var(--gold);
    background: var(--gold-dim);
}

.assign-item.assign-new {
    border-style: dashed;
    border-color: var(--gold);
    opacity: 0.6;
}
.assign-item.assign-new:hover {
    opacity: 1;
}

.assign-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.assign-linked {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
}

.assign-empty {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: 16px 0;
}

.status-select {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    padding: 4px 8px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.status-select:focus {
    border-color: var(--gold);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    margin-top: 16px;
    cursor: pointer;
    transition: color 0.2s;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

@media (max-width: 600px) {
    #page-bg {
        height: 250svh;
    }

    .contact-row {
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
    }

    nav .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 12px 24px;
        border-bottom: 1px solid var(--border);
        gap: 4px;
    }

    nav .nav-links.open {
        display: flex;
    }

    nav .nav-links a {
        padding: 12px 16px;
        font-size: 15px;
    }

    nav .nav-inner {
        position: relative;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero {
        padding: 110px 20px 60px;
    }

    .section {
        padding: 50px 16px;
    }

    .keg-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .pin-card {
        padding: 24px 20px;
    }
}
