/* ==========================================================================
   XCR9 PENCILVANIA — ART STUDENT SKETCHBOOK DESIGN SYSTEM
   Inspired by Pencilvania (Awwwards) & Hand-Drawn Illustrated Notebooks
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=Patrick+Hand&family=Vazirmatn:wght@300;400;600;700;900&display=swap');

/* ─── Digi Sarvenaz Font Family ────────────────────────────── */
@font-face {
  font-family: 'Digi Sarvenaz';
  src: url('/fonts/Digi-Sarvenaz/Digi-Sarvenaz.woff2') format('woff2'),
       url('../fonts/Digi-Sarvenaz/Digi-Sarvenaz.woff2') format('woff2'),
       url('/fonts/Digi-Sarvenaz/Digi-Sarvenaz.ttf') format('truetype'),
       url('../fonts/Digi-Sarvenaz/Digi-Sarvenaz.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Digi-Sarvenaz';
  src: url('/fonts/Digi-Sarvenaz/Digi-Sarvenaz.woff2') format('woff2'),
       url('../fonts/Digi-Sarvenaz/Digi-Sarvenaz.woff2') format('woff2'),
       url('/fonts/Digi-Sarvenaz/Digi-Sarvenaz.ttf') format('truetype'),
       url('../fonts/Digi-Sarvenaz/Digi-Sarvenaz.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Day Palette (Pencilvania Sunset Peach & Lavender) */
  --bg-day-gradient: linear-gradient(175deg, #d8ccf0 0%, #fed0be 45%, #feb19a 100%);
  --paper-bg-day: #fcf9f2;
  --paper-grain-day: rgba(90, 60, 110, 0.04);
  --pencil-ink: #2c1a4d;
  --pencil-ink-rgb: 44, 26, 77;
  --pencil-soft: #4a326a;
  --pencil-shadow: rgba(44, 26, 77, 0.15);
  --pencil-shadow-hard: rgba(44, 26, 77, 0.85);
  
  --accent-peach: #feb19a;
  --accent-purple: #8f7ac5;
  --accent-mint: #9be5c4;
  --accent-yellow: #fff083;
  --accent-coral: #ff7657;
  --accent-stamp: #d63031;
  --tape-color: rgba(255, 255, 255, 0.65);
  
  --font-persian: 'Digi Sarvenaz', 'Digi-Sarvenaz', 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sketch: 'Caveat', 'Patrick Hand', 'Digi Sarvenaz', 'Digi-Sarvenaz', 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-doodle: 'Patrick Hand', 'Digi Sarvenaz', 'Digi-Sarvenaz', 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --wobble-1: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --wobble-2: 20px 255px 20px 255px / 255px 20px 255px 20px;
  --wobble-subtle: 255px 25px 225px 25px / 25px 225px 25px 255px;
  --wobble-sharp: 4px 18px 6px 14px / 14px 6px 18px 4px;
}

/* Night Mode (Celestial Midnight Blue & Glowing Graphite) */
html.night {
  --bg-day-gradient: linear-gradient(175deg, #120d24 0%, #1f1740 50%, #291b48 100%);
  --paper-bg-day: #1a142e;
  --paper-grain-day: rgba(255, 255, 255, 0.05);
  --pencil-ink: #f4effa;
  --pencil-ink-rgb: 244, 239, 250;
  --pencil-soft: #c8b7e6;
  --pencil-shadow: rgba(0, 0, 0, 0.5);
  --pencil-shadow-hard: rgba(143, 122, 197, 0.4);
  
  --accent-peach: #ffa68d;
  --accent-purple: #b39ddb;
  --accent-mint: #80cbc4;
  --accent-yellow: #ffe082;
  --accent-coral: #ff8a80;
  --accent-stamp: #ff5252;
  --tape-color: rgba(255, 255, 255, 0.18);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-persian);
  background: var(--bg-day-gradient);
  background-attachment: fixed;
  color: var(--pencil-ink);
  font-size: 16px;
  line-height: 1.8;
  direction: rtl;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body, button, input, select, textarea, table, th, td, h1, h2, h3, h4, h5, h6, span, p, div, a {
  font-family: var(--font-persian);
}

/* ─── Universal Typography & Readability Engine for Persian Calligraphy ─── */
.text-\[8px\], .text-\[9px\], .text-\[10px\], .text-\[11px\], .text-\[12px\],
[class*="text-[8px]"], [class*="text-[9px]"], [class*="text-[10px]"], [class*="text-[11px]"], [class*="text-[12px]"],
body .text-\[8px\], body .text-\[9px\], body .text-\[10px\], body .text-\[11px\], body .text-\[12px\] {
  font-size: 0.95rem !important; /* ~15.2px */
  line-height: 1.65 !important;
  font-weight: 700 !important;
}

.text-xs, [class*="text-xs"], body .text-xs, body.sketch-theme .text-xs {
  font-size: 1.02rem !important; /* ~16.3px */
  line-height: 1.7 !important;
}

.text-sm, [class*="text-sm"], body .text-sm, body.sketch-theme .text-sm {
  font-size: 1.12rem !important; /* ~17.9px */
  line-height: 1.75 !important;
}

.text-base, [class*="text-base"], body .text-base, body.sketch-theme .text-base {
  font-size: 1.22rem !important; /* ~19.5px */
  line-height: 1.8 !important;
}

body p, body.sketch-theme p, p {
  font-size: 1.05rem !important;
  line-height: 1.85 !important;
}

/* Ensure code, pre, mono are crisp JetBrains Mono */
code, pre, kbd, samp, .mono, .font-mono, [class*="font-mono"], [dir="ltr"].mono, [dir="ltr"].font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-feature-settings: normal !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  direction: ltr !important;
  letter-spacing: 0.2px;
}

/* Ensure stamps, badges, tags are bold and legible */
.stamp-paid, .stamp-trial, .stamp-expired, .stamp-admin,
[class*="badge-"], [class*="stamp-"], .rubber-stamp {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  padding: 0.25rem 0.65rem !important;
}

/* Universal Persian Calligraphy Enforcement (Digi Sarvenaz) */
.subtext,
.brand-text .subtext,
.hero-subtitle,
.sticky-note,
.sticky-note span,
.sticky-note div,
.sticky-note p,
.sticky-title,
.sticky-badge,
.section-title-sketch,
.section-title-sketch span,
.setup-content-panel,
.setup-content-panel *,
.setup-steps-list,
.setup-steps-list *,
.vip-game-card,
.vip-game-card *:not(.mono):not([class*="mono"]):not([dir="ltr"]),
.doodle-badge,
.doodle-badge *,
.pricing-card-sketch,
.pricing-card-sketch *:not(.mono):not([class*="mono"]):not([dir="ltr"]),
.sketch-modal-dialog,
.sketch-modal-dialog *:not(.mono):not([class*="mono"]):not([dir="ltr"]) {
  font-family: var(--font-persian) !important;
}

/* Form Controls */
body.sketch-theme input,
body.sketch-theme select,
body.sketch-theme textarea,
input, select, textarea {
  font-size: 1.02rem !important;
  font-weight: 600 !important;
}

body.sketch-theme input::placeholder,
input::placeholder {
  font-size: 0.96rem !important;
  opacity: 0.85 !important;
  font-weight: 600 !important;
}

/* Table cells & headers */
body.sketch-theme table th,
table th, .sketch-table th {
  font-size: 1.08rem !important;
  font-weight: 800 !important;
}

body.sketch-theme table td,
table td, .sketch-table td {
  font-size: 1.02rem !important;
  font-weight: 600 !important;
}

/* Buttons */
.btn-sketch, .btn-primary, button[type="submit"] {
  font-size: 1rem !important;
  font-weight: 800 !important;
}

/* Paper Grain Texture Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background-image: 
    radial-gradient(circle at 50% 50%, transparent 80%, rgba(0, 0, 0, 0.03) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.045'/%3E%3C/svg%3E");
  opacity: 0.85;
}

/* Blueprint Grid Background Pattern */
.sketch-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: 28px 28px;
  background-image: 
    linear-gradient(to right, var(--paper-grain-day) 1px, transparent 1px),
    linear-gradient(to bottom, var(--paper-grain-day) 1px, transparent 1px);
  z-index: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Header & Navigation Bar */
.sketch-header {
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px dashed rgba(var(--pencil-ink-rgb), 0.2);
  background: rgba(252, 249, 242, 0.45);
  transition: all 0.3s ease;
}
html.night .sketch-header {
  background: rgba(26, 20, 46, 0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-doodle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--pencil-ink);
}

.brand-icon {
  width: 44px;
  height: 44px;
  border: 2.5px solid var(--pencil-ink);
  border-radius: var(--wobble-1);
  background: var(--accent-peach);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transform: rotate(-3deg);
  box-shadow: 2px 3px 0 var(--pencil-ink);
  transition: transform 0.2s ease;
}
.brand-doodle:hover .brand-icon {
  transform: rotate(5deg) scale(1.08);
}

.brand-text h1,
.brand-text .brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.brand-text .subtext {
  font-family: var(--font-persian) !important;
  font-size: 0.95rem;
  color: var(--pencil-soft);
  direction: rtl;
  display: inline-block;
  font-weight: 700;
}

.nav-doodle-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Sketch Buttons */
.btn-sketch {
  font-family: var(--font-persian);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--wobble-1);
  border: 2px solid var(--pencil-ink);
  background: var(--paper-bg-day);
  color: var(--pencil-ink);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--pencil-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s cubic-bezier(0.2, 0, 0, 1);
  user-select: none;
}
.btn-sketch:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--pencil-ink);
}
.btn-sketch:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--pencil-ink);
}

.btn-sketch.btn-primary,
.btn-primary {
  background: var(--accent-mint) !important;
  color: #064e3b !important;
}
.btn-sketch.btn-primary *,
.btn-primary * {
  color: #064e3b !important;
}

.btn-sketch.btn-coral,
.btn-coral {
  background: var(--accent-coral) !important;
  color: #2b0803 !important;
}
.btn-sketch.btn-coral *,
.btn-coral * {
  color: #2b0803 !important;
}

.btn-sketch.btn-yellow,
.btn-yellow {
  background: var(--accent-yellow) !important;
  color: #1a0f30 !important;
  border-color: #1a0f30 !important;
}
.btn-sketch.btn-yellow *,
.btn-yellow * {
  color: #1a0f30 !important;
}

