/* =============================================================
   SLONSALE PREMIUM DESIGN SYSTEM v2.0
   Core: Tokens · Reset · Typography · Buttons · Inputs
         Header · Footer · Animations · Responsive
   © SlonPlus — Black & Gold Architecture
   NOTE: No @import — fonts loaded via wp_enqueue_style (PHP)
   ============================================================= */

/* ── 1. DESIGN TOKENS ──────────────────────────────────────── */
:root {
  /* Backgrounds */
  --background:    #0D0D0F;
  --card:          #121212;
  --popover:       #121212;
  --secondary-bg:  #1a1a1a;
  --header-bg:     rgba(0, 0, 0, 0.8);

  /* Foregrounds */
  --foreground:           #f2f2f2;
  --muted-foreground:     #999999;
  --secondary-foreground: #cccccc;

  /* Gold Palette */
  --primary:            #C9A84C;
  --primary-foreground: #0A0A0A;
  --gold-light:         #ffd875;
  --gold-dark:          #9b7628;
  --gold-gradient:      linear-gradient(135deg, var(--gold-light), var(--primary), var(--gold-dark));
  --gold-glow:          0 0 15px -3px rgba(201, 168, 76, 0.4);
  --gold-ring:          0 0 0 3px rgba(201, 168, 76, 0.2);

  /* Borders */
  --border: #42381f;

  /* Status */
  --bull: #14a347;
  --bear: #f53d3d;

  /* Radius */
  --radius:      12px;
  --radius-sm:   8px;
  --radius-xs:   6px;
  --radius-full: 9999px;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;

  /* Transitions */
  --ease-fast: 0.15s ease;
  --ease-base: 0.3s ease;
  --ease-slow: 0.5s ease;

  /* Z-indices */
  --z-header:  100;
  --z-sidebar: 200;
  --z-modal:   100000;

  /* Layout */
  --max-width: 1280px;

  /* Customizer-overridable (SlonCustomizer outputs :root override) */
  --header-height: 56px;
  --logo-height:   32px;
}

/* ── 2. CUSTOM SCROLLBAR ───────────────────────────────────── */
::-webkit-scrollbar              { width: 6px; height: 6px; }
::-webkit-scrollbar-track        { background: rgba(0, 0, 0, 0.4); }
::-webkit-scrollbar-thumb        { background: rgba(201, 168, 76, 0.2); border-radius: var(--radius-full); transition: background var(--ease-base); }
::-webkit-scrollbar-thumb:hover  { background: rgba(201, 168, 76, 0.5); }
*                                 { scrollbar-width: thin; scrollbar-color: rgba(201, 168, 76, 0.2) rgba(0,0,0,0.4); }

/* ── 3. GLOBAL RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
ul, ol          { list-style: none; }
button          { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
table           { border-collapse: collapse; width: 100%; }

/* ── 4. LINKS ──────────────────────────────────────────────── */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--ease-base);
}
a:hover { color: var(--gold-light); }
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── 5. TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
  color: var(--foreground);
  margin-bottom: 0.5em;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem,  3vw, 2rem);   }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p     { color: var(--secondary-foreground); margin-bottom: 1rem; }
small { font-size: 0.8rem; color: var(--muted-foreground); }

/* Monospace — for prices, balances, financial data */
.mono,
.price,
.amount,
bdi,
ins,
del { font-family: var(--font-mono) !important; }

/* Uppercase label style for badges, tabs, categories */
.label-upper {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

/* ── 6. UTILITY CLASSES ────────────────────────────────────── */

/* Gold gradient text */
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism card */
.glass-card {
  background: rgba(13, 13, 15, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: var(--radius);
  transition: box-shadow var(--ease-base), border-color var(--ease-base);
}
.glass-card:hover {
  box-shadow: var(--gold-glow);
  border-color: rgba(201, 168, 76, 0.3);
}

/* Dark gradient panel */
.dark-panel {
  background: linear-gradient(135deg, #121212, #0A0A0A);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.2em 0.65em;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: var(--primary);
}
.badge-bull  { background: rgba(20, 163, 71, 0.1);  border-color: rgba(20, 163, 71, 0.3);  color: var(--bull); }
.badge-bear  { background: rgba(245, 61, 61, 0.1);  border-color: rgba(245, 61, 61, 0.3);  color: var(--bear); }

/* Pulse dot (online indicator) */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bull);
  animation: slon-pulse 1.8s ease infinite;
}

/* ── 7. BUTTONS ────────────────────────────────────────────── */

/* Primary — gold gradient */
.btn-primary,
.slon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0 1.375rem;
  height: 44px;
  background: var(--gold-gradient);
  color: var(--primary-foreground) !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: filter var(--ease-fast), box-shadow var(--ease-base), transform var(--ease-fast);
}
.btn-primary:hover,
.slon-btn:hover {
  filter: brightness(1.1);
  box-shadow: var(--gold-glow);
  transform: translateY(-1px);
  color: var(--primary-foreground) !important;
}
.btn-primary:active,
.slon-btn:active { transform: translateY(0); filter: brightness(0.95); }

