/* -------------------------------------------------------------
 * IMING365 Unified Premium Style System
 * ------------------------------------------------------------- */

:root {
  /* Color Palette */
  --bg-dark: #070b19;
  --bg-dark-soft: #0f162a;
  --bg-light: #f8fafc;
  --bg-light-soft: #ffffff;
  
  --primary: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.15);
  
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  
  --text-dark: #0f172a;
  --text-dark-muted: #475569;
  
  --text-light: #f8fafc;
  --text-light-muted: #94a3b8;
  
  --line-light: #e2e8f0;
  --line-dark: #1e293b;
  
  --glass-bg: rgba(15, 22, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-blur: blur(12px);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.25);
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

/* -------------------------------------------------------------
   Public Landing Page Styles (Dark Luxury Theme)
   ------------------------------------------------------------- */
body.public-body {
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Inter', 'Noto Sans KR', -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Glowing Blobs */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -2;
  opacity: 0.4;
  pointer-events: none;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, rgba(6, 182, 212, 0) 70%);
  top: -100px;
  left: -150px;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-purple) 0%, rgba(139, 92, 246, 0) 70%);
  top: 30%;
  right: -200px;
}

.blob-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary) 0%, rgba(37, 99, 235, 0) 70%);
  bottom: 50px;
  left: 10%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Announcement Top Line */
.top-shopping-line {
  background: linear-gradient(90deg, #1e40af, #0891b2, #0d9488);
  color: white;
  font-size: 13px;
  letter-spacing: -0.2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shopping-line-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 0;
}

.shopping-line-content img {
  height: 20px;
  opacity: 0.95;
}

.shopping-line-content p {
  margin: 0;
  font-weight: 400;
}

.shopping-line-content p span {
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(7, 11, 25, 0.75);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: var(--transition);
}

.site-header .nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--text-light);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent-cyan);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  color: var(--text-light-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--text-light);
}

.btn-contact-nav {
  color: var(--text-light) !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 14px;
}

.btn-contact-nav:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline {
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan) !important;
  border-radius: 8px;
  padding: 6px 14px;
  font-weight: 600;
}

.btn-outline:hover {
  background: rgba(6, 182, 212, 0.1);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

/* Hero Section */
.hero {
  padding: 100px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 20px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 30%, #a5f3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .sub {
  font-size: 18px;
  color: var(--text-light-muted);
  line-height: 1.6;
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary-glowing {
  background: linear-gradient(135deg, var(--accent-cyan), var(--primary));
  color: white;
  position: relative;
  overflow: hidden;
}

.btn-primary-glowing:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.btn-light-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-light-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero card glassmorphism */
.hero-card-wrap {
  perspective: 1000px;
}

.hero-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.card-glow {
  position: absolute;
  top: -150px;
  right: -150px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0) 70%);
  pointer-events: none;
}

.hero-card h3 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  letter-spacing: -0.3px;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}

.hero-card li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.bullet-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.bullet-text strong {
  display: block;
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 2px;
}

.bullet-text p {
  margin: 0;
  font-size: 13px;
  color: var(--text-light-muted);
}

/* Sections */
.section {
  padding: 80px 0;
  position: relative;
}

.section.alt {
  background-color: var(--bg-dark-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-sub {
  color: var(--text-light-muted);
  font-size: 16px;
  margin: 0;
}

/* Cards Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
  font-size: 36px;
  margin-bottom: 20px;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 19px;
  font-weight: 700;
}

.service-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-light-muted);
  line-height: 1.6;
}

.card-footer-line {
  height: 3px;
  width: 40px;
  background: var(--accent-cyan);
  margin-top: 24px;
  border-radius: 2px;
  transition: var(--transition);
}

.card:hover .card-footer-line {
  width: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
}

/* Promo Strip Wrap */
.promo-strip-wrap {
  background-color: var(--bg-dark);
}

.promo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.promo-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  transition: var(--transition);
}

.promo-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.promo-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 16px;
}

.promo-item h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 700;
}

.promo-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-light-muted);
  line-height: 1.5;
}

.mid-shopping-line {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
}

.mid-shopping-line p {
  margin: 0;
  padding: 14px 20px;
  font-size: 14px;
  text-align: center;
}

.mid-shopping-line p span {
  font-weight: 800;
  color: var(--accent-cyan);
  margin-right: 8px;
}

/* Portfolio grid & dynamically loaded cards */
.portfolio-grid .card {
  background: rgba(255, 255, 255, 0.02);
}

.portfolio-grid h3 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 12px;
}

.portfolio-grid p {
  margin: 4px 0;
  font-size: 14px;
}

.portfolio-grid p:first-of-type {
  color: var(--accent-cyan);
  font-weight: 600;
}

.portfolio-grid p:last-of-type {
  color: var(--text-light);
  font-weight: 700;
  font-size: 15px;
  margin-top: 10px;
}

/* Pricing Grid */
.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-card.popular {
  border: 2px solid var(--accent-cyan);
  background: rgba(6, 182, 212, 0.03);
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.1);
}

.pricing-card.popular:hover {
  transform: scale(1.03) translateY(-5px);
}

.plan-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light-muted);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.primary-badge {
  color: var(--accent-cyan);
}

.pricing-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
}

.price {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 12px;
}

.plan-desc {
  font-size: 13px;
  color: var(--text-light-muted);
  margin: 0 0 24px;
  min-height: 40px;
}

.pricing-card .divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.pricing-card .features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.pricing-card .features li {
  position: relative;
  padding-left: 20px;
  color: var(--text-light-muted);
}

.pricing-card .features li::before {
  content: "•";
  color: var(--accent-cyan);
  position: absolute;
  left: 4px;
  font-weight: bold;
}

.plan-btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

.btn-outline-dark {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-light);
}

.btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Contact Section Wrap */
.contact-section-wrap {
  position: relative;
}

.contact-inner-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.contact-info h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.contact-info p {
  color: var(--text-light-muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.contact-info-list {
  display: grid;
  gap: 20px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.info-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.info-text strong {
  display: block;
  font-size: 15px;
  color: var(--text-light);
}

.info-text p {
  margin: 0;
  font-size: 14px;
  color: var(--text-light-muted);
}

.contact-card {
  background: var(--bg-dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
  background: rgba(0, 0, 0, 0.4);
}

.contact-form select {
  cursor: pointer;
}

.contact-form select option {
  background-color: var(--bg-dark-soft);
  color: white;
}

.contact-form textarea {
  min-height: 96px;
  resize: vertical;
}

.btn-submit-form {
  margin-top: 10px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--primary));
  color: white;
  width: 100%;
}

.btn-submit-form:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.35);
}

.note {
  color: var(--text-light-muted);
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
}

/* Footer */
.site-footer {
  background-color: var(--bg-dark-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--text-light);
  margin: 0;
}

.copyright {
  font-size: 13px;
  color: var(--text-light-muted);
  margin: 0;
}


/* ═══════════════════════════════════════════════════════════════
   IMING365 ADMIN PANEL — Premium Enterprise Dark Dashboard
   ═══════════════════════════════════════════════════════════════ */

/* ── Admin CSS Variables ── */
:root {
  --admin-bg: #080d1c;
  --admin-surface: #0d1528;
  --admin-surface-2: #111a30;
  --admin-border: rgba(255,255,255,0.07);
  --admin-border-light: rgba(255,255,255,0.12);
  --admin-sidebar-w: 256px;
  --admin-topbar-h: 62px;
  --admin-text: #e2e8f0;
  --admin-text-muted: #64748b;
  --admin-text-sub: #94a3b8;
  --admin-primary: #3b82f6;
  --admin-primary-glow: rgba(59,130,246,0.2);
  --admin-cyan: #06b6d4;
  --admin-green: #10b981;
  --admin-purple: #8b5cf6;
  --admin-orange: #f59e0b;
  --admin-red: #ef4444;
  --admin-transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* Light theme overrides */
.admin-body:not(.theme-dark) {
  --admin-bg: #f0f4f8;
  --admin-surface: #ffffff;
  --admin-surface-2: #f8fafc;
  --admin-border: rgba(0,0,0,0.08);
  --admin-border-light: rgba(0,0,0,0.14);
  --admin-text: #0f172a;
  --admin-text-muted: #64748b;
  --admin-text-sub: #475569;
  --admin-primary-glow: rgba(59,130,246,0.12);
}

/* ── Base ── */
.admin-body {
  margin: 0;
  background: var(--admin-bg);
  color: var(--admin-text);
  font-family: 'Inter', 'Noto Sans KR', -apple-system, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────────────────────────
   AUTH / LOGIN SCREEN
───────────────────────────────────────────── */
.admin-auth-overlay {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #060a17;
}

.admin-auth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.auth-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}
.auth-blob-1 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  top: -100px; left: -100px;
}
.auth-blob-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  bottom: 50px; right: -80px;
}
.auth-blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  top: 50%; left: 40%;
}

.admin-auth-card {
  position: relative;
  z-index: 1;
  width: 420px;
  background: rgba(13,21,40,0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  text-align: center;
  animation: authCardIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes authCardIn {
  from { opacity:0; transform: translateY(30px) scale(0.95); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

.auth-brand { margin-bottom: 24px; }

.auth-brand-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}
.auth-brand-logo span { color: var(--admin-cyan); }

.auth-brand-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--admin-cyan);
  background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.25);
  padding: 3px 10px;
  border-radius: 20px;
}