/* Theme Toggle Button */
.btn-theme-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
  font-size: 1.15rem;
}

/* Drawing Mode Toggle */
.btn-draw-toggle {
  background: var(--accent-yellow) !important;
  color: #1a0f30 !important;
}
.btn-draw-toggle * {
  color: #1a0f30 !important;
}
.btn-draw-toggle.active {
  background: #ff7657 !important;
  color: #ffffff !important;
}
.btn-draw-toggle.active * {
  color: #ffffff !important;
}

/* Hero Section */
.hero-sketch {
  padding: 3rem 0 2rem;
  text-align: center;
  position: relative;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--paper-bg-day);
  border: 2px solid var(--pencil-ink);
  border-radius: var(--wobble-1);
  padding: 0.35rem 1rem;
  font-family: var(--font-sketch);
  font-size: 1.15rem;
  font-weight: 700;
  transform: rotate(-1.5deg);
  box-shadow: 2px 2px 0 var(--pencil-ink);
  margin-bottom: 1.25rem;
}
.hero-badge-tag .badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero-title .handwritten-highlight {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hero-title .handwritten-highlight {
  position: relative;
  display: inline-block;
  color: #1a0f30 !important;
}
.hero-title .handwritten-highlight::before {
  content: "";
  position: absolute;
  inset: 15% -6px -2px -6px;
  background: var(--accent-yellow);
  z-index: -1;
  border-radius: var(--wobble-1);
  transform: rotate(-1deg);
  opacity: 0.95;
}
html.night .hero-title .handwritten-highlight {
  color: #4d4659 !important;
  background: transparent !important;
}
html.night .hero-title .handwritten-highlight * {
  color: #4d4659 !important;
}
html.night .hero-title .handwritten-highlight::before {
  background: #ffd54f !important;
  opacity: 0.95;
}

.hero-subtitle {
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 2rem;
  color: var(--pencil-soft);
  font-weight: 400;
}

/* ==========================================================================
   THE PENCILVANIA TOWN CANVAS (Interactive Isometric Showcase)
   ========================================================================== */
.pencil-town-frame {
  position: relative;
  background: var(--paper-bg-day);
  border: 3.5px solid var(--pencil-ink);
  border-radius: var(--wobble-1);
  box-shadow: 7px 9px 0 var(--pencil-ink);
  overflow: hidden;
  margin: 2rem 0 3.5rem;
  transition: all 0.3s ease;
}

/* Spiral Notebook Binding Accent at the top */
.notebook-spiral {
  height: 16px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 18px,
    var(--pencil-ink) 18px,
    var(--pencil-ink) 22px
  );
  border-bottom: 2px solid var(--pencil-ink);
  opacity: 0.7;
}

.town-canvas-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #feb19a;
  overflow: hidden;
}

.town-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s ease;
}

.town-artwork-img.night-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
html.night .town-artwork-img.day-img {
  opacity: 0;
}
html.night .town-artwork-img.night-img {
  opacity: 1;
}

/* Animated SVG Network Cables & Data Packets */
.network-cables-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}

.svg-cable-line {
  fill: none;
  stroke: rgba(59, 130, 246, 0.55);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 6 3;
}

.svg-cable-line.gold-cable {
  stroke: rgba(245, 158, 11, 0.55);
}

.svg-cable-line.cyan-cable {
  stroke: rgba(6, 182, 212, 0.55);
}

html.night .svg-cable-line {
  stroke: rgba(96, 165, 250, 0.7);
}

html.night .svg-cable-line.gold-cable {
  stroke: rgba(251, 191, 36, 0.7);
}

.data-packet {
  opacity: 0.95;
}

.pulse-blue {
  fill: #60a5fa;
}

.pulse-cyan {
  fill: #38bdf8;
}

.pulse-gold {
  fill: #fde047;
}

.pulse-green {
  fill: #4ade80;
}

/* Interactive Hotspot Pins on the Town Canvas */
.town-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
}

.hotspot-pin {
  width: 38px;
  height: 38px;
  border: 2.5px solid var(--pencil-ink);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--paper-bg-day);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 3px 0 var(--pencil-ink);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hotspot-pin span {
  transform: rotate(45deg);
  font-size: 1.1rem;
}
.town-hotspot:hover .hotspot-pin {
  transform: rotate(-45deg) scale(1.25);
  background: var(--accent-yellow);
}

.hotspot-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  background: var(--paper-bg-day);
  border: 2px solid var(--pencil-ink);
  border-radius: var(--wobble-2);
  padding: 0.2rem 0.6rem;
  font-family: var(--font-sketch);
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 2px 2px 0 var(--pencil-ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.town-hotspot:hover .hotspot-label {
  opacity: 1;
  transform: translateX(-50%) translateY(3px);
}

/* Town Coordinates for Hotspots */
.spot-server { top: 38%; left: 26%; }
.spot-cloud  { top: 18%; left: 52%; }
.spot-house  { top: 35%; left: 74%; }
.spot-cafe   { top: 72%; left: 40%; }
.spot-dog    { top: 62%; left: 54%; }
.spot-treehouse { top: 76%; left: 66%; }

/* Hotspot Popover Card */
.town-popover {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 440px;
  background: var(--paper-bg-day);
  border: 3px solid var(--pencil-ink);
  border-radius: var(--wobble-1);
  padding: 1.25rem 1.5rem;
  box-shadow: 5px 6px 0 var(--pencil-ink);
  z-index: 25;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.town-popover.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}
.popover-close {
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--pencil-ink);
  font-family: inherit;
}
.popover-tag {
  font-family: var(--font-sketch);
  font-size: 1rem;
  color: var(--accent-coral);
  font-weight: 700;
}
.popover-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0.25rem 0 0.4rem;
}
.popover-desc {
  font-size: 0.88rem;
  color: var(--pencil-soft);
  line-height: 1.5;
}

/* Tape Effect */
.tape-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: 90px;
  height: 24px;
  background: var(--tape-color);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-left: 2px dashed rgba(0,0,0,0.15);
  border-right: 2px dashed rgba(0,0,0,0.15);
  z-index: 30;
  pointer-events: none;
}

/* ==========================================================================
   QUICK COPY DNS SKETCH BOX (Art Student Sticky Note)
   ========================================================================== */
.dns-sticky-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin: 2.5rem 0;
}

.sticky-note {
  position: relative;
  background: var(--paper-bg-day);
  border: 2.5px solid var(--pencil-ink);
  border-radius: var(--wobble-1);
  padding: 1.75rem 1.5rem;
  box-shadow: 4px 5px 0 var(--pencil-ink);
  transition: transform 0.2s ease;
}
.sticky-note:hover {
  transform: translateY(-3px) rotate(0.5deg);
}

.sticky-yellow { background: #fffbe0; }
.sticky-mint   { background: #e8f8f2; }
.sticky-peach  { background: #ffece5; }
.sticky-purple { background: #f3eefc; }
html.night .sticky-yellow { background: #2a251b; }
html.night .sticky-mint   { background: #192b26; }
html.night .sticky-peach  { background: #322120; }
html.night .sticky-purple { background: #231c38; }

.sticky-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.sticky-title {
  font-size: 1.1rem;
  font-weight: 800;
}
.sticky-badge {
  font-family: var(--font-sketch);
  font-size: 1rem;
  font-weight: 800;
  background: var(--accent-yellow) !important;
  color: #1a0f30 !important;
  padding: 0.15rem 0.5rem;
  border: 1.5px solid var(--pencil-ink);
  border-radius: var(--wobble-2);
}
.sticky-badge * {
  color: #1a0f30 !important;
}

.dns-code-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.05);
  border: 2px dashed var(--pencil-ink);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  margin: 0.75rem 0;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  direction: ltr;
}
html.night .dns-code-block {
  background: rgba(255, 255, 255, 0.08);
}

.copy-mini-btn {
  background: none;
  border: 1.5px solid var(--pencil-ink);
  border-radius: var(--wobble-2);
  padding: 0.2rem 0.55rem;
  font-size: 0.8rem;
  font-family: var(--font-persian);
  cursor: pointer;
  color: var(--pencil-ink);
  transition: all 0.15s ease;
}
.copy-mini-btn:hover {
  background: var(--accent-mint);
}

/* Rubber Stamp Effect */
.rubber-stamp {
  display: inline-block;
  color: var(--accent-stamp);
  border: 3.5px solid var(--accent-stamp);
  border-radius: 8px;
  padding: 0.35rem 0.8rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 1px;
  transform: rotate(-8deg);
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 80%, rgba(0,0,0,0.6) 100%);
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 80%, rgba(0,0,0,0.6) 100%);
  user-select: none;
}

/* ==========================================================================
   INTERACTIVE SKETCHPAD / DOODLE CANVAS
   ========================================================================== */
#doodleCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 500;
  pointer-events: none;
  cursor: crosshair;
}
#doodleCanvas.drawing-active {
  pointer-events: all;
  background: rgba(44, 26, 77, 0.02);
}

.doodle-palette {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--paper-bg-day);
  border: 3px solid var(--pencil-ink);
  border-radius: 30px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 0 var(--pencil-ink);
  z-index: 600;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.doodle-palette.visible {
  transform: translateX(-50%) translateY(0);
}

.color-choice {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--pencil-ink);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.color-choice:hover, .color-choice.active {
  transform: scale(1.25);
  box-shadow: 0 0 0 2px #fff;
}

/* ==========================================================================
   HAND-DRAWN PLATFORM SETUP TABS (Torn Notebook Page)
   ========================================================================== */
.setup-notebook {
  background: var(--paper-bg-day);
  border: 3.5px solid var(--pencil-ink);
  border-radius: var(--wobble-1);
  padding: 2rem 2.5rem;
  box-shadow: 6px 8px 0 var(--pencil-ink);
  margin: 3.5rem 0;
  position: relative;
}

.torn-paper-edge {
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    45deg,
    var(--pencil-ink) 0,
    var(--pencil-ink) 4px,
    transparent 4px,
    transparent 8px
  );
}

.setup-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 2px dashed rgba(var(--pencil-ink-rgb), 0.25);
  padding-bottom: 1rem;
  margin-bottom: 1.75rem;
}

