/**
 * EMB AUTH TOOL - Master Luxury Gold & Cybernetic Design System
 * Inspired by Cheetah Emblem & Next-Gen Unlock Platforms
 */

:root {
  --gold-primary: #d9b65b;
  --gold-light: #f0d58a;
  --gold-bright: #fef08a;
  --gold-dark: #a58335;
  --gold-gradient: linear-gradient(135deg, #f0d58a 0%, #d9b65b 50%, #b99747 100%);
  --gold-gradient-subtle: linear-gradient(135deg, rgba(217,182,91, 0.15) 0%, rgba(185,151,71, 0.05) 100%);
  --gold-border: rgba(217,182,91, 0.22);
  --gold-border-hover: rgba(217,182,91, 0.55);
  --gold-glow: 0 0 25px rgba(217,182,91, 0.22);
  --gold-glow-lg: 0 0 45px rgba(217,182,91, 0.35);

  --cyan-accent: #38bdf8;
  --cyan-gradient: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  --cyan-glow: 0 0 20px rgba(56, 189, 248, 0.25);

  --bg-dark: #0b0c0b;
  --bg-darker: #080908;
  --bg-card: rgba(22,22,21, 0.82);
  --bg-card-hover: rgba(32,32,30, 0.95);
  --bg-card-inner: rgba(3, 7, 18, 0.6);

  --text-white: #ffffff;
  --text-light: #f1f5f9;
  --text-muted: #aaa99f;
  --text-subtle: #64748b;

  --success: #10b981;
  --success-glow: 0 0 16px rgba(16, 185, 129, 0.35);
  --danger: #ef4444;
  --danger-glow: 0 0 16px rgba(239, 68, 68, 0.35);
  --warning: #d9b65b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  touch-action: pan-y;
  overscroll-behavior-x: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0b0c0b;
}
::-webkit-scrollbar-thumb {
  background: rgba(217,182,91, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Background Ambient Canvas */
#emb-particles,
#emb-particles canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100% !important;
  max-width: 100vw !important;
  height: 100% !important;
  z-index: 0;
  pointer-events: none;
  overflow: hidden !important;
}

.emb-ambient-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(217,182,91, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 100% 70%, rgba(56, 189, 248, 0.04) 0%, transparent 50%),
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Container */
.emb-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography Helpers */
.emb-gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.emb-cyan-text {
  color: var(--cyan-accent);
}

/* Header & Nav */
.emb-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11,12,11, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(217,182,91, 0.15);
  transition: all 0.3s ease;
}

.emb-header.scrolled {
  background: rgba(3, 5, 12, 0.97);
  border-bottom-color: rgba(217,182,91, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.emb-header .emb-container {
  max-width: 1440px;
}

.emb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

/* Logo */
.emb-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.emb-logo:hover {
  transform: translateY(-1px);
}

.emb-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(217,182,91, 0.6);
  box-shadow: 0 0 16px rgba(217,182,91, 0.25);
}

.emb-logo-text {
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.emb-logo-sub {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--cyan-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Nav Links */
.emb-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
}

.emb-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.emb-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.emb-nav-link.active {
  color: #fff;
  background: rgba(217,182,91, 0.14);
  border: 1px solid rgba(217,182,91, 0.35);
  box-shadow: 0 0 12px rgba(217,182,91, 0.15);
}

.emb-nav-link.highlight {
  color: var(--gold-light);
  font-weight: 700;
  background: rgba(217,182,91, 0.08);
  border: 1px solid rgba(217,182,91, 0.3);
  box-shadow: 0 0 10px rgba(217,182,91, 0.1);
}

.emb-nav-link.highlight:hover {
  background: rgba(217,182,91, 0.16);
  border-color: rgba(217,182,91, 0.5);
  color: #fef08a;
  box-shadow: 0 0 16px rgba(217,182,91, 0.2);
}

.emb-nav-link.highlight.active {
  background: rgba(217,182,91, 0.2);
  border-color: rgba(217,182,91, 0.55);
  box-shadow: 0 0 16px rgba(217,182,91, 0.3);
}

/* Auth Buttons */
.emb-auth-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Universal Buttons */
.emb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

.emb-btn-primary {
  background: var(--gold-gradient);
  color: #030611 !important;
  box-shadow: 0 4px 20px rgba(217,182,91, 0.35);
  font-weight: 800;
}

.emb-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(217,182,91, 0.55);
  filter: brightness(1.06);
}

.emb-btn-outline {
  background: rgba(217,182,91, 0.06);
  border-color: rgba(217,182,91, 0.35);
  color: var(--gold-light) !important;
}

.emb-btn-outline:hover {
  background: rgba(217,182,91, 0.15);
  border-color: var(--gold-primary);
  box-shadow: 0 0 18px rgba(217,182,91, 0.25);
  transform: translateY(-2px);
}

.emb-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light) !important;
}