/* Secondary — ghost gold */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0 1.375rem;
  height: 44px;
  background: rgba(201, 168, 76, 0.05);
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 168, 76, 0.2);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--ease-base), border-color var(--ease-base), box-shadow var(--ease-base), color var(--ease-base);
}
.btn-secondary:hover {
  background: rgba(201, 168, 76, 0.15);
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: var(--gold-glow);
  color: var(--gold-light);
}

/* Danger — red ghost */
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0 1.375rem;
  height: 44px;
  background: transparent;
  color: var(--bear);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 61, 61, 0.3);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease-base), border-color var(--ease-base);
}
.btn-danger:hover {
  background: rgba(245, 61, 61, 0.1);
  border-color: var(--bear);
  color: var(--bear);
}

/* Button row */
.btn-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── 8. INPUTS & FORM CONTROLS ─────────────────────────────── */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
input[type="url"],
textarea,
select {
  width: 100%;
  height: 46px;
  padding: 0 1rem;
  background: rgba(0, 0, 0, 0.4);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--ease-base), box-shadow var(--ease-base);
}
textarea { height: auto; min-height: 120px; padding: 0.75rem 1rem; resize: vertical; }

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 4.5L11 1' stroke='%23C9A84C' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

input::placeholder, textarea::placeholder { color: var(--muted-foreground); }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Custom range slider (used in account page) */
input[type="range"].slon-slider {
  height: 4px;
  width: 100%;
  border: none;
  border-radius: var(--radius-full);
  background: linear-gradient(
    to right,
    var(--primary) 0%,
    var(--primary) var(--slon-slider-fill, 50%),
    rgba(201, 168, 76, 0.15) var(--slon-slider-fill, 50%),
    rgba(201, 168, 76, 0.15) 100%
  );
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
input[type="range"].slon-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: 2px solid var(--gold-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  cursor: grab;
  transition: box-shadow var(--ease-base);
}
input[type="range"].slon-slider::-webkit-slider-thumb:active { cursor: grabbing; box-shadow: 0 0 0 5px rgba(201,168,76,0.2); }
input[type="range"].slon-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--gold-gradient); border: 2px solid var(--gold-dark); cursor: grab; }

/* ── 9. STICKY HEADER ──────────────────────────────────────── */

.slon-header {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: var(--z-header);
  gap: 1rem;
}

.admin-bar .slon-header {
  top: 32px;
}

/* Logo */
.slon-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none !important;
  flex-shrink: 0;
  transition: transform var(--ease-base);
}
.slon-logo:hover { transform: scale(1.04); color: var(--foreground) !important; }
.slon-logo img   { height: var(--logo-height); width: auto; object-fit: contain; }
.slon-logo-text  {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Live badge */
.slon-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.18em 0.6em;
  background: rgba(20, 163, 71, 0.1);
  border: 1px solid rgba(20, 163, 71, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--bull);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* Center nav wrapper */
.slon-center-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

/* Primary nav menu */
.slon-nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}
.slon-nav-menu > li { position: relative; }
.slon-nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  border-radius: var(--radius-xs);
  position: relative;
  transition: color var(--ease-base), background var(--ease-base);
}
.slon-nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0.75rem; right: 0.75rem;
  height: 1.5px;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease-base);
}
.slon-nav-menu > li > a:hover,
.slon-nav-menu > li.current-menu-item > a,
.slon-nav-menu > li.current-menu-ancestor > a {
  color: var(--foreground);
  background: rgba(201, 168, 76, 0.06);
}
.slon-nav-menu > li > a:hover::after,
.slon-nav-menu > li.current-menu-item > a::after { transform: scaleX(1); }