.tab-btn {
  font-family: var(--font-persian);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 1.2rem;
  border: 2px solid var(--pencil-ink);
  border-radius: var(--wobble-2);
  background: transparent;
  color: var(--pencil-ink);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--pencil-ink);
  transition: all 0.15s ease;
}
.tab-btn:hover {
  background: var(--accent-peach);
  transform: translateY(-2px);
}
.tab-btn.active {
  background: var(--accent-mint);
  box-shadow: 3px 3px 0 var(--pencil-ink);
  transform: translateY(-2px);
}

.setup-content-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 768px) {
  .setup-content-panel {
    grid-template-columns: 1fr;
  }
}

.setup-steps-list {
  list-style: none;
}
.setup-steps-list li {
  position: relative;
  padding-right: 2.25rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.setup-steps-list li::before {
  content: counter(item);
  counter-increment: item;
  position: absolute;
  right: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border: 2px solid var(--pencil-ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  background: var(--accent-yellow) !important;
  color: #1a0f30 !important;
}
.setup-steps-list {
  counter-reset: item;
}

/* Sketched Hand-drawn Diagram Box */
.sketch-diagram-box {
  border: 2px dashed var(--pencil-ink);
  border-radius: var(--wobble-1);
  padding: 1.5rem;
  background: rgba(var(--pencil-ink-rgb), 0.03);
  text-align: center;
  position: relative;
}
.sketch-diagram-box svg {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   SUPPORTED GAMES & SERVICES (Doodle Badges Grid)
   ========================================================================== */
.services-section {
  margin: 3.5rem 0;
  text-align: center;
}

.section-title-sketch {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}
.section-title-sketch::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 10%;
  right: 10%;
  height: 4px;
  background: var(--accent-coral);
  border-radius: 4px;
  transform: rotate(-1deg);
}

.doodle-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.doodle-badge {
  background: var(--paper-bg-day);
  border: 2px solid var(--pencil-ink);
  border-radius: var(--wobble-1);
  padding: 1.25rem 0.75rem;
  text-align: center;
  box-shadow: 3px 4px 0 var(--pencil-ink);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.doodle-badge:hover {
  transform: translateY(-5px) rotate(2deg);
  box-shadow: 5px 7px 0 var(--pencil-ink);
  background: var(--accent-yellow) !important;
  color: #1a0f30 !important;
}
.doodle-badge:hover * {
  color: #1a0f30 !important;
}

.doodle-badge-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
  display: block;
}
.doodle-badge-name {
  font-weight: 800;
  font-size: 0.9rem;
}
.doodle-badge-status {
  font-family: var(--font-sketch);
  font-size: 0.9rem;
  color: var(--pencil-soft);
  direction: ltr;
}

/* ==========================================================================
   PRICING NOTEBOOK CARDS (Torn Spiral Cards)
   ========================================================================== */
.pricing-section {
  margin: 4rem 0;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.pricing-card-sketch {
  background: var(--paper-bg-day);
  border: 3.5px solid var(--pencil-ink);
  border-radius: var(--wobble-1);
  padding: 2.25rem 1.75rem;
  box-shadow: 6px 7px 0 var(--pencil-ink);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
}
.pricing-card-sketch:hover {
  transform: translateY(-4px);
}

.pricing-card-sketch.featured {
  background: #fff8e8;
  border-color: var(--pencil-ink);
}
html.night .pricing-card-sketch.featured {
  background: #251d38;
}

.pricing-card-sketch .popular-tape {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent-yellow) !important;
  color: #1a0f30 !important;
  border: 2px solid var(--pencil-ink);
  border-radius: var(--wobble-2);
  padding: 0.2rem 0.8rem;
  font-weight: 800;
  font-size: 0.85rem;
  transform: rotate(3deg);
  box-shadow: 2px 2px 0 var(--pencil-ink);
}
.pricing-card-sketch .popular-tape * {
  color: #1a0f30 !important;
}

.plan-title {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}
.plan-desc {
  font-size: 0.9rem;
  color: var(--pencil-soft);
  margin-bottom: 1.5rem;
}

.plan-price-box {
  margin-bottom: 1.75rem;
  border-bottom: 2px dashed rgba(var(--pencil-ink-rgb), 0.2);
  padding-bottom: 1.25rem;
}
.plan-amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--pencil-ink);
}
.plan-unit {
  font-size: 0.85rem;
  color: var(--pencil-soft);
}

.plan-features-list {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}
.plan-features-list li {
  padding: 0.4rem 0;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.plan-features-list li::before {
  content: "✓";
  color: #10b981;
  font-weight: 900;
  font-size: 1.1rem;
}

/* Footer & Artist Signature */
.sketch-footer {
  margin-top: 5rem;
  padding: 3rem 0 4rem;
  border-top: 3px dashed rgba(var(--pencil-ink-rgb), 0.25);
  text-align: center;
  position: relative;
}

.artist-signature {
  font-family: var(--font-sketch);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pencil-soft);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.footer-link {
  color: var(--pencil-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 1.5px dashed var(--pencil-ink);
  transition: all 0.2s ease;
}
.footer-link:hover {
  color: var(--accent-coral);
  border-color: var(--accent-coral);
}

/* Toast Notifications in Sketch Style */
.sketch-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent-yellow) !important;
  color: #1a0f30 !important;
  border: 2.5px solid var(--pencil-ink);
  border-radius: var(--wobble-1);
  padding: 0.75rem 1.25rem;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 4px 4px 0 var(--pencil-ink);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.sketch-toast * {
  color: #1a0f30 !important;
}
.sketch-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   NOTEBOOK FIELD & ADMIN SENTINEL STYLES (User & Admin Panels)
   ========================================================================== */

/* Notebook Card (Lined or Plain Paper Card with Tape) */
.notebook-card,
.glass-card,
.liquid-glass {
  background: var(--paper-bg-day);
  border: 2px solid var(--pencil-ink);
  border-radius: var(--wobble-1);
  box-shadow: 4px 4px 0 var(--pencil-shadow-hard);
  color: var(--pencil-ink);
  position: relative;
  transition: all 0.25s ease;
}

.notebook-card:hover {
  box-shadow: 6px 6px 0 var(--pencil-shadow-hard);
}

/* Spiral Header Strip */
.notebook-spiral-header {
  position: relative;
  border-top: 14px solid #3d2a63;
  padding-top: 1rem;
}
.notebook-spiral-header::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background-image: repeating-linear-gradient(
    90deg,
    #silver 0px,
    #aaa 3px,
    transparent 3px,
    transparent 18px
  );
}

/* Sketched Form Inputs */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea,
.sketch-input {
  background: rgba(var(--pencil-ink-rgb), 0.04) !important;
  border: 2px solid var(--pencil-ink) !important;
  border-radius: var(--wobble-sharp) !important;
  color: var(--pencil-ink) !important;
  font-family: inherit;
  padding: 0.65rem 1rem;
  outline: none;
  transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-coral) !important;
  box-shadow: 2px 2px 0 var(--accent-coral) !important;
  background: rgba(var(--pencil-ink-rgb), 0.06) !important;
}

/* Sketched Tables */
.sketch-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 2px solid var(--pencil-ink);
  border-radius: var(--wobble-1);
  background: var(--paper-bg-day);
  box-shadow: 3px 3px 0 var(--pencil-shadow-hard);
}

table.sketch-table,
.sketch-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.9rem;
}

table.sketch-table th,
.sketch-table-wrap table th {
  background: rgba(var(--pencil-ink-rgb), 0.08);
  border-bottom: 2px solid var(--pencil-ink);
  padding: 0.85rem 1rem;
  font-weight: 800;
  color: var(--pencil-ink);
  font-family: var(--font-persian);
}

table.sketch-table td,
.sketch-table-wrap table td {
  padding: 0.85rem 1rem;
  border-bottom: 1.5px dashed rgba(var(--pencil-ink-rgb), 0.2);
  color: var(--pencil-ink);
}

table.sketch-table tr:hover td,
.sketch-table-wrap table tr:hover td {
  background: rgba(var(--pencil-ink-rgb), 0.03);
}

/* Sketched Folder Tabs (for Admin & Panel) */
.sketch-folder-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2.5px solid var(--pencil-ink);
  padding-bottom: 0;
  flex-wrap: wrap;
}

.sketch-folder-tab {
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--pencil-ink);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: rgba(var(--pencil-ink-rgb), 0.07);
  color: var(--pencil-soft);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  position: relative;
  bottom: -2.5px;
}

.sketch-folder-tab:hover {
  background: rgba(var(--pencil-ink-rgb), 0.12);
  color: var(--pencil-ink);
}

.sketch-folder-tab.active {
  background: var(--paper-bg-day);
  border-bottom: 3px solid var(--paper-bg-day);
  color: var(--pencil-ink);
  font-weight: 900;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

/* Sketched Status Stamps */
.stamp-paid {
  display: inline-block;
  border: 2px solid #10b981;
  color: #10b981;
  font-family: 'Caveat', monospace;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  transform: rotate(-3deg);
  letter-spacing: 1px;
}

.stamp-trial {
  display: inline-block;
  border: 2px solid #f59e0b;
  color: #f59e0b;
  font-family: 'Caveat', monospace;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  transform: rotate(2deg);
  letter-spacing: 1px;
}

.stamp-expired {
  display: inline-block;
  border: 2px solid #ef4444;
  color: #ef4444;
  font-family: 'Caveat', monospace;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  transform: rotate(-2deg);
  letter-spacing: 1px;
}

.stamp-admin {
  display: inline-block;
  border: 2px solid #8b5cf6;
  color: #8b5cf6;
  font-family: 'Caveat', monospace;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  transform: rotate(3deg);
  letter-spacing: 1px;
}

/* Sketched Duration Pills in Modal */
.duration-sketch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.duration-sketch-pill {
  border: 2px solid var(--pencil-ink);
  border-radius: var(--wobble-sharp);
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  background: rgba(var(--pencil-ink-rgb), 0.04);
  transition: all 0.2s ease;
  position: relative;
}

.duration-sketch-pill:hover {
  background: rgba(var(--pencil-ink-rgb), 0.08);
  transform: translateY(-2px);
}

.duration-sketch-pill.active {
  background: var(--accent-yellow);
  border-color: var(--pencil-ink);
  box-shadow: 3px 3px 0 var(--pencil-ink);
  font-weight: 900;
}
html.night .duration-sketch-pill.active {
  background: #3b2d54;
  color: #ffe082;
}

.duration-discount-tag {
  position: absolute;
  top: -8px;
  left: 8px;
  background: var(--accent-coral);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--pencil-ink);
  transform: rotate(-5deg);
}