.auth-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  color: white;
  letter-spacing: -0.3px;
}

.auth-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 28px;
}

.auth-form { display: flex; flex-direction: column; gap: 12px; }

.auth-field-wrap {
  position: relative;
}
.auth-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  opacity: 0.6;
  pointer-events: none;
}
.auth-field-wrap input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-family: inherit;
  transition: var(--admin-transition);
  box-sizing: border-box;
}
.auth-field-wrap input:focus {
  outline: none;
  border-color: var(--admin-cyan);
  background: rgba(6,182,212,0.05);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
}
.auth-field-wrap input::placeholder { color: #475569; }

.admin-login-btn {
  margin-top: 8px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--admin-primary), var(--admin-cyan));
  color: white;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--admin-transition);
  position: relative;
  overflow: hidden;
}
.admin-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59,130,246,0.4);
}
.admin-login-btn:active { transform: translateY(0); }

.auth-error-msg {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--admin-red);
  min-height: 20px;
  text-align: center;
}

/* ─────────────────────────────────────────────
   ADMIN SHELL LAYOUT
───────────────────────────────────────────── */
.admin-shell {
  display: flex;
  min-height: 100vh;
  background: var(--admin-bg);
}

/* ─────────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────────── */
.admin-sidebar {
  width: var(--admin-sidebar-w);
  min-height: 100vh;
  background: var(--admin-surface);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 300;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}

.sidebar-brand {
  padding: 22px 20px 20px;
  border-bottom: 1px solid var(--admin-border);
  flex-shrink: 0;
}
.sidebar-brand-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--admin-text);
  letter-spacing: -0.5px;
  line-height: 1;
}
.sidebar-brand-logo span { color: var(--admin-cyan); }
.sidebar-brand-sub {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--admin-text-muted);
  margin-top: 4px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.nav-group-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--admin-text-muted);
  padding: 14px 10px 6px;
  margin-top: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: var(--admin-text-sub);
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: var(--admin-transition);
  position: relative;
}
.nav-icon { font-size: 16px; flex-shrink: 0; line-height: 1; }
.nav-text { flex: 1; }

.nav-ai-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  background: linear-gradient(135deg, var(--admin-purple), var(--admin-cyan));
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--admin-text);
  transform: translateX(2px);
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(6,182,212,0.15));
  color: var(--admin-cyan) !important;
  font-weight: 700;
  border: 1px solid rgba(6,182,212,0.2);
}
.admin-body:not(.theme-dark) .nav-item.active {
  background: rgba(59,130,246,0.1);
  color: var(--admin-primary) !important;
  border-color: rgba(59,130,246,0.2);
}

/* ── Sidebar Footer ── */
.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.sidebar-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--admin-primary), var(--admin-cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.sidebar-user-detail { min-width: 0; }
.sidebar-user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--admin-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 11px;
  color: var(--admin-text-muted);
  margin-top: 1px;
}

.sidebar-logout-btn {
  width: 34px; height: 34px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  color: var(--admin-red);
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--admin-transition);
  flex-shrink: 0;
}
.sidebar-logout-btn:hover {
  background: var(--admin-red);
  color: white;
  transform: scale(1.05);
}

/* ─────────────────────────────────────────────
   ADMIN MAIN (RIGHT OF SIDEBAR)
───────────────────────────────────────────── */
.admin-main {
  flex: 1;
  margin-left: var(--admin-sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ─────────────────────────────────────────────
   TOP BAR
───────────────────────────────────────────── */
.admin-topbar {
  height: var(--admin-topbar-h);
  background: var(--admin-surface);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 200;
}

.topbar-toggle-btn {
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--admin-border);
  color: var(--admin-text-sub);
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--admin-transition);
  flex-shrink: 0;
}
.topbar-toggle-btn:hover {
  background: rgba(255,255,255,0.06);
  color: var(--admin-text);
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  flex: 1;
}
.breadcrumb-site { color: var(--admin-text-muted); font-weight: 500; }
.breadcrumb-sep  { color: var(--admin-text-muted); }
.breadcrumb-page { color: var(--admin-text); font-weight: 700; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-status-dot {
  display: flex;
  align-items: center;
  justify-content: center;
}
.status-pulse {
  width: 8px; height: 8px;
  background: var(--admin-green);
  border-radius: 50%;
  position: relative;
  display: block;
}
.status-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--admin-green);
  opacity: 0.4;
  animation: pulsePing 2s ease-out infinite;
}
@keyframes pulsePing {
  0%   { transform: scale(0.8); opacity: 0.6; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(0.8); opacity: 0; }
}

.topbar-theme-btn {
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--admin-border);
  color: var(--admin-text-sub);
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--admin-transition);
}
.topbar-theme-btn:hover {
  background: rgba(255,255,255,0.06);
  color: var(--admin-text);
}

.topbar-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--admin-border);
  border-radius: 20px;
  padding: 5px 12px 5px 6px;
}
.topbar-user-avatar {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--admin-primary), var(--admin-cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: white;
}
.topbar-user-name { font-size: 13px; font-weight: 600; color: var(--admin-text); }

/* ─────────────────────────────────────────────
   CONTENT AREA
───────────────────────────────────────────── */
.admin-content {
  flex: 1;
  padding: 28px 28px 40px;
  overflow-x: hidden;
}

.tab-panel { width: 100%; }
.tab-panel h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.4px;
  color: var(--admin-text);
}
.tab-panel .panel-desc {
  font-size: 13px;
  color: var(--admin-text-muted);
  margin: 0 0 24px;
}

/* ─────────────────────────────────────────────
   KPI CARDS
───────────────────────────────────────────── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  border-radius: 14px;
  padding: 20px;
  color: white;
  position: relative;
  overflow: hidden;
  transition: var(--admin-transition);
}
.kpi-card:hover { transform: translateY(-3px); }
.kpi-card::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.kpi-card .kpi-icon { font-size: 26px; margin-bottom: 12px; display: block; }
.kpi-card .kpi-val  {
  font-family: 'Outfit', sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  color: white;
}
.kpi-card .kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

.kpi-blue   { background: linear-gradient(135deg, #2563eb, #0891b2); }
.kpi-purple { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.kpi-green  { background: linear-gradient(135deg, #059669, #0d9488); }
.kpi-orange { background: linear-gradient(135deg, #ea580c, #d97706); }
.kpi-cyan   { background: linear-gradient(135deg, #0891b2, #0d9488); }
.kpi-pink   { background: linear-gradient(135deg, #db2777, #7c3aed); }

/* Legacy aliases */
.blue-gradient   { background: linear-gradient(135deg, #2563eb, #0891b2); }
.purple-gradient { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.green-gradient  { background: linear-gradient(135deg, #059669, #0d9488); }
.orange-gradient { background: linear-gradient(135deg, #ea580c, #d97706); }

/* ─────────────────────────────────────────────
   SECTION CARDS
───────────────────────────────────────────── */
.admin-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 20px;
}
.admin-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--admin-text);
}
.admin-card .card-sub {
  font-size: 12px;
  color: var(--admin-text-muted);
  margin: 0 0 18px;
}

/* Legacy .card alias */
.card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
}

/* ─────────────────────────────────────────────
   GRID HELPERS
───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.col-2 { grid-template-columns: 1fr 1fr; }
.col-3 { grid-template-columns: repeat(3, 1fr); }

/* ─────────────────────────────────────────────
   ADMIN TABLES
───────────────────────────────────────────── */
.admin-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 0;
}
.admin-table th {
  background: var(--admin-surface-2);
  color: var(--admin-text-muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--admin-border);
  white-space: nowrap;
}
.admin-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--admin-border);
  color: var(--admin-text);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-body:not(.theme-dark) .admin-table tr:hover td { background: rgba(0,0,0,0.02); }

/* generic table override */
table.admin-table { margin-top: 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
table th {
  background: var(--admin-surface-2);
  color: var(--admin-text-muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--admin-border);
}
table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--admin-border);
  color: var(--admin-text);
  vertical-align: middle;
}
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: rgba(255,255,255,0.015); }

/* ─────────────────────────────────────────────
   STATUS BADGES
───────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge.NEW         { background: rgba(59,130,246,0.15); color: #60a5fa; }
.badge.IN_PROGRESS { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge.CONTRACTED  { background: rgba(16,185,129,0.15); color: #34d399; }
.badge.ON_HOLD     { background: rgba(100,116,139,0.15); color: #94a3b8; }
.badge.CLOSED      { background: rgba(239,68,68,0.12);  color: #f87171; }
.badge.ACTIVE      { background: rgba(16,185,129,0.15); color: #34d399; }
.badge.PENDING     { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge.SUSPENDED   { background: rgba(239,68,68,0.12);  color: #f87171; }
.badge.SENT        { background: rgba(16,185,129,0.15); color: #34d399; }
.badge.FAILED      { background: rgba(239,68,68,0.12);  color: #f87171; }
.badge.VALID       { background: rgba(16,185,129,0.15); color: #34d399; }
.badge.INVALID     { background: rgba(239,68,68,0.12);  color: #f87171; }
.badge.PENDING_VAL { background: rgba(100,116,139,0.15); color: #94a3b8; }

/* ─────────────────────────────────────────────
   FORM ELEMENTS (inside admin)
───────────────────────────────────────────── */
.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.admin-form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-input, .admin-select, .admin-textarea {
  padding: 10px 12px;
  background: var(--admin-surface-2);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  color: var(--admin-text);
  font-size: 13px;
  font-family: inherit;
  transition: var(--admin-transition);
  width: 100%;
  box-sizing: border-box;
}
.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
  outline: none;
  border-color: var(--admin-cyan);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.12);
}
.admin-input::placeholder, .admin-textarea::placeholder { color: var(--admin-text-muted); }
.admin-select option { background: #0d1528; }
.admin-textarea { min-height: 90px; resize: vertical; }

/* generic grid inputs inside admin */
.grid { display: grid; gap: 12px; }
.grid input, .grid select, .grid textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--admin-surface-2);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  color: var(--admin-text);
  font-size: 13px;
  font-family: inherit;
  transition: var(--admin-transition);
  box-sizing: border-box;
}
.grid input:focus, .grid select:focus, .grid textarea:focus {
  outline: none;
  border-color: var(--admin-cyan);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.12);
}

