/* ============================================================
   Power of 90 — Map It On Earth
   Assumes site theme provides <body>, fonts, and global buttons.
   ============================================================ */

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

/* ── Shared button system ────────────────────────────────────
   Overrides the site's global .elementor button rules only
   within our wrapper so we don't bleed sitewide.           */
.po90-map-page-wrap .po90-btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    border: none;
    line-height: 1.2;
}

.po90-map-page-wrap .po90-btn-primary {
    background: #1E5AEF !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(30, 90, 239, 0.25) !important;
}

.po90-map-page-wrap .po90-btn-primary:hover {
    background: #1648cc !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(30, 90, 239, 0.35) !important;
}

.po90-map-page-wrap .po90-btn-outline {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    box-shadow: none !important;
}

.po90-map-page-wrap .po90-btn-outline:hover {
    background: #ffffff !important;
    color: #1E3A5F !important;
    transform: translateY(-2px);
}

/* ── Mapbox GL control overrides ─────────────────────────── */
.mapboxgl-ctrl button {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 29px !important;
    height: 29px !important;
    display: block !important;
    cursor: pointer !important;
}

.mapboxgl-ctrl button:hover {
    background-color: rgba(0,0,0,0.05) !important;
    transform: none !important;
}

/* ── Hero ────────────────────────────────────────────────── */
.po90-hero {
    min-height: 100vh;
    padding: 20px 32px 350px;
    background-image: url('https://thepowerof90.com/wp-content/uploads/2026/04/ChatGPT-Image-Apr-24-2026-09_33_05-AM.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.po90-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    align-self: flex-start;
    padding-top: 10px;
}

.po90-hero-title {
    font-size: 80px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 28px;
    line-height: 1.1;
}

.po90-hero-body {
    font-size: 24px;
    line-height: 1.3em;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 36px;
}

.po90-hero-body p {
    margin: 0 0 16px;
}

.po90-hero-body p:last-child {
    margin-bottom: 0;
}

.po90-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Map section ─────────────────────────────────────────── */
.po90-map-section {
    display: flex;
    flex-direction: column;
}

/* Toolbar */
.po90-map-toolbar {
    background: #f4f7fb;
    padding: 14px 32px;
    border-bottom: 1px solid #dde4ef;
}

.po90-map-toolbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.po90-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 240px;
}

.po90-search-wrap input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #c8d5e8;
    background: #fff;
    color: #1a1a2e;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.po90-search-wrap input:focus {
    outline: none;
    border-color: #1E5AEF;
}