/* Sketched Modal Container */
.sketch-modal-dialog {
  background: var(--paper-bg-day);
  border: 3px solid var(--pencil-ink);
  border-radius: var(--wobble-1);
  box-shadow: 8px 8px 0 var(--pencil-shadow-hard);
  color: var(--pencil-ink);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

/* ==========================================================================
   PANEL & ADMIN COMPREHENSIVE SKETCH THEME
   Brings 100% of Main Page Colors, Shapes, Textures & Aesthetics to Panel & Admin
   ========================================================================== */

body.sketch-theme {
  background: var(--bg-day-gradient) !important;
  background-attachment: fixed !important;
  color: var(--pencil-ink) !important;
}

/* Base Cards & Containers -> Authentic Sketchbook Paper Sheets */
body.sketch-theme .glass-card,
body.sketch-theme .liquid-glass,
body.sketch-theme .sketch-card {
  background: var(--paper-bg-day) !important;
  color: var(--pencil-ink) !important;
  border: 2.5px solid var(--pencil-ink) !important;
  border-radius: var(--wobble-1) !important;
  box-shadow: 6px 6px 0 var(--pencil-shadow-hard) !important;
  position: relative !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

body.sketch-theme .glass-card:hover,
body.sketch-theme .liquid-glass:hover {
  transform: translateY(-2px);
  box-shadow: 8px 8px 0 var(--pencil-shadow-hard) !important;
}

/* Headings & Text Contrast */
body.sketch-theme h1,
body.sketch-theme h2,
body.sketch-theme h3,
body.sketch-theme h4,
body.sketch-theme h5,
body.sketch-theme h6,
body.sketch-theme strong,
body.sketch-theme b,
body.sketch-theme .text-white,
body.sketch-theme .text-\[\#F2F2F2\],
body.sketch-theme [class*="text-[#F2F2F2]"],
body.sketch-theme .text-slate-100,
body.sketch-theme .text-slate-200 {
  color: var(--pencil-ink) !important;
}

body.sketch-theme p,
body.sketch-theme .text-slate-400,
body.sketch-theme .text-slate-500,
body.sketch-theme .text-slate-300,
body.sketch-theme .text-\[\#c4bfdb\],
body.sketch-theme [class*="text-[#c4bfdb]"],
body.sketch-theme [class*="text-slate-"],
body.sketch-theme [class*="text-gray-"] {
  color: var(--pencil-soft) !important;
}

/* Primary Accents & Colored Text overrides */
body.sketch-theme .text-sky-400,
body.sketch-theme .text-sky-300 {
  color: var(--accent-coral) !important;
}

body.sketch-theme .text-emerald-400,
body.sketch-theme .text-emerald-300,
body.sketch-theme .text-\[\#C7F0DB\],
body.sketch-theme [class*="text-[#C7F0DB]"] {
  color: #10b981 !important;
}

body.sketch-theme .text-amber-400,
body.sketch-theme .text-amber-300 {
  color: #d97706 !important;
}

body.sketch-theme .text-purple-400,
body.sketch-theme .text-purple-300 {
  color: #7c3aed !important;
}

/* Inner Inset Paper Boxes & Field Cards (Overrides dark slate blocks) */
body.sketch-theme .bg-slate-950,
body.sketch-theme .bg-slate-900,
body.sketch-theme .bg-slate-900\/60,
body.sketch-theme .bg-slate-900\/80,
body.sketch-theme .bg-slate-900\/90,
body.sketch-theme .bg-slate-950\/50,
body.sketch-theme .bg-slate-950\/60,
body.sketch-theme .bg-slate-950\/80,
body.sketch-theme .bg-slate-950\/90,
body.sketch-theme .bg-\[\#160e33\],
body.sketch-theme .bg-\[\#090514\],
body.sketch-theme [class*="bg-[#160e33]"],
body.sketch-theme [class*="bg-[#090514]"],
body.sketch-theme .bg-emerald-950\/40,
body.sketch-theme .bg-amber-950\/40,
body.sketch-theme .bg-rose-950\/40 {
  background: rgba(var(--pencil-ink-rgb), 0.04) !important;
  border: 1.8px dashed rgba(var(--pencil-ink-rgb), 0.28) !important;
  border-radius: var(--wobble-subtle) !important;
  color: var(--pencil-ink) !important;
}

body.sketch-theme [class*="border-slate-"] {
  border-color: rgba(var(--pencil-ink-rgb), 0.2) !important;
}

html.night body.sketch-theme .bg-slate-950,
html.night body.sketch-theme .bg-slate-900,
html.night body.sketch-theme .bg-slate-900\/60,
html.night body.sketch-theme .bg-slate-900\/80,
html.night body.sketch-theme .bg-slate-900\/90,
html.night body.sketch-theme .bg-slate-950\/50,
html.night body.sketch-theme .bg-slate-950\/60,
html.night body.sketch-theme .bg-slate-950\/80,
html.night body.sketch-theme .bg-slate-950\/90 {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Hand-Drawn Colorful Sticky Note Cards */
.sketch-note-yellow {
  background: #fff9c4 !important;
  color: #2c1a4d !important;
  border: 2.5px solid var(--pencil-ink) !important;
  border-radius: var(--wobble-2) !important;
  box-shadow: 5px 5px 0 var(--pencil-shadow-hard) !important;
  position: relative !important;
}
.sketch-note-yellow * {
  color: #2c1a4d !important;
}

.sketch-note-mint {
  background: #d1fae5 !important;
  color: #064e3b !important;
  border: 2.5px solid var(--pencil-ink) !important;
  border-radius: var(--wobble-1) !important;
  box-shadow: 5px 5px 0 var(--pencil-shadow-hard) !important;
  position: relative !important;
}
.sketch-note-mint * {
  color: #064e3b !important;
}

.sketch-note-peach {
  background: #ffedd5 !important;
  color: #7c2d12 !important;
  border: 2.5px solid var(--pencil-ink) !important;
  border-radius: var(--wobble-sharp) !important;
  box-shadow: 5px 5px 0 var(--pencil-shadow-hard) !important;
  position: relative !important;
}
.sketch-note-peach * {
  color: #7c2d12 !important;
}

.sketch-note-lavender {
  background: #ede9fe !important;
  color: #4c1d95 !important;
  border: 2.5px solid var(--pencil-ink) !important;
  border-radius: var(--wobble-1) !important;
  box-shadow: 5px 5px 0 var(--pencil-shadow-hard) !important;
  position: relative !important;
}
.sketch-note-lavender * {
  color: #4c1d95 !important;
}

html.night .sketch-note-yellow {
  background: #3e3314 !important;
  border-color: #ffd54f !important;
}
html.night .sketch-note-yellow * {
  color: #ffe082 !important;
}

html.night .sketch-note-mint {
  background: #14352b !important;
  border-color: #80cbc4 !important;
}
html.night .sketch-note-mint * {
  color: #a7f3d0 !important;
}

html.night .sketch-note-peach {
  background: #3d2319 !important;
  border-color: #ffab91 !important;
}
html.night .sketch-note-peach * {
  color: #ffccbc !important;
}

html.night .sketch-note-lavender {
  background: #271b3d !important;
  border-color: #b39ddb !important;
}
html.night .sketch-note-lavender * {
  color: #e9d5ff !important;
}

/* Sticky Header Note (DNS Addresses) */
body.sketch-theme .sticky-header-note {
  background: var(--paper-bg-day) !important;
  border: 2.5px solid var(--pencil-ink) !important;
  border-radius: var(--wobble-1) !important;
  box-shadow: 5px 5px 0 var(--pencil-shadow-hard) !important;
  position: relative;
}

/* Hand-Drawn 3D Pencil Buttons (Matching Main Page) */
body.sketch-theme .btn-primary,
body.sketch-theme button[type="submit"]:not(.btn-sketch) {
  background: var(--accent-coral) !important;
  color: #ffffff !important;
  border: 2.5px solid var(--pencil-ink) !important;
  border-radius: var(--wobble-sharp) !important;
  box-shadow: 3.5px 3.5px 0 var(--pencil-ink) !important;
  font-weight: 800 !important;
  padding: 0.55rem 1.25rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

body.sketch-theme .btn-primary:hover,
body.sketch-theme button[type="submit"]:not(.btn-sketch):hover {
  transform: translateY(-2px) !important;
  box-shadow: 5px 5px 0 var(--pencil-ink) !important;
  background: #ff5e3a !important;
}

body.sketch-theme .btn-primary:active,
body.sketch-theme button[type="submit"]:not(.btn-sketch):active {
  transform: translate(2px, 2px) !important;
  box-shadow: 1px 1px 0 var(--pencil-ink) !important;
}

/* Secondary & Utility Buttons */
body.sketch-theme .bg-slate-800,
body.sketch-theme button.bg-slate-800,
body.sketch-theme a.bg-slate-800 {
  background: rgba(var(--pencil-ink-rgb), 0.08) !important;
  color: var(--pencil-ink) !important;
  border: 2px solid var(--pencil-ink) !important;
  border-radius: var(--wobble-sharp) !important;
  box-shadow: 2.5px 2.5px 0 var(--pencil-ink) !important;
  font-weight: 700 !important;
  transition: all 0.15s ease !important;
}

body.sketch-theme .bg-slate-800:hover {
  background: rgba(var(--pencil-ink-rgb), 0.14) !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 4px 4px 0 var(--pencil-ink) !important;
}

/* Action button variants */
body.sketch-theme .btn-emerald,
body.sketch-theme button.bg-emerald-600,
body.sketch-theme .from-emerald-600 {
  background: var(--accent-mint) !important;
  color: #064e3b !important;
  border: 2.5px solid var(--pencil-ink) !important;
  border-radius: var(--wobble-sharp) !important;
  box-shadow: 3.5px 3.5px 0 var(--pencil-ink) !important;
  font-weight: 800 !important;
}

body.sketch-theme .btn-yellow,
body.sketch-theme button.from-amber-500,
body.sketch-theme button.from-amber-400,
.btn-sketch.btn-yellow,
.btn-yellow {
  background: var(--accent-yellow) !important;
  color: #1a0f30 !important;
  border: 2.5px solid var(--pencil-ink) !important;
  border-radius: var(--wobble-sharp) !important;
  box-shadow: 3.5px 3.5px 0 var(--pencil-ink) !important;
  font-weight: 800 !important;
}

body.sketch-theme .btn-yellow *,
body.sketch-theme button.from-amber-500 *,
body.sketch-theme button.from-amber-400 *,
.btn-sketch.btn-yellow *,
.btn-yellow * {
  color: #1a0f30 !important;
}

body.sketch-theme .btn-yellow:hover,
.btn-sketch.btn-yellow:hover,
.btn-yellow:hover {
  background: #ffe082 !important;
  color: #1a0f30 !important;
}

body.sketch-theme .btn-yellow:hover *,
.btn-sketch.btn-yellow:hover *,
.btn-yellow:hover * {
  color: #1a0f30 !important;
}

/* =============================================================================
   UNIVERSAL CONTRAST ENFORCERS & NIGHT MODE SPECIALIZATIONS
   Strictly isolated to html.night to preserve 100% of light mode styling
   ============================================================================= */

/* Universal Yellow & Amber Contrast Enforcer (Guarantees dark ink on yellow anywhere in both modes) */
[style*="background:var(--accent-yellow)"],
[style*="background: var(--accent-yellow)"],
[style*="background:#fff083"],
[style*="background: #fff083"],
[style*="background:#ffe082"],
[style*="background: #ffe082"],
.badge-yellow,
.stamp-yellow,
.sketch-badge-yellow,
.popular-tape {
  color: #1a0f30 !important;
  background: var(--accent-yellow) !important;
}

[style*="background:var(--accent-yellow)"] *,
[style*="background: var(--accent-yellow)"] *,
[style*="background:#fff083"] *,
[style*="background: #fff083"] *,
[style*="background:#ffe082"] *,
[style*="background: #ffe082"] *,
.badge-yellow *,
.stamp-yellow *,
.sketch-badge-yellow *,
.popular-tape * {
  color: #1a0f30 !important;
}

/* Day vs Night dynamic contrast for amber/yellow utility classes */
body.sketch-theme .text-yellow-400 {
  color: #b45309 !important;
}
html.night body.sketch-theme .text-yellow-400 {
  color: #facc15 !important;
}

/* -----------------------------------------------------------------------------
   NIGHT MODE ONLY: YELLOW ("yehoo") CONTRAST OVERHAUL (Forced Deep Ink #4d4659)
   Eliminates all white/light text on yellow buttons, tapes, badges, and counters
   ----------------------------------------------------------------------------- */
html.night #btnDrawToggle,
html.night .btn-draw-toggle,
html.night .btn-sketch.btn-yellow,
html.night .btn-yellow,
html.night body.sketch-theme .btn-yellow,
html.night body.sketch-theme .btn-sketch.btn-yellow,
html.night .popular-tape,
html.night .pricing-card-sketch .popular-tape,
html.night .sticky-badge,
html.night .setup-steps-list li::before,
html.night .vip-game-icon,
html.night .badge-yellow,
html.night .stamp-yellow,
html.night .sketch-badge-yellow,
html.night .hero-title .handwritten-highlight,
html.night .duration-sketch-pill.active,
html.night [style*="background:var(--accent-yellow)"],
html.night [style*="background: var(--accent-yellow)"],
html.night [style*="background:#ffe082"],
html.night [style*="background: #ffe082"],
html.night [style*="background:#ffd54f"],
html.night [style*="background: #ffd54f"],
html.night [style*="background:#fff083"],
html.night [style*="background: #fff083"],
html.night [style*="background:#ffd43b"],
html.night [style*="background: #ffd43b"],
html.night [style*="background:#facc15"],
html.night [style*="background: #facc15"] {
  background: #ffd54f !important;
  color: #4d4659 !important;
  border-color: #4d4659 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

html.night #btnDrawToggle *,
html.night .btn-draw-toggle *,
html.night .btn-sketch.btn-yellow *,
html.night .btn-yellow *,
html.night body.sketch-theme .btn-yellow *,
html.night body.sketch-theme .btn-sketch.btn-yellow *,
html.night .popular-tape *,
html.night .pricing-card-sketch .popular-tape *,
html.night .sticky-badge *,
html.night .vip-game-icon *,
html.night .badge-yellow *,
html.night .stamp-yellow *,
html.night .sketch-badge-yellow *,
html.night .hero-title .handwritten-highlight *,
html.night .duration-sketch-pill.active *,
html.night [style*="background:var(--accent-yellow)"] *,
html.night [style*="background: var(--accent-yellow)"] *,
html.night [style*="background:#ffe082"] *,
html.night [style*="background: #ffe082"] *,
html.night [style*="background:#ffd54f"] *,
html.night [style*="background: #ffd54f"] *,
html.night [style*="background:#fff083"] *,
html.night [style*="background: #fff083"] *,
html.night [style*="background:#ffd43b"] *,
html.night [style*="background: #ffd43b"] *,
html.night [style*="background:#facc15"] *,
html.night [style*="background: #facc15"] * {
  color: #4d4659 !important;
  text-shadow: none !important;
}

/* Ensure hero highlight maintains handwritten stroke without solid box */
html.night .hero-title .handwritten-highlight {
  background: transparent !important;
  color: #4d4659 !important;
  border-color: transparent !important;
}
html.night .hero-title .handwritten-highlight * {
  color: #4d4659 !important;
}
html.night .hero-title .handwritten-highlight::before {
  background: #ffd54f !important;
  opacity: 0.95 !important;
}

html.night #btnDrawToggle:hover,
html.night .btn-draw-toggle:hover,
html.night .btn-sketch.btn-yellow:hover,
html.night .btn-yellow:hover,
html.night body.sketch-theme .btn-yellow:hover,
html.night body.sketch-theme .btn-sketch.btn-yellow:hover {
  background: #ffe082 !important;
  color: #4d4659 !important;
}
html.night #btnDrawToggle:hover *,
html.night .btn-draw-toggle:hover *,
html.night .btn-sketch.btn-yellow:hover *,
html.night .btn-yellow:hover *,
html.night body.sketch-theme .btn-yellow:hover * {
  color: #4d4659 !important;
}

/* -----------------------------------------------------------------------------
   NIGHT MODE ONLY: RED ("red light") CONTRAST OVERHAUL
   Replaces weak light pastel red (#ff8a80) on buttons with deep rich crimson red
   guaranteeing pure white text (#ffffff) has >5.5:1 AAA contrast
   ----------------------------------------------------------------------------- */
html.night body.sketch-theme .btn-primary,
html.night body.sketch-theme .btn-sketch.btn-primary,
html.night body.sketch-theme button[type="submit"]:not(.btn-yellow):not(#modalBtnSendForgotOtp):not(#btnSubmitZarinpal),
html.night body.sketch-theme .btn-coral,
html.night body.sketch-theme .btn-sketch.btn-coral,
html.night body.sketch-theme a.btn-primary,
html.night body.sketch-theme a.btn-coral,
html.night #btnTestPing,
html.night .btn-header-panel,
html.night #loginSubmitBtn,
html.night #regSubmitBtn,
html.night #modalBtnSubmitNewPassword {
  background: #dc2626 !important;
  background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%) !important;
  color: #ffffff !important;
  border: 2px solid #f87171 !important;
  border-radius: var(--wobble-sharp) !important;
  box-shadow: 3.5px 3.5px 0 #120826 !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

html.night body.sketch-theme .btn-primary *,
html.night body.sketch-theme .btn-sketch.btn-primary *,
html.night body.sketch-theme button[type="submit"]:not(.btn-yellow):not(#modalBtnSendForgotOtp):not(#btnSubmitZarinpal) *,
html.night body.sketch-theme .btn-coral *,
html.night body.sketch-theme .btn-sketch.btn-coral *,
html.night body.sketch-theme a.btn-primary *,
html.night body.sketch-theme a.btn-coral *,
html.night #btnTestPing *,
html.night .btn-header-panel *,
html.night #loginSubmitBtn *,
html.night #regSubmitBtn *,
html.night #modalBtnSubmitNewPassword * {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

html.night body.sketch-theme .btn-primary:hover,
html.night body.sketch-theme .btn-sketch.btn-primary:hover,
html.night body.sketch-theme button[type="submit"]:not(.btn-yellow):not(#modalBtnSendForgotOtp):not(#btnSubmitZarinpal):hover,
html.night body.sketch-theme .btn-coral:hover,
html.night body.sketch-theme .btn-sketch.btn-coral:hover,
html.night body.sketch-theme a.btn-primary:hover,
html.night body.sketch-theme a.btn-coral:hover,
html.night #btnTestPing:hover,
html.night .btn-header-panel:hover {
  background: #ef4444 !important;
  background: linear-gradient(135deg, #f87171 0%, #c62828 100%) !important;
  color: #ffffff !important;
  border-color: #fca5a5 !important;
  transform: translateY(-2px) !important;
  box-shadow: 5px 5px 0 #120826 !important;
}

/* Light Red Tags & Active Toggles in Night Mode */
html.night .btn-draw-toggle.active,
html.night #btnDrawToggle.active {
  background: #dc2626 !important;
  background: linear-gradient(135deg, #ef4444 0%, #b71c1c 100%) !important;
  color: #ffffff !important;
  border-color: #fca5a5 !important;
}
html.night .btn-draw-toggle.active *,
html.night #btnDrawToggle.active * {
  color: #ffffff !important;
}

html.night .duration-discount-tag {
  background: #dc2626 !important;
  color: #ffffff !important;
  border: 1.5px solid #fca5a5 !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
}

/* Panel & Admin Amber and Red Enhancements in Night Mode */
html.night #btnSubmitZarinpal,
html.night button.from-amber-500,
html.night .from-amber-500 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #4d4659 !important;
  font-weight: 900 !important;
  border: 2px solid #fbbf24 !important;
  box-shadow: 3px 3px 0 #4d4659 !important;
}
html.night #btnSubmitZarinpal *,
html.night button.from-amber-500 * {
  color: #4d4659 !important;
}

html.night .bg-amber-500\/15,
html.night .bg-amber-500\/20,
html.night .bg-amber-500\/10,
html.night .bg-yellow-500\/15 {
  background: rgba(245, 158, 11, 0.2) !important;
  border-color: rgba(251, 191, 36, 0.45) !important;
}
html.night .text-amber-300,
html.night .text-amber-400,
html.night .text-yellow-400 {
  color: #fde047 !important;
  font-weight: 700 !important;
}

html.night .bg-red-500\/15,
html.night .bg-red-500\/20,
html.night .bg-red-500\/10 {
  background: rgba(220, 38, 38, 0.22) !important;
  border-color: rgba(248, 113, 113, 0.45) !important;
}
html.night .text-red-300,
html.night .text-red-400 {
  color: #fca5a5 !important;
  font-weight: 700 !important;
}
html.night #expiredNoticeBox {
  background: rgba(220, 38, 38, 0.25) !important;
  border: 1.5px solid #f87171 !important;
  color: #fee2e2 !important;
}
html.night #expiredNoticeBox * {
  color: #fee2e2 !important;
}

/* Diagram box IP colors in Night Mode */
html.night .sketch-diagram-box span[style*="color:#d63031"],
html.night .sketch-diagram-box span[style*="color: #d63031"] {
  color: #ff6b6b !important;
}
html.night .sketch-diagram-box span[style*="color:#0984e3"],
html.night .sketch-diagram-box span[style*="color: #0984e3"] {
  color: #38bdf8 !important;
}

/* Night Mode Code & White Element Contrast Inversion */
html.night .font-mono[style*="background:#fff"],
html.night [style*="background:#fff"],
html.night [style*="background: #fff"],
html.night [style*="background:#ffffff"],
html.night [style*="background: #ffffff"] {
  background: #1e1538 !important;
  color: #f4effa !important;
  border-color: #ffd54f !important;
}

/* Hand-Drawn Wobbly Inputs, Selects & Textareas */
body.sketch-theme input[type="text"],
body.sketch-theme input[type="email"],
body.sketch-theme input[type="password"],
body.sketch-theme select,
body.sketch-theme textarea {
  background: #ffffff !important;
  color: var(--pencil-ink) !important;
  border: 2.2px solid var(--pencil-ink) !important;
  border-radius: var(--wobble-subtle) !important;
  box-shadow: 2.5px 2.5px 0 var(--pencil-ink) !important;
  font-weight: 600 !important;
  padding: 0.55rem 0.85rem !important;
  transition: all 0.2s ease !important;
}

body.sketch-theme input:focus,
body.sketch-theme select:focus,
body.sketch-theme textarea:focus {
  border-color: var(--accent-coral) !important;
  box-shadow: 4px 4px 0 var(--accent-coral) !important;
  outline: none !important;
}

html.night body.sketch-theme input[type="text"],
html.night body.sketch-theme input[type="email"],
html.night body.sketch-theme input[type="password"],
html.night body.sketch-theme select,
html.night body.sketch-theme textarea {
  background: #251c44 !important;
  color: #f4effa !important;
  border-color: var(--pencil-ink) !important;
  box-shadow: 2.5px 2.5px 0 rgba(244, 239, 250, 0.4) !important;
}

/* Tab Navigation Buttons -> Notebook Folder Tabs */
body.sketch-theme #authTabsNav,
body.sketch-theme .admin-tabs-wrap {
  border: 2px solid var(--pencil-ink) !important;
  border-radius: var(--wobble-sharp) !important;
  background: rgba(var(--pencil-ink-rgb), 0.05) !important;
  padding: 0.35rem !important;
}

body.sketch-theme [id^="tabBtn"],
body.sketch-theme #authTabLogin,
body.sketch-theme #authTabRegister {
  border: 2px solid transparent !important;
  border-radius: var(--wobble-sharp) !important;
  color: var(--pencil-soft) !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}

body.sketch-theme [id^="tabBtn"].active,
body.sketch-theme #authTabLogin.active,
body.sketch-theme #authTabRegister.active,
body.sketch-theme .tmpl-pill.active {
  background: var(--paper-bg-day) !important;
  color: var(--accent-coral) !important;
  border: 2px solid var(--pencil-ink) !important;
  box-shadow: 3px 3px 0 var(--pencil-ink) !important;
  font-weight: 900 !important;
}

/* Notebook Ruled Paper Tables */
body.sketch-theme table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  background: var(--paper-bg-day) !important;
}

body.sketch-theme table thead th {
  border-bottom: 2.5px solid var(--pencil-ink) !important;
  background: rgba(var(--pencil-ink-rgb), 0.06) !important;
  color: var(--pencil-ink) !important;
  font-weight: 800 !important;
  padding: 0.75rem 1rem !important;
  text-align: right !important;
}

body.sketch-theme table tbody td {
  border-bottom: 1.5px dashed rgba(var(--pencil-ink-rgb), 0.22) !important;
  color: var(--pencil-ink) !important;
  padding: 0.75rem 1rem !important;
}

body.sketch-theme table tbody tr:hover td {
  background: rgba(254, 208, 190, 0.25) !important;
}

html.night body.sketch-theme table tbody tr:hover td {
  background: rgba(143, 122, 197, 0.2) !important;
}

/* Plan Cards in Panel (Matching Main Page Pricing Cards) */
body.sketch-theme #freePlanCardContainer,
body.sketch-theme #proPlanCardContainer,
body.sketch-theme #clusterPlanCardContainer {
  background: var(--paper-bg-day) !important;
  border: 2.8px solid var(--pencil-ink) !important;
  border-radius: var(--wobble-1) !important;
  box-shadow: 6px 6px 0 var(--pencil-shadow-hard) !important;
  position: relative !important;
  overflow: visible !important;
  padding: 1.75rem 1.5rem !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

body.sketch-theme #freePlanCardContainer:hover,
body.sketch-theme #proPlanCardContainer:hover,
body.sketch-theme #clusterPlanCardContainer:hover {
  transform: translateY(-4px) !important;
  box-shadow: 9px 9px 0 var(--pencil-shadow-hard) !important;
}

body.sketch-theme #proPlanCardContainer {
  border-width: 3.2px !important;
}

/* Modals Hand-Drawn Paper Style */
body.sketch-theme .sketch-modal-dialog {
  background: var(--paper-bg-day) !important;
  border: 3.5px solid var(--pencil-ink) !important;
  border-radius: var(--wobble-1) !important;
  box-shadow: 10px 10px 0 var(--pencil-shadow-hard) !important;
  color: var(--pencil-ink) !important;
}

/* Accordion Details Hand-Drawn Look */
body.sketch-theme details {
  border: 2px solid var(--pencil-ink) !important;
  border-radius: var(--wobble-sharp) !important;
  background: rgba(var(--pencil-ink-rgb), 0.03) !important;
  box-shadow: 2.5px 2.5px 0 var(--pencil-ink) !important;
  margin-bottom: 0.5rem !important;
  padding: 0.65rem 0.85rem !important;
}

body.sketch-theme details summary {
  color: var(--pencil-ink) !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

/* ==========================================================================
   VIP FEATURED GAMES SHOWCASE (FC 27, GTA VI, COD MW4)
   ========================================================================== */
.vip-games-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0 2rem;
  text-align: right;
}

.vip-game-card {
  background: var(--paper-bg-day);
  border: 2.5px solid var(--pencil-ink);
  border-radius: var(--wobble-1);
  padding: 1.5rem;
  box-shadow: 5px 6px 0 var(--pencil-ink);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.vip-game-card:hover {
  transform: translateY(-6px) rotate(1deg);
  box-shadow: 7px 10px 0 var(--pencil-ink);
}

.vip-card-fc27 {
  border-color: #059669;
}
html.night .vip-card-fc27 {
  border-color: #34d399;
}

.vip-card-gtavi {
  border-color: #d97706;
}
html.night .vip-card-gtavi {
  border-color: #fbbf24;
}

.vip-card-codmw4 {
  border-color: #dc2626;
}
html.night .vip-card-codmw4 {
  border-color: #f87171;
}

.vip-game-badge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.game-year-tag {
  font-family: var(--font-sketch);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pencil-soft);
}

.vip-game-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.vip-game-icon {
  font-size: 2.2rem;
  width: 54px;
  height: 54px;
  border: 2px solid var(--pencil-ink);
  border-radius: var(--wobble-2);
  background: var(--accent-yellow) !important;
  color: #1a0f30 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 2.5px 2.5px 0 var(--pencil-ink);
}

.vip-game-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--pencil-ink);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.vip-game-subtitle {
  font-family: var(--font-sketch);
  font-size: 0.95rem;
  color: var(--accent-coral);
  font-weight: 700;
  display: block;
}

.vip-game-desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--pencil-ink);
  margin-bottom: 1.25rem;
}

.vip-game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.game-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--wobble-sharp);
  border: 1.5px solid var(--pencil-ink);
  background: rgba(var(--pencil-ink-rgb), 0.05);
  color: var(--pencil-ink);
}

