@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&family=Noto+Serif+Devanagari:wght@400;500;600&family=Mallanna&display=swap");

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

  /* :root {
    --cream: #f5f0e8;
    --cream-dark: #ede8dc;
    --gold: #c8a84b;
    --gold-light: #d4b86a;
    --gold-dark: #a8882b;
    --brown-dark: #4a3018;
    --text-primary: #2c1e0f;
    --text-secondary: #6b5a45;
    --text-muted: #9b8a75;
    --border: #ddd5c5;
  } */
  :root {
    --cream: #f5f0e8;
    --cream-dark: #ede8dc;
    --gold: #c8a84b;
    --gold-light: #d4b86a;
    --gold-dark: #a8882b;
    --brown-dark: #4a3018;
    --sage: #5a6b4e;
    --sage-dark: #3d4e33;
    --text-primary: #2c1e0f;
    --text-secondary: #6b5a45;
    --text-muted: #9b8a75;
    --border: #ddd5c5;
    --shadow: rgba(107, 78, 42, 0.12);
  }
  html {
    font-size: 18px;
  }

  body {
    font-family: "Mallanna", sans-serif;
    background-color: var(--cream);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
  }

  ::-webkit-scrollbar {
    width: 6px;
  }
  ::-webkit-scrollbar-track {
    background: var(--cream-dark);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
  }

  a {
    text-decoration: none;
    color: inherit;
  }
  button {
    cursor: pointer;
    font-family: "Mallanna", sans-serif;
  }
  img {
    max-width: 100%;
  }

  /* NAVBAR */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  }
  .navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
  }
  .navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
  }
  .navbar-logo-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 2px solid rgba(200, 168, 75, 0.6);
    background: linear-gradient(135deg, #fff8e8, #f0e8d0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Noto Serif Devanagari", serif;
    font-size: 1.4rem;
    color: #a8882b;
    line-height: 1;
    box-shadow: 0 2px 12px rgba(200, 168, 75, 0.2);
    flex-shrink: 0;
    padding-top: 10px;
  }
  .navbar-logo-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
    line-height: 1.2;
  }
  .navbar-logo-sub {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    color: var(--gold-dark);
    text-transform: uppercase;
    font-weight: 600;
  }
  .navbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .navbar-links a {
    font-family: "Crimson Pro", serif;
    font-size: 1.05rem;
    padding: 4px 12px;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    transition: all 0.2s;
  }
  .navbar-links a:hover,
  .navbar-links a.active {
    color: var(--gold-dark);
    border-bottom-color: var(--gold);
    font-weight: 600;
  }
  .navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .navbar-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: border-color 0.2s;
  }
  .navbar-icon-btn:hover {
    border-color: var(--gold);
  }
  .hamburger {
    display: none;
  }

  /* MOBILE NAV */
  .mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
  .mobile-menu.open {
    display: block;
  }
  .mobile-menu a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--cream-dark);
    font-family: "Crimson Pro", serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
  }
  .mobile-menu a.active {
    color: var(--gold-dark);
    font-weight: 600;
  }

  /* HERO BANNER */
  .hero-banner {
    position: relative;
    overflow: hidden;
    padding: 40px 32px 56px;
    background-size: cover;
    background-position: center;
  }
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(10, 18, 30, 0.55) 0%,
      rgba(10, 18, 30, 0.72) 60%,
      rgba(10, 18, 30, 0.92) 100%
    );
  }
  .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
  }
  .hero-badge {
    display: inline-block;
    background: rgba(200, 168, 75, 0.2);
    border: 1px solid rgba(200, 168, 75, 0.6);
    color: #f0d080;
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 16px;
  }
  .hero-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    color: white;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
  }
  .hero-title span {
    color: var(--gold);
    font-style: italic;
  }
  .hero-desc {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 12px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
  }
  .hero-divider-line {
    height: 1px;
    width: 48px;
    background: rgba(200, 168, 75, 0.4);
  }
  .hero-divider-om {
    font-family: "Noto Serif Devanagari", serif;
    color: rgba(200, 168, 75, 0.7);
    font-size: 1.1rem;
  }

  /* SECTION */
  .section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 16px;
  }
  .section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fff8e8, #fffbf0);
    border: 1px solid var(--gold);
    color: var(--gold-dark);
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .section-title {
    font-family: "Crimson Pro", serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2rem);
    color: var(--text-primary);
  }
  .section-sub {
    color: var(--text-muted);
    margin-top: 6px;
  }

  /* DEITY GRID */
  .deity-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 24px;
  }
  .deity-card {
    text-align: center;
    cursor: pointer;
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 24px 16px;
    transition: all 0.3s;
  }
  .deity-card:hover {
    border-color: var(--gold);
    box-shadow: 0 6px 24px rgba(200, 168, 75, 0.25);
    transform: translateY(-4px);
  }
  .deity-emoji {
    font-size: 2rem;
    margin-bottom: 8px;
  }
  .deity-name {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.2rem;
    font-weight: 600;
  }
  .deity-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
  }

  /* PRACTICES GRID */
  .practices-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
  .practice-card {
    border-radius: 16px;
    padding: 32px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
  }
  .practice-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  }
  .practice-icon {
    font-size: 3rem;
    margin-bottom: 16px;
  }
  .practice-title {
    font-family: "Cormorant Garamond", serif;
    color: white;
    font-size: 2rem;
    font-weight: 500;
  }
  .practice-desc {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
  }
  .practice-om {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: "Noto Serif Devanagari", serif;
    color: rgba(200, 168, 75, 0.2);
    font-size: 5rem;
    line-height: 1;
    user-select: none;
  }

  /* QUOTE SECTION */
  .quote-section {
    background: #f4efe6;
    padding: 64px 16px;
  }
  .quote-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid #d6c7a1;
    border-radius: 12px;
    padding: 32px 24px;
    background: linear-gradient(135deg, #faf6ee, #efe6d6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  .quote-images {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
  }
  .quote-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
  }
  .quote-marks {
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.2;
  }
  .quote-text {
    font-family: "Noto Serif Devanagari", serif;
    font-size: clamp(1.87rem, 2.5vw, 1.4rem);
    line-height: 1.8;
    color: var(--text-primary);
  }
  .quote-author {
    margin-top: 20px;
    font-weight: 600;
    color: #5c4a2d;
  }

  /* EVENTS */
  .events-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
  }
  .event-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
  }
  .event-card:hover {
    box-shadow: 0 8px 32px rgba(107, 78, 42, 0.2);
    transform: translateY(-2px);
  }
  .event-inner {
    display: grid;
    grid-template-columns: 1fr;
  }
  .event-emoji {
    background: linear-gradient(135deg, #1a2c1e, #2a4a30);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    padding: 32px;
  }
  .event-body {
    padding: 20px;
  }
  .event-badges {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    color: white;
  }
  .badge-inperson {
    background: #7c3aed;
  }
  .badge-online {
    background: #2563eb;
  }
  .badge-open {
    background: #dcfce7;
    color: #16a34a;
  }
  .event-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.3rem;
    margin-bottom: 6px;
  }
  .event-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
  }
  .event-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
  }
  .btn-gold {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #c8a84b, #a8882b);
    color: white;
    border: none;
    border-radius: 999px;
    font-family: "Mallanna", sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
  }
  .btn-gold:hover {
    box-shadow: 0 4px 16px rgba(200, 168, 75, 0.4);
  }

  /* MANTRA PAGE */
  .mantra-selector {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 32px;
  }
  .mantra-card {
    cursor: pointer;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    background: linear-gradient(145deg, #fffdf5, #f5ead0);
    border: 2px solid #e0d0a8;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  .mantra-card.active {
    border-color: var(--gold);
    box-shadow: 0 6px 24px rgba(200, 168, 75, 0.35);
  }
  .mantra-card-emoji {
    font-size: 2.5rem;
    margin-bottom: 8px;
  }
  .mantra-card-deity {
    font-family: "Crimson Pro", serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
  }
  .mantra-card.active .mantra-card-deity {
    color: var(--gold-dark);
  }
  .mantra-card-name {
    font-family: "Noto Serif Devanagari", serif;
    font-size: 0.6rem;
    color: #8b6f3a;
    margin-top: 4px;
  }

  .mantra-main {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
  }
  .counter-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(107, 78, 42, 0.12);
    text-align: center;
    padding: 32px 24px;
  }
  .mantra-text-display {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--cream-dark);
  }
  .mantra-devanagari {
    font-family: "Noto Serif Devanagari", serif;
    font-size: 2rem;
    color: var(--text-primary);
  }
  .mantra-roman {
    font-family: "Crimson Pro", serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
  }
  .mantra-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
  }
  .ring-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
  }
  .ring-wrap svg {
    transform: rotate(-90deg);
  }
  .ring-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
  .ring-count-num {
    font-family: "Crimson Pro", serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
  }
  .ring-count-of {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
  }
  .progress-bar {
    width: 100%;
    background: var(--cream-dark);
    border-radius: 999px;
    height: 6px;
    margin-bottom: 24px;
  }
  .progress-fill {
    height: 100%;
    background: linear-gradient(to right, #c8a84b, #d4b86a);
    border-radius: 999px;
    transition: width 0.3s;
  }
  .counter-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
  }
  .btn-japa {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #c8a84b, #a8882b);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
  }
  .btn-japa:hover {
    box-shadow: 0 6px 20px rgba(200, 168, 75, 0.5);
    transform: translateY(-2px);
  }
  .btn-reset {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold-dark);
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
  }
  .btn-reset:hover {
    background: var(--gold);
    color: white;
  }
  .complete-msg {
    margin-top: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff8e8, #fffbf0);
    border: 1px solid var(--gold);
    border-radius: 12px;
    color: var(--gold-dark);
    font-size: 0.9rem;
    font-weight: 600;
  }

  .audio-card {
    background: linear-gradient(135deg, #2c1e0f, #1a1008);
    border-radius: 24px;
    color: white;
    padding: 32px;
  }
  .audio-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
  }
  .audio-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 2px solid rgba(200, 168, 75, 0.4);
  }
  .audio-deity {
    font-family: "Crimson Pro", serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--gold);
  }
  .audio-mantra {
    font-family: "Noto Serif Devanagari", serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
  }
  .seekbar-wrap {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    margin-bottom: 8px;
    cursor: pointer;
  }
  .seekbar-fill {
    height: 100%;
    background: linear-gradient(to right, #c8a84b, #d4b86a);
    border-radius: 999px;
    transition: width 0.1s;
  }
  .time-row {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin-bottom: 24px;
  }
  .audio-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
  }
  .btn-skip {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }
  .btn-skip:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  .btn-play {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c8a84b, #a8882b);
    border: none;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }
  .btn-play:hover {
    box-shadow: 0 6px 20px rgba(200, 168, 75, 0.5);
    transform: translateY(-2px);
  }

  .about-box {
    background: var(--cream-dark);
    border-radius: 16px;
    padding: 24px;
  }
  .about-box h4 {
    font-family: "Crimson Pro", serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  .about-box p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
  }
  .tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .tag {
    background: white;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
  }

  /* FOOTER */
  footer {
    background: linear-gradient(180deg, #1a1008 0%, #2c1a0a 60%, #1a1008 100%);
    padding: 48px 32px 24px;
  }
  .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
  }
  .footer-logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 2px solid rgba(200, 168, 75, 0.6);
    background: linear-gradient(135deg, #fff8e8, #f0e8d0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Noto Serif Devanagari", serif;
    font-size: 1.4rem;
    color: white;
    color: #a8882b;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
  }
  .footer-brand-title {
    font-weight: 700;
    font-size: 1.3rem;
    color: #f5f0e8;
    line-height: 1.2;
  }
  .footer-brand-sub {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: #cbae5b;
    text-transform: uppercase;
    font-weight: 600;
  }
  .footer-desc {
    color: #6b5a45;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 16px 0;
    max-width: 260px;
  }
  .footer-sanskrit {
    font-family: "Noto Serif Devanagari", serif;
    color: #cbae5b;
    font-size: 0.85rem;
    margin-bottom: 20px;
  }
  .footer-socials {
    display: flex;
    gap: 10px;
  }
  .social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b5a45;
    transition: all 0.2s;
  }
  .social-btn:hover {
    color: #cbae5b;
    border-color: rgba(200, 168, 75, 0.4);
  }
  .footer-col h4 {
    font-family: "Cormorant Garamond", serif;
    font-size: 0.9rem;
    color: #cbae5b;
    margin-bottom: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
  }
  .footer-col a,
  .footer-col span {
    display: block;
    color: #6b5a45;
    font-size: 0.95rem;
    padding: 4px 0;
    transition: color 0.2s;
  }
  .footer-col a:hover {
    color: #cbae5b;
  }
  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 24px auto 0;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #cbae5b;
    font-size: 0.85rem;
  }

  /* COMING SOON */
  .coming-soon {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .coming-soon-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }
  .coming-soon-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.6),
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.8)
    );
  }
  .coming-soon-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px;
  }
  .coming-soon-om {
    font-family: "Noto Serif Devanagari", serif;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 16px;
  }
  .coming-soon-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    color: white;
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 16px;
  }
  .coming-soon-title span {
    color: var(--gold);
    font-style: italic;
  }
  .coming-soon-desc {
    color: rgba(255, 255, 255, 0.6);
    max-width: 400px;
    margin: 0 auto 32px;
  }
  .btn-visit {
    display: inline-block;
    background: var(--gold);
    color: #1a0f00;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 999px;
    transition: all 0.2s;
    font-size: 0.9rem;
  }
  .btn-visit:hover {
    background: #b8983b;
  }

  /* RESPONSIVE */
  @media (min-width: 640px) {
    .deity-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    .practices-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .events-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .mantra-selector {
      grid-template-columns: repeat(3, 1fr);
    }
    .event-inner {
      grid-template-columns: 160px 1fr;
    }
  }
  @media (min-width: 1024px) {
    .deity-grid {
      grid-template-columns: repeat(5, 1fr);
    }
    .mantra-selector {
      grid-template-columns: repeat(5, 1fr);
    }
    .mantra-main {
      grid-template-columns: 1fr 1fr;
    }
    .footer-inner {
      grid-template-columns: 2fr 1fr 1fr 1.2fr;
    }
    .footer-bottom {
      flex-direction: row;
      justify-content: space-between;
    }
  }
  @media (max-width: 1023px) {
    .navbar-links {
      display: none;
    }
    .hamburger {
      display: flex;
    }
  }
  @media (max-width: 639px) {
    .navbar-inner {
      padding: 0 12px;
      height: 60px;
    }
    .navbar-logo-icon {
      width: 42px;
      height: 42px;
      font-size: 1.2rem;
      flex-shrink: 0;
    }
    .navbar-logo-title {
      font-size: 1rem;
    }
  }

  /* ── ABOUT PAGE ── */

  /* Story + Stats two-column layout */
  .about-story-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
    align-items: start;
    margin-bottom: 0;
  }
  @media (min-width: 1024px) {
    .about-story-grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  /* Story card with gold left border */
  .about-story-card {
    background: linear-gradient(135deg, #f5f0e8, #fffbf0);
    border-left: 4px solid var(--gold);
    padding: 24px 20px 24px 24px;
    border-radius: 0 16px 16px 0;
  }
  .about-story-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
  }

  /* Stats 2x2 grid */
  .about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .about-stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
  }
  .about-stat-card:hover {
    border-color: var(--gold);
    box-shadow: 0 6px 20px rgba(200, 168, 75, 0.2);
    transform: translateY(-3px);
  }
  .about-stat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
  }
  .about-stat-title {
    font-family: "Crimson Pro", serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
  }
  .about-stat-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
  }

  /* Core Values grid */
  .about-values-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
  }
  @media (min-width: 1024px) {
    .about-values-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  .about-value-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
  }
  .about-value-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(107, 78, 42, 0.15);
  }
  .about-value-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #fff8e8, #fffbf0);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
  }
  .about-value-title {
    font-family: "Crimson Pro", serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
  }
  .about-value-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
  }

  /* Timeline */
  .timeline-wrap {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 16px;
  }
  .timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #c8a84b, #d4b86a);
    transform: translateX(-50%);
  }
  .timeline-row {
    display: flex;
    margin-bottom: 32px;
    position: relative;
  }
  .timeline-right {
    justify-content: flex-end;
    padding-right: calc(50% + 24px);
  }
  .timeline-left {
    justify-content: flex-start;
    padding-left: calc(50% + 24px);
  }
  .timeline-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: 100%;
    transition: box-shadow 0.3s;
  }
  .timeline-card:hover {
    box-shadow: 0 6px 20px rgba(107, 78, 42, 0.15);
  }
  .timeline-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }
  .timeline-icon {
    font-size: 1.4rem;
  }
  .timeline-year {
    background: linear-gradient(135deg, #c8a84b, #a8882b);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
  }
  .timeline-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 6px;
  }
  .timeline-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
  }
  .timeline-dot {
    position: absolute;
    left: 50%;
    top: 22px;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 2px solid white;
    box-shadow: 0 0 0 3px rgba(200, 168, 75, 0.3);
  }

  /* Mobile timeline — stack to single column */
  @media (max-width: 639px) {
    .timeline-line {
      left: 16px;
    }
    .timeline-right,
    .timeline-left {
      padding-left: 40px;
      padding-right: 0;
      justify-content: flex-start;
    }
    .timeline-dot {
      left: 16px;
    }
  }

  /* ── ARTICLES PAGE ── */

  .articles-tabs {
    display: inline-flex;
    background: white;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
  }
  .articles-tab {
    padding: 8px 20px;
    border-radius: 999px;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.2s;
    font-family: "Mallanna", sans-serif;
  }
  .articles-tab.active {
    background: linear-gradient(135deg, #c8a84b, #a8882b);
    color: white;
    font-weight: 600;
  }

  /* Loading / error / empty state */
  .articles-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 16px;
    color: var(--text-muted);
    gap: 12px;
  }
  .articles-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--cream-dark);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  /* Articles grid */
  .articles-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  /* Written / Video card */
  .article-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e8dfc8;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
  }
  .article-card:hover {
    box-shadow: 0 8px 28px rgba(107, 78, 42, 0.18);
    transform: translateY(-4px);
  }
  .article-card-banner {
    position: relative;
    height: 176px;
    overflow: hidden;
    background: linear-gradient(135deg, #2c1e0f, #4a3018);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .article-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .article-card-img-fallback {
    font-size: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
  .article-card-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .article-card-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  .article-card-badges {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
  }
  .article-badge {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
  }
  .article-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .article-card-title {
    font-family: "Crimson Pro", serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
  }
  .article-card-desc {
    color: #7a6a55;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
  }
  .article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ede8dc;
    padding-top: 12px;
    color: var(--gold-dark);
    font-size: 0.85rem;
    font-weight: 600;
  }

  /* Audio article card */
  .audio-article-card {
    background: linear-gradient(135deg, #1a0f00, #2c1e0f);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
  }
  .audio-article-card:hover {
    box-shadow: 0 8px 28px rgba(200, 168, 75, 0.25);
    transform: translateY(-4px);
  }
  .audio-article-thumb {
    height: 144px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
  }
  .audio-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .audio-article-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
  }
  .audio-article-play-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }
  .audio-article-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    color: #1a0f00;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(200, 168, 75, 0.5);
  }
  .audio-article-play-btn:hover {
    background: var(--gold-dark);
    transform: scale(1.08);
  }
  .audio-article-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .audio-article-title {
    font-family: "Crimson Pro", serif;
    font-weight: 700;
    color: white;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }
  .audio-article-desc {
    color: rgba(200, 168, 75, 0.6);
    font-size: 0.75rem;
    margin-bottom: 12px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    flex: 1;
  }
  .audio-article-range {
    width: 100%;
    height: 4px;
    cursor: pointer;
    margin-bottom: 4px;
    border-radius: 999px;
    outline: none;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    appearance: none;
    -webkit-appearance: none;
  }
  .audio-article-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
  }
  .audio-article-times {
    display: flex;
    justify-content: space-between;
    color: rgba(200, 168, 75, 0.5);
    font-size: 0.65rem;
    margin-bottom: 12px;
  }

  .article-back-btn:hover {
    opacity: 0.7;
  }
  .article-detail-title {
    font-family: "Crimson Pro", serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 16px;
  }
  .article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8dfc8;
  }
  .article-detail-body {
    color: #3d2e1e;
    font-size: 20px;
    line-height: 1.9;
    white-space: pre-line;
  }

  /* ── MEDITATION VIDEO REDESIGN ── */

  .vid-main-card {
    background: #0f0a04;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    width: 100%;
  }
  .vid-main-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px 16px;
    background: linear-gradient(135deg, #1a0f00, #2c1a08);
  }
  .vid-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  .vid-deity-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(200, 168, 75, 0.15);
    border: 1px solid rgba(200, 168, 75, 0.4);
    color: #d4b86a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 999px;
    width: fit-content;
  }
  .vid-now-title {
    font-family: "Crimson Pro", serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: white;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 480px;
  }
  .vid-now-author {
    color: rgba(200, 168, 75, 0.6);
    font-size: 0.78rem;
  }
  .vid-now-badge {
    flex-shrink: 0;
    background: linear-gradient(135deg, #c8a84b, #a8882b);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
    align-self: flex-start;
    margin-top: 2px;
  }
  .vid-frame-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    position: relative;
  }
  .vid-iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
  }
  .vid-frame-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0604;
  }

  .vid-grid-section {
    width: 100%;
  }
  .vid-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 2px;
  }
  .vid-grid-title {
    font-family: "Crimson Pro", serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c1e0f;
  }
  .vid-grid-count {
    font-size: 0.82rem;
    color: #9b8a75;
    font-weight: 600;
  }
  .vid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
  }
  .vid-card {
    background: white;
    border: 1.5px solid #e0d4b8;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    transition: all 0.22s;
    font-family: "Mallanna", sans-serif;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  .vid-card:hover {
    border-color: #c8a84b;
    box-shadow: 0 6px 20px rgba(200, 168, 75, 0.2);
    transform: translateY(-3px);
  }
  .vid-card.active {
    border-color: #c8a84b;
    background: linear-gradient(145deg, #fffdf5, #fdf5e0);
    box-shadow: 0 6px 24px rgba(200, 168, 75, 0.3);
  }
  .vid-card-thumb {
    height: 80px;
    background: linear-gradient(135deg, #1a0f00, #3a2510);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  .vid-card.active .vid-card-thumb {
    background: linear-gradient(135deg, #2c1a00, #c8a84b33);
  }
  .vid-card-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(200, 168, 75, 0.2);
    border: 1.5px solid rgba(200, 168, 75, 0.5);
    color: #d4b86a;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .vid-card.active .vid-card-num {
    background: linear-gradient(135deg, #c8a84b, #a8882b);
    border-color: transparent;
    color: white;
  }
  .vid-card-playing-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #c8a84b, #d4b86a);
    animation: vid-bar 1.2s ease-in-out infinite alternate;
  }
  @keyframes vid-bar {
    from {
      opacity: 0.5;
      transform: scaleX(0.7);
      transform-origin: left;
    }
    to {
      opacity: 1;
      transform: scaleX(1);
      transform-origin: left;
    }
  }
  .vid-card-body {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .vid-card-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2c1e0f;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .vid-card.active .vid-card-title {
    color: #a8882b;
  }
  .vid-card-author {
    font-size: 0.72rem;
    color: #9b8a75;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ── MEDITATION PAGE ── */

  .med-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
  }
  .med-empty {
    text-align: center;
    color: #9b8a75;
    padding: 40px 16px;
    font-size: 0.95rem;
  }

  .med-tab {
    padding: 8px 24px;
    border-radius: 999px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    font-family: "Mallanna", sans-serif;
    background: transparent;
    color: #6b5a45;
    transition: all 0.2s;
  }
  .med-tab.active {
    background: linear-gradient(135deg, #c8a84b, #a8882b);
    color: white;
    font-weight: 600;
  }

  /* Deity grid */
  .med-deity-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 40px;
  }
  @media (min-width: 640px) {
    .med-deity-grid {
      grid-template-columns: repeat(5, 1fr);
    }
  }

  .med-deity-card {
    border-radius: 16px;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid #e0d0a8;
    background: linear-gradient(145deg, #fffdf5, #f5ead0);
    transition: all 0.3s;
  }
  .med-deity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  }
  .med-deity-card.active {
    border-color: #c8a84b;
    box-shadow: 0 8px 28px rgba(200, 168, 75, 0.45);
    transform: translateY(-4px);
  }
  .med-deity-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
  }
  .med-deity-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s;
  }
  .med-deity-card:hover .med-deity-img {
    transform: scale(1.05);
  }
  .med-deity-info {
    padding: 8px;
    text-align: center;
  }
  .med-deity-name {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #2c1e0f;
    line-height: 1.2;
  }
  .med-deity-name.active {
    color: #a8882b;
  }
  .med-deity-sub {
    font-size: 0.72rem;
    color: #8b6f3a;
    font-style: italic;
    margin-top: 2px;
  }

  /* Content grid */

  .med-content-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
    align-items: start;
  }
  @media (min-width: 1024px) {
    .med-content-grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  /* Audio player card */
  .med-player-card {
    background: white;
    border: 1px solid #ddd5c5;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  .med-player-header {
    text-align: center;
    margin-bottom: 20px;
  }
  .med-player-title {
    font-family: "Crimson Pro", serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #2c1e0f;
  }
  .med-player-sub {
    color: #9b8a75;
    margin-top: 4px;
    font-size: 0.9rem;
  }

  .med-seekbar {
    height: 4px;
    background: #ddd5c5;
    border-radius: 999px;
    margin-bottom: 8px;
    cursor: pointer;
    position: relative;
  }
  .med-seekbar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #c8a84b, #d4b86a);
    border-radius: 999px;
    transition: width 0.1s;
  }
  .med-time-row {
    display: flex;
    justify-content: space-between;
    color: #9b8a75;
    font-size: 0.75rem;
    margin-bottom: 20px;
  }
  .med-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }
  .med-btn-skip {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ede8dc;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
  }
  .med-btn-skip:hover {
    background: #ddd5c5;
  }
  .med-btn-play {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c8a84b, #a8882b);
    color: white;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }
  .med-btn-play:hover {
    box-shadow: 0 6px 20px rgba(200, 168, 75, 0.5);
    transform: translateY(-2px);
  }

  /* Playlist card */
  .med-playlist-card {
    background: white;
    border: 1px solid #ddd5c5;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  .med-playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }
  .med-playlist-title {
    font-family: "Crimson Pro", serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c1e0f;
  }
  .med-playlist-count {
    color: #9b8a75;
    font-size: 0.85rem;
    font-weight: 600;
  }
  .med-playlist-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
  }

  .med-track {
    width: 100%;
    text-align: left;
    border-radius: 12px;
    border: 1px solid #ddd5c5;
    padding: 12px 16px;
    background: #faf7f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    font-family: "Mallanna", sans-serif;
  }
  .med-track:hover {
    border-color: rgba(200, 168, 75, 0.5);
  }
  .med-track.active {
    border-color: #c8a84b;
    background: #f9f4e6;
  }
  .med-track-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: #ede8dc;
    color: #9b8a75;
  }
  .med-track-num.active {
    background: linear-gradient(135deg, #c8a84b, #a8882b);
    color: white;
  }
  .med-track-info {
    min-width: 0;
  }
  .med-track-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #2c1e0f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Hide footer on small and medium screens */
  @media (max-width: 1023px) {
    footer {
      display: none;
    }
  }

  /* Range slider drag fix - track and thumb for all browsers */
  input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    cursor: pointer;
    background: transparent;
  }
  input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
  }
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    margin-top: -5px;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(200, 168, 75, 0.6);
    transition: transform 0.15s;
  }
  input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
  }
  input[type="range"]::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
  }
  input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    cursor: pointer;
  }

  /* ── MEDITATION VIDEO CARD ── */
  .med-video-card {
    padding: 0;
    overflow: hidden;
    background: white;
    border: 1px solid #ddd5c5;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: 100%;
  }
  .med-video-header {
    padding: 20px 28px 16px;
  }
  .med-video-stage {
    width: 100%;
    overflow: hidden;
    background: #000;
  }
  .med-video-stage iframe,
  .med-video-stage video,
  .med-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
    background: #000;
  }
  .med-video-meta {
    padding: 16px 28px 20px;
    border-top: 1px solid #ede8dc;
  }
  .med-video-title {
    font-family: "Crimson Pro", serif;
    font-weight: 700;
    font-size: 1rem;
    color: #2c1e0f;
  }
  .med-video-author {
    color: #9b8a75;
    font-size: 0.82rem;
    margin-top: 2px;
  }

  /* Fix med-content-grid children overflow */
  .med-content-grid > div {
    min-width: 0;
    width: 100%;
  }

  /* Ensure video card fills its column */
  #player-panel,
  #playlist-panel {
    min-width: 0;
  }

  /* Playlist card height matches video */
  .med-playlist-card {
    height: 100%;
    box-sizing: border-box;
  }

  /* ── PROFILE PAGE ── */
  .profile-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }
  @media (min-width: 1024px) {
    .profile-layout {
      grid-template-columns: 240px 1fr;
    }
  }

  /* Sidebar */
  .profile-sidebar {
    display: none;
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    position: sticky;
    top: 80px;
  }
  @media (min-width: 1024px) {
    .profile-sidebar {
      display: block;
    }
  }

  .profile-avatar-section {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--cream-dark);
    margin-bottom: 12px;
  }
  .profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #c8a84b, #d4b86a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 12px;
  }
  .profile-name {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
  }
  .profile-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
  }
  .profile-badge {
    display: inline-block;
    margin-top: 8px;
    background: linear-gradient(135deg, #fffbf0, #fff8e8);
    border: 1px solid var(--gold);
    border-radius: 999px;
    padding: 2px 12px;
    font-size: 0.72rem;
    color: var(--gold-dark);
    font-weight: 600;
  }

  .profile-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 12px;
    border: none;
    font-family: "Crimson Pro", serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    margin-bottom: 4px;
    background: transparent;
    color: var(--text-secondary);
  }
  .profile-nav-btn:hover {
    background: var(--cream-dark);
    color: var(--gold-dark);
  }
  .profile-nav-btn.active {
    background: linear-gradient(135deg, #fff8e8, #fffbf0);
    color: var(--gold-dark);
    font-weight: 600;
    border: 1px solid #e8d8b0;
  }
  .profile-signout-wrap {
    border-top: 1px solid var(--cream-dark);
    padding-top: 12px;
    margin-top: 12px;
  }
  .profile-signout {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 12px;
    border: none;
    font-family: "Crimson Pro", serif;
    font-size: 1rem;
    cursor: pointer;
    background: transparent;
    color: #dc2626;
    transition: all 0.2s;
    text-align: left;
  }
  .profile-signout:hover {
    background: #fef2f2;
  }

  /* Mobile avatar */
  .profile-mobile-avatar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
  }
  @media (min-width: 1024px) {
    .profile-mobile-avatar {
      display: none;
    }
  }
  .profile-avatar-sm {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #c8a84b, #d4b86a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
  }
  .profile-name-sm {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.1rem;
    font-weight: 600;
  }
  .profile-email-sm {
    font-size: 0.75rem;
    color: var(--text-muted);
  }

  /* Mobile tabs */
  .profile-mobile-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
  }
  @media (min-width: 1024px) {
    .profile-mobile-tabs {
      display: none;
    }
  }
  .profile-mobile-tab {
    padding: 8px 20px;
    border-radius: 999px;
    border: 2px solid var(--border);
    font-family: "Crimson Pro", serif;
    font-size: 0.9rem;
    cursor: pointer;
    background: white;
    color: var(--text-secondary);
    transition: all 0.2s;
  }
  .profile-mobile-tab.active {
    background: linear-gradient(135deg, #c8a84b, #a8882b);
    color: white;
    border-color: var(--gold);
    font-weight: 600;
  }

  /* Profile card */
  .profile-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 24px;
  }
  @media (min-width: 640px) {
    .profile-card {
      padding: 40px;
    }
  }
  .profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
  }
  .profile-card-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--text-primary);
  }
  .profile-edit-btn {
    padding: 8px 16px;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold-dark);
    border-radius: 999px;
    font-family: "Crimson Pro", serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
  }
  .profile-edit-btn:hover {
    background: var(--gold);
    color: white;
  }

  .profile-form-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
  }
  @media (min-width: 640px) {
    .profile-form-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  .profile-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
  }
  .profile-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--cream);
    font-family: "Mallanna", sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    cursor: default;
    box-sizing: border-box;
  }

  /* Preferences */
  .profile-sub-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
  }
  .profile-deity-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
  }
  @media (min-width: 640px) {
    .profile-deity-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  .profile-deity-card {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
  }
  .profile-deity-card:hover {
    border-color: var(--gold);
  }
  .profile-reminder-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    background: var(--cream);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-top: 10px;
  }
  .profile-change-btn {
    padding: 6px 16px;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold-dark);
    border-radius: 999px;
    font-family: "Crimson Pro", serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
  }
  .profile-change-btn:hover {
    background: var(--gold);
    color: white;
  }

  /* Achievements */
  .profile-achieve-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }
  .profile-achieve-count {
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 0.9rem;
  }
  .profile-achieve-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
  }
  @media (min-width: 640px) {
    .profile-achieve-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  .profile-achieve-card {
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    background: white;
    opacity: 0.6;
    transition: all 0.2s;
  }
  .profile-achieve-card.unlocked {
    border-color: var(--gold);
    background: linear-gradient(135deg, #fffbf0, white);
    opacity: 1;
  }
  .profile-achieve-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 78, 42, 0.12);
  }
  .profile-achieve-icon {
    font-size: 2rem;
    margin-bottom: 8px;
  }
  .profile-achieve-icon.grayscale {
    filter: grayscale(1);
  }
  .profile-achieve-name {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
  }
  .profile-achieve-name.unlocked {
    color: var(--text-primary);
  }
  .profile-achieve-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
  }
  .profile-achieve-badge {
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--gold-dark);
    font-weight: 600;
  }
}