/* ─────────────────────────────────────────────
   BUTTONS (inside admin)
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--admin-transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--admin-primary);
  color: white;
}
.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59,130,246,0.3);
}
.btn-danger {
  background: rgba(239,68,68,0.15);
  color: var(--admin-red);
  border: 1px solid rgba(239,68,68,0.2);
}
.btn-danger:hover { background: var(--admin-red); color: white; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--admin-border-light);
  color: var(--admin-text-sub);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); color: var(--admin-text); }
.btn-block { width: 100%; }

/* ─────────────────────────────────────────────
   PROGRESS BARS
───────────────────────────────────────────── */
.progress-bar-bg {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

/* ─────────────────────────────────────────────
   REFERRER ROW
───────────────────────────────────────────── */
.ref-row { margin-bottom: 12px; }
.ref-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.ref-name { font-size: 13px; font-weight: 600; color: var(--admin-text); }
.ref-count { font-size: 12px; font-weight: 700; color: var(--admin-text-muted); }

/* ─────────────────────────────────────────────
   STATUS SELECT INPUTS (lead/sales)
───────────────────────────────────────────── */
.status-select, .sales-status-select {
  background: var(--admin-surface-2);
  color: var(--admin-text);
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.status-select:focus, .sales-status-select:focus {
  outline: none;
  border-color: var(--admin-cyan);
}

/* ─────────────────────────────────────────────
   NOTE / UTILITY
───────────────────────────────────────────── */
.note {
  color: var(--admin-text-muted);
  font-size: 13px;
  margin-top: 8px;
}
.hidden { display: none !important; }
.user-badge {
  font-weight: 600;
  font-size: 12px;
  color: var(--admin-text-sub);
  background: rgba(255,255,255,0.06);
  padding: 3px 8px;
  border-radius: 6px;
}

/* ─────────────────────────────────────────────
   CAMPAIGNS EMAIL PANEL — SPECIAL LAYOUT
───────────────────────────────────────────── */
.campaign-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.campaign-db-section {
  overflow: auto;
  max-height: 360px;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
}

code {
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 12px;
  color: var(--admin-cyan);
}

pre.status-pre {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 12px;
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 12px;
  color: var(--admin-green);
  white-space: pre-wrap;
  max-height: 160px;
  overflow: auto;
  margin-top: 10px;
}

/* ─────────────────────────────────────────────
   DASHBOARD DASHBOARD LAYOUT
───────────────────────────────────────────── */
.dashboard-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

/* ─────────────────────────────────────────────
   SIDEBAR COLLAPSED STATE
───────────────────────────────────────────── */
.admin-shell.sidebar-collapsed .admin-sidebar {
  transform: translateX(-100%);
}
.admin-shell.sidebar-collapsed .admin-main {
  margin-left: 0;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --admin-sidebar-w: 220px; }
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-shell.sidebar-open .admin-sidebar {
    transform: translateX(0);
  }
  .admin-main { margin-left: 0 !important; }
  .admin-content { padding: 16px; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .dashboard-grid-2, .campaign-tool-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .kpi-row { grid-template-columns: 1fr; }
  .admin-auth-card { padding: 32px 22px; width: 100%; margin: 16px; }
}

/* ─────────────────────────────────────────────
   AI CHATBOT WIDGET (public page — keep as-is)
───────────────────────────────────────────── */
.iming365-ai-chat-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: 380px;
  font-family: inherit;
}

.iming365-ai-fab {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: white;
  font-weight: 800;
  font-size: 14px;
  padding: 14px 22px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.iming365-ai-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.55);
}

.iming365-ai-panel {
  width: 100%;
  height: 520px;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-dark-soft);
  color: var(--text-light);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  display: none;
  grid-template-rows: auto 1fr auto auto;
  backdrop-filter: var(--glass-blur);
}

.iming365-ai-chat-root.is-open .iming365-ai-panel {
  display: grid;
  animation: slideInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.iming365-ai-head {
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.iming365-ai-head span:last-of-type { flex: 1; font-size: 15px; }
.iming365-ai-head-badge {
  background: var(--accent-green);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}
.iming365-ai-close {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.iming365-ai-close:hover { background: rgba(255, 255, 255, 0.15); }

.iming365-ai-messages {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.iming365-ai-msg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  max-width: 85%;
  word-break: break-word;
}
.iming365-ai-msg.user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.iming365-ai-msg.assistant {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.iming365-ai-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.iming365-ai-form input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white !important;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  transition: var(--transition);
}
.iming365-ai-form input:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
}
.iming365-ai-form button {
  border: 0;
  border-radius: 8px;
  background: var(--accent-green);
  color: white;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition);
}
.iming365-ai-form button:hover { background: #059669; }
.iming365-ai-status {
  margin: 0;
  padding: 0 16px 12px;
  font-size: 12px;
  color: var(--accent-cyan);
  font-weight: 500;
}

@media (max-width: 480px) {
  .iming365-ai-chat-root { right: 12px; bottom: 12px; width: calc(100% - 24px); }
}

/* ─────────────────────────────────────────────
   HERO SLIDER (public page — keep as-is)
───────────────────────────────────────────── */
.hero-slider-section {
  padding: 0 !important;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-dark);
}
.slider-container {
  position: relative;
  width: 100%;
  height: clamp(600px, 85vh, 780px);
}
.slider-container .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  display: flex;
  align-items: center;
  z-index: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.slider-container .slide.active { opacity: 1; visibility: visible; z-index: 2; }

.slide[style*="--slide-idx: 0"] {
  background-image: linear-gradient(90deg, rgba(7,11,25,0.96) 35%, rgba(7,11,25,0.3) 100%), url('/assets/images/banners/global.png');
}
.slide[style*="--slide-idx: 1"] {
  background-image: linear-gradient(90deg, rgba(7,11,25,0.96) 35%, rgba(7,11,25,0.3) 100%), url('/assets/images/banners/ai.png');
}
.slide[style*="--slide-idx: 2"] {
  background-image: linear-gradient(90deg, rgba(7,11,25,0.96) 35%, rgba(7,11,25,0.3) 100%), url('/assets/images/banners/commerce.png');
}
.slide[style*="--slide-idx: 3"] {
  background-image: linear-gradient(90deg, rgba(7,11,25,0.96) 35%, rgba(7,11,25,0.3) 100%), url('/assets/images/banners/ops.png');
}

.hero h1 {
  font-size: clamp(24px, 3.2vw, 38px) !important;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, #ffffff 40%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  word-break: keep-all;
}
.hero .sub {
  font-size: clamp(14px, 1.2vw, 16px) !important;
  color: var(--text-light-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 580px;
  word-break: keep-all;
}
.slide.active .hero-text-wrap { animation: slideFadeUp 0.8s cubic-bezier(0.25,1,0.5,1) forwards; }
.slide.active .hero-card-wrap  { animation: slideFadeUp 1s   cubic-bezier(0.25,1,0.5,1) forwards; }
@keyframes slideFadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(7,11,25,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.slide-nav:hover { background: rgba(99,102,241,0.3); border-color: var(--accent-cyan); }
.slide-nav.prev { left: 24px; }
.slide-nav.next { right: 24px; }
.slide-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}
.slide-indicators .indicator {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: var(--transition);
}
.slide-indicators .indicator.active {
  background: var(--accent-cyan);
  transform: scale(1.25);
  box-shadow: 0 0 8px rgba(6,182,212,0.6);
}

/* messenger / ops mockup styles (public page) */
.messenger-mockup {
  border: 1.5px solid rgba(6,182,212,0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4) !important;
  background: rgba(7,11,25,0.85) !important;
  backdrop-filter: blur(8px);
}
.messenger-header {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.messenger-header .dot { width:8px; height:8px; border-radius:50%; }
.messenger-header .dot.green { background:var(--accent-green); box-shadow:0 0 8px var(--accent-green); }
.messenger-header h4 { margin:0; font-size:13px; color:var(--text-light); }
.messenger-body { padding:14px; display:flex; flex-direction:column; gap:14px; }
.msg-bubble { max-width:85%; padding:8px 12px; border-radius:10px; font-size:13px; line-height:1.45; }
.msg-bubble .sender { display:block; font-size:10px; font-weight:700; margin-bottom:2px; }
.msg-bubble.received { align-self:flex-start; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.08); color:var(--text-light); }
.msg-bubble.received .sender { color:var(--accent-cyan); }
.msg-bubble.sent { align-self:flex-end; background:var(--primary-glow); border:1px solid rgba(37,99,235,0.25); color:var(--text-light); }
.msg-bubble.sent .sender { color:var(--accent-purple); }
.translated { display:block; font-size:11px; margin-top:4px; padding-top:4px; border-top:1px dashed rgba(255,255,255,0.08); color:var(--text-light-muted); }

.shopping-mockup {
  border:1.5px solid rgba(139,92,246,0.2);
  box-shadow:0 20px 40px rgba(0,0,0,0.4) !important;
  background:rgba(7,11,25,0.85) !important;
  padding:20px !important;
  backdrop-filter:blur(8px);
}
.shopping-mockup h3 { font-size:15px; margin-top:0; margin-bottom:12px; color:var(--text-light); }
.sales-stats { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px; }
.stat-box { background:rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.05); border-radius:6px; padding:10px; }
.stat-box .label { display:block; font-size:10px; color:var(--text-light-muted); margin-bottom:2px; }
.stat-box .val { font-size:18px; font-weight:700; color:var(--text-light); }
.chart-mini { display:flex; align-items:flex-end; justify-content:space-between; height:80px; padding:6px 10px; background:rgba(0,0,0,0.2); border-radius:6px; border:1px solid rgba(255,255,255,0.04); }
.chart-bar { width:14%; background:linear-gradient(to top, var(--accent-purple), var(--accent-cyan)); border-radius:3px 3px 0 0; animation:chartBarGrowth 1.5s cubic-bezier(0.25,1,0.5,1) forwards; transform-origin:bottom; }
@keyframes chartBarGrowth { from{transform:scaleY(0);} to{transform:scaleY(1);} }

.ops-mockup { border:1.5px solid rgba(245,158,11,0.2); box-shadow:0 20px 40px rgba(0,0,0,0.4) !important; background:rgba(7,11,25,0.85) !important; padding:20px !important; backdrop-filter:blur(8px); }
.ops-mockup h3 { font-size:15px; margin-top:0; margin-bottom:12px; color:var(--text-light); }
.ops-list { display:flex; flex-direction:column; gap:12px; }
.ops-item { display:flex; align-items:flex-start; gap:10px; background:rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.05); padding:10px; border-radius:8px; transition:var(--transition); }
.ops-item:hover { background:rgba(255,255,255,0.04); border-color:rgba(245,158,11,0.25); }
.ops-item .icon { font-size:16px; background:rgba(245,158,11,0.08); width:32px; height:32px; border-radius:6px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.ops-item .content .title { font-size:13px; font-weight:700; color:var(--text-light); }
.ops-item .content .sub { font-size:11px; color:var(--text-light-muted); margin-top:1px; }

.admin-body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: 'Inter', 'Noto Sans KR', -apple-system, sans-serif;
  min-height: 100vh;
  margin: 0;
}

