/* ============================================================
   KARTAVYA YOGA — MAIN DESIGN SYSTEM
   "Grounded Earth Grunge Yoga"
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Caveat:wght@700&family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
  --color-bg:                  #F2EBDA;
  --color-surface:             #E8DFC8;
  --color-text:                #1C1A14;
  --color-text-muted:          #6B5F47;
  --color-primary:             #C8760A;
  --color-primary-hover:       #A85F05;
  --color-primary-highlight:   #F0D8B0;
  --color-secondary:           #3B5C3A;
  --color-secondary-highlight: #C8D9C7;
  --color-accent-red:          #8B2020;
  --color-gold:                #C5A945;
  --ink-shadow:                rgba(28, 26, 20, 0.25);
  --border-color:              rgba(28, 26, 20, 0.18);
  --font-display:              'Oswald', serif;
  --font-script:               'Caveat', cursive;
  --font-body:                 'Courier Prime', monospace;
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  2rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --max-width: 1280px;
  --nav-height: 68px;
}

[data-theme="dark"] {
  --color-bg:                  #141210;
  --color-surface:             #1C1A14;
  --color-text:                #E8DFC8;
  --color-text-muted:          #9A8B72;
  --color-primary:             #E8940F;
  --color-primary-hover:       #C8760A;
  --color-primary-highlight:   #2E1E00;
  --color-secondary:           #4A7348;
  --color-secondary-highlight: #152015;
  --ink-shadow:                rgba(232, 223, 200, 0.12);
  --border-color:              rgba(232, 223, 200, 0.12);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html { font-size: 16px; scroll-behavior: auto; }

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Global grain overlay — heavy */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.15'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  mix-blend-mode: multiply;
  opacity: 1;
}
[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: 0.06; }

/* Horizontal scan lines overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.035) 2px,
    rgba(0,0,0,0.035) 3px
  );
  mix-blend-mode: multiply;
}
[data-theme="dark"] body::after { mix-blend-mode: overlay; opacity: 0.4; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
::selection { background: var(--color-primary); color: #fff; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--color-surface); }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 0; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.font-display { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; }
.font-script  { font-family: var(--font-script); font-weight: 700; }
.font-body    { font-family: var(--font-body); }

/* Ink-bleed effect — heavy press */
.ink-bleed {
  text-shadow:
    2px  0px 2px rgba(28,26,20,0.60),
   -2px  0px 3px rgba(28,26,20,0.45),
    0px  2px 3px rgba(28,26,20,0.38),
    3px  2px 5px rgba(28,26,20,0.25),
   -3px -2px 5px rgba(28,26,20,0.20),
    5px  3px 9px rgba(28,26,20,0.14),
   -2px  4px 12px rgba(28,26,20,0.09),
    0px  0px 18px rgba(28,26,20,0.05);
}
[data-theme="dark"] .ink-bleed {
  text-shadow:
    2px  0px 2px rgba(232,223,200,0.5),
   -2px  0px 3px rgba(232,223,200,0.35),
    0px  2px 3px rgba(232,223,200,0.30),
    3px  2px 5px rgba(232,223,200,0.18),
   -3px -2px 5px rgba(232,223,200,0.14),
    5px  3px 9px rgba(232,223,200,0.09);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 12vw, 9rem);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-family: var(--font-script);
  font-size: clamp(2rem, 4vw, 4rem);
  color: var(--color-primary);
  line-height: 1.2;
}
.section-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tech-text {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

/* ============================================================
   HALFTONE PATTERN
   ============================================================ */

.halftone { position: relative; overflow: hidden; }
.halftone::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(28,26,20,0.24) 1.8px, transparent 1.8px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
  z-index: 1;
}
[data-theme="dark"] .halftone::after {
  background-image: radial-gradient(circle, rgba(232,223,200,0.12) 1.8px, transparent 1.8px);
  background-size: 5px 5px;
  mix-blend-mode: screen;
}

