@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #0c1015;
  --card-bg: rgba(18, 23, 30, 0.85);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-active: rgba(212, 163, 115, 0.4);
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #d4a373;
  --accent-hover: #faedcd;
  --accent-dark: #b07d4b;
  --accent-glow: rgba(212, 163, 115, 0.22);
  --ring-track: rgba(255, 255, 255, 0.06);
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
}

.ambient-glow {
  position: fixed;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(212, 163, 115, 0.1) 0%, rgba(12, 16, 21, 0) 72%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 1.2s ease;
}

/* =========================================================
   NAVBAR COMPONENT & TAILWIND OVERRIDES
   ========================================================= */
body > nav,
nav,
nav header,
nav div,
nav section,
nav [class*="bg-"] {
  background-color: var(--bg) !important;
  border-color: var(--card-border) !important;
}

body > nav,
nav {
  width: 100% !important;
  position: relative !important;
  z-index: 100 !important;
  border-bottom: 1px solid var(--card-border) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

nav a,
nav span,
nav button,
nav i,
nav svg {
  color: #c9d1d9 !important;
  transition: color 0.2s ease;
}

nav a:first-child span,
nav a:first-child,
nav .text-xl,
nav [class*="font-bold"],
nav a strong {
  color: #ffffff !important;
}

nav a:hover,
nav button:hover,
nav a:hover i,
nav button:hover i {
  color: var(--accent) !important;
}

/* Dropdown Menus */
nav ul[class*="dropdown"],
nav .relative ul,
nav div[class*="absolute"] {
  background-color: #12171e !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7) !important;
  border-radius: 12px !important;
}

nav ul[class*="dropdown"] a,
nav .relative ul a,
nav div[class*="absolute"] a {
  color: #c9d1d9 !important;
}

nav ul[class*="dropdown"] a:hover,
nav .relative ul a:hover,
nav div[class*="absolute"] a:hover {
  background-color: rgba(212, 163, 115, 0.1) !important;
  color: var(--accent-hover) !important;
}

/* Mobile Hamburger Menu */
nav [id*="mobile-menu"],
nav .md\:hidden[class*="bg-"] {
  background-color: var(--bg) !important;
  border-top: 1px solid var(--card-border) !important;
}

/* =========================================================
   FOOTER COMPONENT & TAILWIND OVERRIDES
   ========================================================= */
body > footer,
footer,
footer div,
footer section,
footer [class*="bg-"] {
  background-color: var(--bg) !important;
  background-image: none !important;
  background: var(--bg) !important;
  border-color: var(--card-border) !important;
}

body > footer,
footer {
  width: 100% !important;
  border-top: 1px solid var(--card-border) !important;
  position: relative !important;
  z-index: 10 !important;
  margin-top: 4rem !important;
}

footer h2,
footer h3,
footer h4,
footer strong,
footer .text-lg,
footer [class*="font-bold"] {
  color: #ffffff !important;
  font-family: var(--font-heading) !important;
}

footer p,
footer span,
footer li,
footer a {
  color: var(--text-muted) !important;
  font-size: 0.9rem !important;
  transition: color 0.2s ease;
}

footer a:hover,
footer a:hover i,
footer a:hover svg {
  color: var(--accent) !important;
}

footer hr,
footer [class*="border-t"] {
  border-color: var(--card-border) !important;
}

/* =========================================================
   MAIN APP LAYOUT & TIMER CARD
   ========================================================= */
.page-container {
  position: relative;
  z-index: 1;
  width: 100% !important;
  max-width: 740px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 1.5rem 1.25rem 5rem 1.25rem;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.app-header {
  text-align: center !important;
  width: 100% !important;
  margin-bottom: 1.25rem;
}

.app-header h1 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.25rem auto 0 auto;
  max-width: 480px;
}

.timer-card {
  width: 100%;
  max-width: 490px;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 26px;
  padding: 1.75rem 1.5rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.65),
              inset 0 1px 0 rgba(255, 255, 255, 0.07);
  margin: 0 auto 3.5rem auto !important;
}

/* SVG Circular Dial */
.timer-display-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto 1.1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.timer-svg.dragging {
  cursor: grabbing;
}