/* Admin dark mode toggles */
.admin-body.theme-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* Admin header override */
.admin-header {
  background-color: var(--bg-light-soft);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 200;
}

.admin-body.theme-dark .admin-header {
  background-color: var(--bg-dark-soft);
  box-shadow: none;
}

.admin-header .logo {
  color: var(--text-dark);
}

.admin-body.theme-dark .admin-header .logo {
  color: var(--text-light);
}

.btn-theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
  border-radius: 6px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.admin-body.theme-dark .btn-theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
}

.user-badge {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark-muted);
  background: rgba(0, 0, 0, 0.03);
  padding: 6px 12px;
  border-radius: 6px;
  margin-left: 12px;
}

.admin-body.theme-dark .user-badge {
  color: var(--text-light-muted);
  background: rgba(255, 255, 255, 0.04);
}

.btn-logout {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  margin-left: 12px;
  transition: var(--transition);
}

.btn-logout:hover {
  background: #dc2626;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

/* Sidebar layout grid */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 40px;
}

.sidebar {
  background-color: var(--bg-light-soft);
  border: 1px solid var(--line-light);
  border-radius: 16px;
  padding: 16px;
  height: fit-content;
  box-shadow: var(--shadow-sm);
}

.admin-body.theme-dark .sidebar {
  background-color: var(--bg-dark-soft);
  border-color: var(--line-dark);
  box-shadow: none;
}

.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark-muted);
  letter-spacing: 1px;
  padding-left: 12px;
  margin-bottom: 12px;
}

.admin-body.theme-dark .sidebar-title {
  color: var(--text-light-muted);
}

.sidebar-nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  border: none;
  background: transparent;
  color: var(--text-dark-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 14px;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.admin-body.theme-dark .nav-item {
  color: var(--text-light-muted);
}

.nav-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
  color: var(--text-dark);
}

.admin-body.theme-dark .nav-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-light);
}