.po90-search-wrap button {
    padding: 10px 20px;
    background: #1E3A5F;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}

.po90-search-wrap button:hover { background: #2a4f7a; }

.po90-search-msg {
    font-size: 0.85rem;
    color: #c0392b;
}

/* Map canvas */
.po90-map-container {
    height: 100vh;
    width: 100%;
    background: #1a2a3a;
}

/* ── Cluster markers ─────────────────────────────────────── */
.po90-cluster-marker {
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.po90-cluster-marker:hover { transform: scale(1.1); }

.po90-cluster-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #f5e0b0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    z-index: 1;
}

/* Coin marker */
.po90-coin-marker {
    cursor: pointer;
    transition: transform 0.15s;
    background: transparent !important;
}

.po90-coin-marker img {
    display: block;
    background: transparent !important;
    mix-blend-mode: normal;
}

.po90-coin-marker:hover { transform: scale(1.15); }

/* ── Form overlay ────────────────────────────────────────── */
.po90-form-wrap {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    margin-bottom: 4px;
}

.po90-form-wrap.po90-hidden { display: none; }
.po90-hidden { display: none !important; }

.po90-form-inner {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 640px;
    border: 1px solid #dde4ef;
    box-shadow: 0 16px 60px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.po90-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 0;
}

.po90-form-header h2 {
    margin: 0;
    color: #1E3A5F;
    font-size: 1.4rem;
    font-weight: 800;
}

.po90-form-close {
    background: none;
    border: none;
    color: #999;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.po90-form-close:hover { color: #333; }

.po90-privacy-notice {
    margin: 16px 28px;
    padding: 10px 14px;
    background: #fff8f0;
    border-left: 3px solid #E85E30;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #8a4520;
}

.po90-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 0 28px 18px;
}

.po90-field { display: flex; flex-direction: column; gap: 4px; }
.po90-field-full { grid-column: 1 / -1; }

.po90-field label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #3a4a5c;
}

.po90-field-hint {
    margin: 0 0 4px;
    font-size: 0.78rem;
    color: #7a8aa0;
}

.po90-req { color: #E85E30; }

.po90-field input[type="text"],
.po90-field select {
    padding: 10px 13px;
    border-radius: 8px;
    border: 1px solid #c8d5e8;
    background: #fff;
    color: #1a1a2e;
    font-size: 0.9rem;
    width: 100%;
    transition: border-color 0.2s;
}

.po90-field input:focus,
.po90-field select:focus {
    outline: none;
    border-color: #1E5AEF;
}

.po90-char-count {
    font-size: 0.75rem;
    color: #7a8aa0;
    text-align: right;
}

/* Image upload */
.po90-image-upload-wrap input[type="file"] {
    width: 100%;
    padding: 8px;
    background: #f9fbfd;
    border: 1px dashed #c8d5e8;
    border-radius: 8px;
    color: #5a6a7a;
    cursor: pointer;
}

.po90-image-preview {
    position: relative;
    margin-top: 8px;
    display: inline-block;
}

.po90-image-preview img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 8px;
    border: 2px solid #c8d5e8;
    object-fit: cover;
}

.po90-image-preview button {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #E85E30;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form footer */
.po90-form-footer {
    padding: 18px 28px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid #eef2f8;
}

.po90-submit-btn {
    padding: 13px 32px !important;
}

/* ── Submit spinner ──────────────────────────────────────── */
.po90-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: po90-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

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

.po90-submit-btn:disabled {
    background: #aaa !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none !important;
}

.po90-form-msg { font-size: 0.9rem; }
.po90-form-msg.error   { color: #c0392b; }
.po90-form-msg.success { color: #27ae60; }

/* ── Popup ───────────────────────────────────────────────── */
.po90-popup {
    min-width: 260px;
    max-width: 300px;
    font-family: inherit;
}

.po90-popup-image-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 6px 6px 0 0;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.po90-popup-img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.po90-popup-body { padding: 12px; }

.po90-popup-location {
    font-weight: 700;
    font-size: 1rem;
    color: #1E3A5F;
    margin-bottom: 6px;
}

.po90-popup-known-for,
.po90-popup-story {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 4px;
}

.po90-popup-serial {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 10px;
    font-family: monospace;
}

.po90-popup-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.po90-share-btn,
.po90-report-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.po90-share-btn  { background: #1E3A5F; color: #fff; }
.po90-report-btn { background: #f0f2f5; color: #555; }

.po90-share-btn:hover, .po90-report-btn:hover { opacity: 0.85; }

.po90-share-url {
    margin-top: 8px;
    display: flex;
    gap: 6px;
}

.po90-share-input {
    flex: 1;
    padding: 5px 8px;
    font-size: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.po90-copy-btn {
    padding: 5px 10px;
    background: #1E5AEF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.po90-share-email-btn,
.po90-share-sms-btn {
    padding: 5px 10px;
    background: #1E3A5F;
    color: #fff !important;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none !important;
    white-space: nowrap;
}

.po90-share-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.po90-share-email-btn:hover,
.po90-share-sms-btn:hover { opacity: 0.85; }

/* Click-to-enlarge overlay */
.po90-img-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.po90-img-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.po90-img-overlay-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

/* ── Popup overlay (centered card) ──────────────────────── */
.po90-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.po90-popup-overlay .po90-popup {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 60px rgba(0,0,0,0.4);
}

.po90-popup-overlay-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #fff;
    z-index: 2;
    line-height: 1;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 800px) {
    /* Hero */
    .po90-hero { padding: 56px 20px 48px; min-height: 100svh; margin-bottom: 0; align-items: flex-start;}
    .po90-hero-title { font-size: 48px; }
    .po90-hero-body { font-size: 20px; }
    .po90-hero-actions { flex-direction: column; align-items: center; }
    .po90-hero-actions .po90-btn { width: 100%; max-width: 320px; text-align: center; }
    .po90-hero-inner { padding-top: 10px; }

    /* Toolbar */
    .po90-map-toolbar { padding: 10px 14px; }
    .po90-map-toolbar-inner { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; }
    .po90-search-wrap { min-width: 0; flex: 1; }
    .po90-search-wrap input { font-size: 0.85rem; padding: 9px 10px; }
    .po90-search-wrap button { padding: 9px 14px; font-size: 0.82rem; }
    #po90PlaceCoinBtn { flex-shrink: 0; padding: 9px 14px !important; font-size: 0.82rem !important; }

    /* Map */
    .po90-map-container { height: 100svh; }

    /* Form */
    .po90-form-wrap { align-items: flex-end; padding: 0; }
    .po90-form-inner {
        border-radius: 16px 16px 0 0;
        max-height: 92vh;
        width: 100%;
    }
    .po90-form-grid { grid-template-columns: 1fr; }
    .po90-form-header, .po90-form-footer,
    .po90-privacy-notice, .po90-form-grid { padding-left: 18px; padding-right: 18px; }
    .po90-form-footer { flex-direction: column; align-items: stretch; }
    .po90-submit-btn { width: 100%; text-align: center; }
    .po90-form-header h2 { font-size: 1.2rem; }
    .po90-field input[type="text"], .po90-field select { font-size: 1rem; }

    /* Popup */
    .mapboxgl-popup { max-width: 88vw !important; }
    .po90-popup { min-width: unset; max-width: 100%; }
    .po90-popup-actions { flex-wrap: wrap; }
    .po90-share-url { flex-wrap: wrap; }
    .po90-share-actions { flex-wrap: wrap; }
}

@media (max-width: 400px) {
    .po90-hero-title { font-size: 36px; }
    .po90-hero-body { font-size: 18px; }
    .po90-map-container { height: 100svh; }
}

@media (max-width: 399px) {
    .po90-hero-title { font-size: 30px; }
    .po90-hero-body { font-size: 16px; }
    .po90-search-wrap input { font-size: 0.75rem; }
    #po90PlaceCoinBtn { font-size: 0.75rem !important; padding: 8px 10px !important; }
}

@media (max-height: 750px) {
    .po90-hero {
        align-items: flex-start;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .po90-hero-inner {
        padding-top: 0;
    }
    .po90-hero-title {
        font-size: 36px;
        margin-bottom: 12px;
    }
    .po90-hero-body {
        font-size: 16px;
        margin-bottom: 16px;
    }
    .po90-hero-actions {
        gap: 8px;
    }
}
/* ── Phase 2 additions ───────────────────────────────────── */

/* Search clear button */
.po90-search-clear {
    padding: 10px 14px;
    background: #E85E30;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Highlight / dim markers */
.po90-coin-marker.po90-dimmed { opacity: 0.10; filter: grayscale(80%); }
.po90-coin-marker.po90-highlighted img { filter: drop-shadow(0 0 10px #ff3333) drop-shadow(0 0 20px #ff3333) brightness(1.1); }
.po90-cluster-marker.po90-dimmed { opacity: 0.10; filter: grayscale(80%); }
.po90-cluster-marker.po90-highlighted { box-shadow: 0 0 14px 4px #ff3333 !important; }

/* ── Location autocomplete ───────────────────────────────── */
.po90-autocomplete-wrap {
    position: relative;
}

.po90-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #c8d5e8;
    border-top: none;
    border-radius: 0 0 8px 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 999;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
}

.po90-suggestions li {
    padding: 10px 13px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #1a1a2e;
    border-bottom: 1px solid #f0f2f5;
}

.po90-suggestions li:last-child { border-bottom: none; }
.po90-suggestions li:hover { background: #f4f7fb; }

.po90-location-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    background: #f0f8f0;
    border: 1px solid #a8d5a8;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1a1a2e;
}

.po90-location-selected button {
    background: none;
    border: none;
    color: #1E5AEF;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
    text-decoration: underline;
}

/* ── Preview modal ───────────────────────────────────────── */
.po90-preview-inner {
    max-width: 480px;
}

.po90-preview-notice {
    margin: 16px 28px;
    padding: 12px 14px;
    background: #fff8f0;
    border-left: 3px solid #E85E30;
    border-radius: 4px;
    font-size: 0.88rem;
    color: #8a4520;
    line-height: 1.5;
}

.po90-preview-body {
    padding: 0 28px 18px;
}

.po90-preview-row {
    padding: 8px 0;
    border-bottom: 1px solid #eef2f8;
    font-size: 0.9rem;
    color: #333;
}

.po90-preview-row:last-child { border-bottom: none; }
.po90-preview-row strong { color: #1E3A5F; }

/* ── Deed of Place card ──────────────────────────────────── */
.po90-popup-overlay .po90-popup {
    background: rgb(252,250,247);
    border: 1px solid rgb(167,127,58);
    border-radius: 14px;
    max-width: 520px;
    width: 100%;
    max-height: calc(100dvh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.55);
}

.po90-popup-overlay .po90-popup .po90-deed-header { flex-shrink: 0; }
.po90-popup-overlay .po90-popup .po90-deed-images { flex-shrink: 0; }
.po90-popup-overlay .po90-popup .po90-deed-details { overflow-y: auto; flex: 1; min-height: 0; }
.po90-popup-overlay .po90-popup .po90-deed-actions { flex-shrink: 0; }
.po90-popup-overlay .po90-popup .po90-share-url    { flex-shrink: 0; }

.po90-deed-header {
    background: rgb(252,250,247);
    color: #0a1628;
    padding: 4px 14px 0;
    text-align: center;
    border-bottom: 2px solid rgb(167,127,58);
    position: relative;
}

.po90-deed-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: #0a1628;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.po90-deed-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px 0 14px;
    color: rgb(167,127,58);
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.po90-deed-divider::before,
.po90-deed-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgb(167,127,58);
    opacity: 0.6;
}

.po90-deed-placed-by-row {
    font-size: 0.8rem;
    color: #555;
    letter-spacing: 3px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.po90-deed-label {
    font-weight: 700;
    margin-right: 8px;
    color: #555;
}

.po90-popup-placed-by {
    font-weight: 800;
    font-size: 1.3rem;
    color: #0a1628;
}

.po90-deed-serial {
    font-family: monospace;
    font-size: 1.15rem;
    color: rgb(167,127,58);
    font-weight: 700;
    letter-spacing: 3px;
    margin-top: 6px;
    display: block;
}

.po90-deed-placed-date {
    font-family: monospace;
    font-size: 1.15rem;
    color: rgb(167,127,58);
    font-weight: 700;
    letter-spacing: 3px;
    margin-top: 4px;
    display: block;
}

.po90-deed-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: rgb(252,250,247);
    padding: 16px 16px 0;
}

.po90-deed-img-cell {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #c8c0b0;
    margin: 0 6px 16px;
    background: #fff;
}

.po90-deed-img-cell:first-child { margin-left: 0; }
.po90-deed-img-cell:last-child  { margin-right: 0; }

.po90-story-img,
.po90-popup-img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    display: block;
    padding: 14px;
    background: #fff;
}

.po90-deed-img-label {
    background: #0a1628;
    color: rgb(167,127,58);
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 10px 4px;
    text-transform: uppercase;
}

.po90-deed-details {
    padding: 6px 24px 4px;
    background: rgb(250,248,242);
}

.po90-deed-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #ddd5c0;
    background: rgb(250,248,242);
}

.po90-deed-row:last-child { border-bottom: none; }

.po90-deed-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
    color: rgb(167,127,58);
    filter: drop-shadow(0 0 1px rgba(167,127,58,0.3));
}

.po90-deed-row-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #555;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.po90-deed-location {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0a1628;
    line-height: 1.2;
}

.po90-deed-coords {
    font-size: 0.8rem;
    color: #888;
    font-family: monospace;
    margin-top: 4px;
}

.po90-popup-known-for,
.po90-popup-story {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

.po90-deed-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    border-top: 2px solid rgb(167,127,58);
    padding: 18px 20px 14px;
    background: rgb(252,250,247);
}

.po90-deed-actions .po90-share-btn,
.po90-deed-actions .po90-report-btn {
    padding: 16px 10px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: opacity 0.2s, transform 0.15s;
}

.po90-deed-actions .po90-share-btn  { background: rgb(8,56,152); color: #fff; }
.po90-deed-actions .po90-report-btn { background: rgb(8,56,152); color: #fff; }
.po90-deed-actions .po90-share-btn:hover,
.po90-deed-actions .po90-report-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.po90-deed-footer {
    text-align: center;
    padding: 8px 20px 14px;
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
    background: rgb(252,250,247);
    flex-shrink: 0;
}

.po90-share-url {
    margin: 0;
    padding: 12px 16px;
    background: #f0ece0;
    border-top: 1px solid rgb(167,127,58);
    display: flex;
    gap: 8px;
}

/* Popup overlay close button override for deed */
.po90-popup-overlay .po90-popup-overlay-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #555;
    z-index: 2;
    line-height: 1;
}

.po90-popup-overlay .po90-popup-overlay-close:hover { color: #0a1628; }

/* Mobile deed card */
@media (max-width: 480px) {
    .po90-popup-overlay .po90-popup { max-width: 100%; max-height: 85vh; border-radius: 12px 12px 0 0; }
    .po90-popup-overlay { align-items: flex-end; padding: 0; }
    .po90-popup-overlay { align-items: flex-end; padding: 0; }
    .po90-story-img, .po90-popup-img { height: 110px; }
    .po90-deed-title { font-size: 1.2rem; }
}