/* LIVERYMARK COIN MARKETPLACE – PRODUCTION STYLES */
:root {
    --navy: #0a1f44;
    --navy-dark: #061530;
    --gold: #d4af37;
    --gold-light: #f0d97a;
    --cream: #faf8f0;
    --text-light: #e8edf5;
    --accent: #1e3a5f;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow: 0 5px 20px rgba(0,0,0,0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--cream);
    color: #333;
    line-height: 1.6;
}

/* HEADER */
.site-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    color: white;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-bottom: 3px solid var(--gold);
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    letter-spacing: 3px;
}

.logo-icon {
    color: var(--gold);
    font-size: 1.8rem;
}

.logo-text {
    font-weight: 800;
}

nav {
    display: flex;
    gap: 10px;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

nav a:hover {
    background: var(--gold);
    color: var(--navy);
}

.admin-link {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--gold);
}

.metal-ticker {
    display: flex;
    gap: 15px;
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    align-items: center;
    flex-wrap: wrap;
}

.price-refresh {
    color: var(--gold-light);
    font-size: 0.75rem;
}

.settings-note {
    max-width: 640px;
    margin: 0 0 18px;
    color: #444;
    font-weight: 400;
}

.metal-ticker strong {
    color: var(--gold-light);
    font-size: 1rem;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 50%, var(--gold) 100%);
    color: white;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button {
    background: var(--gold);
    color: var(--navy);
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212,175,55,0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,175,55,0.6);
}

/* CATALOG */
.catalog-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

.catalog-section h2,
.market-section h2,
.admin-section h2 {
    color: var(--navy);
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.catalog-section h2::after,
.market-section h2::after,
.admin-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-bar select,
.filter-bar input {
    padding: 12px 20px;
    border: 2px solid var(--navy);
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    min-width: 200px;
}

.filter-bar input {
    min-width: 300px;
}

/* COIN GRID */
.coin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.coin-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.coin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.coin-card-header {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.coin-card:hover .coin-card-header img {
    transform: scale(1.05);
}

.coin-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gold);
    color: var(--navy);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.coin-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.coin-stock {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: #8a7318;
    margin: 0 0 6px;
    font-weight: 600;
}

.coin-cert {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 8px;
}

.coin-place {
    font-size: 0.82rem;
    color: #4a5568;
    margin: 0 0 8px;
}

.coin-place.is-held {
    color: #8a4b12;
    font-weight: 600;
}

.coin-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.4;
}

.coin-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.coin-specs {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 15px;
}

.coin-specs div {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.85rem;
}

.coin-specs dt {
    color: #666;
    font-weight: 500;
}

.coin-specs dd {
    font-weight: 600;
    color: var(--navy);
}

.price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 2px solid #eee;
    gap: 10px;
}

.melt-value {
    text-align: center;
}

.melt-value span,
.price-value span {
    display: block;
    font-size: 0.75rem;
    color: #888;
}

.melt-value strong,
.price-value strong {
    font-size: 1.2rem;
    color: var(--navy);
}

.price-value.fair-value strong {
    color: #0a4d8c;
}

.price-value.market-high span,
.price-value.market-high strong {
    color: #6d6458;
    font-weight: 600;
}

.price-story {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    margin: 10px 0 0;
    line-height: 1.4;
}

.fair-chip, .fair-range {
    font-size: 0.8rem;
    color: #555;
    margin: 6px 0 0;
    line-height: 1.35;
}

.fair-range {
    font-weight: 600;
    color: var(--navy);
}

.collector-why {
    margin: 16px 0 8px;
    padding: 14px 16px;
    background: #f7f3ea;
    border-left: 4px solid var(--gold);
    border-radius: 0 8px 8px 0;
}

.collector-why h4 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 0.95rem;
}

.collector-why p {
    margin: 0;
    line-height: 1.45;
}