.nav-item.active {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.admin-body.theme-dark .nav-item.active {
  background-color: var(--accent-cyan) !important;
  color: var(--bg-dark) !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* Panel */
.panel {
  background-color: var(--bg-light-soft);
  border: 1px solid var(--line-light);
  border-radius: 16px;
  padding: 32px;
  min-height: 70vh;
  box-shadow: var(--shadow-sm);
}

.admin-body.theme-dark .panel {
  background-color: var(--bg-dark-soft);
  border-color: var(--line-dark);
  box-shadow: none;
}

/* Stats Dashboard Panel */
.dashboard-header {
  margin-bottom: 28px;
}

.dashboard-header h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.5px;
}

.dashboard-header .subtitle {
  color: var(--text-dark-muted);
  font-size: 14px;
  margin: 4px 0 0;
}

.admin-body.theme-dark .dashboard-header .subtitle {
  color: var(--text-light-muted);
}

/* Admin Dashboard KPI Grids */
.grid-kpi-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  padding: 24px !important;
  color: white !important;
  border: none !important;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Gradients for KPI cards */
.purple-gradient {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.blue-gradient {
  background: linear-gradient(135deg, #2563eb, #0891b2);
}

.green-gradient {
  background: linear-gradient(135deg, #059669, #0d9488);
}

.orange-gradient {
  background: linear-gradient(135deg, #ea580c, #d97706);
}

.kpi-icon {
  font-size: 24px;
  opacity: 0.85;
  margin-bottom: 12px;
}

.kpi-val {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
  font-family: 'Outfit', sans-serif;
}

.kpi-val .unit {
  font-size: 15px;
  font-weight: 500;
  opacity: 0.8;
}

.kpi-label {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  opacity: 0.9;
}

/* Referrers & Sales grid */
.dashboard-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-dark-muted);
  margin-top: 4px;
  margin-bottom: 20px;
}

.admin-body.theme-dark .card-subtitle {
  color: var(--text-light-muted);
}

/* Referrers Bars List */
.ref-list {
  display: grid;
  gap: 16px;
}

.ref-row {
  display: grid;
  gap: 6px;
}

.ref-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.ref-name {
  color: var(--text-dark);
}

.admin-body.theme-dark .ref-name {
  color: var(--text-light);
}

.ref-count {
  color: var(--text-dark-muted);
}

.admin-body.theme-dark .ref-count {
  color: var(--text-light-muted);
}

.progress-bar-bg {
  height: 6px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.admin-body.theme-dark .progress-bar-bg {
  background-color: rgba(255, 255, 255, 0.06);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

/* Sales status dashboard detail list */
.sales-stats-wrap {
  display: grid;
  gap: 14px;
}

.sales-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.admin-body.theme-dark .sales-stat-item {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

.stat-name {
  font-size: 14px;
  font-weight: 600;
}

.stat-val {
  font-size: 16px;
  font-weight: 700;
}

.highlight-green {
  color: var(--accent-green);
}

.highlight-blue {
  color: var(--primary);
}

.admin-body.theme-dark .highlight-blue {
  color: var(--accent-cyan);
}

/* Form inputs styling inside admin panels */
.grid {
  display: grid;
  gap: 12px;
}

.grid input,
.grid select,
.grid textarea {
  width: 100%;
  padding: 11px 14px;
  background-color: var(--bg-light-soft);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-dark);
  font-family: inherit;
  transition: var(--transition);
}

.admin-body.theme-dark .grid input,
.admin-body.theme-dark .grid select,
.admin-body.theme-dark .grid textarea {
  background-color: var(--bg-dark-soft);
  border-color: var(--line-dark);
  color: var(--text-light);
}

.grid input:focus,
.grid select:focus,
.grid textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Admin buttons */
.panel .btn {
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

/* Tables styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
}

table th {
  background: rgba(0, 0, 0, 0.02);
  color: var(--text-dark-muted);
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid var(--line-light);
  padding: 12px 14px;
}

.admin-body.theme-dark table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-light-muted);
  border-bottom-color: var(--line-dark);
}

table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-light);
}

.admin-body.theme-dark table td {
  border-bottom-color: var(--line-dark);
}

table tr:hover {
  background-color: rgba(0, 0, 0, 0.01);
}

.admin-body.theme-dark table tr:hover {
  background-color: rgba(255, 255, 255, 0.01);
}

/* Audit log list specific styles */
.audit-log-badge {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Login Auth card styles */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: var(--bg-light);
}

.admin-body.theme-dark .auth-wrap {
  background-color: var(--bg-dark);
}

.auth-card {
  width: 440px;
  background-color: var(--bg-light-soft);
  border: 1px solid var(--line-light);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.admin-body.theme-dark .auth-card {
  background-color: var(--bg-dark-soft);
  border-color: var(--line-dark);
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 8px;
}

.admin-body.theme-dark .auth-logo {
  color: var(--accent-cyan);
}

.auth-card h1 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-dark-muted);
  margin: 0 0 28px;
}

.admin-body.theme-dark .auth-subtitle {
  color: var(--text-light-muted);
}

.auth-form {
  text-align: left;
}

.btn-block {
  width: 100%;
}

.error-msg {
  color: #ef4444 !important;
  font-weight: 600;
}

/* Responsive adjust */
@media (max-width: 960px) {
  .hero-grid,
  .cards,
  .grid-kpi-4,
  .dashboard-details-grid,
  .contact-inner-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    width: 100%;
  }
}

/* -------------------------------------------------------------
   AI Chatbot Widget Premium Styling
   ------------------------------------------------------------- */
.iming365-ai-chat-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: 380px;
  font-family: inherit;
}

.iming365-ai-fab {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: white;
  font-weight: 800;
  font-size: 14px;
  padding: 14px 22px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.iming365-ai-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.55);
}

.iming365-ai-panel {
  width: 100%;
  height: 520px;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-dark-soft);
  color: var(--text-light);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  display: none;
  grid-template-rows: auto 1fr auto auto;
  backdrop-filter: var(--glass-blur);
}

.iming365-ai-chat-root.is-open .iming365-ai-panel {
  display: grid;
  animation: slideInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.iming365-ai-head {
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.iming365-ai-head span:last-of-type {
  flex: 1;
  font-size: 15px;
}

.iming365-ai-head-badge {
  background: var(--accent-green);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}

.iming365-ai-close {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.iming365-ai-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.iming365-ai-messages {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iming365-ai-msg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  max-width: 85%;
  word-break: break-word;
}

.iming365-ai-msg.user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.iming365-ai-msg.assistant {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.iming365-ai-msg.assistant a {
  color: var(--accent-cyan) !important;
  text-decoration: underline !important;
  font-weight: 600;
}

.iming365-ai-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.iming365-ai-form input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white !important;
  caret-color: white !important;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  transition: var(--transition);
}

.iming365-ai-form input:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
}

.iming365-ai-form button {
  border: 0;
  border-radius: 8px;
  background: var(--accent-green);
  color: white;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.iming365-ai-form button:hover {
  background: #059669;
}

.iming365-ai-status {
  margin: 0;
  padding: 0 16px 12px;
  font-size: 12px;
  color: var(--accent-cyan);
  font-weight: 500;
}

@media (max-width: 480px) {
  .iming365-ai-chat-root {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
}

@media (max-width: 480px) {
  .iming365-ai-chat-root {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
}

/* -------------------------------------------------------------
   Interactive Hero Multi-Slide Banner Styles (Revised)
   ------------------------------------------------------------- */
.hero-slider-section {
  padding: 0 !important;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-dark);
}

.slider-container {
  position: relative;
  width: 100%;
  height: clamp(600px, 85vh, 780px);
}

.slider-container .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  display: flex;
  align-items: center;
  z-index: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slider-container .slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* 각 슬라이드별 고화질 전문 그래픽 이미지 매핑 + 가독성 향상용 어두운 그라데이션 */
.slide[style*="--slide-idx: 0"] {
  background-image: linear-gradient(90deg, rgba(7, 11, 25, 0.96) 35%, rgba(7, 11, 25, 0.3) 100%), url('/assets/images/banners/global.png');
}

.slide[style*="--slide-idx: 1"] {
  background-image: linear-gradient(90deg, rgba(7, 11, 25, 0.96) 35%, rgba(7, 11, 25, 0.3) 100%), url('/assets/images/banners/ai.png');
}

.slide[style*="--slide-idx: 2"] {
  background-image: linear-gradient(90deg, rgba(7, 11, 25, 0.96) 35%, rgba(7, 11, 25, 0.3) 100%), url('/assets/images/banners/commerce.png');
}

.slide[style*="--slide-idx: 3"] {
  background-image: linear-gradient(90deg, rgba(7, 11, 25, 0.96) 35%, rgba(7, 11, 25, 0.3) 100%), url('/assets/images/banners/ops.png');
}

/* 글자 크기 최적화 (부담스러운 크기 완화) */
.hero h1 {
  font-size: clamp(24px, 3.2vw, 38px) !important;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, #ffffff 40%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  word-break: keep-all;
}

.hero .sub {
  font-size: clamp(14px, 1.2vw, 16px) !important;
  color: var(--text-light-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 580px;
  word-break: keep-all;
}

/* 슬라이드가 활성화될 때 텍스트와 카드에 고급스러운 페이드인-업 모션 */
.slide.active .hero-text-wrap {
  animation: slideFadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.slide.active .hero-card-wrap {
  animation: slideFadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 슬라이드 방향 버튼 */
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(7, 11, 25, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slide-nav:hover {
  background: rgba(99, 102, 241, 0.3);
  border-color: var(--accent-cyan);
}

.slide-nav.prev {
  left: 24px;
}

.slide-nav.next {
  right: 24px;
}

/* 슬라이드 인디케이터 (도트) */
.slide-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slide-indicators .indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: var(--transition);
}

.slide-indicators .indicator.active {
  background: var(--accent-cyan);
  transform: scale(1.25);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}

/* ── 2번 슬라이드: AI Messenger 목업 스타일 ── */
.messenger-mockup {
  border: 1.5px solid rgba(6, 182, 212, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
  background: rgba(7, 11, 25, 0.85) !important;
  backdrop-filter: blur(8px);
}

.messenger-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.messenger-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.messenger-header .dot.green {
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.messenger-header h4 {
  margin: 0;
  font-size: 13px;
  color: var(--text-light);
}

.messenger-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.msg-bubble {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.msg-bubble .sender {
  display: block;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 2px;
}

.msg-bubble.received {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}

.msg-bubble.received .sender {
  color: var(--accent-cyan);
}

.msg-bubble.sent {
  align-self: flex-end;
  background: var(--primary-glow);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--text-light);
}

.msg-bubble.sent .sender {
  color: var(--accent-purple);
}

.translated {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  color: var(--text-light-muted);
}

/* ── 3번 슬라이드: 글로벌 E-commerce 목업 스타일 ── */
.shopping-mockup {
  border: 1.5px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
  background: rgba(7, 11, 25, 0.85) !important;
  padding: 20px !important;
  backdrop-filter: blur(8px);
}

.shopping-mockup h3 {
  font-size: 15px;
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--text-light);
}

.sales-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 10px;
}

.stat-box .label {
  display: block;
  font-size: 10px;
  color: var(--text-light-muted);
  margin-bottom: 2px;
}

.stat-box .val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-light);
}

.chart-mini {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 80px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.chart-bar {
  width: 14%;
  background: linear-gradient(to top, var(--accent-purple), var(--accent-cyan));
  border-radius: 3px 3px 0 0;
  animation: chartBarGrowth 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  transform-origin: bottom;
}

@keyframes chartBarGrowth {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* ── 4번 슬라이드: 성과 관리 목업 스타일 ── */
.ops-mockup {
  border: 1.5px solid rgba(245, 158, 11, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
  background: rgba(7, 11, 25, 0.85) !important;
  padding: 20px !important;
  backdrop-filter: blur(8px);
}

.ops-mockup h3 {
  font-size: 15px;
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--text-light);
}

.ops-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ops-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 8px;
  transition: var(--transition);
}

.ops-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(245, 158, 11, 0.25);
}

.ops-item .icon {
  font-size: 16px;
  background: rgba(245, 158, 11, 0.08);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ops-item .txt strong {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 1px;
}

.ops-item .txt p {
  margin: 0;
  font-size: 11px;
  color: var(--text-light-muted);
}

/* 모바일 및 태블릿 대응 */
@media (max-width: 991px) {
  .slider-container {
    height: auto;
    min-height: 750px;
    padding: 60px 0;
  }
  .slider-container .slide {
    position: relative;
    height: auto;
    display: none;
    background-size: cover;
    background-position: center;
  }
  .slider-container .slide.active {
    display: flex;
  }
  .slide-nav {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .slide-nav.prev { left: 8px; }
  .slide-nav.next { right: 8px; }
  .slide-indicators { bottom: 16px; }
}

/* -------------------------------------------------------------
   Admin Card Theme Adjustments for Text Readability
   ------------------------------------------------------------- */
.admin-body .card {
  background-color: var(--bg-light-soft) !important;
  border: 1px solid var(--line-light) !important;
  box-shadow: var(--shadow-sm) !important;
  color: var(--text-dark) !important;
  backdrop-filter: none !important;
}

.admin-body .card h1,
.admin-body .card h2,
.admin-body .card h3,
.admin-body .card h4 {
  color: var(--text-dark) !important;
}

.admin-body .card p,
.admin-body .card span,
.admin-body .card .note,
.admin-body .card div {
  color: var(--text-dark-muted) !important;
}

/* 라이트 모드일 때 폼 인풋 요소 가독성 개선 */
.admin-body .grid input,
.admin-body .grid select,
.admin-body .grid textarea,
.admin-body form input,
.admin-body form select,
.admin-body form textarea {
  background: #ffffff !important;
  border: 1px solid var(--line-light) !important;
  color: var(--text-dark) !important;
}

.admin-body .grid input::placeholder,
.admin-body .grid textarea::placeholder,
.admin-body form input::placeholder,
.admin-body form textarea::placeholder {
  color: #94a3b8 !important;
}

/* 다크 모드일 때 오버라이드 */
.admin-body.theme-dark .card {
  background-color: var(--bg-dark-soft) !important;
  border-color: var(--line-dark) !important;
  color: var(--text-light) !important;
}

.admin-body.theme-dark .card h1,
.admin-body.theme-dark .card h2,
.admin-body.theme-dark .card h3,
.admin-body.theme-dark .card h4 {
  color: var(--text-light) !important;
}

.admin-body.theme-dark .card p,
.admin-body.theme-dark .card span,
.admin-body.theme-dark .card .note,
.admin-body.theme-dark .card div {
  color: var(--text-light-muted) !important;
}

.admin-body.theme-dark .grid input,
.admin-body.theme-dark .grid select,
.admin-body.theme-dark .grid textarea,
.admin-body.theme-dark form input,
.admin-body.theme-dark form select,
.admin-body.theme-dark form textarea {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--line-dark) !important;
  color: white !important;
}

/* -------------------------------------------------------------
   Admin Grid System (Readability & Layout Placement)
   ------------------------------------------------------------- */
.grid {
  display: grid !important;
  gap: 20px;
}

.grid.col-2 {
  grid-template-columns: repeat(2, 1fr) !important;
}

.grid.col-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

.grid.col-4 {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* Responsive grid for mobile devices */
@media (max-width: 768px) {
  .grid.col-2,
  .grid.col-3,
  .grid.col-4 {
    grid-template-columns: 1fr !important;
  }
}

/* -------------------------------------------------------------
   Homepage Builder Highlight & Glow Buttons
   ------------------------------------------------------------- */
/* Nav Bar Highlight Button */
.btn-builder-highlight {
  background: linear-gradient(135deg, #2563eb, #0d9488) !important;
  color: white !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
  text-decoration: none !important;
  margin-left: 8px;
  display: inline-block;
}

.btn-builder-highlight:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 0 20px rgba(13, 148, 136, 0.7) !important;
  background: linear-gradient(135deg, #1d4ed8, #0f766e) !important;
}

/* Hero Section Pulsing Glow Button */
.btn-builder-hero-glow {
  background: linear-gradient(135deg, #10b981, #059669) !important; /* 시선을 사로잡는 에메랄드 그린 */
  color: white !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  border-radius: 30px !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5) !important;
  transition: all 0.3s ease !important;
  border: none !important;
  text-decoration: none !important;
  display: inline-block;
  animation: pulse-builder-glow 2s infinite alternate;
}

.btn-builder-hero-glow:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.9) !important;
  background: linear-gradient(135deg, #059669, #047857) !important;
}

@keyframes pulse-builder-glow {
  0% {
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
  }
  100% {
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.75);
  }
}


/* ═══════════════════════════════════════════════════════════════
   ADMIN PREMIUM REDESIGN — Ultra Luxury Dark Enterprise v2.0
   ═══════════════════════════════════════════════════════════════ */

/* ── 전역 어드민 변수 강화 ── */
.admin-body {
  --admin-bg: #05091a;
  --admin-surface: rgba(13, 20, 40, 0.95);
  --admin-surface-2: rgba(18, 28, 52, 0.8);
  --admin-border: rgba(255, 255, 255, 0.07);
  --admin-border-light: rgba(255, 255, 255, 0.13);
  --admin-sidebar-w: 268px;
  --admin-topbar-h: 66px;
  --admin-text: #e8edf8;
  --admin-text-muted: #60738a;
  --admin-text-sub: #8fa3be;
  --admin-primary: #4f8ef7;
  --admin-primary-glow: rgba(79, 142, 247, 0.22);
  --admin-cyan: #22d3ee;
  --admin-green: #10f0a4;
  --admin-purple: #a78bfa;
  --admin-orange: #fbbf24;
  --admin-red: #f87171;
  --admin-transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--admin-bg);
}

/* ── 배경 메쉬 그라디언트 ── */
.admin-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 20%, rgba(79, 142, 247, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(167, 139, 250, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(34, 211, 238, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.admin-shell { position: relative; z-index: 1; }
.admin-main  { position: relative; z-index: 1; }

/* ─────────────────────────────────────────────
   PREMIUM SIDEBAR
───────────────────────────────────────────── */
.admin-sidebar {
  background: linear-gradient(180deg, #080f24 0%, #060c1e 100%);
  border-right: 1px solid rgba(79, 142, 247, 0.15);
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.5);
  width: var(--admin-sidebar-w);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.06) transparent;
}

/* 사이드바 상단 브랜드 */
.sidebar-brand {
  padding: 26px 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.08), rgba(34, 211, 238, 0.05));
}
.sidebar-brand-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
  color: white;
}
.sidebar-brand-logo span {
  color: var(--admin-cyan);
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}
.sidebar-brand-sub {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(100, 150, 200, 0.6);
  margin-top: 4px;
}

/* 사이드바 그룹 레이블 */
.nav-group-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(100, 120, 160, 0.5);
  padding: 18px 14px 7px;
  margin-top: 2px;
}

/* 사이드바 네비 아이템 */
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 14px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: rgba(140, 165, 200, 0.8);
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: var(--admin-transition);
  position: relative;
  letter-spacing: 0.01em;
}
.nav-icon {
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1;
  opacity: 0.85;
  transition: transform 0.2s ease;
}
.nav-text { flex: 1; white-space: nowrap; }

.nav-item:hover {
  background: rgba(79, 142, 247, 0.1);
  color: white;
}
.nav-item:hover .nav-icon {
  transform: scale(1.15);
  opacity: 1;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.2), rgba(34, 211, 238, 0.1));
  color: #93c5fd !important;
  font-weight: 700;
  border: 1px solid rgba(79, 142, 247, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 12px rgba(79, 142, 247, 0.12);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, var(--admin-cyan), var(--admin-primary));
  border-radius: 0 3px 3px 0;
}

.nav-ai-badge {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: white;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  padding: 2px 7px;
  border-radius: 5px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

/* 사이드바 하단 */
.sidebar-footer {
  padding: 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}
.sidebar-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--admin-primary), var(--admin-cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(79, 142, 247, 0.35);
}
.sidebar-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #d1e0f8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 10.5px;
  color: rgba(100, 130, 180, 0.7);
  margin-top: 2px;
}
.sidebar-logout-btn {
  width: 36px; height: 36px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.18);
  color: var(--admin-red);
  border-radius: 9px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--admin-transition);
  flex-shrink: 0;
}
.sidebar-logout-btn:hover {
  background: rgba(248, 113, 113, 0.9);
  color: white;
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(248, 113, 113, 0.4);
}