.circle-track {
  stroke: var(--ring-track);
  stroke-width: 7;
  fill: none;
}

.circle-progress {
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
  fill: none;
  transform-origin: 130px 130px;
  transform: rotate(-90deg);
  transition: stroke-dashoffset 0.15s ease-out;
}

.drag-knob-group {
  cursor: grab;
}

.timer-svg.dragging .drag-knob-group {
  cursor: grabbing;
}

.circle-drag-glow {
  fill: rgba(212, 163, 115, 0.2);
  transition: r 0.2s ease, fill 0.2s ease;
}

.timer-svg.dragging .circle-drag-glow {
  fill: rgba(212, 163, 115, 0.35);
  r: 18;
}

.circle-drag-knob {
  fill: #ffffff;
  stroke: var(--accent);
  stroke-width: 3;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.timer-inner-text {
  position: relative;
  z-index: 2;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.time-digits {
  font-family: var(--font-heading);
  font-size: 3.3rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.session-status {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.2rem;
}

.drag-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Preset Chips */
.preset-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}

.preset-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.preset-btn.active {
  background: var(--accent);
  color: #121212;
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 2px 8px var(--accent-glow);
}

/* Interval Settings */
.interval-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.1rem;
  text-align: left;
}

.interval-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.section-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.interval-custom-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.interval-custom-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-border);
  color: #fff;
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
  width: 56px;
  font-size: 0.82rem;
  text-align: center;
  outline: none;
  font-family: var(--font-body);
}

.interval-custom-input:focus {
  border-color: var(--accent);
}

.interval-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.interval-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.76rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}

.interval-pill:hover {
  background: rgba(255, 255, 255, 0.08);
}

.interval-pill.active {
  background: var(--accent);
  color: #121212;
  border-color: var(--accent);
  font-weight: 600;
}

.interval-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.interval-info-icon {
  font-size: 0.85rem;
}

.interval-info-text {
  color: var(--accent);
  font-weight: 500;
}

/* Sound & Mute Toolbar */
.sound-mute-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 0.55rem 0.85rem;
  margin-bottom: 1.25rem;
}

.sound-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  transition: var(--transition);
}

.sound-preview-chip:hover {
  background: rgba(255, 255, 255, 0.06);
}

.preview-tag {
  font-size: 0.68rem;
  color: var(--accent);
  background: rgba(212, 163, 115, 0.12);
  border: 1px solid rgba(212, 163, 115, 0.25);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.2rem;
}

.mute-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.mute-label-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mute-switch-label input {
  display: none;
}

.mute-switch-slider {
  position: relative;
  width: 38px;
  height: 22px;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  transition: var(--transition);
}

.mute-switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: var(--transition);
}

.mute-switch-label input:checked + .mute-switch-slider {
  background-color: #e63946;
}

.mute-switch-label input:checked + .mute-switch-slider:before {
  transform: translateX(16px);
}

/* Primary Action Buttons */
.controls-wrap {
  display: flex !important;
  justify-content: center !important;
  gap: 0.85rem;
}

.btn {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.btn-primary {
  background: var(--accent);
  color: #121212;
  box-shadow: 0 4px 16px rgba(212, 163, 115, 0.35);
  flex: 1.3;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 163, 115, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--card-border);
  flex: 0.8;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.keyboard-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
}

.keyboard-hint kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  border-radius: 3px;
  padding: 0.08rem 0.35rem;
  font-size: 0.68rem;
  font-family: inherit;
  color: #fff;
}

/* =========================================================
   ARTICLE, TABLE & FAQ SECTIONS
   ========================================================= */
.seo-article {
  width: 100%;
  color: #c9d1d9;
  line-height: 1.75;
  font-size: 0.98rem;
  border-top: 1px solid var(--card-border);
  padding-top: 3.5rem;
}

.article-header {
  margin-bottom: 2.2rem;
  text-align: left;
}

.article-header h2 {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 0.9rem;
}

.lead-text {
  font-size: 1.05rem;
  color: #e6edf3;
  line-height: 1.75;
}

.article-section {
  margin-bottom: 2.6rem;
  text-align: left;
}

.article-section h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: #ffffff;
  margin-bottom: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.article-section p {
  margin-bottom: 1.15rem;
}

