/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px 8px;
}

/* === Header === */
.header {
    background: linear-gradient(135deg, #1a472a 0%, #2d6a4f 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-top: 5px solid #d4af37;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 600;
}

.header p {
    font-size: 1.3em;
    opacity: 0.95;
    letter-spacing: 1px;
}

.header-decoration {
    margin-top: 15px;
    font-size: 1.5em;
    opacity: 0.7;
}

/* Embedded as an iframe on ijamiami.org (see the embed check in app.js): the host
   page supplies its own header, so hide ours rather than stacking two. min-height:0
   also stops an auto-height iframe resizer ratcheting against the 100vh floor above. */
body.embedded {
    min-height: 0;
    padding-top: 8px;
}

body.embedded .header {
    display: none;
}

/* === Tabs === */
.tab-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    position: relative;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.tab-button {
    flex: 1;
    min-width: 130px;
    padding: 15px 20px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    color: #555;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background: #f5f5f5;
    color: #2d6a4f;
}

.tab-button.active {
    background: white;
    color: #2d6a4f;
    border-bottom-color: #d4af37;
}

.tab-content {
    display: none;
    padding: 30px;
    min-height: 600px;
    background: white;
    border-radius: 0 0 10px 10px;
    animation: fadeIn 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

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

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

/* === Legend === */
.legend {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #d4af37;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #333;
}

.legend-color {
    width: 25px;
    height: 25px;
    border-radius: 4px;
    border: 1px solid #999;
}

.color-occupied {
    background: #27ae60;
}

.color-sold {
    background: #f39c12;
}

.color-available {
    background: #87CEEB;
}

/* === Stats === */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #2d6a4f 0%, #1a472a 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 2em;
    margin-bottom: 5px;
    color: #d4af37;
}

.stat-card p {
    font-size: 0.9em;
    opacity: 0.9;
}

/* === Zoom Controls === */
.zoom-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.zoom-btn {
    padding: 10px 15px;
    background: #2d6a4f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.zoom-btn:hover {
    background: #1a472a;
}

.zoom-level {
    margin-left: 10px;
    font-weight: 500;
    color: #2d6a4f;
}

/* === Forest Lawn 1 Grid === */
.fl1-grid-wrapper {
    /* Negative side margins cancel the .tab-content 30px padding so the FL1 map
       fills the full width of the card. Stays within .tab-container (which clips
       overflow), so no horizontal page scroll. Reset on mobile below. */
    margin-left: -30px;
    margin-right: -30px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 8px;
    border: 2px solid #ddd;
    position: relative;
}

.fl1-map-frame {
    aspect-ratio: 1 / 1;
    overflow: auto;
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    background: #dfead6;
    border: 3px solid #8aa179;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65);
}

.fl1-map-canvas {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    background:
        linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)),
        repeating-linear-gradient(0deg, rgba(45,106,79,0.08) 0, rgba(45,106,79,0.08) 1px, transparent 1px, transparent 44px),
        repeating-linear-gradient(90deg, rgba(45,106,79,0.06) 0, rgba(45,106,79,0.06) 1px, transparent 1px, transparent 44px),
        #dfead6;
}

.fl1-grid-wrapper .plot {
    aspect-ratio: 1 / 2.5;
    min-width: 0;
    min-height: 0;
}

.cemetery-grid {
    display: grid;
    grid-template-columns: repeat(46, minmax(27px, 1fr));
    gap: 2px;
    position: absolute;
    padding: 0;
    transform: rotate(133.596deg);
    transform-origin: top left;
    margin: 0;
    transition: none;
}

/* === Plots === */
.plot,
.fl3-plot {
    aspect-ratio: 1;
    border: 1px solid #999;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
}

.plot {
    font-size: 6px;
    min-width: 20px;
    min-height: 20px;
    overflow: hidden;
    white-space: nowrap;
}

.fl3-plot {
    font-size: 0.65em;
    text-align: center;
    line-height: 1.2;
    aspect-ratio: 1 / 1.65;
    min-width: 0;
    min-height: 0;
}