.emb-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff !important;
  transform: translateY(-1px);
}

.emb-btn-cyan {
  background: var(--cyan-gradient);
  color: #030712 !important;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
  font-weight: 800;
}

.emb-btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.55);
}

.emb-btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.emb-btn-block {
  width: 100%;
}

/* Mobile Toggle */
.emb-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(217,182,91, 0.3);
  color: var(--gold-light);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.emb-mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: rgba(11,12,11, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(217,182,91, 0.2);
  padding: 24px;
  flex-direction: column;
  gap: 12px;
  z-index: 99;
}

.emb-mobile-menu.open {
  display: flex;
}

.emb-mobile-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.emb-mobile-link.active {
  background: rgba(217,182,91, 0.12);
  border-color: rgba(217,182,91, 0.4);
  color: var(--gold-light);
}

/* Hero Section */
.emb-hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 100vw;
  width: 100%;
}

.emb-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(217,182,91, 0.1);
  border: 1px solid rgba(217,182,91, 0.35);
  color: var(--gold-light);
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(217,182,91, 0.15);
}

.emb-hero-emblem-wrap {
  width: 170px;
  height: 170px;
  margin: 0 auto 28px;
  position: relative;
}

.emb-hero-emblem {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(217,182,91, 0.8);
  box-shadow: 0 0 45px rgba(217,182,91, 0.4), inset 0 0 20px rgba(217,182,91, 0.3);
  animation: emblemPulse 4s ease-in-out infinite alternate;
}

@keyframes emblemPulse {
  0% { transform: scale(1); box-shadow: 0 0 35px rgba(217,182,91, 0.35); }
  100% { transform: scale(1.03); box-shadow: 0 0 55px rgba(217,182,91, 0.6), 0 0 20px rgba(56, 189, 248, 0.3); }
}

.emb-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 12px;
}

.emb-hero-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cyan-accent);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.emb-hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.emb-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 54px;
}

/* Hero Stats Counter Grid */
.emb-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(32,32,30, 0.8) 0%, rgba(6, 11, 25, 0.9) 100%);
  border: 1px solid rgba(217,182,91, 0.2);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  max-width: 960px;
  margin: 0 auto;
}

.emb-hero-stat-value {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 4px;
}

.emb-hero-stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Sections */
.emb-section {
  padding: 60px 0;
  position: relative;
}

.emb-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.emb-section-header.center {
  flex-direction: column;
  text-align: center;
  gap: 8px;
}

.emb-section-header svg {
  color: var(--gold-primary);
  flex-shrink: 0;
}

.emb-section-header h2 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}

.emb-section-tag {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  background: rgba(217,182,91, 0.1);
  border: 1px solid rgba(217,182,91, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 8px;
}

/* Feature Cards Grid (4 columns) */
.emb-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.emb-feature-card {
  background: linear-gradient(160deg, rgba(32,32,30, 0.85) 0%, rgba(6, 11, 25, 0.95) 100%);
  border: 1px solid rgba(217,182,91, 0.16);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.emb-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.emb-feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217,182,91, 0.45);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(217,182,91, 0.15);
}

.emb-feature-card:hover::before {
  opacity: 1;
}

.emb-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(217,182,91, 0.1);
  border: 1px solid rgba(217,182,91, 0.3);
  color: var(--gold-light);
}

.emb-feature-icon.cyan {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--cyan-accent);
}