/* Nav icon (PNG / SVG from Description field) */
.slon-nav-icon { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }

/* Dropdown sub-menu */
.slon-nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 6px); left: 0;
  min-width: 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--ease-base), transform var(--ease-base), visibility var(--ease-base);
  z-index: calc(var(--z-header) + 10);
  list-style: none;
}
.slon-nav-menu li:hover > .sub-menu,
.slon-nav-menu li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.slon-nav-menu .sub-menu li a {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--secondary-foreground);
  border-radius: var(--radius-xs);
  transition: background var(--ease-fast), color var(--ease-fast);
  text-decoration: none;
}
.slon-nav-menu .sub-menu li a:hover {
  background: rgba(201, 168, 76, 0.1);
  color: var(--primary);
}

/* Right section of header */
.slon-right-nav {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

/* Language switcher */
.slon-lang-switcher { position: relative; }

.slon-lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.3rem 0.65rem;
  background: rgba(201, 168, 76, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--ease-base), background var(--ease-base), color var(--ease-base);
  white-space: nowrap;
}
.slon-lang-toggle:hover {
  border-color: rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.1);
  color: var(--primary);
}
.slon-lang-arrow { transition: transform var(--ease-base); display: inline-flex; }
.slon-lang-switcher.open .slon-lang-arrow { transform: rotate(180deg); }

.slon-lang-dropdown {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  min-width: 160px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--ease-base), transform var(--ease-base), visibility var(--ease-base);
  z-index: calc(var(--z-header) + 20);
  list-style: none;
}
.slon-lang-switcher.open .slon-lang-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.slon-lang-dropdown li a {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  color: var(--secondary-foreground);
  border-radius: var(--radius-xs);
  transition: background var(--ease-fast), color var(--ease-fast);
  text-decoration: none;
}
.slon-lang-dropdown li a:hover { background: rgba(201, 168, 76, 0.1); color: var(--primary); }
.slon-lang-dropdown li a.active { color: var(--primary); font-weight: 600; }
.slon-lang-flag { font-size: 1.1em; line-height: 1; }

/* Avatar */
.slon-avatar-link { display: block; width: 38px; height: 38px; flex-shrink: 0; }
.slon-avatar {
  width: 38px !important; height: 38px !important;
  border-radius: 50% !important;
  border: 2px solid var(--primary) !important;
  object-fit: cover;
  transition: box-shadow var(--ease-base), border-color var(--ease-base);
}
.slon-avatar:hover {
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.35);
  border-color: var(--gold-light) !important;
}

/* Hamburger (shown on mobile) */
.slon-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: rgba(201, 168, 76, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--ease-base), background var(--ease-base);
}
.slon-hamburger:hover { border-color: rgba(201, 168, 76, 0.45); background: rgba(201, 168, 76, 0.1); }
.slon-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--ease-base), opacity var(--ease-base);
}
.slon-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.slon-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.slon-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 10. MOBILE SIDEBAR ────────────────────────────────────── */

.slon-mobile-sidebar {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-sidebar);
}
.slon-mobile-sidebar.is-open { display: flex; }

.slon-sidebar-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.slon-sidebar-panel {
  position: relative;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.slon-mobile-sidebar.is-open .slon-sidebar-panel { transform: translateX(0); }

.slon-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.125rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.slon-sidebar-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201, 168, 76, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color var(--ease-fast), border-color var(--ease-fast);
}
.slon-sidebar-close:hover { color: var(--primary); border-color: var(--primary); }

.slon-mobile-nav {
  flex: 1;
  padding: 0.75rem;
  list-style: none;
}
.slon-mobile-nav li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.875rem;
  border-radius: var(--radius-sm);
  color: var(--secondary-foreground);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--ease-fast), color var(--ease-fast);
}
.slon-mobile-nav li a:hover,
.slon-mobile-nav li.current-menu-item a {
  background: rgba(201, 168, 76, 0.08);
  color: var(--primary);
}

.slon-sidebar-footer {
  padding: 1rem 1.125rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── 11. CHAT MODAL (existing IDs preserved) ───────────────── */

/* Override legacy inline styles while keeping same selectors */
.chat-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85) !important;
  z-index: var(--z-modal) !important;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}