.collector-why-teaser {
    font-size: 0.85rem;
    color: #4a4338;
    margin: 4px 0 10px;
    line-height: 1.35;
    font-style: italic;
}

.buy-kind {
    margin: 8px 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e6e0d4;
    background: #faf8f3;
}

.buy-kind h4 {
    margin: 0 0 6px;
    font-size: 0.9rem;
    color: var(--navy);
}

.buy-kind-label {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.buy-kind-investment {
    border-color: #9cbe9c;
    background: #f1f7f1;
}

.buy-kind-investment .buy-kind-label {
    color: #1b5e20;
}

.buy-kind-collector {
    border-color: #d4af37;
    background: #f7f3ea;
}

.buy-kind-collector .buy-kind-label {
    color: #6b5200;
}

.buy-kind-nice-to-have {
    border-color: #c9b8a8;
    background: #f6f1ec;
}

.buy-kind-nice-to-have .buy-kind-label {
    color: #6d4c41;
}

.buy-kind-value, .buy-kind-note {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #3d3830;
}

.buy-kind-note {
    margin-top: 6px;
    color: #5c564c;
}

.value-split {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0 0 8px;
    font-size: 0.82rem;
}

.value-split span {
    background: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #e6e0d4;
}

.clerk-tape {
    margin-top: 16px;
    padding: 14px 16px;
    background: #fff8e1;
    border: 1px dashed #c9a227;
    border-radius: 8px;
    font-size: 0.9rem;
}

.clerk-tape h4 {
    margin: 0 0 8px;
    color: var(--navy);
}

.staff-guide.tape-wide {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    padding: 24px 16px 80px;
}

.tape-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin: 8px 0 16px;
    font-weight: 600;
}

.tape-scroll {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

#tape-table {
    width: 100%;
    min-width: 0;
    table-layout: auto;
}

#tape-table th.num,
#tape-table td.num {
    white-space: nowrap;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

#tape-table td.tape-piece {
    min-width: 12rem;
}

#tape-table .tape-clerk,
#tape-table .tape-why {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.35;
    white-space: normal;
}

#tape-table .tape-clerk {
    color: #5c564c;
}

#tape-table .tape-why {
    color: #2c2c2c;
}

tr.tape-near-melt td {
    background: #fff3cd;
}

tr.tape-high-ask td {
    background: #fdecea;
}

tr.tape-ok td {
    background: #e8f5e9;
}

.tape-due-yes {
    background: #fdecea !important;
    border-color: #c62828 !important;
}

.price-premium {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.premium-low {
    background: #e8f5e9;
    color: #2e7d32;
}

.premium-medium {
    background: #fff3e0;
    color: #ef6c00;
}

.premium-high {
    background: #fce4ec;
    color: #c62828;
}

.coin-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
}

.btn-view {
    background: var(--navy);
    color: white;
}

.btn-view:hover {
    background: var(--accent);
}

.btn-inquire {
    background: var(--gold);
    color: var(--navy);
}

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

.btn-delete {
    background: var(--danger);
    color: white;
}

.btn-delete:hover {
    opacity: 0.9;
}

/* MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 15px;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
    z-index: 5;
}

.close-btn:hover {
    color: var(--danger);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.modal-photo-section {
    position: relative;
}

.modal-photo-section img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.photo-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.photo-pair img {
    border-radius: 10px;
    aspect-ratio: 1;
    object-fit: cover;
}

.modal-specs {
    margin-top: 20px;
}

.modal-specs table {
    width: 100%;
    border-collapse: collapse;
}

.modal-specs td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.modal-specs td:first-child {
    color: #666;
    width: 40%;
    font-weight: 500;
}

.modal-specs td:last-child {
    font-weight: 600;
    color: var(--navy);
}

.chart-container-modal {
    margin-top: 20px;
    height: 250px;
}

/* MARKET SECTION */
.market-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 60px 20px;
    color: white;
}

.market-section h2 {
    color: white;
}

