@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Londrina+Shadow&display=swap');

@font-face {
  font-family: 'Saint George';
  src: url('SaintGeorge-LowercaseStencil.ttf') format('truetype');
}

:root {
  /* Clean Dark Base */
  --bg-dark: #141414;
  --panel-bg: #222222;
  --text-primary: #ffffff;
  --text-muted: #a3a3a3;

  /* Bright, Playful, Solid Colors */
  --accent-yellow: #ffee00;
  --accent-pink: #ff66b2;
  --accent-green: #00ff66;
  --accent-blue: #0088ff;
  --accent-orange: #ff5500;
  --accent-purple: #bb00ff;
  --accent-cyan: #00ffff;

  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 50vw;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
}



/* The Himalayan Glassmorphism Block */
.frosted-glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Base Pill Navigation */
.nav-pill {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  border-radius: 40px;
  z-index: 1000;
}

/* Master Keyframes */
@keyframes breathing-gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Heavy Elastic Tap Constraint */
.elastic-tap {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.elastic-tap:active {
  transform: scale(0.92);
}


.logo {
  font-family: 'Saint George', sans-serif !important;
  letter-spacing: 2px;
  color: #fff;
  font-size: 2rem;
}

a {
  text-decoration: none !important;
  color: inherit;
}

/* Hidden Scrollbar */
::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  display: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.y2k-pixel {
  font-family: 'Press Start 2P', cursive !important;
  letter-spacing: 0 !important;
  text-shadow: 2px 2px 0px var(--accent-blue) !important;
  text-transform: uppercase;
}

p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
}

/* Sleek, Proportionate Mobile Nav */
.mobi-nav {
  display: flex !important;
  justify-content: space-evenly;
  align-items: center;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 340px;
  height: 64px;
  background-color: #262626;
  z-index: 99999;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 0 8px;
}

.mobi-nav a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #888;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
}

.mobi-nav a.active {
  background-color: var(--text-primary);
  color: #000;
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.mobi-nav a:hover:not(.active) {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.1);
}

.mobi-nav i {
  font-size: 22px;
  pointer-events: none;
}

/* Rich Widgets */
.z-widget {
  background-color: var(--panel-bg);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: none;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  height: 100%;
}

.z-widget:active {
  transform: scale(0.97);
}

/* Playful Solid Backgrounds */
.z-widget.tint-yellow {
  background-color: #FFD700;
  color: #111 !important;
}

.tint-yellow .text-dark,
.tint-yellow .bi {
  color: #111 !important;
}

/* Golden Yellow */


.z-widget.tint-pink {
  background-color: #CC0000;
  color: white !important;
}

.tint-pink .text-dark,
.tint-pink .bi {
  color: white !important;
}

/* Make internal elements white for contrast on royal red */


.z-widget.tint-green {
  background-color: #fafafa;
  color: #111 !important;
}

.tint-green .text-dark,
.tint-green .bi {
  color: #111 !important;
}

/* Silver/White */


.z-widget.tint-blue {
  background: var(--accent-blue);
  color: #111;
}

.z-widget.tint-purple {
  background-color: #FFFFFF;
  color: #111 !important;
}

.tint-purple .text-dark,
.tint-purple .bi {
  color: #111 !important;
}

/* Odata White */


.z-widget.tint-orange {
  background-color: #FF6600;
  color: white !important;
}

.tint-orange .text-dark,
.tint-orange .bi {
  color: white !important;
}

/* Deep Orange */


.z-widget.tint-cyan {
  background-color: #003399;
  color: white !important;
}

.tint-cyan .text-dark,
.tint-cyan .bi {
  color: white !important;
}

/* Royal Blue */


.z-widget.tint-yellow h1,
.z-widget.tint-yellow h2,
.z-widget.tint-yellow h3,
.z-widget.tint-yellow h4,
.z-widget.tint-pink h1,
.z-widget.tint-pink h2,
.z-widget.tint-pink h3,
.z-widget.tint-pink h4,
.z-widget.tint-green h1,
.z-widget.tint-green h2,
.z-widget.tint-green h4,
.z-widget.tint-blue h1,
.z-widget.tint-blue h4,
.z-widget.tint-purple h1,
.z-widget.tint-purple h4,
.z-widget.tint-orange h1,
.z-widget.tint-orange h4 {
  color: #111 !important;
}

.z-widget.tint-yellow p,
.z-widget.tint-pink p,
.z-widget.tint-green p,
.z-widget.tint-blue p,
.z-widget.tint-purple p,
.z-widget.tint-orange p {
  color: #222 !important;
  font-weight: 600;
  opacity: 0.85;
}

/* Icon Bubbles */
.z-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: #333;
  color: #fff;
  margin-bottom: 20px;
}

.z-widget.tint-yellow .z-icon-circle,
.z-widget.tint-pink .z-icon-circle,
.z-widget.tint-green .z-icon-circle,
.z-widget.tint-blue .z-icon-circle,
.z-widget.tint-purple .z-icon-circle,
.z-widget.tint-orange .z-icon-circle {
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
}

.z-widget.solid-dark {
  background: #111;
  color: #fff;
  border-radius: var(--radius-lg);
  border: 4px solid #111 !important;
  box-shadow: 6px 6px 0 #111 !important;
}

.z-btn-dark {
  background-color: #111;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  font-weight: 800;
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.75);
  transition: all 0.15s ease-out;
}

.z-btn-dark:hover {
  transform: translateY(2px) translateX(2px);
  box-shadow: 2px 2px 0 rgba(255, 255, 255, 0.75);
}