.game-tag.ping-tag {
  background: var(--accent-mint) !important;
  color: #064e3b !important;
  border-color: #064e3b !important;
  font-weight: 800;
}

/* ==========================================================================
   DESKTOP & MOBILE NAVIGATION STYLES
   ========================================================================== */
.sketch-nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-mobile-hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border: 2.2px solid var(--pencil-ink);
  border-radius: var(--wobble-1);
  background: var(--paper-bg-day);
  color: var(--pencil-ink);
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 2.5px 2.5px 0 var(--pencil-ink);
  transition: all 0.15s ease;
  user-select: none;
}
.btn-mobile-hamburger:hover {
  transform: translate(-1.5px, -1.5px);
  box-shadow: 4px 4px 0 var(--pencil-ink);
}
.btn-mobile-hamburger:active {
  transform: translate(1.5px, 1.5px);
  box-shadow: 1px 1px 0 var(--pencil-ink);
}

/* Mobile Nav Backdrop */
.sketch-mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 20, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.sketch-mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Nav Drawer */
.sketch-mobile-nav {
  position: fixed;
  top: 72px;
  left: 1rem;
  right: 1rem;
  max-width: 480px;
  margin: 0 auto;
  background: var(--paper-bg-day);
  border: 2.5px solid var(--pencil-ink);
  border-radius: var(--wobble-1);
  box-shadow: 6px 8px 0 var(--pencil-ink);
  padding: 1.25rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(-20px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  text-align: right;
}
.sketch-mobile-nav.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 2px dashed rgba(var(--pencil-ink-rgb), 0.2);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1.8px solid var(--pencil-ink);
  border-radius: var(--wobble-2);
  background: rgba(var(--pencil-ink-rgb), 0.03);
  color: var(--pencil-ink);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.15s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: var(--accent-yellow) !important;
  color: #1a0f30 !important;
  transform: translateX(-3px);
}
.mobile-nav-link:hover *,
.mobile-nav-link:active * {
  color: #1a0f30 !important;
}