.emb-feature-icon.purple {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.emb-feature-icon.green {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.emb-feature-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.emb-feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Server Status Grid */
.emb-status-card {
  background: linear-gradient(160deg, rgba(32,32,30, 0.85) 0%, rgba(6, 11, 25, 0.95) 100%);
  border: 1px solid rgba(217,182,91, 0.16);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.25s ease;
}

.emb-status-card:hover {
  border-color: rgba(217,182,91, 0.4);
  transform: translateY(-2px);
}

.emb-status-name {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.emb-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.emb-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.emb-status-dot.online {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.emb-status-dot.online::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.emb-status-dot.offline {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.emb-status-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.emb-status-label.online { color: #34d399; }
.emb-status-label.offline { color: #f87171; }

/* Tool Download Cards (3 columns) */
.emb-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) {
  .emb-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .emb-grid-3 { grid-template-columns: 1fr; }
}

.emb-tool-card {
  background: linear-gradient(160deg, rgba(32,32,30, 0.9) 0%, rgba(6, 11, 25, 0.98) 100%);
  border: 1px solid rgba(217,182,91, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.emb-tool-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), var(--gold-glow);
  transform: translateY(-4px);
}

.emb-tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.emb-tool-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(217,182,91, 0.12);
  border: 1px solid rgba(217,182,91, 0.35);
  color: var(--gold-light);
  display: grid;
  place-items: center;
}

.emb-tool-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--cyan-accent);
}

.emb-tool-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}

.emb-tool-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
  flex: 1;
}

/* Telemetry Stats Grid (12 boxes) */
.emb-grid-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.emb-stat-box {
  background: rgba(6, 11, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  text-align: center;
  transition: all 0.3s ease;
}

.emb-stat-box:hover {
  border-color: rgba(217,182,91, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.emb-stat-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 4px;
}

.emb-stat-value.gold { color: var(--gold-light); }
.emb-stat-value.cyan { color: var(--cyan-accent); }
.emb-stat-value.green { color: #34d399; }
.emb-stat-value.red { color: #f87171; }
.emb-stat-value.orange { color: #fb923c; }

.emb-stat-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

/* Pricing Page Grid */
.emb-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.emb-pricing-card {
  background: linear-gradient(160deg, rgba(32,32,30, 0.9) 0%, rgba(6, 11, 25, 0.98) 100%);
  border: 1px solid rgba(217,182,91, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.emb-pricing-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), var(--gold-glow);
}

.emb-pricing-cost {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card-inner);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin: 16px 0;
}

.emb-pricing-amount {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold-light);
}

.emb-pricing-unit {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.emb-pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 24px;
  flex: 1;
}

.emb-pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.emb-pricing-features li svg {
  color: var(--gold-light);
  flex-shrink: 0;
}

/* Distributors Grid */
.emb-dist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.emb-dist-card {
  background: linear-gradient(160deg, rgba(32,32,30, 0.9) 0%, rgba(6, 11, 25, 0.98) 100%);
  border: 1px solid rgba(217,182,91, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.emb-dist-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), var(--gold-glow);
}

.emb-dist-logo-box {
  width: 100%;
  height: 84px;
  background: var(--bg-card-inner);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  margin-bottom: 18px;
  overflow: hidden;
}

.emb-dist-logo-box img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.emb-dist-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.emb-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.emb-dist-country {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.emb-dist-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.emb-dist-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.emb-social-row {
  display: flex;
  gap: 8px;
}

.emb-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1 !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.emb-social-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff !important;
}

.emb-social-btn.wa:hover {
  color: #25D366 !important;
  border-color: rgba(37, 211, 102, 0.4);
  background: rgba(37, 211, 102, 0.1);
}

.emb-social-btn.tg:hover {
  color: #0088cc !important;
  border-color: rgba(0, 136, 204, 0.4);
  background: rgba(0, 136, 204, 0.1);
}

/* Interactive IMEI Checker Card */
.emb-checker-container {
  max-width: 680px;
  margin: 0 auto;
  background: linear-gradient(160deg, rgba(32,32,30, 0.95) 0%, rgba(6, 11, 25, 0.98) 100%);
  border: 1px solid rgba(217,182,91, 0.25);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), var(--gold-glow);
}

.emb-checker-input-group {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.emb-checker-input {
  flex: 1;
  background: var(--bg-card-inner);
  border: 1px solid rgba(217,182,91, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 1rem;
  font-family: var(--font-mono);
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
}

.emb-checker-input:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 20px rgba(217,182,91, 0.25);
}

.emb-checker-result {
  margin-top: 28px;
  display: none;
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--bg-card-inner);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.emb-checker-result-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.92rem;
}

.emb-checker-result-row:last-child {
  border-bottom: none;
}

/* Footer */
.emb-footer {
  margin-top: auto;
  background: rgba(3, 5, 12, 0.95);
  border-top: 1px solid rgba(217,182,91, 0.12);
  padding: 60px 0 30px;
  position: relative;
  z-index: 1;
}

.emb-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.emb-footer-about p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 16px 0;
  max-width: 340px;
}

.emb-footer-links h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.emb-footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.emb-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.emb-footer-links a:hover {
  color: var(--gold-light);
  transform: translateX(3px);
}

.emb-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

/* Floating Quick Support Button */
.emb-floating-social {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.emb-float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.emb-float-btn.telegram {
  background: linear-gradient(135deg, #0088cc 0%, #00b4d8 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.emb-float-btn.whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.emb-float-btn:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

/* Scroll Entrance Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate-delay-1 { transition-delay: 0.1s; }
.scroll-animate-delay-2 { transition-delay: 0.2s; }
.scroll-animate-delay-3 { transition-delay: 0.3s; }
.scroll-animate-delay-4 { transition-delay: 0.4s; }
.scroll-animate-delay-5 { transition-delay: 0.5s; }

/* Responsive Media Queries */
@media (max-width: 1240px) {
  .emb-header-inner { gap: 10px; }
  .emb-nav { gap: 2px; }
  .emb-nav-link { font-size: 0.81rem; padding: 6px 8px; }
  .emb-logo-text { font-size: 1.05rem; }
  .emb-logo-sub { font-size: 0.58rem; }
  .emb-logo-img { width: 38px; height: 38px; }
  .emb-auth-buttons { gap: 6px; }
  .emb-btn-ghost, .emb-btn-primary { padding: 7px 12px; font-size: 0.82rem; }
}

@media (max-width: 1080px) {
  .emb-nav, .emb-auth-buttons { display: none; }
  .emb-mobile-toggle { display: inline-flex; }
  .emb-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .emb-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .emb-grid-stats { grid-template-columns: repeat(3, 1fr); }
  .emb-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Strict Anti-Horizontal Scroll Lock */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative !important;
    touch-action: pan-y !important;
    overscroll-behavior-x: none !important;
  }

  *, *::before, *::after {
    box-sizing: border-box !important;
  }

  /* Force all main containers to fit phone bounds */
  .emb-container,
  .emb-header,
  .emb-hero,
  .emb-section,
  .emb-footer {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .emb-container {
    padding: 0 16px !important;
  }

  /* Header Mobile */
  .emb-header-inner {
    height: 64px !important;
    padding: 0 16px !important;
  }

  .emb-logo-img {
    width: 36px !important;
    height: 36px !important;
  }

  .emb-logo-text {
    font-size: 1.02rem !important;
  }

  .emb-logo-sub {
    font-size: 0.55rem !important;
  }

  /* Hero Section Mobile */
  .emb-hero {
    padding: 36px 0 44px !important;
  }

  .emb-hero-emblem-wrap {
    width: 130px !important;
    height: 130px !important;
    margin: 0 auto 20px !important;
  }

  .emb-hero-badge {
    max-width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.4 !important;
    font-size: 0.72rem !important;
    padding: 6px 12px !important;
    display: inline-flex !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin-bottom: 18px !important;
  }

  .emb-hero h1 {
    font-size: 26px !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
    margin-bottom: 12px !important;
  }

  .emb-hero-subtitle {
    font-size: 13px !important;
    line-height: 1.45 !important;
    word-break: break-word !important;
    margin-bottom: 14px !important;
    padding: 0 4px !important;
  }

  .emb-hero-desc {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin: 0 auto 28px !important;
    padding: 0 6px !important;
  }

  /* Hero Action Buttons - Full-Width Stacked */
  .emb-hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 36px !important;
    box-sizing: border-box !important;
  }

  .emb-hero-actions .emb-btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    white-space: normal !important;
    text-align: center !important;
    padding: 13px 18px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
  }

  /* Hero Live Stats Grid (2 Columns on mobile) */
  .emb-hero-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    padding: 16px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
  }

  .emb-hero-stat-value {
    font-size: 1.55rem !important;
  }

  .emb-hero-stat-label {
    font-size: 0.68rem !important;
  }

  /* Grids */
  .emb-grid-4 {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .emb-feature-card {
    padding: 20px 18px !important;
    border-radius: 16px !important;
  }

  .emb-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .emb-grid-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .emb-stat-box {
    padding: 14px 10px !important;
    border-radius: 12px !important;
  }

  .emb-stat-value {
    font-size: 1.4rem !important;
  }

  /* Pricing & Distributors */
  .emb-pricing-grid,
  .dist-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .emb-pricing-card,
  .dist-card {
    padding: 20px 18px !important;
    border-radius: 18px !important;
  }

  .emb-section-header h2 {
    font-size: 1.5rem !important;
  }

  .emb-checker-container {
    padding: 24px 16px !important;
    border-radius: 18px !important;
  }

  .emb-checker-input-group {
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* Footer */
  .emb-footer {
    padding: 40px 0 24px !important;
  }

  .emb-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .emb-footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
  }

  /* Floating Support Buttons */
  .emb-floating-social {
    right: 16px !important;
    bottom: 16px !important;
  }

  .emb-float-btn {
    width: 44px !important;
    height: 44px !important;
  }
}

/* Extra Small Mobile Devices (<= 380px) */
@media (max-width: 380px) {
  .emb-hero h1 {
    font-size: 23px !important;
  }

  .emb-hero-stats {
    grid-template-columns: 1fr !important;
  }

  .emb-grid-stats {
    grid-template-columns: 1fr !important;
  }
}

/* EMB emblem palette: charcoal, black and metallic gold. */
:root{--emb-gold:#d9b65b;--emb-gold-light:#f0d58a;--emb-gold-deep:#a58335;--emb-surface:#161615;--emb-surface-raised:#20201e;--emb-line:#39352b;--gold-primary:#d9b65b;--gold-light:#f0d58a;--gold-bright:#f5e5b5;--gold-dark:#a58335;--gold-gradient:linear-gradient(135deg,#f0d58a,#d9b65b 60%,#b99747);--gold-gradient-subtle:linear-gradient(135deg,#d9b65b18,#d9b65b06);--gold-border:#d9b65b33;--gold-border-hover:#d9b65b88;--gold-glow:0 0 20px #d9b65b18;--gold-glow-lg:0 0 30px #d9b65b24;--bg-dark:#0b0c0b;--bg-darker:#080908;--bg-card:#161615;--bg-card-hover:#20201e;--bg-card-inner:#101110;--text-muted:#aaa99f;--text-subtle:#919188;--cyan-accent:#79b5aa;--orange:#d9b65b;--orange-dark:#a58335;--emb-orange:#d9b65b;--emb-burnt:#b99747;--emb-copper:#a58335;--emb-black:#0b0c0b;--emb-panel:#161615;--emb-panel-2:#20201e;--emb-muted:#aaa99f;--emb-border:#d9b65b33;--emb-metal:#d1d0c6;--emb-silver:#f4f2e9}
html{color-scheme:dark}body,body.emb-app{background:#0b0c0b!important;color:#f4f2e9}
.emb-navbar,.emb-header,.emb-topbar.navbar,.dash-topbar,.dash-sidebar,.emb-sidebar,.sidebar,.navbar-default.sidebar{background:#101110!important;border-color:#39352b!important}
.emb-hero,.emb-feature-card,.emb-pricing-card,.emb-status-card,.emb-tool-card,.emb-download-card,.emb-checker-container,.emb-card,.emb-stat-card,.table-card,.form-card,.dash-card,.card,.panel,.modal-content,.dropdown-menu{background:#161615!important;border-color:#39352b!important;color:#f4f2e9}
.emb-hero{background:linear-gradient(115deg,#1a1a17,#26231b)!important}
.emb-card,.emb-feature-card,.emb-pricing-card,.emb-tool-card,.emb-status-card,.emb-download-card{transition:border-color .22s ease,box-shadow .22s ease,background .22s ease}
.emb-feature-card:hover,.emb-pricing-card:hover,.emb-tool-card:hover,.emb-status-card:hover,.emb-download-card:hover{background:#1b1b18!important;border-color:#d9b65b99!important;box-shadow:0 12px 30px #0004,0 0 20px #d9b65b10!important}
.emb-pricing-cost,.emb-stat-icon,.emb-checker-result,.table>thead>tr>th,.table-striped>tbody>tr:nth-of-type(odd){background:#101110!important}
.table,.table>tbody>tr>td,.table>thead>tr>th{border-color:#39352b!important}.table>tbody>tr:hover{background:#24221b!important}
input:not([type=checkbox]):not([type=radio]):not([type=submit]),select,textarea,.form-control,.emb-checker-input{background:#101110!important;border-color:#454236!important;color:#f4f2e9!important}
input::placeholder,textarea::placeholder{color:#a3a296!important}input:focus,select:focus,textarea:focus,.form-control:focus{border-color:#d9b65b!important;box-shadow:0 0 0 3px #d9b65b1a!important;outline:none}
input[type=checkbox],input[type=radio]{accent-color:#d9b65b}
.emb-btn-primary,.btn-primary,.btn-warning,.btn-orange,.btn-gold,.btn-login{background:linear-gradient(135deg,#f0d58a,#d9b65b 60%,#b99747)!important;border-color:#d9b65b!important;color:#10110d!important;text-shadow:none!important;box-shadow:0 5px 16px #d9b65b15!important}
.emb-btn-primary:hover,.btn-primary:hover,.btn-warning:hover,.btn-orange:hover,.btn-gold:hover,.btn-login:hover{background:linear-gradient(135deg,#f6e1aa,#e8c976 65%,#c7a653)!important;color:#10110d!important;box-shadow:0 6px 22px #d9b65b2a!important}
.emb-btn-outline,.btn-secondary{background:#1a1a16!important;border-color:#a5833566!important;color:#f0d58a!important}.emb-btn-outline:hover,.btn-secondary:hover{background:#29261c!important;border-color:#d9b65b!important;color:#f5e5b5!important}
.dash-nav-link.active,.dash-nav-link:hover,.sidebar ul li a.active,.sidebar ul li a:hover,.nav>li>a:focus,.nav>li>a:hover{background:#d9b65b16!important;border-color:#d9b65b55!important;color:#f0d58a!important}
.dropdown-menu>li>a,.dropdown-user>li>a{color:#f4f2e9!important}.dropdown-menu>li>a:hover,.dropdown-user>li>a:hover{background:#d9b65b18!important;color:#f0d58a!important}
a:focus-visible,button:focus-visible{outline:2px solid #f0d58a!important;outline-offset:3px}
.emb-device-ecosystem{grid-column:span 2;display:flex;align-items:center;justify-content:center;min-width:0}
.emb-device-logos{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.emb-device-logo{position:relative;overflow:hidden;min-height:112px;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#1b1a15,#0e0f0d);border:1px solid #d9b65b33;border-radius:18px;isolation:isolate;transition:border-color .25s,box-shadow .25s}
.emb-device-logo img{display:block;max-width:112px;max-height:52px;width:76%;object-fit:contain;transition:filter .25s}
.emb-device-logo.mi img{width:54px;height:54px;max-height:54px}.emb-device-logo.shark img{width:68px;height:56px;max-height:56px}
.emb-device-logo:after{content:'';position:absolute;inset:-65%;background:linear-gradient(110deg,transparent 43%,#f0d58a25 50%,transparent 57%);transform:translateX(-100%) rotate(15deg);pointer-events:none;opacity:0}
.emb-device-logo:hover{border-color:#d9b65b99;box-shadow:0 0 24px #d9b65b18}.emb-device-logo:hover img{filter:drop-shadow(0 0 7px #d9b65b22)}.emb-device-logo:hover:after{opacity:1;animation:emb-emblem-sweep 1s ease forwards}
@keyframes emb-emblem-sweep{to{transform:translateX(100%) rotate(15deg)}}
@media(max-width:900px){.emb-device-ecosystem{grid-column:1/-1}.emb-device-logos{gap:12px}}@media(max-width:540px){.emb-device-logos{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.emb-device-logo:after{display:none}.emb-device-logo,.emb-device-logo img{transition:none}}
/* Flexible tracks prevent content from widening cards on small screens. */
.emb-grid-3,.emb-grid-4,.emb-pricing-grid,.emb-download-grid{min-width:0}
.emb-grid-3>*,.emb-grid-4>*,.emb-pricing-grid>*,.emb-download-grid>*{min-width:0;max-width:100%}
@media(max-width:768px){.emb-grid-3,.emb-grid-4{grid-template-columns:minmax(0,1fr)!important}.emb-device-ecosystem{grid-column:1!important}.emb-device-logos{grid-template-columns:repeat(2,minmax(0,1fr))}.emb-section-header{flex-wrap:wrap}.emb-section-header h2{overflow-wrap:anywhere}}

/* Polished gold accents and circular EMB emblem illumination. */
:root{--gold-primary:#edbd42;--gold-light:#ffe295;--gold-bright:#fff2c9;--gold-gradient:linear-gradient(115deg,#aa761d 0%,#e2b547 18%,#fff1b4 38%,#f2cd66 48%,#c49329 65%,#ffe49a 83%,#b88626 100%);--emb-orange:#edbd42;--orange:#edbd42}
.emb-btn-primary,.btn-primary,.btn-warning,.btn-orange,.btn-gold,.btn-login{background:var(--gold-gradient)!important;background-size:160% 100%!important;border:1px solid #f3d585!important;color:#171206!important;box-shadow:inset 0 1px 0 #fff4ce, inset 0 -1px 0 #80571988,0 5px 18px #e8b84330!important;transition:background-position .45s,box-shadow .25s}
.emb-btn-primary:hover,.btn-primary:hover,.btn-warning:hover,.btn-orange:hover,.btn-gold:hover,.btn-login:hover{background:var(--gold-gradient)!important;background-size:160% 100%!important;background-position:100% 0!important;box-shadow:inset 0 1px 0 #fff7df,0 0 24px #e8b84360!important;color:#171206!important}
.emb-btn-outline{border-color:#dfb94f88!important;color:#ffe295!important;box-shadow:inset 0 1px 0 #e8b84316}
.emb-btn-outline:hover{border-color:#f3d585!important;background:linear-gradient(115deg,#34280f,#50401b,#30250f)!important;box-shadow:0 0 20px #e8b84330!important;color:#fff0bc!important}
.emb-original-brand img,.emb-service-brand img,.emb-engine-logo,.emb-download-card>img,.emb-hero-logo,.emb-tool-card>div>img{border-radius:50%!important;object-fit:contain!important;filter:drop-shadow(0 0 9px #e9bd4f77)!important;box-shadow:0 0 0 1px #edcc7266,0 0 25px #e8bc4938,0 0 44px #e8bc491a!important;transition:filter .3s,box-shadow .3s}
.emb-feature-card:hover .emb-original-brand img,.emb-pricing-card:hover .emb-service-brand img,.emb-status-card:hover .emb-engine-logo,.emb-download-card:hover>img{filter:drop-shadow(0 0 13px #f1cd6a99)!important;box-shadow:0 0 0 1px #f8df91aa,0 0 32px #e8bc4960,0 0 58px #e8bc4928!important}
@media(prefers-reduced-motion:reduce){.emb-btn-primary,.btn-primary,.btn-warning,.btn-orange,.btn-gold,.btn-login{transition:none}}

/* Shared navigation, status-card and panel hover finish. */
.emb-nav-link:hover,.emb-nav-link.active,.emb-nav-link.highlight:hover,.emb-btn-ghost:hover,.dash-nav-link:hover,.dash-nav-link.active,body.emb-app .emb-sidebar .nav>li>a:hover,body.emb-app .emb-sidebar .nav>li.active>a,body.emb-app .emb-state-option.is-active{background:var(--gold-gradient)!important;background-size:160% 100%!important;border-color:#f3d585!important;color:#171206!important;text-shadow:none!important;box-shadow:inset 0 1px 0 #fff2c6,0 0 18px #e8b84335!important}
.emb-nav-link,.emb-btn-ghost{border:1px solid transparent;transition:background-position .4s,color .2s,box-shadow .2s}
.emb-nav-link:hover,.emb-btn-ghost:hover{background-position:100% 0!important}
body.emb-app .btn-primary,body.emb-app .btn-warning,body.emb-app .emb-btn:not(.btn-danger):not(.btn-success):not(.emb-btn-outline){background:var(--gold-gradient)!important;background-size:160% 100%!important;color:#171206!important;border-color:#f3d585!important;box-shadow:inset 0 1px 0 #fff2c6,0 5px 18px #e8b84330!important}
body.emb-app .btn-primary:hover,body.emb-app .btn-warning:hover,body.emb-app .emb-btn:not(.btn-danger):not(.btn-success):not(.emb-btn-outline):hover{background:var(--gold-gradient)!important;background-size:160% 100%!important;background-position:100% 0!important;color:#171206!important;box-shadow:inset 0 1px 0 #fff7df,0 0 24px #e8b84360!important}
.emb-status-card{position:relative;isolation:isolate;overflow:hidden;transition:background .25s,border-color .25s,box-shadow .25s}
.emb-status-card:hover{background:linear-gradient(115deg,#a87921,#e5bd55 24%,#fff1ba 46%,#d4aa42 68%,#f4d783 88%,#b78a30)!important;border-color:#ffe7a0!important;box-shadow:inset 0 1px 0 #fff6d4,0 0 24px #e8b84340!important}
.emb-status-card:hover .emb-status-name{color:#171206!important}
.emb-status-card .emb-status-indicator{padding:6px 9px;border-radius:999px;background:#10120fe8}
.emb-status-brand img{border-radius:50%!important;filter:drop-shadow(0 0 7px #e8bc4977);box-shadow:0 0 18px #e8bc4930}
.emb-status-card:after{content:'';position:absolute;inset:-70%;pointer-events:none;z-index:-1;background:linear-gradient(115deg,transparent 43%,#fff8dc66 50%,transparent 57%);transform:translateX(-100%) rotate(12deg);opacity:0}
.emb-status-card:hover:after{opacity:1;animation:emb-emblem-sweep .9s ease forwards}
.emb-footer a:hover{color:#ffe295!important;text-shadow:0 0 10px #e8b84355}
@media(prefers-reduced-motion:reduce){.emb-status-card:after{display:none}.emb-nav-link,.emb-btn-ghost,.emb-status-card{transition:none}}

/* Consistent action controls across administrator, reseller and user tables. */
body.emb-app .btn-default{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:linear-gradient(135deg,#28251b,#171812)!important;color:#ffe295!important;border:1px solid #c7a44e99!important;border-radius:10px;box-shadow:inset 0 1px 0 #f6db8e16;transition:background .2s,box-shadow .2s}
body.emb-app .btn-default:hover,body.emb-app .btn-default:focus{background:var(--gold-gradient)!important;color:#171206!important;border-color:#f3d585!important;box-shadow:inset 0 1px 0 #fff4ce,0 0 16px #e8b84340!important}
body.emb-app .table td:has(.btn){min-width:285px}
body.emb-app .table td .btn{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;gap:6px;min-height:32px;border-radius:10px;padding:6px 10px;margin:2px 2px 2px 0;font-size:12px;font-weight:600;line-height:1.3;white-space:nowrap;text-decoration:none}
body.emb-app .table td form{vertical-align:middle}
body.emb-app .btn-danger{background:linear-gradient(135deg,#b83b37,#8e2927)!important;border-color:#d26961!important;color:#fff!important;box-shadow:inset 0 1px 0 #ffffff16!important}
body.emb-app .btn-danger:hover{background:linear-gradient(135deg,#d04b45,#a5302b)!important;color:#fff!important;box-shadow:0 0 12px #d34f4228!important}
body.emb-app .btn-success{background:linear-gradient(135deg,#238258,#165e40)!important;border-color:#459f72!important;color:#fff!important}
body.emb-app .btn-success:hover{background:linear-gradient(135deg,#2a9966,#1c764f)!important;color:#fff!important}
body.emb-app .btn:disabled,body.emb-app .btn.disabled{opacity:.55;box-shadow:none!important;cursor:not-allowed}

/* EMB mobile navigation: keep the drawer outside the clipped header container. */
@media (max-width:1080px) {
  .emb-header { overflow:visible !important; }
  .emb-header-inner { min-width:0; }
  .emb-header-inner > .emb-logo { min-width:0; flex:1 1 auto; }
  .emb-mobile-toggle { flex:0 0 42px; }
  .emb-header .emb-mobile-menu {
    position:absolute; top:100%; left:0; right:0; width:100%;
    max-height:calc(100vh - 80px); max-height:calc(100dvh - 80px);
    overflow-y:auto; overflow-x:hidden; overscroll-behavior-y:contain;
    -webkit-overflow-scrolling:touch; z-index:1001; padding:16px;
    background:#141510; border-bottom:1px solid #8b753d;
    box-shadow:0 18px 30px rgba(0,0,0,.4); gap:8px;
  }
  .emb-mobile-menu .emb-mobile-auth { display:flex;gap:10px;margin:0 0 8px !important; }
  .emb-mobile-auth .emb-btn { flex:1 1 0;min-width:0;min-height:44px;justify-content:center; }
  .emb-mobile-link { flex-shrink:0;min-height:44px; }
}
@media (max-width:768px) {
  .emb-header .emb-mobile-menu {max-height:calc(100vh - 64px);max-height:calc(100dvh - 64px);}
}
@media (min-width:1081px) {
  .emb-header .emb-mobile-menu,.emb-header .emb-mobile-menu.open {display:none;}
}