.z-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 1rem;
  background-color: #111;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  cursor: pointer;
}

.z-pill.active {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.z-pill:hover {
  transform: translateY(-2px) scale(1.05);
  filter: brightness(1.1);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.z-pill.tint-blue {
  background-color: var(--accent-blue);
  color: #111;
}

.z-pill.tint-pink {
  background-color: var(--accent-pink);
  color: #111;
}

.z-pill.tint-green {
  background-color: var(--accent-green);
  color: #111;
}

.z-pill.tint-yellow {
  background-color: var(--accent-yellow);
  color: #111;
}

.z-pill.tint-purple {
  background-color: var(--accent-purple);
  color: #111;
}

.z-pill.tint-orange {
  background-color: var(--accent-orange);
  color: #111;
}

.z-pill.tint-cyan {
  background-color: var(--accent-cyan);
  color: #111;
}

.h-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.h-scroller>* {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Carousel / Mood Cards - Inheriting bright tints */
.carousel-wrap {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 5px 20px 5px;
  margin: 0 -16px;
  padding: 10px 16px;
  scrollbar-width: none;
}

.carousel-card {
  width: 140px;
  height: 160px;
  scroll-snap-align: start;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  padding: 16px;
  border: none;
  background-color: antiquewhite;
}

.carousel-card:active {
  transform: scale(0.95);
}

.carousel-card.tint-purple,
.carousel-card.tint-blue,
.carousel-card.tint-green,
.carousel-card.tint-yellow,
.carousel-card.tint-orange,
.carousel-card.tint-pink,
.carousel-card.tint-cyan {
  color: #111;
}

.carousel-card .c-icon {
  font-size: 38px;
  margin-bottom: 12px;
  color: #111;
}

/* Grid for Explore */
.z-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

@media (min-width: 768px) {
  .z-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
  }
}

.loader-mask {
  display: none !important;
}

.navbar {
  background: transparent;
  padding: 20px 0;
}

.offcanvas {
  background-color: var(--bg-dark);
}

.btn-close {
  filter: invert(1);
}

/* Masonry for Explore */
.z-masonry {
  column-count: 2;
  column-gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 30px;
}

.z-masonry>a {
  display: inline-block;
  width: 100%;
  margin-bottom: 16px;
  break-inside: avoid;
}

@media (min-width: 768px) {
  .z-masonry {
    column-count: 3;
    column-gap: 24px;
  }

  .z-masonry>a {
    margin-bottom: 24px;
  }
}

/* DESKTOP NAVBAR SYNC */
@media (min-width: 992px) {
  .mobi-nav {
    display: none !important;
  }
}

.navbar.fixed-top {
  background: #111 !important;
  padding: 12px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 1050;
}

body {
  padding-top: 80px;
}

.bento-card h3,
.bento-card p {
  color: #111 !important;
  /* Force high contrast for dark text */
}

/* V6 POLISH OVERRIDES */
@media (max-width: 991px) {
  .navbar.fixed-start {
    display: none !important;
  }
}

@media (max-width: 575px) {

  .bento-grid,
  .journal-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .journal-card {
    padding: 12px;
    min-height: 140px;
    border-radius: 12px;
  }

  .j-card-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }

  .j-card-content {
    font-size: 0.9rem;
  }

  .j-card-date {
    padding: 3px 8px;
    font-size: 0.7rem;
    margin-bottom: 10px;
  }

  .bento-card {
    padding: 15px;
    min-height: 150px;
    border-radius: 20px;
  }

  .bento-icon {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .bento-card h3 {
    font-size: 1.2rem !important;
  }

  .bento-card p {
    font-size: 0.9rem !important;
  }

  .vision-masonry {
    column-count: 2 !important;
    column-gap: 10px !important;
  }

  .vision-card {
    padding: 8px !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
  }
}



.z-pill {
  color: #111 !important;
}

/* Ensure grey tablets have strict black text */
.layout-header-box {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}



.fade-in-page {
  animation: pageFadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes pageFadeIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ROYAL RAINBOW PALETTE */
.rb-blue {
  background-color: #0c61ac !important;
  color: white !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.rb-blue .text-dark,
.rb-blue .bi {
  color: white !important;
}

.rb-gold {
  background-color: #ffd902 !important;
  color: #111 !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.rb-gold .text-dark,
.rb-gold .bi {
  color: #111 !important;
}

.rb-pink {
  background-color: #FF1493 !important;
  color: white !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.rb-pink .text-dark,
.rb-pink .bi {
  color: white !important;
}

.rb-green {
  background-color: #04bd7f !important;
  color: white !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.rb-green .text-dark,
.rb-green .bi {
  color: white !important;
}

.rb-yellow {
  background-color: #FFCE00 !important;
  color: #111 !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.rb-yellow .text-dark,
.rb-yellow .bi {
  color: #111 !important;
}

.rb-purple {
  background-color: #9b5dd8 !important;
  color: white !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.rb-purple .text-dark,
.rb-purple .bi {
  color: white !important;
}

.rb-grey {
  background-color: #999999 !important;
  color: white !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.rb-grey .text-dark,
.rb-grey .bi {
  color: white !important;
}

.rb-red {
  background-color: crimson !important;
  color: white !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.rb-red .text-dark,
.rb-red .bi {
  color: white !important;
}

/* Fix icon visibility */
.z-icon-circle .bi {
  color: inherit !important;
}

/* Fix bento icon visibility */
.bento-icon .bi {
  color: inherit !important;
}