/* Premium cosmic home scene. The service cards remain buttons wired to the existing product flows. */
.m-home-topbar{height:72px;display:grid;grid-template-columns:42px 1fr 42px;align-items:center;max-width:720px;margin:auto;padding:0 18px;background:#090b1af2;border-bottom:1px solid #d4ad5b2b;position:sticky;top:0;z-index:5;backdrop-filter:blur(18px)}
.m-home-wordmark{border:0;background:transparent;color:#f4d18a;letter-spacing:.28em;font:700 18px Georgia,serif;text-shadow:0 0 18px #d7a94c77;white-space:nowrap;cursor:pointer}.m-home-wordmark span{font-size:14px;margin-right:7px}.m-home-icon{width:34px;height:34px;border:1px solid #d6b76b55;border-radius:50%;background:#15152d;color:#e7c77e;font-size:16px;cursor:pointer}.m-home-icon:last-child{justify-self:end}
body:has(.m-home-page){background:#050919 url('/assets/home/01_BACKGROUND_home_screen_cosmic.jpg') center top/cover fixed!important}
.m-page.m-home-page{padding:18px 18px 118px;background:linear-gradient(180deg,#07112dcc,#07112d66 35%,#07112dcc),url('/assets/home/01_BACKGROUND_home_screen_cosmic.jpg') center top/cover fixed!important}
.m-home-page:before{opacity:.28;background-image:radial-gradient(#f3d48c 1px,transparent 1px),radial-gradient(#a995ff 1px,transparent 1px);background-size:97px 97px,151px 151px;background-position:14px 7px,62px 29px}
.m-home-video{position:relative;min-height:0;overflow:hidden;border:1px solid #d2ae5e88;border-radius:25px;box-shadow:0 18px 44px #0007,inset 0 1px #ffffff16;background:#050919}.m-home-video-media{display:block;width:100%;height:auto;aspect-ratio:864 / 496;object-fit:cover}.m-home-play{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);width:54px;height:54px;border:0;border-radius:50%;background:transparent;color:transparent;font-size:20px;padding:0;cursor:pointer;box-shadow:none}.m-home-video-glow,.m-home-video-copy,.m-home-video-caption{display:none}.m-home-video.is-playing .m-home-video-copy{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility .2s ease}.m-home-video.is-playing .m-home-play{display:none}.m-home-video:not(.is-playing) .m-home-video-media{cursor:pointer}
.m-home-featured{padding-top:18px}.m-home-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.m-home-card{position:relative;display:block;width:100%;min-height:0;overflow:hidden;border:1px solid #d2ad5b88;border-radius:17px;padding:0;background:#11142d;cursor:pointer;box-shadow:0 10px 24px #0007,inset 0 1px #ffffff13;transition:transform .2s,border-color .2s}.m-home-card:active{transform:scale(.98)}.m-home-card:hover{border-color:#f0cf85cc}.m-home-card img{display:block;width:100%;height:auto}.m-home-card-copy{position:absolute;z-index:2;left:14px;right:48px;bottom:14px;display:block;text-align:left;text-shadow:0 2px 12px #000}.m-home-card-copy strong{display:block;color:#fff;font:700 15px/1.05 Georgia,serif}.m-home-card-copy small{display:block;margin-top:5px;color:#f1ecf2;font-size:10px;line-height:1.22}.m-home-card-arrow{position:absolute;z-index:3;right:11px;bottom:12px;display:grid;place-items:center;width:30px;height:30px;border:1px solid #f0c973aa;border-radius:50%;background:#11152dcc;color:#f2cd7e;font-size:25px;line-height:1}.m-home-card-art{display:none}
@media(max-width:360px){.m-home-grid{gap:8px}.m-home-card{min-height:0}.m-home-video{min-height:0}}

/* Final alignment with the approved reference screen. */
.m-topbar{background:transparent!important;border-bottom-color:#d4ad5b22}
.m-home-topbar{background:transparent;backdrop-filter:none}
.m-home-wordmark{color:#f8d58f;font-size:22px}
.m-home-icon{background:#0d122a55;color:#f4d58f}
.m-home-video-copy{display:block;position:absolute;z-index:1;left:22px;bottom:24px;color:#fff;text-align:left;text-shadow:0 3px 16px #000}
.m-home-video-copy h1{margin:0 0 8px;font:700 29px/.98 Georgia,serif;letter-spacing:-.04em}
.m-home-video-copy h1 em{color:#f5d18b;font-style:normal}
.m-home-video-copy p{max-width:190px;margin:0 0 11px;font-size:11px;line-height:1.25;color:#fff}
.m-home-video-copy span{display:inline-block;border:1px solid #f3ca78;border-radius:999px;padding:6px 11px;color:#f5d18b;font-size:10px;background:#11152aaa}
.m-home-play{left:64%;background:#17152acc;color:#f2cc7c;border:1px solid #f1ce7caa;box-shadow:0 0 25px #d8ac5f88}
.m-home-card-copy strong{color:#fff6e9;font-size:17px}
.m-home-card-copy small{color:#fff8f0;font-size:11px}

/* Keep the approved cosmic artwork visible beneath the shell chrome. */
.m-home-topbar{background:transparent!important;border-bottom-color:#d4ad5b22!important;box-shadow:none!important;backdrop-filter:none!important}
.m-topbar{background:transparent!important;box-shadow:none!important;backdrop-filter:none!important}
.m-page.m-home-page{background-image:linear-gradient(180deg,#07112d18,#07112d08 42%,#07112d28),url('/assets/home/01_BACKGROUND_home_screen_cosmic.jpg')!important}
.m-home-card-copy strong{font-size:18px;line-height:1.02;color:#fff8ea}
.m-home-card-copy small{font-size:10.5px;line-height:1.25;color:#fff8f0}

/* Final visual pass: preserve the current copy, improve hierarchy and legibility. */
.m-home-topbar{height:82px;grid-template-columns:48px 1fr 48px;padding:0 20px}
.m-home-wordmark{font-size:26px;letter-spacing:.23em;text-shadow:0 0 14px #f0c76a99,0 2px 3px #000b}
.m-home-wordmark span{font-size:17px;margin-right:8px}
.m-home-icon{width:40px;height:40px;border-color:#e1bb6d88;background:#0a102b44;color:#f4d18a;font-size:18px;box-shadow:0 0 14px #e4bb6a2b,inset 0 1px #fff4c833}
.m-home-video{border-radius:25px;box-shadow:0 18px 44px #0009,0 0 0 1px #f1c97822,inset 0 1px #ffffff22}
.m-home-video-copy{left:28px;bottom:27px;text-shadow:0 2px 3px #000f,0 0 12px #000e,0 4px 22px #000b}
.m-home-video-copy h1{font-size:clamp(30px,8vw,44px);line-height:.95;margin-bottom:11px;color:#fff8e7}
.m-home-video-copy h1 em{color:#f8d590}
.m-home-video-copy p{max-width:250px;font-size:13px;line-height:1.3;margin-bottom:14px;text-shadow:0 2px 3px #000f,0 0 10px #000d}
.m-home-video-copy span{padding:7px 13px;font-size:11px;background:#11152dcc;box-shadow:0 2px 8px #0008}
.m-home-play{width:62px;height:62px;font-size:23px;box-shadow:0 0 28px #e5b95d99,0 5px 18px #0009}
.m-home-card{border-radius:20px;box-shadow:0 12px 28px #0009,inset 0 1px #ffffff20}
.m-home-card:after{content:'';position:absolute;z-index:1;inset:35% 0 0;pointer-events:none;background:linear-gradient(180deg,transparent 0%,#02051522 32%,#020515c9 100%)}
.m-home-card-copy{left:15px;right:51px;bottom:16px;text-shadow:0 2px 3px #000f,0 0 9px #000f,0 3px 15px #000c}
.m-home-card-copy strong{font-size:19px;line-height:1.02;color:#fff6df;text-shadow:0 2px 3px #000f,0 0 9px #000f,0 3px 14px #000d}
.m-home-card-copy small{margin-top:6px;font-size:11.5px;line-height:1.22;color:#fff9ef;text-shadow:0 2px 3px #000f,0 0 8px #000e}
.m-home-card-arrow{right:12px;bottom:13px;width:34px;height:34px;border-color:#f1cc78dd;background:#11152dcc;color:#f7d488;font-size:28px;box-shadow:0 2px 9px #0009,inset 0 1px #fff3bc33}
.m-bottom-nav{height:82px;background:#070b1ae8;border-top:1px solid #d7ad5b44;box-shadow:0 -10px 32px #0008,inset 0 1px #ffffff12;backdrop-filter:blur(15px)}
.m-nav-item{color:#a9a5b7}
.m-nav-item.active{color:#f5d38c;text-shadow:0 0 12px #f0c36d88}
.m-nav-main{width:58px;height:58px;background:linear-gradient(145deg,#ffe2a0,#bd8bdb);border-color:#0a0d22;color:#302044;box-shadow:0 0 30px #efbc72bb,0 5px 17px #000b}
.m-home-page + .m-bottom-nav{height:82px!important;background:#070b1ae8!important;border-top:1px solid #d7ad5b44!important;box-shadow:0 -10px 32px #0008,inset 0 1px #ffffff12!important;backdrop-filter:blur(15px)!important}
.m-home-page + .m-bottom-nav .m-nav-item{color:#a9a5b7}
.m-home-page + .m-bottom-nav .m-nav-item.active{color:#f5d38c;text-shadow:0 0 12px #f0c36d88}
.m-home-page + .m-bottom-nav .m-nav-main{width:58px;height:58px;background:linear-gradient(145deg,#ffe2a0,#bd8bdb)!important;border-color:#0a0d22!important;color:#302044!important;box-shadow:0 0 30px #efbc72bb,0 5px 17px #000b!important}
/* Home header: brand on the left, settings on the right. */
.m-home-topbar{display:flex!important;justify-content:space-between!important;grid-template-columns:none!important}
.m-home-wordmark{order:1!important;justify-self:auto!important}
.m-home-topbar .m-home-icon{order:2!important;margin-left:auto}
@media(max-width:390px){
  .m-home-topbar{height:74px;padding:0 16px}
  .m-home-wordmark{font-size:23px}
  .m-home-icon{width:36px;height:36px}
  .m-home-video-copy{left:22px;bottom:21px}
  .m-home-video-copy h1{font-size:clamp(27px,8vw,34px)}
  .m-home-video-copy p{font-size:11px;max-width:190px}
  .m-home-card-copy{left:12px;bottom:12px}
  .m-home-card-copy strong{font-size:16px}
  .m-home-card-copy small{font-size:10px}
  .m-home-card-arrow{right:9px;bottom:10px;width:30px;height:30px;font-size:24px}
}

/* Cosmic catalogue screen: one compact two-column grid of all available readings. */
body:has(.m-services-page){background:#050919 url('/assets/home/01_BACKGROUND_home_screen_cosmic.jpg') center top/cover fixed!important}
.m-services-topbar{height:76px;display:grid;grid-template-columns:42px 1fr 42px;align-items:center;max-width:720px;margin:auto;padding:0 18px;background:transparent!important;border:0;position:sticky;top:0;z-index:5}
.m-services-wordmark{border:0;background:transparent;color:#f5d28b;font:700 19px Georgia,serif;letter-spacing:.2em;text-shadow:0 0 16px #e3b85f88;cursor:pointer}
.m-services-page{padding:18px 18px 112px!important;background:linear-gradient(180deg,#07112d20,#07112d08 42%,#07112d30),url('/assets/home/01_BACKGROUND_home_screen_cosmic.jpg') center top/cover fixed!important}
.m-services-page:before{opacity:.18!important}
.m-services-lead{max-width:none;margin:10px 0 20px;color:#ddd5ef;font-size:16px;line-height:1.35;text-shadow:0 2px 8px #000c}
.m-services-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.m-service-cosmos-card{position:relative;display:flex;align-items:center;min-width:0;min-height:116px;overflow:hidden;padding:9px 32px 9px 9px;border:1px solid #8f6be9aa;border-radius:18px;text-align:left;background:linear-gradient(145deg,#191744dd,#0b1734e8);color:#fff;cursor:pointer;box-shadow:0 10px 26px #0008,inset 0 1px #ffffff18;transition:transform .2s,border-color .2s,box-shadow .2s}
.m-service-cosmos-card:active{transform:scale(.98)}
.m-service-cosmos-card:hover{border-color:#e2bb76cc;box-shadow:0 0 24px #9c6ee655,0 12px 28px #0009}
.m-service-cosmos-card:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,#05071818,#7047aa12 55%,#d7a96118)}
.m-service-cosmos-card img{position:relative;z-index:1;flex:0 0 68px;width:68px;height:68px;object-fit:cover;border-radius:12px;border:1px solid #d4ad6b66;box-shadow:0 3px 12px #0009}
.m-service-cosmos-copy{position:relative;z-index:2;display:flex;min-width:0;flex-direction:column;justify-content:center;margin-left:10px;text-shadow:0 2px 3px #000f,0 0 9px #000d}
.m-service-cosmos-copy strong{display:block;color:#fff7e9;font:700 15px/1.05 Georgia,serif}
.m-service-cosmos-copy small{display:block;margin-top:7px;color:#d9d2eb;font-size:10.5px;line-height:1.18}
.m-service-cosmos-arrow{position:absolute;z-index:3;right:8px;bottom:10px;display:grid;place-items:center;width:29px;height:29px;border:1px solid #b583f0aa;border-radius:50%;background:#21164d99;color:#efd18d;font-size:20px;line-height:1;box-shadow:0 0 12px #8e62dc55}
.m-service-cosmos-card.tone-1{background:linear-gradient(145deg,#181942e8,#0b1935ee)}
.m-service-cosmos-card.tone-2{background:linear-gradient(145deg,#171c45e8,#10132eea)}
.m-service-cosmos-card.tone-3{background:linear-gradient(145deg,#2a1939e8,#17152eea)}
.m-services-page + .m-bottom-nav{height:82px!important;background:#070b1ae8!important;border-top:1px solid #d7ad5b44!important;box-shadow:0 -10px 32px #0008,inset 0 1px #ffffff12!important;backdrop-filter:blur(15px)!important}
.m-services-page + .m-bottom-nav .m-nav-item.active{color:#ead0ff;text-shadow:0 0 13px #ad7cff}
.m-services-page + .m-bottom-nav .m-nav-main{width:58px;height:58px;background:linear-gradient(145deg,#ffe2a0,#bd8bdb)!important;border-color:#0a0d22!important;box-shadow:0 0 30px #efbc72bb,0 5px 17px #000b!important}
@media(max-width:390px){
  .m-services-topbar{height:68px;padding:0 14px}
  .m-services-wordmark{font-size:17px}
  .m-services-page{padding:8px 13px 98px!important}
  .m-services-lead{font-size:15px;line-height:1.25;margin:5px 0 12px}
  .m-services-grid{gap:6px}
  .m-service-cosmos-card{min-height:82px;padding:5px 25px 5px 6px;border-radius:14px}
  .m-service-cosmos-card img{flex-basis:45px;width:45px;height:45px;border-radius:9px}
  .m-service-cosmos-copy{margin-left:7px}
  .m-service-cosmos-copy strong{font-size:11.5px;line-height:1.02}
  .m-service-cosmos-copy small{font-size:8.5px;line-height:1.08;margin-top:3px}
  .m-service-cosmos-arrow{right:5px;bottom:5px;width:22px;height:22px;font-size:15px}
}

/* Carry the same cosmic scene across history, profile and the other shell pages. */
body:has(.m-page){background:#050919 url('/assets/home/01_BACKGROUND_home_screen_cosmic.jpg') center top/cover fixed!important}
.m-topbar{background:transparent!important;border-bottom:0!important;box-shadow:none!important;backdrop-filter:none!important;color:#fff}
.m-page.m-home-page{background-image:linear-gradient(rgba(3,6,22,.4),rgba(3,6,22,.4)),url('/assets/home/01_BACKGROUND_home_screen_cosmic.jpg')!important}
.m-page.m-services-page,.m-page.m-page-spaced{background:linear-gradient(rgba(3,6,22,.4),rgba(3,6,22,.4)),url('/assets/home/01_BACKGROUND_home_screen_cosmic.jpg') center top/cover fixed!important}
.m-page.m-page-spaced:before{opacity:.16!important}
.m-history-topbar{height:76px;display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;max-width:720px;margin:auto;padding:0 18px;background:transparent!important;border:0;position:sticky;top:0;z-index:5}
.m-history-logo{width:38px;height:38px;border:1px solid #d8b46a88;border-radius:50%;background:linear-gradient(145deg,#f4d18b,#ae76dc);color:#211735;font-size:20px;box-shadow:0 0 18px #c28be477;cursor:pointer}
.m-history-wordmark{justify-self:center;color:#f5d28b;font:700 21px Georgia,serif;letter-spacing:.15em;text-shadow:0 0 15px #e2b55f99}
.m-history-plan{border:1px solid #d8b46a55;border-radius:999px;padding:9px 12px;background:#0c1228aa;color:#fff8e8;font-size:12px;cursor:pointer;box-shadow:inset 0 1px #fff4c822}
.m-history-plan span{margin-left:4px;color:#d4b778}
.m-history-page{padding-top:10px!important}
.m-history-page .m-empty{padding-top:34px}
.m-history-page .m-empty-orb{background:linear-gradient(145deg,#f3cf83,#9a6ed1);color:#211735;box-shadow:0 0 25px #c58aff66}
.m-history-page .m-primary{background:linear-gradient(145deg,#f3ca7d,#a276ff);color:#171327}
.insight-history-card,.m-history-page .card{background:linear-gradient(145deg,#0d1730f2,#091226f2)!important;border:1px solid #6f5ab277!important;color:#fff!important;box-shadow:0 12px 30px #0009,inset 0 1px #ffffff12!important}
.insight-history-card h3,.insight-history-card p{color:#fff}
.history-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:18px 0 14px}
.history-filter{min-width:0;padding:8px 5px;border:1px solid #d4aa5f;border-radius:999px;background:#67471f;color:#ffe3a6;font:600 10px/1.1 Georgia,serif;white-space:nowrap;cursor:pointer;box-shadow:0 3px 10px #0007,inset 0 1px #fff1b82b;transition:.2s}
.history-filter:hover,.history-filter.active{border-color:#f3d28b;color:#fff4cf;background:#8a642e;box-shadow:0 0 15px #d6a65b66,inset 0 1px #fff7d633}
.history-list-label{margin-top:8px}
.history-filter-results{display:grid;gap:12px}
.history-filter-empty{padding:28px 18px;border:1px solid #7b60a855;border-radius:16px;background:#0b152cf0;color:#c9c0df;text-align:center;font-size:13px}
#insightHistoryList{box-sizing:border-box;width:100%!important;max-width:none!important;min-width:0;margin:0!important;padding:0!important;overflow:visible}
.history-filter-results,.insight-history-card{min-width:0;max-width:100%;box-sizing:border-box}
.insight-history-card{overflow:hidden}
.insight-history-card *{max-width:100%;box-sizing:border-box}
.insight-history-card h3,.insight-history-card p,.insight-history-card small{overflow-wrap:anywhere;word-break:break-word}
.insight-history-text{white-space:pre-wrap;max-height:none!important;overflow:visible!important;overflow-wrap:anywhere;word-break:break-word}
.insight-history-card audio{display:block;width:100%;max-width:100%;color-scheme:dark}
.insight-history-card img{display:block;max-width:100%;height:auto}
.insight-history-tarot-cards{display:flex!important;gap:12px;max-width:100%;margin:14px 0 16px;padding:2px 2px 8px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#b783e2 transparent}
.insight-history-tarot-card{flex:0 0 78px;min-width:0;scroll-snap-align:start;text-align:center;color:#f5efff}
.insight-history-tarot-card img{width:78px!important;height:132px!important;max-width:none!important;object-fit:cover;border:1px solid #d4ad6b88;border-radius:8px;box-shadow:0 6px 15px #000b}
.insight-history-tarot-card span{display:block;margin-top:6px;font-size:11px;line-height:1.15;overflow-wrap:anywhere;word-break:break-word}
@media(max-width:390px){
  .history-filters{gap:5px;margin:14px 0 11px}
  .history-filter{padding:7px 3px;font-size:9px}
  .insight-history-tarot-cards{gap:9px}
  .insight-history-tarot-card{flex-basis:68px}
  .insight-history-tarot-card img{width:68px!important;height:115px!important}
  .insight-history-tarot-card span{font-size:10px}
}
@media(max-width:390px){
  .m-history-topbar{height:68px;padding:0 14px;grid-template-columns:36px 1fr auto}
  .m-history-logo{width:34px;height:34px;font-size:18px}
  .m-history-wordmark{font-size:18px}
  .m-history-plan{padding:8px 10px;font-size:11px}
  .m-history-page{padding-top:4px!important}
}
@media(max-width:390px) and (max-height:740px){
  .m-services-topbar{height:56px}
  .m-services-page{padding:4px 10px 82px!important}
  .m-services-lead{font-size:13px;line-height:1.18;margin:2px 0 7px}
  .m-services-grid{gap:4px}
  .m-service-cosmos-card{min-height:66px;padding:4px 22px 4px 5px;border-radius:12px}
  .m-service-cosmos-card img{flex-basis:36px;width:36px;height:36px;border-radius:8px}
  .m-service-cosmos-copy{margin-left:5px}
  .m-service-cosmos-copy strong{font-size:10px}
  .m-service-cosmos-copy small{font-size:7.5px;margin-top:2px}
  .m-service-cosmos-arrow{right:4px;bottom:4px;width:19px;height:19px;font-size:13px}
  .m-services-page + .m-bottom-nav{height:70px!important}
  .m-services-page + .m-bottom-nav .m-nav-main{width:50px;height:50px}
}

/* Lift the catalogue subtitle toward the section heading and improve contrast. */
.m-services-page{padding-top:0!important}
.m-services-lead{margin-top:0!important;font-size:19px;line-height:1.24;text-shadow:0 2px 4px #000f,0 0 11px #000d}
@media(max-width:390px){
  .m-services-lead{font-size:18px;line-height:1.2;margin-bottom:9px!important}
}
@media(max-width:390px) and (max-height:740px){
  .m-services-lead{font-size:15.5px;line-height:1.16;margin-bottom:6px!important}
}

/* Keep the video copy inside the artwork on compact phone widths. */
.m-home-video{isolation:isolate}
.m-home-video-copy{left:18px;right:18px;bottom:18px;max-width:245px;overflow:hidden}
.m-home-video-copy h1{max-width:230px;font-size:clamp(24px,7vw,32px);line-height:.96;margin-bottom:8px}
.m-home-video-copy p{max-width:185px;font-size:10.5px;line-height:1.18;margin-bottom:9px}
.m-home-video-copy span{padding:5px 10px;font-size:10px}
@media(max-width:390px){
  .m-home-video-copy{left:17px;right:17px;bottom:15px;max-width:220px}
  .m-home-video-copy h1{max-width:205px;font-size:clamp(23px,6.8vw,29px)}
  .m-home-video-copy p{max-width:165px;font-size:10px}
}