.plot:hover:not(.plot-empty),
.fl3-plot:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Keyboard focus ring for tiles/cards made focusable via makeActionable() */
.plot:focus-visible,
.fl3-plot:focus-visible,
.photo-card:focus-visible,
.search-result-item:focus-visible,
.modal-photo-clickable:focus-visible {
    outline: 3px solid #142850;
    outline-offset: 1px;
    z-index: 11;
}

.search-box:focus-visible {
    outline: 2px solid #2d6a4f;
    outline-offset: 1px;
}

.plot-occupied {
    background: #27ae60;
    color: #072d1a;   /* was white: 2.9:1 on this green; dark green = 5.2:1 (WCAG AA) */
    border-color: #1e8449;
}

.plot-sold {
    background: #f39c12;
    color: #4a2c00;   /* was white: 2.2:1 on this orange; dark brown = 5.8:1 (WCAG AA) */
    border-color: #d68910;
}

.plot-available {
    background: #87CEEB;
    color: #14425c;   /* was white: 1.7:1 on sky blue; dark navy = 6.1:1 (WCAG AA) */
    border-color: #5DADE2;
}

.plot-unknown {
    background: #8e44ad;
    border-color: #6c3483;
    color: white;
}

.plot-disputed {
    background: #e67e22;
    border-color: #d35400;
    color: white;
}

.plot-empty {
    background: transparent;
    border: none;
    cursor: default;
}

/* === Unknown Sections === */
.unknown-section {
    margin-top: 30px;
    padding: 20px;
    background: #f9f4fc;
    border-radius: 8px;
    border-left: 4px solid #8e44ad;
}

.unknown-header {
    font-size: 1.1em;
    font-weight: 600;
    color: #8e44ad;
    margin-bottom: 15px;
}

.unknown-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.unknown-grid .plot {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
}

/* === Forest Lawn 3 === */
.fl3-side-panel {
    flex: 0 0 28%;
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 80vh;
    overflow-y: auto;
}

.fl3-side-panel .unknown-section {
    margin-top: 0;
    background: white;
    border-radius: 8px;
}

.fl3-grid-wrapper {
    overflow: auto;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    border: 2px solid #ddd;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.fl3-grid-box {
    flex: 0 0 70%;
    order: 1;
    min-height: 0;
}

.fl3-map-frame {
    overflow: auto;
    position: relative;
    aspect-ratio: 1 / 1;
    min-height: 520px;
    background: #e4ebda;
    border: 3px solid #8aa179;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65);
}

.fl3-map-canvas {
    position: relative;
    min-width: 100%;
    min-height: 520px;
    background:
        linear-gradient(rgba(255,255,255,0.16), rgba(255,255,255,0.16)),
        repeating-linear-gradient(0deg, rgba(45,106,79,0.08) 0, rgba(45,106,79,0.08) 1px, transparent 1px, transparent 42px),
        repeating-linear-gradient(90deg, rgba(45,106,79,0.06) 0, rgba(45,106,79,0.06) 1px, transparent 1px, transparent 42px),
        #e4ebda;
}

.fl3-cemetery-grid {
    display: grid;
    gap: 2px;
    position: absolute;
    padding: 0;
    transform: none;
    transform-origin: top left;
}

/* === Search === */
.search-container {
    margin-bottom: 30px;
}

.search-box {
    width: 100%;
    max-width: 600px;
    padding: 15px 20px;
    font-size: 1em;
    border: 2px solid #d4af37;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box:focus {
    border-color: #2d6a4f;
}

.search-results {
    display: grid;
    gap: 15px;
}

.search-result-thumb,
.search-result-thumb-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    flex-shrink: 0;
}

.search-result-thumb {
    object-fit: cover;
}

.search-result-thumb-placeholder {
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.7em;
}