/* ─────────────────────────────────────────────
   PREMIUM TOP BAR
───────────────────────────────────────────── */
.admin-topbar {
  height: var(--admin-topbar-h);
  background: rgba(8, 14, 30, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(79, 142, 247, 0.1);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  flex: 1;
}
.breadcrumb-site {
  color: rgba(100, 130, 180, 0.6);
  font-weight: 600;
  font-size: 13px;
}
.breadcrumb-sep { color: rgba(100, 130, 180, 0.3); font-size: 16px; }
.breadcrumb-page {
  color: #e0ecff;
  font-weight: 800;
  font-size: 15px;
}

.topbar-toggle-btn {
  width: 38px; height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(160, 190, 230, 0.7);
  border-radius: 9px;
  cursor: pointer;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--admin-transition);
  flex-shrink: 0;
}
.topbar-toggle-btn:hover {
  background: rgba(79, 142, 247, 0.1);
  color: white;
  border-color: rgba(79, 142, 247, 0.2);
}
.topbar-theme-btn {
  width: 38px; height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(160, 190, 230, 0.7);
  border-radius: 9px;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--admin-transition);
}
.topbar-theme-btn:hover { background: rgba(255, 255, 255, 0.08); color: white; }

.topbar-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(79, 142, 247, 0.08);
  border: 1px solid rgba(79, 142, 247, 0.18);
  border-radius: 22px;
  padding: 5px 14px 5px 6px;
  transition: var(--admin-transition);
}
.topbar-user-chip:hover { background: rgba(79, 142, 247, 0.14); }
.topbar-user-avatar {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--admin-primary), var(--admin-cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: white;
  box-shadow: 0 0 10px rgba(79, 142, 247, 0.3);
}
.topbar-user-name { font-size: 13px; font-weight: 700; color: #c5daf5; }

.status-pulse {
  width: 9px; height: 9px;
  background: #10f0a4;
  border-radius: 50%;
  position: relative;
  display: block;
  box-shadow: 0 0 6px rgba(16, 240, 164, 0.6);
}
.status-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #10f0a4;
  opacity: 0.35;
  animation: pulsePing 2.2s ease-out infinite;
}

/* ─────────────────────────────────────────────
   PREMIUM CONTENT AREA
───────────────────────────────────────────── */
.admin-content {
  flex: 1;
  padding: 30px 28px 48px;
  background: transparent;
}

