@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');
:root{--bg:#090d18;--panel:#101727;--panel2:#141e30;--line:rgba(211,190,145,.17);--gold:#d7b879;--muted:#9aa5b8;--white:#f4f0e8;--serif:'Playfair Display',Georgia,serif;--sans:'DM Sans',Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--white);font-family:var(--sans);font-size:14px;line-height:1.65;overflow-x:hidden}.ambient{position:absolute;top:-400px;right:-250px;width:900px;height:900px;background:radial-gradient(circle,rgba(94,80,137,.19),transparent 68%);pointer-events:none;z-index:-1}.topbar{height:86px;max-width:1240px;margin:auto;padding:0 30px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.06)}.brand{display:flex;gap:11px;align-items:center;color:var(--white);text-decoration:none;font-weight:700;letter-spacing:2px;font-size:13px;line-height:1.3}.brand-mark{color:var(--gold);font-size:27px}.brand small{display:block;font-size:8px;letter-spacing:2.4px;color:#8791a4;font-weight:500}.gold{color:var(--gold)}nav{display:flex;gap:35px}nav a,.text-link{color:#bac3d1;text-decoration:none;font-size:12px}nav a:hover,.text-link:hover{color:var(--gold)}.top-cta{font-size:11px;color:var(--gold);border:1px solid rgba(215,184,121,.42);padding:10px 15px;text-decoration:none;letter-spacing:.3px}.top-cta span{margin-left:12px}.hero{max-width:1180px;margin:0 auto;min-height:580px;padding:90px 30px 75px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:50px}.eyebrow{font-size:9px;letter-spacing:2.5px;color:var(--gold);font-weight:700}.eyebrow span{display:inline-block;width:20px;height:1px;background:var(--gold);vertical-align:middle;margin-right:8px}.hero h1,.section-intro h2,.map-heading h2,.how-section h2{font:500 clamp(48px,6vw,76px)/1.1 var(--serif);letter-spacing:-2px;margin:25px 0}.hero h1 em,.section-intro h2 em,.map-heading h2 em,.how-section h2 em{color:var(--gold);font-weight:500}.hero-text{max-width:480px;color:#aab4c5;font-size:14px;line-height:1.9}.hero-actions{display:flex;align-items:center;gap:28px;margin-top:34px}.button{display:inline-flex;align-items:center;justify-content:space-between;gap:25px;padding:15px 20px;background:transparent;border:1px solid var(--gold);color:var(--gold);font:600 11px var(--sans);letter-spacing:.5px;text-decoration:none;cursor:pointer;transition:.2s}.button.primary{background:linear-gradient(110deg,#d7b879,#b89453);color:#111522;border:0}.button:hover{transform:translateY(-2px);filter:brightness(1.08)}.hero-note{margin-top:55px;color:#778397;font-size:10px;letter-spacing:.5px}.tiny-orbit{color:var(--gold);font-size:18px;margin-right:10px}.hero-art{height:390px;position:relative;display:grid;place-items:center}.orbit{position:absolute;border:1px solid rgba(215,184,121,.17);border-radius:50%;transform:rotate(-24deg)}.orbit-one{width:300px;height:300px}.orbit-two{width:440px;height:190px;transform:rotate(37deg)}.orbit-three{width:480px;height:330px;transform:rotate(-57deg)}.planet-main{width:170px;height:170px;border-radius:50%;background:radial-gradient(circle at 34% 28%,#d9c7a2 0,#877d87 17%,#343d57 43%,#141b2c 70%);box-shadow:0 0 80px rgba(170,147,194,.22),inset -18px -12px 35px #070b15;position:relative}.planet-main:after{content:'';position:absolute;inset:-18px;border:1px solid rgba(215,184,121,.28);border-radius:50%}.planet-small{position:absolute;width:24px;height:24px;right:20%;top:20%;border-radius:50%;background:radial-gradient(circle at 30% 30%,#ead8b0,#947c60 60%,#302b35);box-shadow:0 0 30px #c9a86a66}.starfield{position:absolute;inset:30px;color:#d9c18d;font-size:16px;letter-spacing:28px;opacity:.7}.starfield span{color:#8998c4}.art-label{position:absolute;color:#9ba5b6;font-size:8px;letter-spacing:2px;line-height:1.8}.label-top{top:30px;right:10px}.label-bottom{bottom:15px;left:5px}.content-grid{max-width:1120px;margin:0 auto;padding:85px 30px;display:grid;grid-template-columns:.85fr 1.15fr;gap:100px;border-top:1px solid rgba(255,255,255,.06)}.section-intro h2,.map-heading h2,.how-section h2{font-size:48px;margin:20px 0}.section-intro p{color:var(--muted);font-size:13px;line-height:1.9;max-width:360px}.mini-facts{display:grid;gap:16px;margin-top:45px}.mini-facts div{display:flex;align-items:center;gap:15px;color:#a9b2c2;font-size:11px}.mini-facts b{font:italic 16px var(--serif);color:var(--gold)}.form-card{background:linear-gradient(145deg,#141e30,#0e1523);border:1px solid var(--line);padding:32px 34px;box-shadow:0 25px 80px #0003}.card-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:25px}.step-tag{font-size:8px;letter-spacing:2px;color:var(--gold)}.card-head h3{font:500 25px var(--serif);margin:5px 0}.card-symbol{font-size:31px;color:var(--gold)}form label{display:block;color:#d5dbe4;font-size:10px;letter-spacing:.5px;margin:15px 0}form label>span{float:right;color:#778397;font-size:8px;letter-spacing:1px}input,select{width:100%;margin-top:8px;padding:13px 14px;background:#0b1220;border:1px solid #273349;color:#e8eaf0;font:12px var(--sans);outline:none;border-radius:0}input:focus,select:focus{border-color:var(--gold)}input::placeholder{color:#647086}input:disabled{opacity:.4}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}form small{display:block;color:#78859a;font-size:9px;margin-top:7px;line-height:1.6}.full{width:100%;margin-top:16px}.privacy-note{text-align:center;color:#748096;font-size:9px;margin:13px 0 0}.error{padding:10px 12px;background:#512c35;color:#ffd8dd;font-size:11px;margin-bottom:15px}.map-section{padding:85px max(30px,calc((100% - 1120px)/2));background:#0c1220;border-top:1px solid rgba(255,255,255,.05);border-bottom:1px solid rgba(255,255,255,.05)}.map-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:35px}.map-heading h2{margin-bottom:0}.chart-meta{text-align:right;display:grid;gap:3px}.chart-meta span,.chart-meta small{font-size:9px;letter-spacing:1.5px;color:#8994a8}.chart-meta b{font:18px var(--serif);color:var(--gold)}.map-hint{color:#8e9aae;font-size:11px}.map-shell{position:relative;border:1px solid #29344a;background:#0a1120}.map-toolbar{height:48px;padding:0 17px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #263148;background:#111a2a}.map-status{font-size:9px;letter-spacing:1.5px;color:#c8d0dc}.map-status i{display:inline-block;width:6px;height:6px;background:#8ed3b5;border-radius:50%;margin-right:9px;box-shadow:0 0 8px #8ed3b5}.map-legend{display:flex;gap:18px;color:#9da8ba;font-size:9px}.map-legend i{display:inline-block;width:17px;border-top:2px solid var(--gold);vertical-align:middle;margin-right:5px}.map-legend i.asc{border-top-style:dashed;border-color:#8c9dff}#world-map{height:510px;background:#101b2b}.leaflet-container{background:#101b2b;font-family:var(--sans)}.leaflet-control-attribution{background:#0b1220!important;color:#718096!important}.leaflet-control-attribution a{color:#bca16d!important}.map-overlay{position:absolute;inset:48px 0 0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:rgba(8,13,24,.22);pointer-events:none;z-index:500;text-align:center}.map-overlay span{font-size:35px;color:var(--gold)}.map-overlay b{font:22px var(--serif);margin:8px}.map-overlay small{color:#9ca8bb;font-size:10px}.line-controls{display:flex;align-items:center;gap:18px;padding:18px 0;border-bottom:1px solid #273247}.control-label{font-size:8px;letter-spacing:1.5px;color:#8793a7}.filters{display:flex;flex-wrap:wrap;gap:7px;flex:1}.filter-chip{background:#141e30;border:1px solid #2b3850;color:#c5cedc;padding:6px 10px;font-size:9px;cursor:pointer}.filter-chip.active{border-color:var(--gold);color:var(--gold)}.reset-btn{background:none;border:0;color:var(--gold);font:10px var(--sans);cursor:pointer}.planet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.planet-card{border:1px solid #273349;padding:15px;background:#111a2a}.planet-card h4{margin:0 0 5px;font:16px var(--serif)}.planet-card p{margin:0;color:#8995a9;font-size:9px;line-height:1.7}.planet-card .planet-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:7px}.how-section{max-width:1120px;margin:auto;padding:90px 30px}.how-section h2{margin-bottom:38px}.angle-grid{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.angle-grid article{padding:25px 22px;border-right:1px solid var(--line)}.angle-grid article:first-child{padding-left:0}.angle-grid article:last-child{border:0}.angle{font:italic 34px var(--serif);color:var(--gold)}.angle-grid h3{font:18px var(--serif);margin:12px 0 6px}.angle-grid p{color:#929eb0;font-size:11px;line-height:1.8;margin:0}.disclaimer{max-width:1060px;margin:0 auto 90px;padding:24px 28px;display:flex;gap:20px;background:#121a29;border:1px solid #273349}.disclaimer-icon{font-size:26px;color:var(--gold)}.disclaimer h3{font:18px var(--serif);margin:0 0 5px}.disclaimer p{font-size:10px;line-height:1.8;color:#929eb0;margin:0}footer{max-width:1180px;margin:auto;padding:28px 30px 38px;border-top:1px solid rgba(255,255,255,.07);display:flex;justify-content:space-between;align-items:center}footer>span{font-size:9px;color:#758196}@media(max-width:800px){.topbar{height:70px;padding:0 18px}nav{display:none}.top-cta{font-size:9px;padding:8px}.hero{padding:65px 22px 55px;grid-template-columns:1fr;gap:10px}.hero-art{height:280px;order:-1}.planet-main{width:130px;height:130px}.orbit-one{width:230px;height:230px}.orbit-two{width:330px;height:140px}.orbit-three{width:360px;height:250px}.hero h1{font-size:57px;margin:18px 0}.hero-note{margin-top:35px}.content-grid{padding:65px 22px;grid-template-columns:1fr;gap:35px}.mini-facts{grid-template-columns:repeat(3,1fr);gap:8px;margin-top:25px}.mini-facts div{gap:7px;font-size:9px}.form-card{padding:25px 20px}.map-section{padding:65px 16px}.map-heading{align-items:flex-start;gap:15px;flex-direction:column}.chart-meta{text-align:left}.section-intro h2,.map-heading h2,.how-section h2{font-size:42px}#world-map{height:420px}.line-controls{align-items:flex-start;flex-direction:column;gap:10px}.planet-grid{grid-template-columns:repeat(2,1fr)}.how-section{padding:65px 22px}.angle-grid{grid-template-columns:repeat(2,1fr)}.angle-grid article{padding:20px 15px;border-bottom:1px solid var(--line)}.angle-grid article:nth-child(2){border-right:0}.angle-grid article:first-child{padding-left:15px}.disclaimer{margin:0 16px 60px;padding:20px}.disclaimer p{font-size:9px}footer{padding:25px 18px;gap:15px;align-items:flex-start;flex-direction:column}}@media(max-width:420px){.hero-actions{gap:15px;flex-wrap:wrap}.hero-art{height:245px}.two-fields{gap:8px}.planet-grid{grid-template-columns:1fr}.map-legend{gap:8px;font-size:8px}}

/* Swiss Ephemeris local-engine status */
.engine-status{display:flex;gap:12px;align-items:flex-start;padding:13px 15px;border:1px solid rgba(193,161,105,.24);border-radius:12px;margin:0 0 18px;background:rgba(255,255,255,.025)}
.engine-status .status-dot{width:8px;height:8px;border-radius:50%;margin-top:5px;flex:0 0 8px;background:#d7a64b;box-shadow:0 0 12px currentColor}
.engine-status b,.engine-status small{display:block}
.engine-status b{font-size:12px;letter-spacing:.04em;color:#e8d2a8}
.engine-status small{font-size:11px;line-height:1.5;color:#9d9aa6;margin-top:4px}
.engine-ready .status-dot{background:#72c69b}
.engine-ready b{color:#a9dfbf}
.engine-missing{border-color:rgba(215,166,75,.35)}
.engine-label{color:#c9a66c!important;letter-spacing:.12em;font-size:9px!important;margin-top:7px}

/* AstroDestiny geographical map */

#world-map {
    background: #101a2a !important;
    min-height: 550px;
}

.leaflet-container {
    background: #101a2a !important;
}

.leaflet-tile {
    background: #101a2a;
}

.leaflet-control-zoom a {
    color: #152033 !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: #142033;
    color: #f5f0e5;
}


/* ==========================================
   ASTRODESTINY GLOBAL CITY DISCOVERY
========================================== */

.city-discovery {
    padding: 100px 0;
}

.city-discovery h2 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.08;
    margin: 24px 0;
    color: #f4efe7;
}

.city-discovery h2 em {
    color: #d8b56d;
}

.city-intro {
    color: #9da9bb;
    max-width: 650px;
    line-height: 1.8;
    margin-bottom: 45px;
}

.city-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.city-category {
    background: #111c2d;
    border: 1px solid #28364b;
    border-radius: 12px;
    overflow: hidden;
}

.city-category-head {
    padding: 26px;
    border-bottom: 1px solid #28364b;
}

.city-category-number {
    color: #d8b56d;
    font-size: 10px;
    letter-spacing: 2px;
}

.city-category h3 {
    color: #f4efe7;
    font-size: 21px;
    margin: 12px 0;
}

.city-category-head p {
    color: #98a6ba;
    font-size: 13px;
    line-height: 1.7;
}

.city-ranking-item {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr) 65px;
    align-items: center;
    gap: 12px;
    padding: 17px 22px;
    border-bottom: 1px solid #243147;
    transition: background .2s ease;
}

.city-ranking-item:hover {
    background: #1a2940;
}

.city-rank {
    color: #d8b56d;
    font-size: 13px;
    font-weight: 600;
}

.city-info strong {
    display: block;
    color: #f4efe7;
    font-size: 15px;
}

.city-info small {
    display: block;
    color: #8492a8;
    font-size: 11px;
    margin-top: 4px;
}

.city-planet {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #d8c49a;
    font-size: 12px;
    margin-top: 9px;
}

.planet-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.city-score {
    text-align: right;
}

.city-score strong {
    display: block;
    color: #d8b56d;
    font-size: 21px;
    font-weight: 600;
}

.city-score small {
    color: #8290a5;
    font-size: 9px;
    letter-spacing: 1px;
}

.ranking-disclaimer {
    border: 1px solid #29374a;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    color: #929fb2;
    font-size: 12px;
    line-height: 1.8;
}

@media (max-width: 760px) {
    .city-discovery {
        padding: 65px 0;
    }

    .city-category-grid {
        grid-template-columns: 1fr;
    }

    .city-category-head {
        padding: 21px;
    }

    .city-ranking-item {
        padding: 15px;
    }
}

/* ==========================================
   INTERACTIVE ASTRODESTINY CITY EXPLORER
========================================== */

.city-ranking-item[data-city] {
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease;
}

.city-ranking-item[data-city]:hover {
    background: rgba(216, 181, 109, .09);
}

.city-ranking-item.city-selected {
    background: rgba(216, 181, 109, .13);
    outline: 1px solid rgba(216, 181, 109, .5);
    outline-offset: -1px;
}

.city-ranking-item:focus-visible {
    outline: 2px solid #d8b56d;
    outline-offset: -2px;
}

/* City popup */

.astro-city-popup {
    min-width: 210px;
    color: #26344a;
    line-height: 1.6;
}

.astro-popup-title {
    font-family: Georgia, serif;
    font-size: 19px;
    color: #17243a;
    margin: 0 0 5px;
}

.astro-popup-coordinates {
    font-size: 11px;
    color: #718096;
}

.astro-popup-category {
    border-top: 1px solid #e5e7eb;
    padding-top: 10px;
    margin-top: 10px;
}

.astro-popup-category strong {
    color: #9a7433;
    font-size: 13px;
}

.astro-popup-category p {
    font-size: 12px;
    margin: 4px 0;
}

.astro-city-popup > small {
    display: block;
    color: #788397;
    margin-top: 12px;
    font-size: 10px;
}

/* City marker interaction */

.leaflet-interactive {
    transition: fill-opacity .2s ease;
}

.leaflet-interactive:hover {
    fill-opacity: 1;
}


/* =========================================
   ASTRODESTINY 3D CELESTIAL GLOBE
========================================= */
.map-shell {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(35, 58, 99, .42), transparent 48%),
    radial-gradient(circle at 18% 22%, rgba(160, 177, 220, .22) 0 1px, transparent 1.6px),
    radial-gradient(circle at 78% 34%, rgba(160, 177, 220, .2) 0 1px, transparent 1.6px),
    radial-gradient(circle at 63% 82%, rgba(160, 177, 220, .2) 0 1px, transparent 1.6px),
    #050914;
  background-size: auto, 115px 115px, 157px 157px, 193px 193px, auto;
}
#world-map {
  position: relative;
  width: 100%;
  height: 590px;
  min-height: 420px;
  background: radial-gradient(ellipse at center, #14233d 0%, #070c18 68%, #040710 100%);
}
#world-map canvas { display: block; width: 100%; height: 100%; outline: none; }
.globe-error {
  display: grid;
  min-height: 420px;
  place-items: center;
  padding: 30px;
  color: #f1d28d;
  text-align: center;
}
.globe-city-detail {
  position: absolute;
  z-index: 20;
  top: 66px;
  right: 18px;
  width: min(360px, calc(100% - 36px));
  max-height: min(68%, 470px);
  overflow: auto;
  padding: 20px 22px;
  border: 1px solid rgba(220, 183, 112, .48);
  border-radius: 13px;
  background: rgba(12, 21, 39, .96);
  box-shadow: 0 18px 55px rgba(0,0,0,.55), 0 0 35px rgba(86,119,178,.12);
  color: #edf3ff;
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .2s ease;
}
.globe-city-detail.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.globe-city-detail h3 { margin: 0 0 7px; color: #f2d18f; font: 600 20px/1.35 var(--serif); }
.globe-city-detail .coords { margin: 0 0 14px; color: #aabbd5; font-size: 11px; }
.globe-city-detail section { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.13); }
.globe-city-detail section strong { display: block; margin-bottom: 5px; color: #e8bd72; font-size: 13px; }
.globe-city-detail section p { margin: 4px 0; color: #dce6f5; font-size: 12px; line-height: 1.65; }
.globe-city-detail small { display: block; padding-top: 10px; color: #aab8ce; font-size: 10px; line-height: 1.6; }
.city-ranking-item { cursor: pointer; }
.city-ranking-item:focus-visible { outline: 2px solid #e8bd72; outline-offset: 3px; }
.city-ranking-item.city-selected { border-color: #e8bd72 !important; background: rgba(215,184,121,.1) !important; }
@media (max-width: 700px) {
  #world-map { height: 470px; }
  .globe-city-detail { top: 58px; right: 10px; width: min(310px, calc(100% - 20px)); max-height: 62%; padding: 15px 16px; }
}

#world-map {
    width: 100%;
    height: 650px;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    background: #030712;
}

#world-map canvas {
    display: block;
}

.globe-error {
    color: #ffffff;
    padding: 30px;
    text-align: center;
}


/* =========================================================
   ASTRODESTINY FINAL LAYOUT OVERRIDES
   Consolidated map sizing and 3D globe presentation
========================================================= */

#world-map {
    position: relative;
    display: block;
    width: 100%;
    height: 590px;
    min-height: 420px;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #14233d 0%, #070c18 68%, #040710 100%);
}

#world-map canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#world-map .globe-error {
    display: grid;
    min-height: 420px;
    place-items: center;
    padding: 30px;
    color: #f1d28d;
    text-align: center;
}

.map-shell {
    position: relative;
    overflow: hidden;
    background-color: #050914;
}

.globe-city-detail {
    position: absolute;
    z-index: 20;
    top: 66px;
    right: 18px;
    width: min(360px, calc(100% - 36px));
    max-height: min(68%, 470px);
    overflow: auto;
    padding: 20px 22px;
    border: 1px solid rgba(220, 183, 112, .48);
    border-radius: 13px;
    background: rgba(12, 21, 39, .97);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .55);
    color: #edf3ff;
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.globe-city-detail.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.globe-city-detail h3 {
    margin: 0 0 7px;
    color: #f2d18f;
    font: 600 20px/1.35 var(--serif);
}

.globe-city-detail .coords {
    margin: 0 0 14px;
    color: #aabbd5;
    font-size: 11px;
}

.globe-city-detail section {
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .13);
}

.globe-city-detail section strong {
    display: block;
    margin-bottom: 5px;
    color: #e8bd72;
    font-size: 13px;
}

.globe-city-detail section p {
    margin: 4px 0;
    color: #dce6f5;
    font-size: 12px;
    line-height: 1.65;
}

.globe-city-detail small {
    display: block;
    padding-top: 10px;
    color: #aab8ce;
    font-size: 10px;
    line-height: 1.6;
}

.city-ranking-item[data-city] {
    cursor: pointer;
}

.city-ranking-item.city-selected {
    border-color: #e8bd72 !important;
    background: rgba(215, 184, 121, .1) !important;
}

@media (max-width: 700px) {
    #world-map {
        height: 470px;
        min-height: 420px;
    }

    .globe-city-detail {
        top: 58px;
        right: 10px;
        width: min(310px, calc(100% - 20px));
        max-height: 62%;
        padding: 15px 16px;
    }
}


/* AstroDestiny — City Information Popup */

.map-shell {
    position: relative;
}

.globe-city-detail {
    display: none;
    position: absolute;
    z-index: 9999;
    right: 20px;
    bottom: 20px;
    width: min(370px, calc(100% - 40px));
    max-height: 75%;
    overflow-y: auto;
    padding: 22px;
    color: #f4ead8;
    background: rgba(13, 19, 32, 0.97);
    border: 1px solid rgba(216, 184, 121, 0.55);
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
}

.globe-city-detail.is-visible {
    display: block !important;
}

.globe-city-popup h3 {
    color: #e8c887;
    font-size: 21px;
    margin: 0 0 8px;
}

.globe-city-popup p {
    color: #d4d9e4;
    font-size: 13px;
    line-height: 1.6;
    margin: 8px 0;
}

.globe-city-popup section {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 12px;
    margin-top: 12px;
}

.globe-city-popup strong {
    color: #e8c887;
    font-size: 14px;
}

.globe-city-popup small {
    display: block;
    color: #9da8ba;
    margin-top: 15px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .globe-city-detail {
        right: 10px;
        bottom: 10px;
        width: calc(100% - 20px);
        max-height: 65%;
    }
}


/* AstroDestiny Premium feature suite */
.premium-suite{padding:90px 0;border-top:1px solid rgba(216,184,121,.16)}
.premium-suite h2{font-family:Georgia,serif;font-size:clamp(34px,5vw,54px);font-weight:400;margin:12px 0}
.premium-suite h2 em{color:#e5c58b}
.premium-intro{color:var(--muted,#a8b2c2);max-width:760px;line-height:1.7;margin-bottom:28px}
.premium-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.premium-card{background:linear-gradient(145deg,rgba(18,29,48,.94),rgba(8,15,28,.96));border:1px solid rgba(216,184,121,.2);border-radius:18px;padding:24px;min-width:0}
.premium-wide{grid-column:1/-1}
.premium-card-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}
.premium-card-head h3{font-size:21px;margin:6px 0 0;color:#f1eee8}
.premium-card-head>span{font-size:25px;color:#e5c58b}
.premium-kicker{font-size:10px;letter-spacing:2px;color:#d8b879;font-weight:700}
.premium-actions{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0}
.premium-button{border:1px solid rgba(216,184,121,.32);background:rgba(255,255,255,.035);color:#e8e5df;border-radius:9px;padding:10px 15px;font:inherit;font-size:13px;cursor:pointer}
.premium-button:hover,.premium-button.active{background:rgba(216,184,121,.16);border-color:#d8b879;color:#f5d99f}
.premium-button.primary{background:#c6a66d;color:#151a24;border-color:#c6a66d;font-weight:700}
.premium-search-label,.premium-inline label,.compare-controls label{display:block;color:#b9c3d2;font-size:12px;margin:16px 0 7px}
.premium-input{width:100%;box-sizing:border-box;border:1px solid rgba(216,184,121,.25);border-radius:9px;padding:12px 13px;background:#0a1423;color:#f3f0e9;font:inherit;min-width:0}
.city-search-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}
.city-search-result{border:1px solid rgba(216,184,121,.15);background:rgba(255,255,255,.025);color:#e8e5df;border-radius:8px;padding:10px;text-align:left;cursor:pointer}
.city-search-result small{display:block;color:#9eabbc;margin-top:3px}
.angle-filter-title{margin-top:22px}
.premium-help{color:#9eabbc;font-size:12px;line-height:1.6}
.profile-summary{display:grid;grid-template-columns:1fr 1fr;gap:13px;padding:13px;background:rgba(255,255,255,.025);border-radius:10px}
.profile-summary small{display:block;color:#9aa8b9;font-size:9px;letter-spacing:1px;margin-bottom:5px}
.profile-summary strong{font-size:12px;color:#eee;overflow-wrap:anywhere}
.position-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:14px}
.position-item{display:flex;justify-content:space-between;gap:8px;padding:9px 10px;background:rgba(255,255,255,.03);border-radius:7px;font-size:12px}
.position-item span{color:#aeb9c8}.position-item b{color:#e8c98f;font-variant-numeric:tabular-nums}
.premium-output{margin-top:14px;color:#c5ceda;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.premium-output table{width:100%;border-collapse:collapse;margin-top:10px}
.premium-output td,.premium-output th{padding:7px 5px;border-bottom:1px solid rgba(255,255,255,.08);text-align:left}
.premium-output th{color:#d9bd8c;font-size:10px}
.premium-inline{display:flex;align-items:center;gap:12px;margin:12px 0}
.premium-inline label{margin:0;white-space:nowrap}
.year-input{max-width:130px}
.compare-controls{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}
.compare-controls label{margin:0}
.compare-output{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.compare-result{padding:16px;border-radius:10px;background:rgba(255,255,255,.035);border:1px solid rgba(216,184,121,.14)}
.compare-result h4{margin:0 0 10px;color:#f1d59f}
.compare-result p{font-size:12px;color:#bac4d2;line-height:1.6;margin:6px 0}
.premium-disclaimer{margin-top:20px;color:#8794a6;font-size:11px;line-height:1.7}
@media(max-width:760px){.premium-grid{grid-template-columns:1fr}.premium-wide{grid-column:auto}.compare-controls{grid-template-columns:1fr}.compare-output{grid-template-columns:1fr}.city-search-results{grid-template-columns:1fr}.premium-card{padding:18px}.premium-suite{padding:60px 0}}

/* AstroDestiny Location Intelligence module */
.location-intelligence{width:min(1180px,calc(100% - 36px));margin:48px auto;padding:clamp(20px,3vw,34px);border:1px solid rgba(216,184,121,.24);border-radius:20px;background:linear-gradient(145deg,rgba(18,31,50,.96),rgba(8,17,30,.98));color:#edf2fa;box-shadow:0 18px 55px rgba(0,0,0,.2)}
.location-intel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}
.location-intel-kicker{font-size:10px;letter-spacing:.18em;font-weight:800;color:#d8b879}
.location-intel-heading h2{font:400 clamp(28px,4vw,40px) Georgia,serif;margin:7px 0;color:#f4e7cc}
.location-intel-heading p,.location-intel-disclaimer,.location-intel-example{color:#aab7ca;font-size:13px;line-height:1.65}
.location-intel-pill{border:1px solid rgba(216,184,121,.35);border-radius:99px;padding:7px 10px;color:#d8b879;font-size:9px;letter-spacing:.1em;white-space:nowrap}
.location-intel-form{display:grid;gap:15px;max-width:720px}
.location-intel-form label{display:grid;gap:7px;color:#dce5f1;font-size:13px}
.location-intel-form input,.location-intel-form select{width:100%;min-width:0;padding:12px 13px;border:1px solid #35465e;border-radius:9px;background:#091627;color:#f4f7fb;font:inherit}
.location-coordinate-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.location-intel-form button{justify-self:start;padding:12px 19px;border:0;border-radius:9px;background:linear-gradient(110deg,#c8a566,#f0d69c);color:#172033;font-weight:800;cursor:pointer}
.location-intel-form button:disabled{opacity:.6;cursor:wait}
.location-analysis-result{margin-top:24px}
.location-result-top{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px;border:1px solid rgba(216,184,121,.2);border-radius:14px;background:#091627}
.location-result-top span{display:block;color:#d8b879;font-size:10px;letter-spacing:.12em}
.location-result-top strong{display:block;font:400 44px Georgia,serif;color:#f2d69d;margin-top:5px}
.location-result-top strong small{font:400 14px system-ui;color:#9baac0}
.location-result-top p{color:#aab7ca;font-size:12px;line-height:1.7;text-align:right}
.location-analysis-result h3{font:400 21px Georgia,serif;color:#f2d69d;margin:24px 0 14px}
.location-score-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.location-score-row{display:grid;grid-template-columns:1fr auto;gap:8px;color:#dce5f1;font-size:12px}
.location-score-row strong{color:#f2d69d}.location-score-track{grid-column:1/-1;height:6px;border-radius:99px;background:#26354a;overflow:hidden}.location-score-track i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#9b7b45,#f0d69c)}
.location-table-wrap{overflow-x:auto;border:1px solid rgba(216,184,121,.18);border-radius:12px}
.location-table-wrap table{width:100%;border-collapse:collapse;min-width:520px;font-size:12px}
.location-table-wrap th,.location-table-wrap td{padding:11px 13px;text-align:left;border-bottom:1px solid rgba(216,184,121,.12)}
.location-table-wrap th{color:#d8b879;background:#0b1829}.location-table-wrap td{color:#dce5f1}
.location-result-note,.location-intel-empty,.location-intel-loading{color:#aab7ca;font-size:12px;line-height:1.7}
.location-intel-error{padding:13px;border:1px solid #ef444466;border-radius:10px;color:#fecaca;background:#7f1d1d22}
@media(max-width:650px){.location-intel-heading{flex-direction:column}.location-coordinate-grid,.location-score-list{grid-template-columns:1fr}.location-result-top{align-items:flex-start;flex-direction:column}.location-result-top p{text-align:left}.location-intelligence{width:calc(100% - 24px);padding:18px;margin:28px auto}}

/* Location name in the analysis result */
.location-result-place{font:600 20px/1.35 inherit;color:#f2d69d;margin:8px 0 14px;overflow-wrap:anywhere}

/* =========================================================
   ASTRODESTINY MOBILE-FIRST RESPONSIVE REFINEMENT
   Keeps desktop styling intact; improves phones and tablets.
========================================================= */
html, body { width:100%; max-width:100%; overflow-x:clip; }
img, canvas, svg, video, iframe { max-width:100%; }
main, section, header, footer, .map-shell, .form-card { min-width:0; }

@media (max-width: 760px) {
  .topbar {
    height:auto; min-height:68px; padding:13px 16px;
    display:flex; flex-wrap:wrap; gap:12px;
  }
  .brand { flex:1 1 auto; min-width:0; font-size:12px; letter-spacing:1.3px; }
  .brand small { letter-spacing:1.6px; }
  .top-cta { flex:0 0 auto; padding:9px 11px; white-space:nowrap; }
  nav {
    display:flex; order:3; flex:1 0 100%; width:100%; gap:0;
    overflow-x:auto; overscroll-behavior-x:contain; white-space:nowrap;
    padding:3px 0 5px; scrollbar-width:thin;
  }
  nav a { flex:0 0 auto; padding:7px 13px 7px 0; margin-right:18px; font-size:11px; }
  .hero { min-height:0; padding:45px 18px 42px; gap:5px; }
  .hero-art { width:100%; max-width:440px; height:250px; margin:0 auto; overflow:hidden; }
  .hero h1 { font-size:clamp(39px, 11vw, 56px); letter-spacing:-1.5px; line-height:1.08; }
  .hero-text { font-size:14px; }
  .hero-actions { align-items:stretch; gap:12px; }
  .hero-actions .button { max-width:100%; }
  .content-grid { padding:48px 16px; gap:25px; }
  .section-intro h2, .map-heading h2, .how-section h2 { font-size:clamp(32px, 9vw, 42px); }
  .mini-facts { grid-template-columns:1fr; }
  .mini-facts div { font-size:11px; }
  .form-card { padding:20px 16px; }
  .card-head { gap:10px; }
  .two-fields { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; }
  input, select, textarea, button { max-width:100%; }
  input, select { font-size:16px; }
  .map-section { padding:45px 12px; }
  .map-heading { margin-bottom:20px; }
  .map-toolbar { height:auto; min-height:48px; padding:10px 12px; align-items:flex-start; flex-direction:column; gap:9px; }
  .map-legend { flex-wrap:wrap; gap:8px 14px; }
  #world-map { height: min(115vw, 460px); min-height:300px; }
  .line-controls { gap:10px; }
  .filters { width:100%; }
  .planet-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .how-section { padding:48px 16px; }
  .angle-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .angle-grid article { min-width:0; padding:17px 12px; }
  .disclaimer { margin:0 12px 45px; padding:16px; }
  footer { padding:22px 16px 30px; }

  /* Member dashboard */
  .member-dashboard-strip { padding:18px 12px; }
  .member-dashboard-inner { width:100%; max-width:100%; }
  .member-dashboard-heading { display:flex; flex-direction:column; align-items:stretch; gap:14px; }
  .member-dashboard-actions { display:flex; flex-wrap:wrap; gap:10px; }
  .member-profile-chips { display:grid; grid-template-columns:1fr; gap:9px; }
  .member-profile-chip { width:100%; min-width:0; text-align:left; overflow-wrap:anywhere; }
  .member-profile-chip small { display:block; overflow-wrap:anywhere; }
  .member-history-list { display:grid; grid-template-columns:1fr; }
  .member-history-item { min-width:0; gap:10px; overflow-wrap:anywhere; }

  /* Result tables remain readable without widening the page */
  .location-table-wrap, .table-wrap, .rankings-table-wrap { max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .location-table-wrap table { min-width:500px; }
}

@media (max-width: 420px) {
  .topbar { padding-left:12px; padding-right:12px; }
  .brand { font-size:10px; gap:7px; }
  .brand-mark { font-size:22px; }
  .brand small { font-size:7px; }
  .top-cta { font-size:9px; padding:8px; }
  .hero { padding-left:14px; padding-right:14px; }
  .hero-art { height:215px; }
  .orbit-three { width:310px; height:220px; }
  .orbit-two { width:285px; }
  .hero-actions { flex-direction:column; align-items:stretch; }
  .hero-actions .button { width:100%; }
  .two-fields { grid-template-columns:1fr; }
  .planet-grid { grid-template-columns:1fr; }
  .angle-grid { grid-template-columns:1fr; }
  .angle-grid article { border-right:0; padding:16px 4px; }
  .angle-grid article:first-child { padding-left:4px; }
  .location-intelligence { width:calc(100% - 20px); padding:15px; }
  .location-result-top strong { font-size:38px; }
}


/* =========================================================
   MOBILE VIEWPORT WIDTH / HORIZONTAL OVERFLOW FIX v2
   Prevent the document itself from becoming wider than the
   device. Wide data tables scroll only inside their wrappers.
========================================================= */
html {
  width:100% !important;
  max-width:100% !important;
  overflow-x:hidden !important;
  -webkit-text-size-adjust:100%;
}
body {
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  overflow-x:hidden !important;
  position:relative;
}
*, *::before, *::after { box-sizing:border-box; }
img, picture, video, canvas, svg, iframe { max-width:100%; }

@media screen and (max-width:800px) {
  body, main, header, footer, section, article, .topbar,
  .hero, .content-grid, .map-section, .how-section,
  .city-discovery, .globe-profile-below-map, .premium-suite,
  .member-dashboard-strip, .location-intelligence {
    width:100%;
    min-width:0 !important;
    max-width:100% !important;
  }
  main { overflow-x:clip; }
  .topbar {
    height:auto !important;
    min-height:64px;
    padding:12px 14px !important;
    gap:10px;
  }
  .brand { min-width:0 !important; max-width:calc(100% - 105px); overflow-wrap:anywhere; }
  .top-cta { max-width:42%; white-space:normal; text-align:center; }
  .hero, .content-grid, .how-section {
    padding-left:16px !important;
    padding-right:16px !important;
  }
  .hero > *, .content-grid > *, .map-section > *,
  .premium-grid > *, .city-category-grid > *,
  .globe-controls-main > *, .member-dashboard-inner > * {
    min-width:0 !important;
    max-width:100%;
  }
  .hero h1, .section-intro h2, .map-heading h2,
  .how-section h2, .premium-suite h2, .city-discovery h2 {
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:normal;
  }
  .hero-art { width:100% !important; max-width:100% !important; overflow:hidden !important; }
  .orbit, .orbit-one, .orbit-two, .orbit-three { max-width:100%; }
  .map-section { padding-left:12px !important; padding-right:12px !important; }
  .map-shell, #world-map { width:100% !important; max-width:100% !important; min-width:0 !important; }
  .map-toolbar { width:100%; max-width:100%; }
  .map-legend { flex-wrap:wrap; min-width:0; }
  .line-controls, .filters { min-width:0; max-width:100%; }
  .planet-grid, .premium-grid, .city-category-grid,
  .position-grid, .profile-summary, .compare-output,
  .location-score-list { grid-template-columns:minmax(0,1fr) !important; }
  .two-fields { grid-template-columns:minmax(0,1fr) !important; }
  .form-card, .premium-card, .city-category,
  .globe-controls-inline, .location-intelligence {
    min-width:0 !important;
    max-width:100% !important;
    overflow-wrap:anywhere;
  }
  input, select, textarea, button { min-width:0; max-width:100%; }
  .premium-inline { flex-wrap:wrap; min-width:0; }
  .compare-controls { grid-template-columns:minmax(0,1fr) !important; }
  .member-dashboard-heading, .member-history-item,
  .member-dashboard-actions { min-width:0; max-width:100%; flex-wrap:wrap; }
  .member-history-item > *, .member-profile-chip { min-width:0; overflow-wrap:anywhere; }
  .location-result-top { min-width:0; }
  .location-result-top p { overflow-wrap:anywhere; }
  .location-table-wrap, .table-wrap, .rankings-table-wrap,
  .premium-output { width:100%; max-width:100%; overflow-x:auto; }
  .location-table-wrap table, .premium-output table { min-width:480px; }
  footer { width:100%; max-width:100%; padding-left:16px !important; padding-right:16px !important; }
}

@media screen and (max-width:420px) {
  .brand { letter-spacing:1px; }
  .brand small { letter-spacing:1.2px; }
  .top-cta { font-size:10px; padding:8px 9px; }
  .hero h1 { font-size:clamp(34px,10vw,46px) !important; letter-spacing:-1px; }
  .hero-art { height:210px !important; }
  .map-heading h2, .section-intro h2, .how-section h2 { font-size:clamp(29px,8.5vw,38px) !important; }
  .location-intelligence { width:calc(100% - 20px) !important; margin-left:auto !important; margin-right:auto !important; }
}

/* v18: hard stop for document-level horizontal overflow on narrow screens */
@media screen and (max-width:800px){
  html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important;}
  body{position:relative!important;min-width:0!important;}
  body>*{max-width:100%!important;}
  main,main>*,header,footer,section,article,.topbar,.hero,.content-grid,.map-section,.how-section,.globe-profile-below-map,.city-discovery,.premium-suite,.member-dashboard-strip,.location-intelligence{box-sizing:border-box!important;min-width:0!important;max-width:100%!important;}
  .ambient{max-width:100vw!important;}
  .hero-art,.map-shell{overflow:hidden!important;}
  #world-map,.leaflet-container{width:100%!important;max-width:100%!important;min-width:0!important;}
  h1,h2,h3,p,a,button,label,small,strong,span{overflow-wrap:anywhere;}
}

/* Advanced AstroDestiny: clickable lines, relocation and reports */
.planetary-line-detail{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:16px 0 8px;padding:18px 20px;border:1px solid rgba(215,184,121,.24);background:linear-gradient(120deg,rgba(20,30,48,.94),rgba(12,19,32,.96));border-radius:12px;min-height:105px}
.planetary-line-detail h3{font:22px var(--serif);color:var(--gold);margin:5px 0}.planetary-line-detail p{margin:4px 0;color:#c4ccda;font-size:12px}.planetary-line-detail small{color:#8794a9;font-size:10px}.line-detail-color{width:10px;height:56px;flex:0 0 10px;border-radius:9px;box-shadow:0 0 18px currentColor}
.advanced-astro-tools{max-width:1120px;margin:65px auto;padding:0 24px}.advanced-astro-tools h2{font:500 clamp(34px,4vw,48px) var(--serif);margin:14px 0;color:var(--white)}.advanced-astro-tools h2 em{color:var(--gold)}.advanced-tool-card{margin-top:28px;padding:28px;background:linear-gradient(145deg,#141e30,#0d1524);border:1px solid var(--line);border-radius:14px}.advanced-tool-card h3{font:24px var(--serif);margin:8px 0 20px}.relocation-form{max-width:760px}.relocation-form label{display:block;color:#d5dbe4;font-size:11px;margin:14px 0}.relocation-form input,.relocation-form select{display:block;width:100%;margin-top:7px;padding:12px;background:#0b1220;border:1px solid #273349;color:#e8eaf0}.relocation-form .two-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.relocation-result{margin-top:20px}.relocation-angle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.relocation-angle-grid>div{padding:18px;background:#0b1322;border:1px solid #2c3a52}.relocation-angle-grid small,.relocation-angle-grid span{display:block;color:#9aa7bb;font-size:10px}.relocation-angle-grid strong{display:block;color:var(--gold);font:24px var(--serif);margin:7px 0}.relocation-cusps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.relocation-cusp{padding:10px;background:#0b1322;border:1px solid #28364b}.relocation-cusp small,.relocation-cusp strong{display:block}.relocation-cusp small{font-size:9px;color:#8d9ab0}.relocation-cusp strong{font-size:12px;color:#e6d3ad;margin-top:4px}.relocation-note{font-size:11px;color:#9da9bb;line-height:1.7;margin:12px 0}.report-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.report-actions small{color:#8996aa;font-size:10px}
@media(max-width:700px){.advanced-astro-tools{padding:0 16px;margin:45px auto}.advanced-tool-card{padding:19px 15px}.relocation-form .two-fields,.relocation-angle-grid{grid-template-columns:1fr}.relocation-cusps{grid-template-columns:repeat(3,minmax(0,1fr))}.planetary-line-detail{padding:15px;align-items:flex-start}.planetary-line-detail h3{font-size:19px}}

/* =====================================================
   SECTION ALIGNMENT REPAIR — 03 / 04 / 05
   Match the centered 1120px content column used by
   the birth form, how-it-works and footer sections.
===================================================== */
#globe-profile-tools,
#city-discovery,
#premium-suite {
    width: min(1120px, calc(100% - 60px));
    max-width: 1120px;
    box-sizing: border-box;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0;
    padding-right: 0;
}

#globe-profile-tools,
#premium-suite {
    padding-top: 90px;
    padding-bottom: 90px;
}

#city-discovery {
    padding-top: 90px;
    padding-bottom: 90px;
}

@media (max-width: 800px) {
    #globe-profile-tools,
    #city-discovery,
    #premium-suite {
        width: calc(100% - 36px);
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

@media (max-width: 420px) {
    #globe-profile-tools,
    #city-discovery,
    #premium-suite {
        width: calc(100% - 32px);
    }
}


/* =====================================================
   SECTION 02 ALIGNMENT FIX — PLANETARY GEOGRAPHY
   Match the same centered content width as sections 03–05.
   Keep the map and its controls inside this aligned section.
===================================================== */
#map-section {
  width: min(1120px, calc(100% - 60px)) !important;
  max-width: 1120px !important;
  margin: 65px auto !important;
  padding: 64px 28px !important;
  box-sizing: border-box !important;
  background: linear-gradient(145deg, rgba(16, 23, 39, .96), rgba(10, 16, 29, .98)) !important;
  border: 1px solid rgba(211, 190, 145, .17) !important;
  border-radius: 16px !important;
}
#map-section .map-heading,
#map-section .map-shell,
#map-section .planetary-line-detail,
#map-section .line-controls,
#map-section .globe-controls-inline,
#map-section .planet-grid {
  width: 100%;
  max-width: 100%;
}
@media (max-width: 800px) {
  #map-section {
    width: calc(100% - 32px) !important;
    margin: 38px auto !important;
    padding: 32px 16px !important;
    border-radius: 13px !important;
  }
}
@media (max-width: 420px) {
  #map-section {
    width: calc(100% - 24px) !important;
    padding: 26px 12px !important;
  }
}


/* v22: preserve native one-finger viewport panning after pinch zoom.
   Keep normal-scale layout fitted; allow the document viewport to scroll
   horizontally only when the browser zoom makes it wider than the screen. */
@media (max-width: 800px) {
  html {
    overflow-x: auto !important;
    overscroll-behavior-x: auto !important;
    touch-action: pan-x pan-y pinch-zoom !important;
    -webkit-overflow-scrolling: touch;
  }
  body {
    overflow-x: visible !important;
    overscroll-behavior-x: auto !important;
    touch-action: pan-x pan-y pinch-zoom !important;
    max-width: none !important;
  }
}


/* v23: restore native document panning after browser pinch zoom.
   Previous mobile rules clipped the root viewport (hidden/clip), which
   prevents the page itself from being dragged after zooming. */
@media screen and (max-width: 800px) {
  html, body {
    overflow-x: visible !important;
    overflow-y: visible !important;
    overscroll-behavior: auto !important;
    touch-action: auto !important;
  }
  main { overflow-x: visible !important; }
}


/* =========================================================
   v24 — REAL MOBILE LAYOUT REFINEMENT
   Keep the document root pannable after pinch zoom, while
   making every normal page section fit the device width.
   Wide tables remain scrollable inside their own wrappers.
========================================================= */
@media screen and (max-width: 800px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: visible !important;
  }
  body { margin: 0 !important; }
  body > .ambient { width: 100vw !important; max-width: 100vw !important; right: 0 !important; }
  main, main > section, header, footer, .member-dashboard-strip {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  main > section, .member-dashboard-strip {
    box-sizing: border-box !important;
  }
  main > section *, .member-dashboard-strip * {
    min-width: 0;
  }
  .topbar { width: 100% !important; max-width: 100% !important; }
  .hero, #birth-form, #map-section, #globe-profile-tools,
  #city-discovery, #premium-suite, #how, #about,
  #advanced-astro-tools, #location-intelligence {
    box-sizing: border-box !important;
    max-width: calc(100% - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .hero, #birth-form, #how, #about { width: calc(100% - 24px) !important; }
  #map-section { width: calc(100% - 24px) !important; padding-left: 12px !important; padding-right: 12px !important; }
  #globe-profile-tools, #city-discovery, #premium-suite,
  #advanced-astro-tools, #location-intelligence {
    width: calc(100% - 24px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .content-grid { display: grid !important; grid-template-columns: minmax(0,1fr) !important; }
  .hero { grid-template-columns: minmax(0,1fr) !important; }
  .premium-grid, .city-category-grid, .globe-controls-main,
  .profile-summary, .position-grid, .compare-controls,
  .compare-output, .location-coordinate-grid, .location-score-list {
    grid-template-columns: minmax(0,1fr) !important;
  }
  .premium-card, .city-category, .form-card, .advanced-tool-card,
  .globe-controls-inline, .member-dashboard-inner,
  .location-intelligence, .location-intel-form {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .city-ranking-item {
    grid-template-columns: 28px minmax(0,1fr) 52px !important;
    gap: 8px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .city-info, .city-info strong, .city-info small,
  .city-planet, .city-category-head, .premium-card-head,
  .member-history-item, .member-profile-chip {
    min-width: 0 !important;
    overflow-wrap: anywhere;
  }
  .destination-tabs, .premium-actions, .premium-inline,
  .member-dashboard-actions, .report-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    max-width: 100% !important;
  }
  .destination-tabs > *, .premium-actions > *,
  .member-dashboard-actions > *, .report-actions > * {
    max-width: 100% !important;
  }
  .two-fields, .relocation-form .two-fields {
    grid-template-columns: minmax(0,1fr) !important;
  }
  .relocation-angle-grid { grid-template-columns: minmax(0,1fr) !important; }
  .relocation-cusps { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .map-shell, #world-map, .leaflet-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .location-table-wrap, .table-wrap, .rankings-table-wrap,
  .premium-output { display: block; width: 100% !important; max-width: 100% !important; overflow-x: auto !important; }
  .location-table-wrap table, .premium-output table { min-width: 480px; }
  pre, code, .premium-output pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
  input, select, textarea, button { max-width: 100%; }
}
@media screen and (max-width: 420px) {
  .hero, #birth-form, #map-section, #globe-profile-tools,
  #city-discovery, #premium-suite, #how, #about,
  #advanced-astro-tools, #location-intelligence {
    max-width: calc(100% - 20px) !important;
    width: calc(100% - 20px) !important;
  }
  .city-ranking-item { grid-template-columns: 24px minmax(0,1fr) 46px !important; }
  .city-score strong { font-size: 18px !important; }
  .relocation-cusps { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}


/* =========================================================
   v25 — MOBILE PAGE PAN + RESPONSIVE CONTAINMENT
   Do not clip the document viewport: mobile browsers need
   native viewport panning after pinch zoom. Clip only visual
   elements that intentionally extend beyond their own panels.
========================================================= */
@media screen and (max-width: 800px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    overscroll-behavior-x: auto !important;
    overscroll-behavior-y: auto !important;
    touch-action: auto !important;
  }
  body {
    margin: 0 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
  }
  body > .ambient {
    width: min(900px, 100vw) !important;
    max-width: 100vw !important;
    right: 0 !important;
    pointer-events: none !important;
  }
  header, footer, main, main > section, .member-dashboard-strip,
  .topbar, .hero, .content-grid, .map-section, .how-section,
  .globe-profile-below-map, .city-discovery, .premium-suite,
  .advanced-astro-tools, .location-intelligence {
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  main > section *, .member-dashboard-strip * {
    min-width: 0;
  }
  .hero, #birth-form, #map-section, #globe-profile-tools,
  #city-discovery, #premium-suite, #how, #about,
  #advanced-astro-tools, #location-intelligence {
    box-sizing: border-box !important;
    max-width: calc(100% - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .hero, #birth-form, #how, #about {
    width: calc(100% - 24px) !important;
  }
  #map-section {
    width: calc(100% - 24px) !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  #globe-profile-tools, #city-discovery, #premium-suite,
  #advanced-astro-tools, #location-intelligence {
    width: calc(100% - 24px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .hero-art { overflow: clip !important; }
  .map-shell, .hero-art { min-width: 0 !important; }
  .map-shell { max-width: 100% !important; }
  #world-map, .leaflet-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .content-grid, .hero { grid-template-columns: minmax(0, 1fr) !important; }
  .premium-grid, .city-category-grid, .globe-controls-main,
  .profile-summary, .position-grid, .compare-controls,
  .compare-output, .location-coordinate-grid, .location-score-list,
  .two-fields, .relocation-form .two-fields,
  .relocation-angle-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .relocation-cusps { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .location-table-wrap, .table-wrap, .rankings-table-wrap,
  .premium-output {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  input, select, textarea, button { max-width: 100% !important; }
}
@media screen and (max-width: 420px) {
  .hero, #birth-form, #map-section, #globe-profile-tools,
  #city-discovery, #premium-suite, #how, #about,
  #advanced-astro-tools, #location-intelligence {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
  }
}

/* ==========================================
   PERSONAL MATRIX + CHAKRA ENERGY TABLE
========================================== */
.matrix-section{width:min(1440px,calc(100% - 64px));margin:70px auto 84px;color:#285f5c}
.matrix-section-heading{padding:38px 42px;background:linear-gradient(120deg,#fbf7f3,#fff);border:1px solid #eadfd9;border-radius:24px 24px 0 0}
.matrix-section-heading h2{font:500 clamp(34px,4vw,54px)/1.12 Georgia,serif;margin:12px 0;color:#285f5c}
.matrix-section-heading h2 em{color:#bd8f8d;font-style:normal}
.matrix-section-heading p{font-size:17px;line-height:1.7;color:#617875;max-width:950px;margin:0}
.matrix-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(320px,.9fr);border:1px solid #eadfd9;border-top:0;background:#fff}
.matrix-chart-card,.matrix-numbers-card{padding:30px 34px;min-width:0}
.matrix-numbers-card{background:#fbf8f5;border-left:1px solid #eadfd9}
.matrix-card-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}
.matrix-card-heading h3{font:500 27px/1.3 Georgia,serif;margin:5px 0;color:#285f5c}
.matrix-kicker{font-size:11px;font-weight:800;letter-spacing:.14em;color:#b16e6a}
.matrix-live-tag{font-size:10px;font-weight:800;letter-spacing:.1em;color:#a55e59}
.matrix-svg-wrap{width:100%;max-width:650px;margin:auto}.matrix-svg-wrap svg{display:block;width:100%;height:auto;max-height:590px}
.matrix-footnote,.matrix-method-note{font-size:12px;line-height:1.65;color:#71817e}
.matrix-number-list{display:grid;gap:14px}
.matrix-number-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px 22px;background:#fff;border:1px solid #eadbd3;border-radius:18px}
.matrix-number-item b{display:block;font-size:17px;color:#285f5c}.matrix-number-item small{display:block;margin-top:5px;font-size:13px;color:#74837f}
.matrix-number-item strong{font:italic 36px Georgia,serif;color:#ad625e}.matrix-number-empty{padding:24px;color:#74837f;background:#fff;border-radius:16px}
.matrix-name-note{font-size:12px;line-height:1.6;color:#74837f;margin-top:16px}
.chakra-card{padding:32px 36px;border:1px solid #eadfd9;border-top:0;background:#fff;border-radius:0 0 24px 24px}
.chakra-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.chakra-table{width:100%;min-width:540px;border-collapse:separate;border-spacing:0 10px;text-align:center}
.chakra-table th{padding:14px 18px;color:#c28f8c;font:500 19px Georgia,serif}.chakra-table th:first-child,.chakra-table td:first-child{text-align:left}
.chakra-table td{padding:17px 18px;background:#f7f5f3;color:#285f5c;font-size:17px;font-weight:600}.chakra-table td:first-child{border-radius:18px 0 0 18px;font-weight:750}.chakra-table td:last-child{border-radius:0 18px 18px 0}
.chakra-table .chakra-total td{background:#c99b9b;color:#fff;font-weight:800}.matrix-method-note{padding:14px 4px}
@media(max-width:850px){.matrix-section{width:calc(100% - 28px);margin:44px auto}.matrix-section-heading{padding:26px 22px}.matrix-layout{grid-template-columns:1fr}.matrix-numbers-card{border-left:0;border-top:1px solid #eadfd9}.matrix-chart-card,.matrix-numbers-card,.chakra-card{padding:24px 20px}.matrix-card-heading h3{font-size:23px}}
@media(max-width:480px){.matrix-section{width:calc(100% - 20px)}.matrix-section-heading h2{font-size:34px}.matrix-section-heading p{font-size:14px}.matrix-card-heading{align-items:flex-start}.matrix-live-tag{font-size:9px}.chakra-table th{font-size:16px;padding:12px 10px}.chakra-table td{font-size:14px;padding:15px 10px}}
.matrix-purpose-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0 6px}.matrix-purpose-grid>div{padding:11px 8px;background:#f8f5f2;border-radius:12px;text-align:center}.matrix-purpose-grid small{display:block;font-size:10px;color:#71817e}.matrix-purpose-grid strong{display:block;margin-top:4px;font:italic 22px Georgia,serif;color:#ad625e}@media(max-width:520px){.matrix-purpose-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}


/* =========================================================
   MOBILE 3D GLOBE FIT — keep the complete Earth in frame
   Desktop dimensions and desktop camera are unchanged.
========================================================= */
@media screen and (max-width: 700px) {
  .map-shell {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  #world-map {
    width: 100% !important;
    height: clamp(390px, 112vw, 520px) !important;
    min-height: 390px !important;
    max-height: 520px !important;
    overflow: hidden !important;
    position: relative !important;
    isolation: isolate;
  }
  #world-map > canvas {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
  }
}
@media screen and (max-width: 380px) {
  #world-map {
    height: 390px !important;
    min-height: 390px !important;
  }
}

/* AstroDestiny mobile globe fit — final override.
   Camera zoom is adjusted by workspace-globe-fix.js; these rules ensure the
   renderer canvas uses the complete host dimensions rather than overflowing. */
@media screen and (max-width: 700px) {
  #map-section .map-shell {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    contain: paint;
  }
  #map-section #world-map {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: clamp(420px, 112vw, 500px) !important;
    min-height: 420px !important;
    max-height: 500px !important;
    overflow: hidden !important;
  }
  #map-section #world-map > canvas {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }
}
@media screen and (max-width: 380px) {
  #map-section #world-map {
    height: 420px !important;
    min-height: 420px !important;
  }
}