.search-result-item {
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid #d4af37;
    display: flex;
    gap: 15px;
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-result-item:hover {
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-result-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #2d6a4f;
    margin-bottom: 5px;
}

.search-result-detail {
    font-size: 0.9em;
    color: #666;
}

/* === Photos === */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.photo-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.photo-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.photo-card-name {
    padding: 15px;
    font-size: 0.95em;
    font-weight: 500;
    color: #333;
    text-align: center;
}

.photo-lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

.photo-lightbox.active {
    display: flex;
}

.photo-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    cursor: default;
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: block;
}

.modal-content {
    position: relative;   /* anchor for the absolutely-positioned .modal-close */
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2em;
    font-weight: bold;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
}

.modal-close:hover {
    color: #333;
}

.modal-header {
    background: linear-gradient(135deg, #2d6a4f 0%, #1a472a 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 10px 10px 0 0;
}

.modal-name {
    font-size: 1.8em;
    font-weight: 600;
}

.modal-body {
    padding: 30px 20px;
}

.modal-photo {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
}

.modal-photo-clickable {
    cursor: pointer;
}

.modal-photo-placeholder {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.photo-carousel {
    position: relative;
    margin-bottom: 20px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.85);
}

.carousel-btn-prev {
    left: 8px;
}

.carousel-btn-next {
    right: 8px;
}

.carousel-counter {
    text-align: center;
    font-size: 0.8em;
    color: #888;
    margin-top: 6px;
}

.modal-field {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-field:last-child {
    border-bottom: none;
}

.modal-field-label {
    display: block;
    font-weight: 600;
    color: #2d6a4f;
    margin-bottom: 5px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-field-value {
    color: #333;
    font-size: 1.05em;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-results p {
    font-size: 1.1em;
}

/* === Plot Labels === */
/* Counter-rotate text inside angled plots so labels stay horizontal */
.plot .plot-label {
    transform: rotate(-133.596deg);
    display: block;
}

.fl3-plot .plot-label {
    transform: none;
    display: block;
}

/* === Responsive === */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }
    .header p {
        font-size: 1em;
    }
    .tabs {
        flex-wrap: wrap;
    }
    .tab-button {
        min-width: 120px;
        padding: 12px 15px;
        font-size: 0.9em;
    }
    .legend {
        gap: 15px;
    }
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .modal-content {
        width: 95%;
        margin: 20% auto;
    }
    .tab-content {
        padding: 16px;
    }
    .fl1-grid-wrapper,
    .fl3-grid-wrapper {
        padding: 12px;
    }
    .fl1-grid-wrapper {
        margin-left: 0;
        margin-right: 0;
    }
    .cemetery-grid.grid-untilted,
    .fl3-cemetery-grid.grid-untilted {
        margin: 0;
        padding: 14px;
        transform-origin: top left;
    }
    .cemetery-grid.grid-untilted .plot-label,
    .fl3-cemetery-grid.grid-untilted .plot-label {
        transform: none;
    }
    .cemetery-grid.grid-untilted .plot {
        font-size: 8px;
    }
    .fl3-grid-wrapper {
        display: block;
    }
    .fl3-grid-box {
        max-height: none;
        min-height: 0;
    }
    .fl3-side-panel {
        max-height: none;
        margin-top: 16px;
    }
    #match.tab-content.active {
        grid-template-columns: 1fr;
    }
}

.plot-tile-discrepancy {
    background: #e74c3c;
    color: #fff;
    border-color: #c0392b;
}

.stat-card--blue {
    background: linear-gradient(135deg, #87CEEB 0%, #5b9bd5 100%);
}

/* Opa-Locka tile (replaces inline cssText on each occupied opa tile) */
.opa-tile {
    min-width: 120px;
    min-height: 80px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opa-tile-name {
    font-size: 11px;
    text-align: center;
    word-wrap: break-word;
    line-height: 1.3;
    white-space: normal; /* .plot sets nowrap — undo it here so Opa names wrap */
    min-width: 0;
    max-width: 100%;
}

/* Section heading (replaces inline style on h3 in Opa/Wadi-us-Salam tabs) */
.section-heading {
    margin: 20px 0 15px;
    color: #2d6a4f;
}

/* Grid containers (replaces inline grid styles on opa-grid, wadi-grid divs) */
.opa-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 120px);
    gap: 10px;
    padding: 10px;
}

.wadi-grid-container {
    display: grid;
    grid-template-columns: repeat(10, 60px);
    gap: 6px;
    padding: 10px;
}

/* On phones these fixed-width grids overflow their overflow:hidden tab and get
   clipped with no way to scroll; reflow them to fit the viewport instead. */
@media (max-width: 768px) {
    .opa-grid-container { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
    .wadi-grid-container { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); }
}

.wadi-grid-container .plot span {
    font-size: 10px;
}

.legend-color-unknown-purple {
    background: #8e44ad;
}

.legend-color-upu-brown {
    background: #8B6914;
}

.legend-color-disc-red {
    background: #e74c3c;
}

/* No-results helper (replaces inline gridColumn style on full-width no-results in photo grids) */
.no-results-fullwidth {
    grid-column: 1 / -1;
}

/* === Photo Matcher === */

/* Hide admin-only UI elements unless on localhost; toggled by JS */
.admin-only { display: none; }
/* Scoped to the tab button only: a bare `.admin-only { display: revert }` would also
   revert #match past `.tab-content { display: none }`, rendering it under every tab. */
body.admin-mode .tab-button.admin-only { display: revert; }

#match.tab-content.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.match-info-bar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 16px;
}