.article-section ul, 
.article-section ol {
  margin: 0.85rem 0 1.35rem 1.6rem;
}

.article-section li {
  margin-bottom: 0.55rem;
}

.article-section strong {
  color: #ffffff;
}

/* Cross-Link Card */
.cross-link-box {
  background: rgba(212, 163, 115, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.3rem;
  margin: 2rem 0;
  text-align: left;
}

.cross-link-text strong {
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.cross-link-text p {
  margin: 0;
  font-size: 0.92rem;
  color: #c9d1d9;
}

.cross-link-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.cross-link-text a:hover {
  color: var(--accent-hover);
}

/* Comparison Table */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.4rem 0 2rem 0;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: rgba(18, 23, 30, 0.7);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  min-width: 580px;
}

.comparison-table thead {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--card-border);
}

.comparison-table th {
  padding: 0.85rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  font-size: 0.82rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.comparison-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.18s ease;
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.comparison-table td {
  padding: 0.85rem 1rem;
  color: #c9d1d9;
  vertical-align: middle;
  line-height: 1.5;
}

.comparison-table td strong {
  color: #ffffff;
  font-weight: 600;
}

.comparison-table .badge-time {
  display: inline-block;
  background: rgba(212, 163, 115, 0.12);
  color: var(--accent);
  border: 1px solid rgba(212, 163, 115, 0.25);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
}

.comparison-table .badge-bell {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  color: #e6edf3;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  white-space: nowrap;
}

/* Privacy Callout */
.privacy-callout-card {
  background: linear-gradient(135deg, rgba(212, 163, 115, 0.08) 0%, rgba(18, 23, 30, 0.95) 100%);
  border: 1px solid rgba(212, 163, 115, 0.3);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  margin: 2.2rem 0;
  text-align: left;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6);
}

.privacy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.privacy-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.privacy-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.privacy-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
}

.privacy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.privacy-pill {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(212, 163, 115, 0.15);
  color: var(--accent);
  border: 1px solid rgba(212, 163, 115, 0.3);
  letter-spacing: 0.02em;
}

.privacy-body {
  font-size: 0.88rem;
  color: #c9d1d9;
  line-height: 1.65;
  margin: 0;
}

/* Tradition Info Cards */
.tradition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.tradition-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.15rem 1.2rem;
  transition: var(--transition);
}

.tradition-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
}

.tradition-card h4 {
  font-family: var(--font-heading);
  color: var(--accent);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.tradition-meta {
  font-size: 0.86rem;
  color: #c9d1d9;
  margin-bottom: 0.45rem;
  line-height: 1.55;
}

.meta-anchor {
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-heading);
  display: inline;
  margin-right: 0.3rem;
}

.scannable-list {
  list-style: none;
  margin: 1.2rem 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.scannable-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.95rem 1.15rem;
  transition: var(--transition);
}

.scannable-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
}

.scannable-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #c9d1d9;
  line-height: 1.6;
}

/* Accordion FAQ */
.faq-section {
  margin-top: 3.5rem;
  text-align: left;
}

.faq-section h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: rgba(212, 163, 115, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  user-select: none;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.25s ease;
  line-height: 1;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.15rem 1.25rem;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer p {
  color: #8b949e;
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

/* =========================================================
   MOBILE RESPONSIVENESS
   ========================================================= */
@media (max-width: 640px) {
  .page-container {
    padding: 1.5rem 1rem 3.5rem 1rem;
  }
  .app-header h1 {
    font-size: 1.75rem;
  }
  .timer-card {
    padding: 1.35rem 1.1rem 1.25rem 1.1rem;
  }
  .timer-display-wrap {
    width: 210px;
    height: 210px;
  }
  .time-digits {
    font-size: 2.85rem;
  }
  .tradition-grid {
    grid-template-columns: 1fr;
  }
  .article-header h2 {
    font-size: 1.55rem;
  }
  .faq-question {
    font-size: 0.96rem;
    padding: 1rem;
  }
  .privacy-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .privacy-callout-card {
    padding: 1.1rem;
    margin: 1.8rem 0;
  }
  .comparison-table th, 
  .comparison-table td {
    padding: 0.75rem 0.85rem;
    font-size: 0.82rem;
  }
}