.market-section h2::after {
    background: var(--gold);
}

.market-container {
    max-width: 1000px;
    margin: 0 auto;
}

.market-chart {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.market-updates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.market-update-card {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid var(--gold);
}

.market-update-card h4 {
    color: var(--gold-light);
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.market-update-card p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ADMIN SECTION */
.admin-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: #eee;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    font-weight: 600;
}

.tab-btn.active {
    background: var(--navy);
    color: white;
    box-shadow: 0 4px 15px rgba(10,31,68,0.3);
}

.tab-content {
    display: none;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.tab-content.active {
    display: block;
}

/* UPLOAD */
.upload-container {
    max-width: 700px;
    margin: 0 auto;
}

.upload-container h3 {
    color: var(--navy);
    margin-bottom: 10px;
}

.upload-hint {
    color: #666;
    margin-bottom: 25px;
}

.photo-capture {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.photo-slot {
    border: 2px dashed var(--navy);
    border-radius: 15px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: #f8f9fa;
    transition: all 0.3s;
    text-align: center;
    padding: 8px;
    position: relative;
}

.photo-slot span {
    font-size: 0.8rem;
    color: var(--navy);
}

.photo-slot:hover {
    background: #e8edf5;
    border-color: var(--gold);
}

.photo-slot i {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.photo-slot.has-photo {
    border-style: solid;
    border-color: var(--success);
    padding: 0;
}

.photo-slot.has-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
}

.photo-slot.has-photo span {
    position: absolute;
    bottom: 6px;
    left: 6px;
    right: 6px;
    background: rgba(10, 25, 47, 0.75);
    color: #fff;
    border-radius: 6px;
    padding: 2px 4px;
    font-size: 0.7rem;
}

.gallery-main img {
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 1;
    object-fit: contain;
    background: #f4f1ea;
}

.gallery-caption {
    margin: 8px 0 12px;
    color: #555;
    font-size: 0.9rem;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.gallery-thumb {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 0;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    text-align: center;
}

.gallery-thumb.active {
    border-color: var(--gold);
}

.gallery-thumb img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
}

.gallery-thumb span {
    display: block;
    font-size: 0.68rem;
    padding: 4px;
    color: #333;
}

.edit-gallery {
    margin: 16px 0 20px;
}

.edit-gallery-thumbs .gallery-thumb {
    cursor: default;
}

.edit-photo-add {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    margin-top: 12px;
}

.product-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    margin-top: 8px;
}

.clerk-optional {
    margin: 16px 0 8px;
    border: 1px solid #ddd4c6;
    border-radius: 8px;
    padding: 8px 14px 14px;
    background: #faf7f2;
}

.clerk-optional summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--navy);
    padding: 8px 0;
}

.product-fields label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
}

.product-fields input,
.product-fields select,
.product-fields textarea {
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 400;
}

.product-fields .full-width {
    grid-column: 1 / -1;
}

.market-note {
    text-align: center;
    max-width: 720px;
    margin: -10px auto 24px;
    color: #555;
}

@media (max-width: 700px) {
    .product-fields {
        grid-template-columns: 1fr;
    }
}

.upload-options {
    border-top: 2px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.upload-options h4 {
    margin-bottom: 15px;
    color: var(--navy);
}

.file-upload-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.file-upload-row input[type="file"] {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
}

.btn-secondary {
    background: var(--navy);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

/* INVENTORY */
.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.inventory-stats {
    display: flex;
    gap: 20px;
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 10px;
}

.inventory-stats span {
    font-size: 0.9rem;
}

.inventory-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    background: white;
}

#inventory-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: collapse;
    background: white;
    font-size: 0.9rem;
}

#inventory-table th {
    background: var(--navy);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

#inventory-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

#inventory-table tr:hover {
    background: #f8f9fa;
}

.inventory-photo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.photo-missing {
    width: 100%;
    height: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f1ea;
    color: #8a8171;
    font-size: 0.95rem;
}