.match-counter {
    font-weight: 600;
    color: #2d6a4f;
    font-size: 1.1em;
}

.match-total {
    margin-left: auto;
    color: #666;
    font-size: 0.9em;
}

.match-last-saved {
    grid-column: 1 / -1;
    margin-top: -8px;
    padding: 10px 14px;
    background: #f8fbf9;
    border: 1px solid #d9eadf;
    border-radius: 6px;
    color: #1a472a;
    font-size: 0.9em;
}

.match-photo-viewer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.match-photo-viewer img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.match-photo-name {
    font-family: monospace;
    font-size: 0.9em;
    color: #555;
    text-align: center;
    word-break: break-all;
}

.match-photo-controls {
    display: flex;
    gap: 8px;
}

.match-photo-controls button {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    background: #2d6a4f;
    color: white;
}

.match-photo-controls button:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.match-burial-picker {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-burial-results {
    border: 1px solid #ddd;
    border-radius: 6px;
    max-height: 400px;
    overflow-y: auto;
}

.match-burial-row {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.match-burial-row:hover { background: #f5f5f5; }
.match-burial-row.selected { background: #d4ebdf; border-left: 3px solid #2d6a4f; }
.match-burial-row .name { font-weight: 600; color: #333; }
.match-burial-row .meta { font-size: 0.85em; color: #777; margin-top: 2px; }

.match-selected-line {
    padding: 12px;
    background: #e8f4ed;
    border-radius: 6px;
    border-left: 4px solid #2d6a4f;
    color: #1a472a;
    font-weight: 500;
}

.match-save-btn {
    padding: 14px;
    background: #d4af37;
    color: white;
    font-size: 1.05em;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.match-save-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.match-recent-panel {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.match-recent-header {
    padding: 10px 12px;
    background: #f5f5f5;
    color: #2d6a4f;
    font-weight: 600;
}

.match-recent-list {
    max-height: 240px;
    overflow-y: auto;
}

.match-recent-empty {
    padding: 12px;
    color: #777;
    font-size: 0.9em;
}

.match-recent-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-top: 1px solid #eee;
}

.match-recent-photo {
    color: #333;
    font-family: monospace;
    font-size: 0.85em;
    word-break: break-word;
}

.match-recent-target {
    margin-top: 3px;
    color: #777;
    font-size: 0.85em;
}

.match-undo-btn {
    padding: 7px 10px;
    border: 1px solid #c0392b;
    border-radius: 5px;
    background: white;
    color: #c0392b;
    cursor: pointer;
    font-weight: 600;
}

.match-undo-btn:hover {
    background: #fff3f1;
}

.match-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2d6a4f;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 3000;
    transition: opacity 0.3s;
}

.match-toast.error { background: #c0392b; }