/* ============================================================
   TORN PAPER EDGES
   ============================================================ */

.torn-top {
  clip-path: polygon(
    0% 8px, 2.5% 2px, 5% 7px, 7.5% 0px, 10% 6px, 12.5% 2px, 15% 8px,
    17.5% 1px, 20% 5px, 22.5% 2px, 25% 8px, 27.5% 3px, 30% 7px,
    32.5% 0px, 35% 5px, 37.5% 2px, 40% 8px, 42.5% 1px, 45% 6px,
    47.5% 3px, 50% 8px, 52.5% 2px, 55% 7px, 57.5% 0px, 60% 5px,
    62.5% 3px, 65% 8px, 67.5% 1px, 70% 6px, 72.5% 3px, 75% 8px,
    77.5% 0px, 80% 5px, 82.5% 2px, 85% 7px, 87.5% 1px, 90% 5px,
    92.5% 3px, 95% 8px, 97.5% 1px, 100% 4px,
    100% 100%, 0% 100%
  );
}

.torn-bottom {
  clip-path: polygon(
    0% 0%, 100% 0%,
    100% calc(100% - 6px), 97.5% calc(100% - 1px), 95% calc(100% - 5px),
    92.5% calc(100% - 2px), 90% calc(100% - 7px), 87.5% 100%,
    85% calc(100% - 4px), 82.5% calc(100% - 1px), 80% calc(100% - 6px),
    77.5% 100%, 75% calc(100% - 3px), 72.5% calc(100% - 7px),
    70% calc(100% - 1px), 67.5% calc(100% - 5px), 65% 100%,
    62.5% calc(100% - 3px), 60% calc(100% - 7px), 57.5% calc(100% - 1px),
    55% calc(100% - 5px), 52.5% 100%, 50% calc(100% - 3px),
    47.5% calc(100% - 7px), 45% calc(100% - 1px), 42.5% calc(100% - 5px),
    40% 100%, 37.5% calc(100% - 3px), 35% calc(100% - 7px),
    32.5% calc(100% - 1px), 30% calc(100% - 5px), 27.5% 100%,
    25% calc(100% - 4px), 22.5% calc(100% - 7px), 20% calc(100% - 2px),
    17.5% calc(100% - 5px), 15% 100%, 12.5% calc(100% - 3px),
    10% calc(100% - 7px), 7.5% calc(100% - 1px), 5% calc(100% - 5px),
    2.5% 100%, 0% calc(100% - 4px)
  );
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* 1. Jitter — 8fps stop-motion */
@keyframes jitter {
  0%   { transform: translate(0px,0px)    rotate(0deg); }
  12%  { transform: translate(-3px,1px)  rotate(-0.4deg); }
  25%  { transform: translate(2px,-2px)  rotate(0.5deg); }
  37%  { transform: translate(-1px,3px)  rotate(-0.3deg); }
  50%  { transform: translate(3px,1px)   rotate(0.4deg); }
  62%  { transform: translate(-2px,-1px) rotate(-0.5deg); }
  75%  { transform: translate(1px,2px)   rotate(0.3deg); }
  87%  { transform: translate(-2px,-3px) rotate(0.4deg); }
  100% { transform: translate(0px,0px)    rotate(0deg); }
}
.jitter      { animation: jitter 0.32s steps(1) infinite; }
.jitter-slow { animation: jitter 0.65s steps(1) infinite; }
.jitter-med  { animation: jitter 0.48s steps(1) infinite; }

/* 2. Ticker scroll */
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 3. SVG draw-on */
@keyframes draw-on { 0% { stroke-dashoffset: 600; opacity: 0; } 5% { opacity: 1; } 100% { stroke-dashoffset: 0; } }

/* 4. Cut-in section reveal */
.section-reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.05s steps(1), transform 0.05s steps(1); }
.section-reveal.visible { opacity: 1; transform: translateY(0); }