.mobile-nav-link.featured-nav-link {
  border-color: var(--accent-coral);
  background: rgba(255, 118, 87, 0.08);
}
.mobile-nav-link .nav-badge {
  margin-right: auto;
  font-size: 0.7rem;
  font-weight: 900;
  background: var(--accent-coral);
  color: #ffffff !important;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--pencil-ink);
}

/* Responsive Media Queries */
@media (max-width: 1023px) {
  .sketch-nav-desktop {
    display: none !important;
  }
  .btn-mobile-hamburger {
    display: inline-flex;
  }
  .vip-games-showcase {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .brand-text .subtext {
    display: none;
  }
  .btn-draw-toggle .btn-label {
    display: none;
  }
  .btn-draw-toggle {
    padding: 0.45rem 0.7rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .hero-title {
    font-size: 2.1rem;
    line-height: 1.3;
  }
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.8;
  }
  .pricing-cards-grid {
    grid-template-columns: 1fr;
  }
  .doodle-badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .doodle-badge {
    padding: 1rem 0.5rem;
  }
  .nav-doodle-actions {
    gap: 0.45rem;
  }
  .btn-header-panel {
    padding: 0.45rem 0.7rem;
    font-size: 0.82rem;
  }
  .btn-header-panel .hidden-xs {
    display: none;
  }
  .btn-header-panel .visible-xs {
    display: inline;
  }
}

@media (min-width: 769px) {
  .btn-header-panel .visible-xs {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .brand-text h1 {
    font-size: 1.05rem;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  .btn-sketch {
    font-size: 0.82rem;
  }
  .doodle-badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
}

/* =============================================================================
   DEFINITIVE NIGHT MODE EXCLUSIVE: YELLOW CONTRAST OVERHAUL (#4d4659)
   Strictly active under html.night. 100% leaves light mode untouched.
   Forces deep slate purple (#4d4659 !important) on:
   - "بدون تحریم" (.hero-title .handwritten-highlight)
   - "سرور تهران", "پشتیبان رله", "رادار زنده", "هدیه عضویت" (.sticky-badge)
   - "★ اشتراک یکپارچه رایگان (Early Access)" (.sketch-badge-yellow)
   - All buttons, tapes, pills, badges, and elements with yellow backgrounds
   ============================================================================= */
html.night .hero-title .handwritten-highlight,
html.night .hero-title span.handwritten-highlight,
html.night span.handwritten-highlight,
html.night .handwritten-highlight,
html.night body.sketch-theme .hero-title .handwritten-highlight,
html.night body.sketch-theme .hero-title span.handwritten-highlight,
html.night body.sketch-theme span.handwritten-highlight,
html.night body.sketch-theme .handwritten-highlight {
  color: #4d4659 !important;
  background: transparent !important;
  border-color: transparent !important;
  text-shadow: none !important;
}

html.night .hero-title .handwritten-highlight *,
html.night span.handwritten-highlight *,
html.night body.sketch-theme .hero-title .handwritten-highlight *,
html.night body.sketch-theme span.handwritten-highlight * {
  color: #4d4659 !important;
  text-shadow: none !important;
}

html.night .hero-title .handwritten-highlight::before,
html.night span.handwritten-highlight::before,
html.night body.sketch-theme .hero-title .handwritten-highlight::before {
  background: #ffd54f !important;
  opacity: 0.95 !important;
}

/* Sticky notes badges: سرور تهران، پشتیبان رله، رادار زنده، هدیه عضویت */
html.night .sticky-badge,
html.night span.sticky-badge,
html.night .sticky-header .sticky-badge,
html.night .sticky-header span.sticky-badge,
html.night body.sketch-theme .sticky-badge,
html.night body.sketch-theme span.sticky-badge,
html.night body.sketch-theme .sticky-header .sticky-badge {
  background: #ffd54f !important;
  color: #4d4659 !important;
  border-color: #4d4659 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

html.night .sticky-badge *,
html.night span.sticky-badge *,
html.night .sticky-header .sticky-badge *,
html.night body.sketch-theme .sticky-badge *,
html.night body.sketch-theme span.sticky-badge * {
  color: #4d4659 !important;
  text-shadow: none !important;
}

/* Panel early access badge: ★ اشتراک یکپارچه رایگان (Early Access) */
html.night .sketch-badge-yellow,
html.night div.sketch-badge-yellow,
html.night span.sketch-badge-yellow,
html.night body.sketch-theme .sketch-badge-yellow,
html.night body.sketch-theme div.sketch-badge-yellow,
html.night body.sketch-theme span.sketch-badge-yellow {
  background: #ffd54f !important;
  color: #4d4659 !important;
  border-color: #4d4659 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

html.night .sketch-badge-yellow *,
html.night div.sketch-badge-yellow *,
html.night body.sketch-theme .sketch-badge-yellow * {
  color: #4d4659 !important;
  text-shadow: none !important;
}

/* All other elements with yellow / amber background in dark mode */
html.night #btnDrawToggle,
html.night #btnDrawToggle *,
html.night .btn-draw-toggle,
html.night .btn-draw-toggle *,
html.night .popular-tape,
html.night .popular-tape *,
html.night .pricing-card-sketch .popular-tape,
html.night .pricing-card-sketch .popular-tape *,
html.night .setup-steps-list li::before,
html.night .vip-game-icon,
html.night .vip-game-icon *,
html.night .badge-yellow,
html.night .badge-yellow *,
html.night .stamp-yellow,
html.night .stamp-yellow *,
html.night .btn-yellow,
html.night .btn-yellow *,
html.night .btn-sketch.btn-yellow,
html.night .btn-sketch.btn-yellow *,
html.night body.sketch-theme .btn-yellow,
html.night body.sketch-theme .btn-yellow *,
html.night body.sketch-theme .btn-sketch.btn-yellow,
html.night body.sketch-theme .btn-sketch.btn-yellow *,
html.night .duration-sketch-pill.active,
html.night .duration-sketch-pill.active *,
html.night body.sketch-theme .duration-sketch-pill.active,
html.night body.sketch-theme .duration-sketch-pill.active *,
html.night [style*="background:var(--accent-yellow)"],
html.night [style*="background:var(--accent-yellow)"] *,
html.night [style*="background: var(--accent-yellow)"],
html.night [style*="background: var(--accent-yellow)"] *,
html.night [style*="background:#ffe082"],
html.night [style*="background:#ffe082"] *,
html.night [style*="background: #ffe082"],
html.night [style*="background: #ffe082"] *,
html.night [style*="background:#ffd54f"],
html.night [style*="background:#ffd54f"] *,
html.night [style*="background: #ffd54f"],
html.night [style*="background: #ffd54f"] *,
html.night [style*="background:#fff083"],
html.night [style*="background:#fff083"] *,
html.night [style*="background: #fff083"],
html.night [style*="background: #fff083"] *,
html.night [style*="background:#ffd43b"],
html.night [style*="background:#ffd43b"] *,
html.night [style*="background: #ffd43b"],
html.night [style*="background: #ffd43b"] *,
html.night [style*="background:#facc15"],
html.night [style*="background:#facc15"] *,
html.night [style*="background: #facc15"],
html.night [style*="background: #facc15"] * {
  color: #4d4659 !important;
  text-shadow: none !important;
}

html.night #btnDrawToggle:hover,
html.night #btnDrawToggle:hover *,
html.night .btn-yellow:hover,
html.night .btn-yellow:hover *,
html.night body.sketch-theme .btn-yellow:hover,
html.night body.sketch-theme .btn-yellow:hover * {
  background: #ffe082 !important;
  color: #4d4659 !important;
}

/* ==========================================================================
   PANEL CONTRAST: leftover dark Tailwind chips + night sticky notes
   Dark ink was painting onto dark slate-800/80 fills and darkened notes.
   ========================================================================== */

body.sketch-theme .bg-slate-800\/80,
body.sketch-theme .bg-slate-800\/90,
body.sketch-theme .bg-slate-800\/60,
body.sketch-theme .bg-slate-700,
body.sketch-theme .bg-slate-700\/80,
body.sketch-theme [class*="bg-slate-8"]:not(.fixed),
body.sketch-theme [class*="bg-slate-7"]:not(.fixed) {
  background: rgba(var(--pencil-ink-rgb), 0.08) !important;
  color: var(--pencil-ink) !important;
}

html.night body.sketch-theme .bg-slate-800,
html.night body.sketch-theme .bg-slate-800\/80,
html.night body.sketch-theme .bg-slate-800\/90,
html.night body.sketch-theme .bg-slate-800\/60,
html.night body.sketch-theme .bg-slate-700,
html.night body.sketch-theme [class*="bg-slate-8"]:not(.fixed),
html.night body.sketch-theme [class*="bg-slate-7"]:not(.fixed) {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #f4effa !important;
  border-color: rgba(244, 239, 250, 0.4) !important;
}

html.night body.sketch-theme [class*="bg-slate-8"]:not(.fixed) *,
html.night body.sketch-theme [class*="bg-slate-7"]:not(.fixed) * {
  color: #f4effa !important;
}

html.night body.sketch-theme table thead th,
html.night body.sketch-theme table tbody td {
  color: #f4effa !important;
}

html.night body.sketch-theme #detectedIpDisplay,
html.night body.sketch-theme h1,
html.night body.sketch-theme h2,
html.night body.sketch-theme h3,
html.night body.sketch-theme .text-white {
  color: #f4effa !important;
}

html.night body.sketch-theme .text-slate-300,
html.night body.sketch-theme .text-slate-400,
html.night body.sketch-theme .text-slate-500,
html.night body.sketch-theme [class*="text-slate-"] {
  color: #d4c4ee !important;
}

/* Sticky notes stay light paper with dark ink in night (readable, matches yellow overhaul) */
html.night body.sketch-theme .sketch-note-yellow {
  background: #ffe082 !important;
  border-color: #4d4659 !important;
  color: #1a0f30 !important;
}
html.night body.sketch-theme .sketch-note-yellow * {
  color: #1a0f30 !important;
}

html.night body.sketch-theme .sketch-note-mint {
  background: #b8f0d4 !important;
  border-color: #4d4659 !important;
  color: #064e3b !important;
}
html.night body.sketch-theme .sketch-note-mint * {
  color: #064e3b !important;
}

html.night body.sketch-theme .sketch-note-peach {
  background: #ffd7be !important;
  border-color: #4d4659 !important;
  color: #7c2d12 !important;
}
html.night body.sketch-theme .sketch-note-peach * {
  color: #7c2d12 !important;
}

html.night body.sketch-theme .sketch-note-lavender {
  background: #ddd6fe !important;
  border-color: #4d4659 !important;
  color: #4c1d95 !important;
}
html.night body.sketch-theme .sketch-note-lavender * {
  color: #4c1d95 !important;
}

html.night body.sketch-theme .sketch-note-yellow .btn-sketch,
html.night body.sketch-theme .sketch-note-mint .btn-sketch,
html.night body.sketch-theme .sketch-note-peach .btn-sketch,
html.night body.sketch-theme .sketch-note-lavender .btn-sketch {
  background: #fffef8 !important;
  color: #1a0f30 !important;
  border-color: #1a0f30 !important;
  box-shadow: 2px 2px 0 #1a0f30 !important;
}

/* Yellow promo chips + cluster CTA: dark ink on yellow (not lavender-on-yellow) */
html.night body.sketch-theme .sketch-badge-yellow,
html.night body.sketch-theme .sketch-badge-yellow span,
html.night body.sketch-theme #btnClusterPlanAction,
html.night body.sketch-theme #btnClusterPlanAction span,
html.night body.sketch-theme .btn-sketch.btn-yellow,
html.night body.sketch-theme .btn-sketch.btn-yellow span,
html.night body.sketch-theme a.btn-yellow,
html.night body.sketch-theme a.btn-yellow span,
html.night body.sketch-theme button.btn-yellow,
html.night body.sketch-theme button.btn-yellow span {
  color: #1a0f30 !important;
  -webkit-text-fill-color: #1a0f30 !important;
}

html.night body.sketch-theme .sketch-badge-yellow,
html.night body.sketch-theme #btnClusterPlanAction,
html.night body.sketch-theme .btn-sketch.btn-yellow,
html.night body.sketch-theme a.btn-yellow,
html.night body.sketch-theme button.btn-yellow {
  background: #ffe082 !important;
  border-color: #1a0f30 !important;
}

/* All red/coral CTAs: light text on crimson */
html.night body.sketch-theme .btn-coral,
html.night body.sketch-theme .btn-coral span,
html.night body.sketch-theme .btn-sketch.btn-coral,
html.night body.sketch-theme .btn-sketch.btn-coral span,
html.night body.sketch-theme a.btn-coral,
html.night body.sketch-theme a.btn-coral span,
html.night body.sketch-theme button.btn-coral,
html.night body.sketch-theme button.btn-coral span,
html.night body.sketch-theme .btn-primary,
html.night body.sketch-theme .btn-primary span,
html.night body.sketch-theme #btnProPlanAction,
html.night body.sketch-theme #btnProPlanAction span,
html.night body.sketch-theme #btnTestPing,
html.night body.sketch-theme #btnTestPing span,
html.night body.sketch-theme .btn-header-panel,
html.night body.sketch-theme .btn-header-panel span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* ==========================================================================
   INNER PAGES (FAQ, Pricing, Services, Developers, 404)
   ========================================================================== */
.hidden { display: none !important; }

body.inner-page .sketch-nav-desktop a.nav-current {
  background: var(--accent-mint);
}

@media (max-width: 1180px) {
  body.inner-page .sketch-nav-desktop {
    display: none !important;
  }
  body.inner-page .btn-mobile-hamburger {
    display: inline-flex !important;
  }
}

.inner-top-notice {
  position: relative;
  z-index: 110;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.7;
  padding: 0.55rem 1.25rem;
  background: var(--accent-yellow);
  color: #1a0f30;
  border-bottom: 2.5px solid var(--pencil-ink);
}
.inner-top-notice,
.inner-top-notice span,
.inner-top-notice strong {
  color: #1a0f30 !important;
}
.inner-top-notice a,
.inner-top-notice button,
.inner-top-notice .notice-link {
  color: var(--accent-coral) !important;
  font-weight: 900;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  text-decoration: underline;
}

.auth-cluster {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.header-user-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border: 2px solid var(--pencil-ink);
  border-radius: var(--wobble-2);
  background: var(--accent-yellow);
  color: #1a0f30;
  font-size: 0.78rem;
  font-weight: 800;
  max-width: 220px;
}
.header-user-chip,
.header-user-chip span {
  color: #1a0f30 !important;
}
.header-user-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

.page-hero {
  text-align: center;
  padding: 2.4rem 0 1.6rem;
}
.page-hero .hero-title {
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  margin-bottom: 0.75rem;
}
.page-hero .hero-subtitle {
  max-width: 640px;
  margin: 0 auto;
}

.inner-card {
  padding: 1.4rem 1.35rem 1.5rem;
  margin-bottom: 1rem;
}
.inner-card h3 {
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--pencil-ink);
  margin: 0 0 0.55rem;
  line-height: 1.55;
}
.inner-card p,
.inner-card li {
  color: var(--pencil-soft);
  font-weight: 600;
  line-height: 1.85;
  font-size: 0.98rem;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto 2.5rem;
}

.inner-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.inner-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gateway-card,
.subdomain-card {
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--pencil-ink);
}
.gateway-card {
  min-height: 240px;
}
.subdomain-card {
  min-height: 0;
}
.gateway-card h3,
.subdomain-card h3 {
  font-size: 1.15rem;
  font-weight: 900;
  margin: 0.15rem 0 0.2rem;
  color: var(--pencil-ink);
}
.gateway-host,
.subdomain-host {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-coral);
  direction: ltr;
  text-align: left;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.chip {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border: 1.5px solid var(--pencil-ink);
  border-radius: 999px;
  background: rgba(var(--pencil-ink-rgb), 0.05);
  color: var(--pencil-ink);
}
.latency-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  padding: 0.2rem 0.55rem;
  border: 2px dashed var(--pencil-ink);
  border-radius: 999px;
  background: var(--accent-mint);
  color: #064e3b;
}
html.night .latency-pill { color: #064e3b; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-top: 0.85rem;
  border-top: 2px dashed rgba(var(--pencil-ink-rgb), 0.22);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.metric-card {
  text-align: center;
  padding: 1.1rem 0.7rem;
}
.metric-card .stat-val {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--pencil-ink);
  display: block;
  margin-bottom: 0.3rem;
}
.metric-card .stat-lbl {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pencil-soft);
}

.sketch-404-num {
  font-family: var(--font-sketch);
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 700;
  color: var(--accent-coral);
  line-height: 0.9;
  transform: rotate(-5deg);
  margin: 0.4rem 0 0.6rem;
  text-shadow: 4px 4px 0 var(--pencil-ink);
}

.gated-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.25rem;
  text-align: center;
  background: rgba(252, 249, 242, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: inherit;
}
html.night .gated-lock-overlay {
  background: rgba(26, 20, 46, 0.92);
}
.gated-lock-overlay.hidden { display: none !important; }

.explorer-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .explorer-layout { grid-template-columns: 1fr; }
}
.explorer-code {
  position: relative;
  overflow: hidden;
  border: 2.5px solid var(--pencil-ink);
  border-radius: 12px;
  background: var(--paper-bg-day);
  box-shadow: 4px 4px 0 var(--pencil-ink);
}
.explorer-code .code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.85rem;
  background: #ffe082 !important;
  color: #1a0f30 !important;
  border-bottom: 2px dashed #1a0f30;
  font-weight: 800;
  font-size: 0.85rem;
}
.explorer-code pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--pencil-ink);
  min-height: 180px;
  white-space: pre-wrap;
}
.tabs-scroll-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