.chat-modal-window {
  width: min(460px, calc(100vw - 1.5rem)) !important;
  height: min(660px, calc(100svh - 3rem)) !important;
  background: var(--card) !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  border-radius: var(--radius) !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8), 0 0 40px rgba(201,168,76,0.08);
}
.chat-modal-close {
  position: absolute;
  top: 10px; right: 14px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-foreground) !important;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: calc(var(--z-modal) + 10);
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  transition: color var(--ease-fast), background var(--ease-fast);
}
.chat-modal-close:hover { color: var(--foreground) !important; background: rgba(201,168,76,0.2); }
.chat-iframe { width: 100%; height: 100%; border: none; }

/* ── 12. CONTENT CONTAINERS ────────────────────────────────── */

.slon-container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.slon-section   { padding: 3rem 0; }
.slon-grid      { display: grid; gap: 1.5rem; }
.slon-grid-2    { grid-template-columns: repeat(2, 1fr); }
.slon-grid-3    { grid-template-columns: repeat(3, 1fr); }
.slon-grid-4    { grid-template-columns: repeat(4, 1fr); }

/* Feed / activity post card */
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  transition: box-shadow var(--ease-base), border-color var(--ease-base);
}
.post-card:hover { box-shadow: var(--gold-glow); border-color: rgba(201,168,76,0.25); }
.post-header     { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.875rem; }
.post-author-img { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(201,168,76,0.3); object-fit: cover; }
.post-author-name { font-weight: 600; color: var(--foreground); font-size: 0.9rem; }
.post-meta       { font-size: 0.75rem; color: var(--muted-foreground); }
.post-content    { font-size: 0.9rem; line-height: 1.65; color: var(--secondary-foreground); margin-bottom: 0.875rem; }
.post-badge      {
  display: inline-flex; align-items: center; gap: 0.3em;
  background: rgba(201,168,76,0.1); color: var(--primary);
  font-size: 0.68rem; padding: 0.2em 0.65em;
  border-radius: var(--radius-full);
  border: 1px solid rgba(201,168,76,0.2);
  margin-bottom: 0.6rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}

/* Responsive table wrapper */
.slon-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── 13. FOOTER ────────────────────────────────────────────── */

.slon-footer {
  background: linear-gradient(180deg, #0A0A0A, #0D0D0F);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  padding: 3.5rem 1.5rem 1.5rem;
  margin-top: 4rem;
}
.slon-footer-grid {
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
}
.slon-footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 1rem;
}
.slon-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.slon-footer-col ul li a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color var(--ease-base);
}
.slon-footer-col ul li a:hover { color: var(--primary); }
.slon-footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

/* ── 14. ANIMATIONS ────────────────────────────────────────── */

@keyframes slon-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(20,163,71,0.5); }
  50%       { opacity: 0.85; transform: scale(1.15); box-shadow: 0 0 0 6px rgba(20,163,71,0); }
}
@keyframes slon-gold-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  50%       { box-shadow: 0 0 0 7px rgba(201,168,76,0); }
}
@keyframes slon-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slon-slide-in-left {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
.animate-fade-in  { animation: slon-fade-in 0.4s ease both; }

/* ── 15. RESPONSIVE ────────────────────────────────────────── */

@media (max-width: 1200px) {
  .slon-footer-grid { grid-template-columns: 1fr 1fr; }
  .slon-grid-4      { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  /* Hide desktop nav, show hamburger */
  .slon-center-nav { display: none; }
  .slon-hamburger  { display: flex; }
}

@media (max-width: 768px) {
  .slon-header  { padding: 0 1rem; }
  .admin-bar .slon-header { top: 46px; }
  .slon-section { padding: 2rem 0; }
  .slon-container { padding: 0 1rem; }

  .slon-grid-2, .slon-grid-3 { grid-template-columns: 1fr; }
  .slon-footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .slon-footer-bottom { flex-direction: column; text-align: center; }

  .chat-modal-window { width: calc(100vw - 1rem) !important; }

  /* All interactive elements: min-height 44px for touch */
  .btn-primary, .btn-secondary, .btn-danger,
  .slon-btn, .slon-mobile-nav li a,
  input[type="text"], input[type="email"],
  input[type="password"], select { min-height: 44px; }
}

@media (max-width: 480px) {
  .slon-footer-grid     { grid-template-columns: 1fr; }
  .slon-right-nav .slon-lang-toggle span:not(.slon-lang-flag):not(.slon-lang-arrow) { display: none; }
}