.photo-missing-sm {
    width: 60px;
    height: 60px;
    min-height: 60px;
    border-radius: 8px;
    font-size: 0.65rem;
    text-align: center;
    padding: 4px;
}

.inventory-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
}

.icon-btn:hover {
    background: #eee;
}

.icon-btn.delete:hover {
    background: #ffe5e5;
    color: var(--danger);
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-available {
    background: #d4edda;
    color: #155724;
}

.status-sold {
    background: #f8d7da;
    color: #721c24;
}

/* SETTINGS */
.settings-container {
    max-width: 600px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.setting-row label {
    font-weight: 500;
    color: var(--navy);
}

.setting-row input[type="number"],
.setting-row select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    width: 150px;
}

.setting-row input[type="range"] {
    width: 200px;
}

/* FOOTER */
footer {
    background: var(--navy-dark);
    color: white;
    text-align: center;
    padding: 30px;
}

footer a {
    color: var(--gold);
    text-decoration: none;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 10px;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .edit-photo-add {
        grid-template-columns: 1fr;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .metal-ticker {
        font-size: 0.75rem;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .coin-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .photo-capture {
        grid-template-columns: 1fr;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-bar select,
    .filter-bar input {
        min-width: 100%;
    }
    
    #inventory-table {
        display: table;
    }
    
    .mobile-only {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* LOADING ANIMATION */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--navy);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* TOAST NOTIFICATION */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--navy);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 5000;
    animation: slideIn 0.5s ease;
    max-width: 350px;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.trust-section {
    padding: 60px 8%;
    background: #f7f5f0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.trust-grid h3 {
    color: var(--navy);
    margin-bottom: 8px;
}

.sold-section {
    background: #fff;
}

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

.sold-chip {
    border: 1px solid #e6e0d4;
    border-radius: 10px;
    padding: 14px;
    background: #faf8f3;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
}

.login-box {
    padding: 8px 4px 16px;
}

.login-box label,
.login-box input {
    display: block;
    width: 100%;
}

.login-box input {
    margin: 8px 0 16px;
    padding: 10px;
    border: 2px solid var(--navy);
    border-radius: 8px;
}

.zoom-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 32, 0.92);
    z-index: 8000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: zoom-out;
}

.zoom-overlay.active {
    display: flex;
}

.zoom-overlay img {
    max-width: 92vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 8px;
}

.zoom-overlay p {
    color: #fff;
    margin-top: 12px;
}

.staff-guide-page {
    padding-top: 70px;
}

.staff-guide {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 8% 80px;
}

.staff-guide-banner {
    background: #fff3cd;
    border: 1px solid #e6c35c;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 24px;
}

.staff-guide h1 {
    color: var(--navy);
    margin-bottom: 12px;
}

.staff-guide h2 {
    color: var(--navy);
    margin: 32px 0 12px;
    font-size: 1.35rem;
}

.staff-guide h3 {
    margin: 20px 0 8px;
}

.staff-guide table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
    font-size: 0.92rem;
    background: #fff;
}

.staff-guide th,
.staff-guide td {
    border: 1px solid #e6e0d4;
    padding: 8px 10px;
    vertical-align: top;
    text-align: left;
}

.staff-guide th {
    background: var(--navy);
    color: #fff;
}

.staff-never {
    background: #fdecea;
    border-radius: 10px;
    padding: 12px 16px 12px 32px;
}

.staff-guide blockquote {
    border-left: 4px solid var(--gold);
    padding: 12px 16px;
    background: #fff;
    margin: 12px 0 20px;
}

.staff-guide-foot {
    margin-top: 40px;
}

.declare-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin: 16px 0 20px;
}

.declare-move {
    margin-top: 8px;
}

.declare-move .btn-primary,
.declare-move .btn-secondary {
    margin: 0;
}