.tab-panel h2 {
  font-size: 23px;
  font-weight: 900;
  color: #dce9ff;
  letter-spacing: -0.5px;
  margin: 0 0 4px;
}

/* ─────────────────────────────────────────────
   PREMIUM KPI CARDS
───────────────────────────────────────────── */
.kpi-card {
  border-radius: 16px;
  padding: 22px;
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.kpi-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.kpi-card::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.kpi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.kpi-card .kpi-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
  position: relative;
  z-index: 1;
}
.kpi-card .kpi-val {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 7px;
  color: white;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.kpi-card .kpi-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-blue   { background: linear-gradient(145deg, #1d4ed8 0%, #0369a1 100%); box-shadow: 0 8px 30px rgba(29, 78, 216, 0.35); }
.kpi-purple { background: linear-gradient(145deg, #6d28d9 0%, #4338ca 100%); box-shadow: 0 8px 30px rgba(109, 40, 217, 0.35); }
.kpi-green  { background: linear-gradient(145deg, #047857 0%, #0d9488 100%); box-shadow: 0 8px 30px rgba(4, 120, 87, 0.35); }
.kpi-orange { background: linear-gradient(145deg, #c2410c 0%, #b45309 100%); box-shadow: 0 8px 30px rgba(194, 65, 12, 0.35); }
.kpi-cyan   { background: linear-gradient(145deg, #0e7490 0%, #0f766e 100%); box-shadow: 0 8px 30px rgba(14, 116, 144, 0.35); }
.kpi-pink   { background: linear-gradient(145deg, #be185d 0%, #7c3aed 100%); box-shadow: 0 8px 30px rgba(190, 24, 93, 0.35); }

.blue-gradient   { background: linear-gradient(145deg, #1d4ed8, #0369a1); box-shadow: 0 8px 30px rgba(29, 78, 216, 0.35); }
.purple-gradient { background: linear-gradient(145deg, #6d28d9, #4338ca); box-shadow: 0 8px 30px rgba(109, 40, 217, 0.35); }
.green-gradient  { background: linear-gradient(145deg, #047857, #0d9488); box-shadow: 0 8px 30px rgba(4, 120, 87, 0.35); }
.orange-gradient { background: linear-gradient(145deg, #c2410c, #b45309); box-shadow: 0 8px 30px rgba(194, 65, 12, 0.35); }

/* ─────────────────────────────────────────────
   PREMIUM SECTION CARDS
───────────────────────────────────────────── */
.card, .admin-card {
  background: linear-gradient(145deg, rgba(14, 22, 45, 0.9), rgba(10, 16, 36, 0.95));
  border: 1px solid rgba(79, 142, 247, 0.1);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card::before, .admin-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 142, 247, 0.3), transparent);
}
.card:hover, .admin-card:hover {
  border-color: rgba(79, 142, 247, 0.18);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.35);
}
.card h2, .card h3, .admin-card h2, .admin-card h3 {
  color: #d6e8ff !important;
  margin-top: 0;
}
.card p, .admin-card p, .note {
  color: rgba(130, 160, 210, 0.75) !important;
}

/* ─────────────────────────────────────────────
   PREMIUM TABLES
───────────────────────────────────────────── */
.admin-table-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(79, 142, 247, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.admin-table th, table th {
  background: rgba(8, 16, 36, 0.9) !important;
  color: rgba(100, 140, 200, 0.7) !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid rgba(79, 142, 247, 0.1) !important;
  white-space: nowrap;
}
.admin-table td, table td {
  padding: 12px 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  color: #c5d8f0 !important;
  font-size: 13px !important;
}
.admin-table tr:last-child td, table tr:last-child td { border-bottom: none !important; }
.admin-table tr:hover td, table tr:hover td {
  background: rgba(79, 142, 247, 0.05) !important;
  transition: background 0.15s ease;
}

/* ─────────────────────────────────────────────
   PREMIUM BUTTONS
───────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #3b6fd6, #1e4db7) !important;
  color: white !important;
  border: 1px solid rgba(79, 142, 247, 0.3) !important;
  box-shadow: 0 4px 14px rgba(59, 111, 214, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4f8ef7, #2e63d4) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(79, 142, 247, 0.45) !important;
}
.btn-outline {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(180, 210, 255, 0.8) !important;
}
.btn-outline:hover {
  background: rgba(79, 142, 247, 0.1) !important;
  border-color: rgba(79, 142, 247, 0.25) !important;
  color: white !important;
}

/* ─────────────────────────────────────────────
   PREMIUM FORM INPUTS
───────────────────────────────────────────── */
.admin-body input,
.admin-body select,
.admin-body textarea {
  background: rgba(8, 14, 32, 0.8) !important;
  border: 1px solid rgba(79, 142, 247, 0.15) !important;
  border-radius: 9px !important;
  color: #d0e4ff !important;
  font-family: inherit !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
.admin-body input:focus,
.admin-body select:focus,
.admin-body textarea:focus {
  outline: none !important;
  border-color: rgba(34, 211, 238, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1) !important;
  background: rgba(12, 22, 50, 0.9) !important;
}
.admin-body input::placeholder,
.admin-body textarea::placeholder { color: rgba(80, 120, 170, 0.5) !important; }
.admin-body select option { background: #080f24 !important; color: #c5d8f0; }
.admin-body label { color: #ffffff !important; font-size: 12px !important; font-weight: 700 !important; }

/* ─────────────────────────────────────────────
   PREMIUM STATUS BADGES
───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 1px solid;
}
.badge.NEW         { background: rgba(59, 130, 246, 0.12); color: #93c5fd; border-color: rgba(59, 130, 246, 0.25); }
.badge.IN_PROGRESS { background: rgba(245, 158, 11, 0.12); color: #fcd34d; border-color: rgba(245, 158, 11, 0.25); }
.badge.CONTRACTED  { background: rgba(16, 240, 164, 0.1);  color: #6ee7b7; border-color: rgba(16, 240, 164, 0.2); }
.badge.ON_HOLD     { background: rgba(100, 116, 139, 0.12); color: #94a3b8; border-color: rgba(100, 116, 139, 0.2); }
.badge.CLOSED      { background: rgba(248, 113, 113, 0.1);  color: #fca5a5; border-color: rgba(248, 113, 113, 0.2); }
.badge.ACTIVE      { background: rgba(16, 240, 164, 0.1);  color: #6ee7b7; border-color: rgba(16, 240, 164, 0.2); }
.badge.PENDING     { background: rgba(245, 158, 11, 0.12); color: #fcd34d; border-color: rgba(245, 158, 11, 0.25); }
.badge.SUSPENDED   { background: rgba(248, 113, 113, 0.1);  color: #fca5a5; border-color: rgba(248, 113, 113, 0.2); }
.badge.SENT        { background: rgba(16, 240, 164, 0.1);  color: #6ee7b7; border-color: rgba(16, 240, 164, 0.2); }
.badge.FAILED      { background: rgba(248, 113, 113, 0.1);  color: #fca5a5; border-color: rgba(248, 113, 113, 0.2); }
.badge.VALID       { background: rgba(16, 240, 164, 0.1);  color: #6ee7b7; border-color: rgba(16, 240, 164, 0.2); }
.badge.INVALID     { background: rgba(248, 113, 113, 0.1);  color: #fca5a5; border-color: rgba(248, 113, 113, 0.2); }

/* ─────────────────────────────────────────────
   GRID HELPERS PREMIUM
───────────────────────────────────────────── */
.grid { display: grid; gap: 14px; }
.col-2 { grid-template-columns: 1fr 1fr; }
.col-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .col-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .col-2, .col-3 { grid-template-columns: 1fr; }
  .admin-content { padding: 18px 14px 36px; }
  .admin-sidebar { width: 220px; }
  .admin-main { margin-left: 220px; }
}

/* ─────────────────────────────────────────────
   PREMIUM AUTH CARD
───────────────────────────────────────────── */
.admin-auth-overlay {
  background: linear-gradient(135deg, #04081a 0%, #060c20 50%, #040714 100%);
}
.admin-auth-card {
  background: rgba(10, 16, 36, 0.92) !important;
  border: 1px solid rgba(79, 142, 247, 0.2) !important;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 60px rgba(79, 142, 247, 0.06) !important;
}
.admin-login-btn {
  background: linear-gradient(135deg, #3b6fd6, #0e7490) !important;
  box-shadow: 0 6px 20px rgba(59, 111, 214, 0.4) !important;
  letter-spacing: 0.3px;
}
.admin-login-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 32px rgba(59, 111, 214, 0.55) !important;
}

/* ─────────────────────────────────────────────
   PROGRESS BARS PREMIUM
───────────────────────────────────────────── */
.progress-bar-bg { background: rgba(255, 255, 255, 0.06) !important; }
.progress-bar-fill {
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 4px;
}

/* ─────────────────────────────────────────────
   TERMINAL / PRE BLOCKS
───────────────────────────────────────────── */
pre.note, pre {
  background: rgba(4, 8, 20, 0.8) !important;
  border: 1px solid rgba(79, 142, 247, 0.12) !important;
  border-radius: 10px !important;
  color: #7bffc4 !important;
  font-size: 12px !important;
  line-height: 1.7;
  padding: 14px 16px !important;
}

/* ─────────────────────────────────────────────
   SIDEBAR COLLAPSED STATE
───────────────────────────────────────────── */
.admin-shell.sidebar-collapsed .admin-sidebar {
  transform: translateX(-100%);
}
.admin-shell.sidebar-collapsed .admin-main {
  margin-left: 0;
}

/* ─────────────────────────────────────────────
   SCROLL ANIMATION (fade-in on tab switch)
───────────────────────────────────────────── */
.tab-panel:not(.hidden) {
  animation: tabFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────
   MISCELLANEOUS
───────────────────────────────────────────── */
code {
  background: rgba(79, 142, 247, 0.12);
  color: #93c5fd;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Fira Code', monospace;
}

/* ref-row 스타일 */
.ref-row { margin-bottom: 10px; }
.ref-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.ref-name { font-size: 13px; color: #a8c5f0; font-weight: 500; }
.ref-count { font-size: 12px; color: rgba(100, 150, 200, 0.6); font-weight: 600; }

/* user-badge */
.user-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(30, 50, 90, 0.8);
  color: #93c5fd;
}

/* Topbar sidebar toggle behavior */
#sidebarToggle:hover { border-color: rgba(79, 142, 247, 0.3) !important; }

/* ── Light Mode Premium Sidebar & Navigation Contrast Fix ── */
/* ── Light Mode Premium Sidebar & Navigation Contrast Fix ── */
.admin-body:not(.theme-dark) .admin-sidebar {
  background: linear-gradient(180deg, #e0f2fe 0%, #dbeafe 100%) !important;
  border-right: 1px solid rgba(79, 142, 247, 0.15) !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.05) !important;
}

.admin-body:not(.theme-dark) .sidebar-brand {
  border-bottom: 1px solid rgba(79, 142, 247, 0.12) !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(6, 182, 212, 0.04)) !important;
}

.admin-body:not(.theme-dark) .sidebar-brand-logo {
  color: #1e3a8a !important;
}

.admin-body:not(.theme-dark) .sidebar-brand-logo span {
  color: #2563eb !important;
}

.admin-body:not(.theme-dark) .sidebar-brand-sub {
  color: #475569 !important;
}

.admin-body:not(.theme-dark) .nav-group-label {
  color: #475569 !important;
}

.admin-body:not(.theme-dark) .nav-item {
  color: #1e3a8a !important;
}

.admin-body:not(.theme-dark) .nav-item:hover {
  background: rgba(37, 99, 235, 0.1) !important;
  color: #1d4ed8 !important;
}

.admin-body:not(.theme-dark) .nav-item.active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

.admin-body:not(.theme-dark) .nav-item.active::before {
  background: #ffffff !important;
  box-shadow: none !important;
}

/* ── Light Mode High Contrast Table & Badge Fixes (Outside Cards, e.g. AI Response Logs) ── */
.admin-body:not(.theme-dark) .admin-table td,
.admin-body:not(.theme-dark) table td {
  color: #1e293b !important; /* Dark slate text for cells outside cards */
  background: transparent !important;
}

.admin-body:not(.theme-dark) .admin-table td span {
  color: #2563eb !important; /* Readable blue for span labels */
}

/* Override inline styling for MX valid and disposable inside tables in light mode (outside cards) */
.admin-body:not(.theme-dark) .admin-table td span[style*="color:var(--accent-green)"],
.admin-body:not(.theme-dark) table td span[style*="color:var(--accent-green)"],
.admin-body:not(.theme-dark) .admin-table td span[style*="color:var(--green)"],
.admin-body:not(.theme-dark) table td span[style*="color:var(--green)"] {
  color: #047857 !important; /* Enforce dark green */
}

/* Override inline styling for source url and details inside tables in light mode (outside cards) */
.admin-body:not(.theme-dark) .admin-table td[style*="color:var(--text-light-muted)"],
.admin-body:not(.theme-dark) table td[style*="color:var(--text-light-muted)"] {
  color: #475569 !important; /* Enforce readable dark grey */
}

/* Override user-badge styling in light mode (outside cards) */
.admin-body:not(.theme-dark) .user-badge {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
}

/* ── Light Mode High Contrast Table & Badge Fixes (INSIDE CARDS, e.g. Campaigns DB Tables) ── */
.admin-body:not(.theme-dark) .card .admin-table td,
.admin-body:not(.theme-dark) .card table td,
.admin-body:not(.theme-dark) .admin-card .admin-table td,
.admin-body:not(.theme-dark) .admin-card table td {
  color: #c5d8f0 !important; /* Keep light blue/grey text inside dark cards */
  background: transparent !important;
}

.admin-body:not(.theme-dark) .card .admin-table td span[style*="color:var(--accent-green)"],
.admin-body:not(.theme-dark) .card table td span[style*="color:var(--accent-green)"],
.admin-body:not(.theme-dark) .card .admin-table td span[style*="color:var(--green)"],
.admin-body:not(.theme-dark) .card table td span[style*="color:var(--green)"] {
  color: #10f0a4 !important; /* Keep light green inside dark cards */
}

.admin-body:not(.theme-dark) .card .admin-table td[style*="color:var(--text-light-muted)"],
.admin-body:not(.theme-dark) .card table td[style*="color:var(--text-light-muted)"] {
  color: #8fa3be !important; /* Keep light blue/grey for source url inside dark cards */
}

.admin-body:not(.theme-dark) .card .user-badge {
  background: #1e293b !important;
  color: #cbd5e1 !important;
  border: none !important;
}

.admin-body:not(.theme-dark) .badge {
  border-width: 1px !important;
}
.admin-body:not(.theme-dark) .badge.NEW         { background: rgba(59, 130, 246, 0.1) !important; color: #1d4ed8 !important; border-color: rgba(59, 130, 246, 0.2) !important; }
.admin-body:not(.theme-dark) .badge.IN_PROGRESS { background: rgba(245, 158, 11, 0.1) !important; color: #b45309 !important; border-color: rgba(245, 158, 11, 0.2) !important; }
.admin-body:not(.theme-dark) .badge.CONTRACTED  { background: rgba(16, 185, 129, 0.1) !important; color: #047857 !important; border-color: rgba(16, 185, 129, 0.2) !important; }
.admin-body:not(.theme-dark) .badge.ON_HOLD     { background: rgba(100, 116, 139, 0.1) !important; color: #475569 !important; border-color: rgba(100, 116, 139, 0.2) !important; }
.admin-body:not(.theme-dark) .badge.CLOSED      { background: rgba(239, 68, 68, 0.08) !important;  color: #b91c1c !important; border-color: rgba(239, 68, 68, 0.15) !important; }
.admin-body:not(.theme-dark) .badge.ACTIVE      { background: rgba(16, 185, 129, 0.1) !important; color: #047857 !important; border-color: rgba(16, 185, 129, 0.2) !important; }
.admin-body:not(.theme-dark) .badge.PENDING     { background: rgba(245, 158, 11, 0.1) !important; color: #b45309 !important; border-color: rgba(245, 158, 11, 0.2) !important; }
.admin-body:not(.theme-dark) .badge.SUSPENDED   { background: rgba(239, 68, 68, 0.08) !important;  color: #b91c1c !important; border-color: rgba(239, 68, 68, 0.15) !important; }
.admin-body:not(.theme-dark) .badge.SENT        { background: rgba(16, 185, 129, 0.1) !important; color: #047857 !important; border-color: rgba(16, 185, 129, 0.2) !important; }
.admin-body:not(.theme-dark) .badge.FAILED      { background: rgba(239, 68, 68, 0.08) !important;  color: #b91c1c !important; border-color: rgba(239, 68, 68, 0.15) !important; }
.admin-body:not(.theme-dark) .badge.VALID       { background: rgba(16, 185, 129, 0.1) !important; color: #047857 !important; border-color: rgba(16, 185, 129, 0.2) !important; }
.admin-body:not(.theme-dark) .badge.INVALID     { background: rgba(239, 68, 68, 0.08) !important;  color: #b91c1c !important; border-color: rgba(239, 68, 68, 0.15) !important; }

/* ── AI Response Output Pre Containers Contrast Fix ── */
.card pre, .admin-card pre {
  background: rgba(4, 8, 20, 0.75) !important;
  color: #7bffc4 !important;
  border: 1px solid rgba(79, 142, 247, 0.18) !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-family: monospace !important;
  white-space: pre-wrap !important;
  font-size: 11px !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45) !important;
  margin-top: 10px !important;
  min-height: 40px;
}

/* Custom Google Translate Select Dropdown Styling */
.iming-translate-select:hover {
  border-color: rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.15) !important;
}
.iming-translate-select option {
  background: #0f172a !important;
  color: #fff !important;
  padding: 8px !important;
}

/* Hide Google Translate top bar/toolbar */
iframe.goog-te-banner-frame, 
.goog-te-banner-frame,
#goog-gt-tt, 
.goog-te-balloon-frame,
.goog-te-banner {
  display: none !important;
  visibility: hidden !important;
}

body {
  top: 0px !important;
  position: static !important;
}

html {
  margin-top: 0px !important;
}

iframe[src*="translate.google"],
iframe[id*="google"] {
  display: none !important;
  visibility: hidden !important;
}

/* Hide google translate tooltips and highlights */
.goog-tooltip, 
.goog-tooltip:hover {
  display: none !important;
  visibility: hidden !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}