#svcFeatures {
  list-style: none;
  margin: 0;
  padding: 0;
}
#svcFeatures li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: var(--pencil-soft);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.notice-amber {
  background: var(--accent-yellow) !important;
  color: #1a0f30 !important;
  border: 2.5px solid var(--pencil-ink);
  border-radius: var(--wobble-2);
  padding: 0.85rem 1rem;
  font-weight: 700;
  text-align: center;
  margin: 0 auto 1.25rem;
  max-width: 720px;
}
.notice-amber,
.notice-amber * {
  color: #1a0f30 !important;
}

.promo-mint {
  background: var(--accent-mint);
  color: #064e3b;
  border: 2.5px solid var(--pencil-ink);
  border-radius: var(--wobble-1);
  box-shadow: 4px 4px 0 var(--pencil-ink);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0 auto 1.75rem;
  max-width: 960px;
}
.promo-mint,
.promo-mint * {
  color: #064e3b !important;
}

body.inner-page main.container {
  padding-bottom: 3.5rem;
}

@media (max-width: 1360px) {
  body.inner-page .btn-draw-toggle .btn-label {
    display: none;
  }
}

#dnsCardIp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
#dnsCardIp span {
  color: var(--accent-coral);
  font-weight: 800;
}
#dnsCardIp span:last-child {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border: 1.5px solid var(--pencil-ink);
  border-radius: 999px;
  background: var(--accent-yellow);
  color: #1a0f30 !important;
}

#svcFeatures svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--accent-coral);
  stroke: currentColor;
}

html.night .explorer-code pre,
html.night .explorer-code code {
  color: var(--pencil-ink);
}

html.night .explorer-code .code-header,
html.night .explorer-code .code-header span,
html.night .explorer-code .code-header button {
  background: #ffe082 !important;
  color: #1a0f30 !important;
  -webkit-text-fill-color: #1a0f30 !important;
}