/* 5. Glitch flash for CTA */
@keyframes glitch-flash {
  0%, 86%, 100% { filter: none; transform: none; clip-path: none; }
  87% { filter: hue-rotate(90deg)  saturate(500%) brightness(1.7); transform: translate(4px,0) skewX(-4deg);  clip-path: inset(10% 0 50% 0); }
  88% { filter: hue-rotate(-90deg) saturate(600%) brightness(0.7); transform: translate(-4px,1px);            clip-path: inset(65% 0 5% 0); }
  89% { filter: saturate(0) brightness(2.2); transform: translate(2px,-2px);                                  clip-path: inset(35% 0 25% 0); }
  90% { filter: hue-rotate(180deg) saturate(800%); transform: translate(-2px,0) skewX(2deg);                 clip-path: inset(20% 0 40% 0); }
  91% { filter: none; transform: translate(1px,0); clip-path: none; }
  92% { filter: none; transform: none; clip-path: none; }
}
.glitch-btn { animation: glitch-flash 3s steps(1) infinite; }

/* 6. Skeleton shimmer */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton {
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-primary-highlight) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s steps(10) infinite;
  border-radius: 2px;
  min-height: 1rem;
}

/* 7. Page cut-in */
@keyframes page-cut-in { from { opacity: 0; } to { opacity: 1; } }
.page-cut-in { animation: page-cut-in 0.05s steps(1) forwards; }

/* 8. Pulse dot (for live indicators) */
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.pulse-dot { animation: pulse-dot 1.5s steps(2) infinite; }

/* 9. Channel split — fires on section headings */
@keyframes channel-split {
  0%, 93%, 100% { text-shadow: inherit; filter: none; }
  94% { text-shadow: -5px 0 rgba(200,118,10,0.95), 5px 0 rgba(59,92,58,0.95); filter: brightness(1.15); }
  95% { text-shadow:  5px 0 rgba(200,118,10,0.85), -5px 0 rgba(59,92,58,0.85); }
  96% { text-shadow: -3px 0 rgba(200,118,10,0.7),   3px 0 rgba(59,92,58,0.7); }
  97% { text-shadow: inherit; filter: none; }
}

/* 10. Flicker — erratic opacity */
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20% { opacity: 0.82; } 21% { opacity: 0.35; } 23%, 24% { opacity: 0.9; } 55% { opacity: 0.7; }
}

/* 11. Stamp-in — slams into position */
@keyframes stamp-in {
  0%   { opacity: 0; transform: scale(1.05) rotate(-0.5deg) translate(3px,-5px); }
  60%  { opacity: 1; transform: scale(0.99) rotate(0.2deg)  translate(-1px,1px); }
  100% { opacity: 1; transform: scale(1)    rotate(0deg)    translate(0,0); }
}

/* 12. Ink drip — saffron drip on letters */
@keyframes ink-drip {
  0%, 80%, 100% { text-shadow: inherit; }
  85% { text-shadow: 0 6px 12px rgba(200,118,10,0.5), 0 12px 20px rgba(200,118,10,0.25); }
  90% { text-shadow: 0 8px 14px rgba(28,26,20,0.35); }
}

.channel-split { animation: channel-split 6s  steps(1) infinite; }
.flicker       { animation: flicker       8s  steps(1) infinite; }
.ink-drip-anim { animation: ink-drip      10s steps(1) infinite; }

/* ============================================================
   LAYOUT
   ============================================================ */

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-md); }
@media (min-width: 640px)  { .container { padding: 0 var(--space-lg); } }
@media (min-width: 1024px) { .container { padding: 0 3rem; } }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }

@media (min-width: 640px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.page { display: none; min-height: calc(100vh - var(--nav-height)); padding-top: var(--nav-height); }
.page.active { display: block; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border: none;
  border-radius: 0;
  min-height: 44px;
  min-width: 44px;
  position: relative;
  transition: transform 0.05s steps(1), box-shadow 0.05s steps(1);
  clip-path: polygon(
    0 4px, 2% 1px, 5% 3px, 8% 0, 12% 2px,
    88% 2px, 92% 0, 95% 3px, 98% 1px, 100% 4px,
    100% calc(100% - 4px), 98% calc(100% - 1px), 95% calc(100% - 3px), 92% 100%,
    8% 100%, 5% calc(100% - 3px), 2% calc(100% - 1px), 0 calc(100% - 4px)
  );
}
.btn:active { transform: translate(1px,1px) !important; box-shadow: none !important; }

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); transform: translate(-1px,-2px); box-shadow: 3px 4px 0 var(--color-text); }

.btn-secondary { background: var(--color-secondary); color: #fff; }
.btn-secondary:hover { transform: translate(-1px,-2px); box-shadow: 3px 4px 0 var(--color-text); }

.btn-outline { background: transparent; color: var(--color-text); box-shadow: inset 0 0 0 2px var(--color-text); }
.btn-outline:hover { background: var(--color-text); color: var(--color-bg); transform: translate(-1px,-2px); box-shadow: 3px 4px 0 var(--color-primary), inset 0 0 0 2px var(--color-text); }

.btn-danger { background: var(--color-accent-red); color: #fff; }
.btn-danger:hover { background: #6b1515; transform: translate(-1px,-2px); box-shadow: 3px 4px 0 var(--color-text); }

.btn-ghost { background: transparent; color: var(--color-primary); }
.btn-ghost:hover { background: var(--color-primary-highlight); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.72rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 0.9rem; }
.btn-full { width: 100%; }

/* ============================================================
   FORMS
   ============================================================ */

.form-group { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: var(--space-md); }

.form-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  font-family: var(--font-body);
}

.form-input, .form-textarea, .form-select {
  background: var(--color-surface);
  color: var(--color-text);
  border: none;
  border-bottom: 2px solid var(--color-text);
  border-left: 2px solid transparent;
  padding: 0.75rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
  outline: none;
  min-height: 44px;
  transition: border-color 0.05s steps(1), background 0.05s steps(1);
  appearance: none;
  border-radius: 0;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-bottom-color: var(--color-primary);
  border-left-color: var(--color-primary);
  background: var(--color-primary-highlight);
  outline: none;
}
.form-textarea { min-height: 110px; resize: vertical; }
.form-error { font-size: 0.72rem; color: var(--color-accent-red); margin-top: 0.2rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   BADGES & TAGS
   ============================================================ */

.badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  font-size: 0.62rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  border-radius: 0;
}
.badge-available { background: var(--color-secondary-highlight); color: var(--color-secondary); border: 1px solid var(--color-secondary); }
.badge-full      { background: rgba(139,32,32,0.1); color: var(--color-accent-red); border: 1px solid var(--color-accent-red); }
.badge-pending   { background: var(--color-primary-highlight); color: var(--color-primary); border: 1px solid var(--color-primary); }
.badge-confirmed { background: var(--color-secondary-highlight); color: var(--color-secondary); border: 1px solid var(--color-secondary); }
.badge-cancelled { background: rgba(139,32,32,0.1); color: var(--color-accent-red); border: 1px solid var(--color-accent-red); }
.badge-level     { background: var(--color-primary-highlight); color: var(--color-primary); border: 1px solid var(--color-primary); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.text-primary   { color: var(--color-primary)   !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-muted     { color: var(--color-text-muted)!important; }
.text-gold      { color: var(--color-gold)      !important; }
.text-red       { color: var(--color-accent-red)!important; }
.text-center    { text-align: center; }
.text-right     { text-align: right; }
.text-sm        { font-size: 0.85rem; }
.text-xs        { font-size: 0.72rem; }

.bg-surface  { background: var(--color-surface); }
.bg-primary  { background: var(--color-primary); }
.bg-dark     { background: var(--color-text); color: var(--color-bg); }

.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.items-start     { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.gap-sm          { gap: var(--space-sm); }
.gap-md          { gap: var(--space-md); }
.gap-lg          { gap: var(--space-lg); }
.flex-wrap       { flex-wrap: wrap; }
.flex-1          { flex: 1; }
.shrink-0        { flex-shrink: 0; }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.py-lg  { padding: var(--space-lg)  0; }
.py-xl  { padding: var(--space-xl)  0; }
.py-2xl { padding: var(--space-2xl) 0; }
.p-md   { padding: var(--space-md); }
.p-lg   { padding: var(--space-lg); }

.w-full   { width: 100%; }
.h-full   { height: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

.hidden          { display: none !important; }
.block           { display: block; }
.inline-block    { display: inline-block; }
.sr-only         { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.border-top { border-top: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }

@media (max-width: 767px)  { .hide-mobile  { display: none !important; } }
@media (min-width: 768px)  { .hide-desktop { display: none !important; } }

/* ============================================================
   DIVIDERS
   ============================================================ */

.torn-divider {
  width: 100%;
  height: 22px;
  background: var(--color-secondary);
  clip-path: polygon(
    0 0,
    3%  9px,  6%  3px, 9%  12px, 12% 2px,  15% 8px,  18% 1px,
    21% 14px, 24% 4px, 27% 10px, 30% 0,    33% 11px, 36% 3px,
    39% 9px,  42% 1px, 45% 13px, 48% 5px,  51% 10px, 54% 2px,
    57% 12px, 60% 4px, 63% 8px,  66% 0,    69% 11px, 72% 3px,
    75% 9px,  78% 1px, 81% 13px, 84% 5px,  87% 10px, 90% 2px,
    93% 12px, 96% 4px, 100% 8px,
    100% 100%, 0 100%
  );
  margin: var(--space-xl) 0;
  position: relative;
}
.torn-divider::before {
  content: '';
  position: absolute;
  top: 1px; left: 0; right: 0;
  height: 3px;
  background: rgba(200,118,10,0.25);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}
.section-label::before, .section-label::after { content: '—'; color: var(--color-primary); }

/* ============================================================
   TABLES
   ============================================================ */

.data-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.data-table th {
  text-align: left;
  padding: 0.6rem 0.8rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-text);
  background: var(--color-surface);
}
.data-table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--color-primary-highlight); }

/* Table wrapper for horizontal scroll on mobile */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ============================================================
   EMPTY STATES
   ============================================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  gap: var(--space-md);
  opacity: 0.6;
}
.empty-state-icon { font-size: 3rem; }
.empty-state-title { font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; }
.empty-state-desc  { font-size: 0.85rem; color: var(--color-text-muted); max-width: 300px; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */

.toast-container { position: fixed; bottom: 2rem; right: 1rem; z-index: 10000; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.2rem;
  background: var(--color-text);
  color: var(--color-bg);
  font-family: var(--font-body);
  font-size: 0.82rem;
  max-width: 340px;
  border-left: 4px solid var(--color-primary);
  animation: toast-in 0.05s steps(1) forwards;
}
.toast-success { border-left-color: var(--color-secondary); }
.toast-error   { border-left-color: var(--color-accent-red); }
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { from { opacity: 1; } to { opacity: 0; } }

/* ============================================================
   MODAL
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,26,20,0.75);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: var(--color-bg);
  width: 100%;
  max-width: 480px;
  padding: var(--space-lg);
  position: relative;
  border-left: 4px solid var(--color-primary);
}
.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
  line-height: 1;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { color: var(--color-accent-red); }

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 480px) {
  :root { --space-xl: 2.5rem; --space-2xl: 4rem; }
  .hero-title { font-size: clamp(3rem, 18vw, 6rem); }
}