.declare-count {
    font-weight: 700;
    margin: 0 8px 0 0;
}

.declare-search,
.declare-toolbar label {
    font-size: 0.85rem;
}

.declare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    margin: 12px 0 20px;
}

.declare-table th,
.declare-table td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    vertical-align: top;
    text-align: left;
}

.declare-table th {
    background: #0a1628;
    color: #fff;
}

.declare-table tr.is-off td {
    color: #888;
}

.declare-table tr.is-on td {
    background: #f7f3e4;
}

.declare-missing {
    color: #a33;
    font-weight: 600;
}

.declare-totals {
    background: #f4f1e8;
    padding: 12px 16px;
    margin: 12px 0 24px;
}

.declare-id {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
    font-size: 0.9rem;
}

.declare-id th,
.declare-id td {
    border: 1px solid #ccc;
    padding: 8px 10px;
}

.declare-id th {
    width: 18%;
    background: #eee;
    text-align: left;
}

.print-sheet {
    margin-top: 28px;
    padding: 28px 32px 36px;
    background: #fff;
    border: 1px solid #c8c2b4;
    box-shadow: 0 10px 28px rgba(10, 22, 40, 0.12);
}

.declare-limits {
    margin: 24px 0;
    padding: 16px 18px 20px;
    background: #f7f3e4;
    border-radius: 8px;
}

.declare-limit-summary {
    font-size: 0.95rem;
}

.limit-card {
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
}

.limit-card h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.limit-card p {
    margin: 0;
    font-size: 0.92rem;
}

.limit-stop {
    border-color: #b42318;
    background: #fdecea;
}

.limit-warn {
    border-color: #b54708;
    background: #fff6e5;
}

.limit-ok {
    border-color: #027a48;
    background: #edfaf3;
}

.limit-need {
    margin: 8px 0 12px;
    padding-left: 20px;
}

.limit-need .is-missing {
    color: #b42318;
    font-weight: 600;
}

.limit-need .is-ok {
    color: #027a48;
}

.declare-preview-intro h2 {
    margin-bottom: 8px;
}

.declare-sign {
    margin-top: 28px;
    padding: 16px 18px 20px;
    border: 2px solid #0a1628;
    background: #fffdf5;
}

.declare-sign-line {
    margin-top: 20px;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.purpose-grid {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.purpose-grid label {
    font-weight: 400;
    font-size: 0.9rem;
}

.sheet-kicker {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #666;
}

.declare-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    margin: 16px 0 24px;
}

.declare-col h2 {
    margin-top: 0;
}

.declare-bag-col {
    background: #f7f3e4;
    padding: 12px 14px 16px;
    border-radius: 8px;
}

.declare-details {
    margin: 16px 0 24px;
}

.declare-details summary {
    cursor: pointer;
    font-weight: 700;
}

@media (max-width: 900px) {
    .declare-split {
        grid-template-columns: 1fr;
    }
}

.declare-caveat {
    background: #fff8e6;
    border: 1px solid #d4af37;
    padding: 10px 12px;
}

.declare-notes h3 {
    margin-top: 16px;
}

.purpose-print {
    margin: 0 0 16px;
}

.print-only {
    display: none;
}

@media print {
    .no-print,
    .site-header,
    .staff-guide-banner {
        display: none !important;
    }

    .print-only {
        display: inline;
    }

    body {
        background: #fff;
        color: #000;
    }

    .staff-guide {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .print-sheet {
        display: block !important;
        border: 0;
        margin: 0;
        padding: 0;
        box-shadow: none;
        page-break-after: always;
    }

    .declare-sign {
        border: 1px solid #000;
        background: #fff;
        box-shadow: none;
        padding: 12px 0 0;
    }

    body.print-pack .sheet-customs,
    body.print-customs .sheet-pack {
        display: none !important;
    }

    .declare-table th {
        background: #ddd !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    a {
        color: #000;
        text-decoration: none;
    }
}
