/* ==========================================================================
   SafeVault WhatsApp Gateway - Official Light Theme Stylesheet
   Inspired by WhatsApp Web Light Mode & Modern Enterprise SaaS
   Colors: #f0f2f5 (Base), #ffffff (Surfaces), #00a884 (WhatsApp Teal)
   ========================================================================== */

:root {
  /* Surface & Backgrounds */
  --bg-main: #f0f2f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-subtle: #f8fafc;
  
  /* Borders */
  --border-color: #e2e8f0;
  --border-focus: #00a884;
  --border-highlight: rgba(0, 168, 132, 0.4);
  
  /* Primary & Accent Branding */
  --primary: #00a884;
  --primary-hover: #008069;
  --primary-light: #25d366;
  --primary-glow: rgba(0, 168, 132, 0.18);
  
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --warning: #d97706;
  
  /* Text & Typography */
  --text-primary: #111b21;
  --text-secondary: #54656f;
  --text-muted: #8696a0;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 32px -8px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* WhatsApp Light Mode Tokens */
  --wa-teal: #00a884;
  --wa-teal-hover: #008069;
  --wa-teal-light: #25d366;
  --wa-dark-green: #008069;
  --wa-bg-deep: #ffffff;
  --wa-bg-panel: #f0f2f5;
  --wa-bg-card: #ffffff;
  --wa-bg-chat: #efeae2;
  --wa-bubble-in: #ffffff;
  --wa-bubble-out: #d9fdd3;
  --wa-bubble-text: #111b21;
  --wa-bubble-time: #667781;
  --wa-ticks: #53bdeb;
  --wa-border: #e2e8f0;
}

/* ==========================================================================
   Base Reset
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 168, 132, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(2, 132, 199, 0.04) 0%, transparent 40%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.auth-required .navbar,
.auth-required .main-content,
.auth-required .toast {
  display: none !important;
}

/* ==========================================================================
   AUTHENTICATION & LOGIN / REGISTER REDESIGN (SaaS Light Theme)
   ========================================================================== */
.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(ellipse at 50% 10%, rgba(0, 168, 132, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 90%, rgba(0, 128, 105, 0.05) 0%, transparent 50%);
}

.login-card {
  width: min(100%, 430px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.07), 0 0 1px rgba(0, 0, 0, 0.1);
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-logo-badge {
  width: 54px;
  height: 54px;
  margin: 0 auto 1.1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #00a884 0%, #008069 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px -4px rgba(0, 168, 132, 0.35);
}

.auth-header h1,
.auth-header h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #111b21;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.auth-header p {
  font-size: 0.88rem;
  color: #54656f;
  line-height: 1.5;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0;
}

.auth-field input {
  width: 100%;
  padding: 0.75rem 0.95rem;
  font-size: 0.92rem;
  color: #111b21;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.auth-field input:focus {
  outline: none;
  border-color: #00a884;
  box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.15);
}

.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626 !important;
  font-size: 0.84rem !important;
  font-weight: 500;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  margin: 0 !important;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 0.25rem 0;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
  padding: 0 0.75rem;
}

.auth-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: center;
  margin-top: 0.25rem;
}

.auth-link-btn {
  background: none;
  border: none;
  color: #00a884;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
  padding: 0;
}

.auth-link-btn:hover {
  color: #008069;
  text-decoration: underline;
}

.auth-sub-link {
  color: #64748b;
  font-size: 0.84rem;
  text-decoration: none;
  transition: color 0.15s;
}

.auth-sub-link:hover {
  color: #111b21;
}

/* User Portal Layout */
.user-portal {
  min-height: 100vh;
  background-color: var(--bg-main);
  color: var(--text-primary);
}
.user-portal-main { max-width: 760px; margin: 0 auto; padding: 2rem 1rem; }
.user-portal .login-screen { position: static; min-height: 100vh; }
.user-dashboard-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.user-instance-card { text-align: center; display: grid; gap: 1rem; justify-items: center; }
.user-tabs { display: flex; gap: .5rem; overflow-x: auto; border-bottom: 1px solid var(--border-color); margin-bottom: 1.5rem; }
.user-tab-panel { display: none; }
.user-tab-panel.active { display: block; }
.user-device-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.user-app-link { margin-top: 1rem; padding: .75rem; border: 1px solid #e2e8f0; border-radius: var(--radius-sm); background: #f8fafc; display: grid; gap: .35rem; }
.user-app-link span { color: var(--text-muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.user-app-link code { color: #0284c7; font-family: var(--font-mono); font-size: .74rem; overflow-wrap: anywhere; }
.user-portal .qr-frame.user-connected-frame { background: #ffffff; border-color: var(--primary); }
.user-connected-visual { width: 240px; height: 240px; padding: 1.5rem; color: var(--text-primary); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .65rem; }
.user-connected-visual h3 { color: #00a884; font-size: 1.1rem; }
.user-connected-visual p { color: var(--text-secondary); font-size: .84rem; line-height: 1.5; }
.user-connected-check { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--primary); color: white; font-size: 2rem; font-weight: 800; box-shadow: 0 0 20px var(--primary-glow); }
.user-portal .status-sent { color: #00a884; font-weight: 600; }
.user-portal .status-failed { color: #ef4444; font-weight: 600; }
.btn-logout { margin-left: .5rem; font-size: .75rem; }

/* ==========================================================================
   Header & Navbar (Clean Light Theme)
   ========================================================================== */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #00a884 0%, #008069 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111b21;
  letter-spacing: -0.02em;
}

.brand-text h1 span {
  color: var(--primary);
  font-weight: 600;
}

.brand-subtitle {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-connected {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #166534;
}
.status-connected .status-dot {
  background: #16a34a;
  box-shadow: 0 0 8px #16a34a;
  animation: pulse-dot 2s infinite;
}

.status-loading {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}
.status-loading .status-dot {
  background: #d97706;
}

.status-disconnected {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}
.status-disconnected .status-dot {
  background: #ef4444;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.device-badge {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.device-badge #deviceName {
  color: var(--text-primary);
  font-weight: 600;
}
.device-badge #devicePhone {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* Nav Tabs */
.nav-tabs {
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.tabs-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.85rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.03);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
  background: rgba(0, 168, 132, 0.06);
}

/* Main Layout */
.main-content {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

.tab-panel.active {
  display: block;
}

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

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.panel-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111b21;
}

.panel-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.antiban-badge {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

/* Grids & Cards */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mt-4 { margin-top: 1.25rem; }
.text-center { text-align: center; }
.max-w-xl { max-width: 36rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* Forms & Inputs */
.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

.label-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.1rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  resize: vertical;
  box-sizing: border-box;
}

textarea#bulkNumbers {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: #ffffff;
}

.textarea-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}

.btn-text:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.btn-text.danger {
  color: #dc2626;
}
.btn-text.danger:hover {
  color: #b91c1c;
}

/* Formatting Bar */
.formatting-bar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-bottom: none;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  padding: 0.35rem 0.5rem;
}

.formatting-bar + textarea {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.fmt-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}

.fmt-btn:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.fmt-divider {
  width: 1px;
  height: 16px;
  background: var(--border-color);
  margin: 0 0.25rem;
}

/* Delay Box */
.delay-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.slider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.slider-value {
  font-family: var(--font-mono);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

.delay-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* Badges & Counters */
.count-badge {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-weight: 600;
}

.count-badge.highlight {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #166534;
}

.badge {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-idle { background: #f1f5f9; color: #64748b; }
.badge-running { background: #e0f2fe; color: #0284c7; animation: pulse-text 1.5s infinite; }
.badge-completed { background: #dcfce7; color: #166534; }
.badge-stopped { background: #fee2e2; color: #991b1b; }

@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00a884 0%, #008069 100%);
  color: white;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #008069 0%, #006b57 100%);
  box-shadow: 0 6px 20px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}
.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

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

.btn-large {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.45rem 0.9rem !important;
  font-size: 0.82rem !important;
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-icon:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.action-buttons {
  display: flex;
  gap: 0.75rem;
}

/* Progress Section */
.progress-section {
  margin-bottom: 1.25rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00a884 0%, #25d366 100%);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.countdown-banner {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #0284c7;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.stat-lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.stat-card.stat-success .stat-num { color: #00a884; }
.stat-card.stat-failed .stat-num { color: #ef4444; }

/* Log Table */
.table-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.table-header-row h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.table-container {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.log-table th {
  background: #f8fafc;
  padding: 0.55rem 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

.log-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-primary);
}

.log-table tr:hover {
  background: #f8fafc;
}

.empty-row td {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
}

.tag-sent { color: #00a884; font-weight: 600; }
.tag-failed { color: #ef4444; font-weight: 600; }
.tag-pending { color: #64748b; }
.tag-sending { color: #0284c7; font-weight: 600; }

/* Device Details */
.device-details {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-lbl { color: var(--text-muted); }
.detail-val { font-weight: 600; color: #111b21; }

/* QR Box */
.qr-container {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.qr-img {
  width: 240px;
  height: 240px;
  background: white;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.qr-help {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* API Docs Accordion */
.docs-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doc-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.doc-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid var(--border-color);
  background: #f8fafc;
  flex-wrap: wrap;
}

.method {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}
.method.get { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }
.method.post { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

.endpoint {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.doc-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-left: auto;
}

.doc-body {
  padding: 1.25rem;
  font-size: 0.85rem;
  color: #334155;
}

.doc-body h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0.8rem 0 0.3rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}

pre {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow-x: auto;
  color: #38bdf8;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 999;
  animation: slideUp 0.2s ease;
  color: #111b21;
}

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

.toast.success { border-color: #86efac; color: #166534; background: #f0fdf4; }
.toast.error { border-color: #fca5a5; color: #991b1b; background: #fef2f2; }

/* ==========================================================================
   QR Code Hero Card on admin.html / user.html
   ========================================================================== */
.qr-hero-card {
  background: #ffffff;
  border: 1px solid rgba(0, 168, 132, 0.3);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 0 15px -3px rgba(0, 168, 132, 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.qr-hero-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 168, 132, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.qr-hero-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 868px) {
  .qr-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 8px #16a34a;
  animation: pulse-dot 1.5s infinite;
}

.qr-hero-text h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.hero-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #1e293b;
  background: #f8fafc;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
}

.step-num {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-status-notice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #e0f2fe;
  border-left: 3px solid var(--accent);
  padding: 0.65rem 0.9rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.85rem;
  color: #0284c7;
  font-weight: 500;
}

.qr-hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qr-frame {
  position: relative;
  background: white;
  padding: 0.85rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 0 15px rgba(0, 168, 132, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
  min-height: 250px;
  border: 4px solid var(--primary);
}

.hero-qr-img {
  width: 240px;
  height: 240px;
  display: block;
  border-radius: var(--radius-sm);
}

.qr-loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 1rem;
}

.custom-spinner {
  width: 38px;
  height: 38px;
  border: 4px solid #cbd5e1;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.qr-auto-refresh {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pulse-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 1.5s infinite;
}

/* Connected Success Banner */
.connected-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.4rem;
  margin-bottom: 1.5rem;
}

.conn-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.conn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
}

.conn-left h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #166534;
  margin-bottom: 0.15rem;
}

.conn-left p {
  font-size: 0.82rem;
  color: #4b5563;
}

/* ==========================================================================
   Multi-Instance Management & Modals (Light Theme)
   ========================================================================== */
.instances-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.instance-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.instance-card:hover {
  border-color: rgba(0, 168, 132, 0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.instance-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.instance-title-area h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.instance-id-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.credential-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cred-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.cred-lbl {
  color: var(--text-muted);
}

.cred-val {
  font-family: var(--font-mono);
  color: #111b21;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-copy-mini {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.btn-copy-mini:hover {
  color: var(--primary);
}

.instance-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  animation: modalPop 0.2s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
}

.btn-close:hover {
  color: #111b21;
  background: #f1f5f9;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.qr-wrapper-modal {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  background: #ffffff;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-loading-modal {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #0f172a;
}

.qr-img-modal {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.connected-tag {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
  display: inline-block;
}

/* WhatsApp Live Bubble Preview in Console */
.wa-preview-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
}

.preview-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wa-teal);
  display: block;
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   WHATSAPP WEB THEME & SAAS LANDING PAGE STYLES (Light Theme)
   ========================================================================== */

/* Landing Page Body & Base */
.landing-body {
  background-color: #ffffff;
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* Landing Navbar */
.landing-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--wa-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.landing-nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.landing-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00a884 0%, #008069 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 168, 132, 0.3);
}

.landing-brand-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111b21;
  line-height: 1.2;
}

.landing-brand-text h1 span {
  color: var(--wa-teal);
}

.landing-brand-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 1px 6px;
  border-radius: 4px;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.landing-nav-links a {
  text-decoration: none;
  color: #54656f;
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.landing-nav-links a:hover {
  color: var(--wa-teal);
}

.nav-doc-link {
  color: var(--wa-teal) !important;
  font-weight: 600;
}

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

/* Nav Link Button in Console Tabs */
.nav-link-btn {
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

/* Landing Hero Section */
.landing-hero {
  position: relative;
  padding: 5rem 1.5rem 4.5rem;
  background: 
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(0, 168, 132, 0.08), transparent 70%),
    radial-gradient(ellipse 40% 30% at 85% 60%, rgba(2, 132, 199, 0.04), transparent 70%),
    #ffffff;
}

.landing-hero-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 1.4rem;
}

.hero-title {
  font-size: 2.85rem;
  line-height: 1.18;
  font-weight: 800;
  color: #111b21;
  margin-bottom: 1.3rem;
  letter-spacing: -0.02em;
}

.text-gradient-wa {
  background: linear-gradient(135deg, #00a884 0%, #008069 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.08rem;
  color: #54656f;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-desc strong {
  color: #111b21;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--wa-border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: #54656f;
  font-weight: 500;
}

.trust-icon {
  font-size: 1.1rem;
}

/* WhatsApp Web Chat Simulator (Light Theme Authentic Look) */
.wa-simulator-card {
  background: #ffffff;
  border: 1px solid var(--wa-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 
    0 20px 45px -12px rgba(0, 0, 0, 0.1),
    0 0 25px -5px rgba(0, 168, 132, 0.12);
}

.wa-sim-header {
  background: #f0f2f5;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
}

.wa-sim-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.wa-sim-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #e2e8f0;
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #25d366;
  border: 2px solid #f0f2f5;
}

.wa-sim-user {
  flex: 1;
  min-width: 0;
}

.wa-sim-user h4 {
  font-size: 0.95rem;
  color: #111b21;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.wa-sim-status {
  font-size: 0.76rem;
  color: #00a884;
  font-weight: 500;
  display: block;
}

.wa-sim-actions {
  display: flex;
  gap: 0.8rem;
  color: #54656f;
  font-size: 1.1rem;
  cursor: pointer;
}

.wa-sim-chat {
  height: 380px;
  overflow-y: auto;
  padding: 1.2rem;
  background-color: #efeae2;
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  scroll-behavior: smooth;
}

.wa-sim-date {
  text-align: center;
  margin: 0.4rem 0;
}

.wa-sim-date span {
  background: #ffffff;
  color: #54656f;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.wa-bubble {
  max-width: 82%;
  padding: 0.6rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
  position: relative;
  word-break: break-word;
  animation: bubbleAppear 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.wa-bubble-in {
  align-self: flex-start;
  background: #ffffff;
  color: #111b21;
  border-radius: 0 10px 10px 10px;
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.1);
}

.wa-bubble-out {
  align-self: flex-end;
  background: #d9fdd3;
  color: #111b21;
  border-radius: 10px 0 10px 10px;
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.1);
}

.wa-bubble p {
  margin: 0 0 0.2rem;
}

.wa-bubble-time {
  font-size: 0.68rem;
  color: #667781;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.wa-ticks {
  color: var(--wa-ticks);
  font-weight: 700;
  font-size: 0.75rem;
}

.wa-bubble-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: rgba(0, 0, 0, 0.06);
  color: #065f46;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  margin: 0.4rem 0;
  word-break: break-all;
}

.wa-typing-bubble {
  align-self: flex-start;
  background: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  display: flex;
  gap: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wa-typing-bubble span {
  width: 6px;
  height: 6px;
  background: #8696a0;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.wa-typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.wa-typing-bubble span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

.wa-sim-footer {
  background: #f0f2f5;
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-top: 1px solid #e2e8f0;
}

.sim-btn-icon {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.sim-btn-icon:hover {
  opacity: 1;
}

.wa-sim-footer input {
  flex: 1;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  color: #111b21;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

.wa-sim-footer input:focus {
  border-color: var(--wa-teal);
}

.sim-send-btn {
  background: var(--wa-teal);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.sim-send-btn:hover {
  background: var(--wa-teal-hover);
  transform: scale(1.05);
}

/* Stats Counter Section */
.landing-stats {
  background: #f8fafc;
  border-top: 1px solid var(--wa-border);
  border-bottom: 1px solid var(--wa-border);
  padding: 2.8rem 1.5rem;
}

.stats-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-box {
  text-align: center;
}

.stat-number {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--wa-teal);
  margin-bottom: 0.35rem;
  font-feature-settings: "tnum";
}

.stat-label {
  font-size: 0.88rem;
  color: #54656f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Section Header Styles */
.landing-section {
  padding: 5.5rem 1.5rem;
}

.bg-surface {
  background: #f8fafc;
}

.section-container {
  max-width: 1240px;
  margin: 0 auto;
}

.max-w-2xl {
  max-width: 820px;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid #bbf7d0;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #111b21;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.05rem;
  color: #54656f;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--wa-border);
  border-radius: 16px;
  padding: 2.2rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 168, 132, 0.45);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.08);
}

.highlight-card {
  border-color: rgba(0, 168, 132, 0.35);
  background: linear-gradient(180deg, rgba(0, 168, 132, 0.04) 0%, #ffffff 100%);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #008069;
  margin-bottom: 1.4rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111b21;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: #54656f;
  font-size: 0.93rem;
  line-height: 1.6;
}

.feature-card code {
  background: #f1f5f9;
  color: #065f46;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Code Playground Section */
.code-playground-box {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.15);
}

.code-tabs-header {
  background: #1e293b;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  overflow-x: auto;
}

.code-tabs {
  display: flex;
  gap: 0.5rem;
}

.code-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 1rem 1.2rem;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.code-tab-btn:hover {
  color: #f8fafc;
}

.code-tab-btn.active {
  color: #34d399;
}

.code-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #00a884;
}

.btn-copy-code {
  background: #334155;
  border: 1px solid #475569;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-copy-code:hover {
  background: #475569;
}

.code-editor-body {
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.code-content {
  display: none;
  margin: 0;
}

.code-content.active {
  display: block;
}

.code-content code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.65;
  white-space: pre-wrap;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--wa-border);
  border-radius: 16px;
  padding: 2.2rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.step-badge {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--wa-teal);
  margin-bottom: 1.2rem;
  font-feature-settings: "tnum";
}

.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111b21;
  margin-bottom: 0.75rem;
}

.step-card p {
  color: #54656f;
  font-size: 0.93rem;
  line-height: 1.6;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--wa-border);
  border-radius: 18px;
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.08);
}

.featured-plan {
  border-color: var(--wa-teal);
  background: #ffffff;
  box-shadow: 0 16px 36px -10px rgba(0, 168, 132, 0.2);
  transform: scale(1.03);
}

.featured-plan:hover {
  transform: scale(1.03) translateY(-4px);
}

.plan-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wa-teal);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.9rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111b21;
  margin-bottom: 0.4rem;
}

.pricing-desc {
  color: #54656f;
  font-size: 0.88rem;
  margin-bottom: 1.4rem;
}

.price-val {
  font-size: 2.4rem;
  font-weight: 800;
  color: #111b21;
  margin-bottom: 1.8rem;
}

.price-val span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #54656f;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.pricing-features li {
  font-size: 0.92rem;
  color: #334155;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--wa-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.faq-item[open] {
  border-color: rgba(0, 168, 132, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111b21;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--wa-teal);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: #54656f;
  font-size: 0.94rem;
  line-height: 1.65;
}

.faq-answer p {
  margin: 0;
}

.faq-answer strong {
  color: #111b21;
}

/* CTA Banner */
.landing-cta-banner {
  padding: 5rem 1.5rem;
  background: 
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0, 168, 132, 0.08), transparent 70%),
    #f8fafc;
  border-top: 1px solid var(--wa-border);
  border-bottom: 1px solid var(--wa-border);
  text-align: center;
}

.cta-banner-container {
  max-width: 780px;
  margin: 0 auto;
}

.cta-banner-container h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #111b21;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-banner-container p {
  font-size: 1.1rem;
  color: #54656f;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-banner-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Landing Footer */
.landing-footer {
  background: #f8fafc;
  padding: 4rem 1.5rem 2.5rem;
  border-top: 1px solid var(--wa-border);
}

.landing-footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 4rem;
}

.footer-col-brand h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111b21;
  margin-bottom: 0.5rem;
}

.footer-col-brand h2 span {
  color: var(--wa-teal);
}

.footer-col-brand p {
  color: #54656f;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.copyright-text {
  font-size: 0.8rem !important;
  color: #94a3b8 !important;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111b21;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  color: #54656f;
  font-size: 0.88rem;
  text-decoration: none;
  margin-bottom: 0.65rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--wa-teal);
}

/* Responsive Media Queries for Landing */
@media (max-width: 1024px) {
  .landing-hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .features-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-plan {
    transform: none;
  }

  .featured-plan:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 768px) {
  .landing-nav-links {
    display: none;
  }

  .landing-footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .features-grid,
  .steps-grid,
  .pricing-grid,
  .stats-container,
  .footer-links-group {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .landing-section {
    padding: 4rem 1.25rem;
  }
}

/* ==========================================================================
   Single Message Messenger Redesign (Pixano Connect)
   ========================================================================== */
.single-messenger-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 992px) {
  .single-messenger-grid {
    grid-template-columns: 1fr;
  }
}

.panel-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.tag-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tag-instant {
  background: rgba(0, 168, 132, 0.12);
  color: #008069;
  border: 1px solid rgba(0, 168, 132, 0.25);
}

.tag-secure {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.single-composer-card {
  background: #ffffff;
  border-radius: var(--radius-md, 16px);
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.composer-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.composer-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 168, 132, 0.15) 0%, rgba(0, 128, 105, 0.15) 100%);
  color: var(--primary, #00a884);
  display: flex;
  align-items: center;
  justify-content: center;
}

.composer-title-group h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin: 0;
}

.composer-title-group .subtext {
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
}

.single-form-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.label-row label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary, #1e293b);
}

.label-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted, #64748b);
  background: #f1f5f9;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.phone-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.phone-prefix-icon {
  position: absolute;
  left: 0.85rem;
  color: #00a884;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.phone-input-wrapper input {
  padding-left: 2.6rem;
  width: 100%;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-mono, monospace);
  height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.phone-input-wrapper input:focus {
  border-color: #00a884;
  box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.15);
  outline: none;
}

.templates-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary, #475569);
  margin-bottom: 0.4rem;
  display: block;
}

.template-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.template-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.template-chip:hover {
  background: #f1f5f9;
  border-color: #00a884;
  color: #008069;
  transform: translateY(-1px);
}

.single-fmt-bar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.6rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}

.single-fmt-bar .fmt-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.single-fmt-bar .fmt-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.fmt-separator {
  width: 1px;
  height: 18px;
  background: #cbd5e1;
  margin: 0 0.3rem;
}

.fmt-btn-clear {
  margin-left: auto;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.fmt-btn-clear:hover {
  color: #ef4444;
  background: #fee2e2;
}

.single-form-body textarea {
  border-radius: 0 0 10px 10px;
  border-top: none;
  padding: 0.85rem;
  font-size: 0.92rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 130px;
  width: 100%;
}

.single-form-body textarea:focus {
  border-color: #00a884;
  box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.12);
  outline: none;
}

.btn-send-single {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #00a884 0%, #008069 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 168, 132, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-send-single:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 168, 132, 0.45);
}

.btn-send-single:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Phone Mockup Frame */
.phone-preview-card {
  background: #ffffff;
  border-radius: var(--radius-md, 16px);
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  padding: 0;
  overflow: hidden;
}

.phone-mockup-wrapper {
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
}

.phone-frame {
  width: 100%;
  max-width: 320px;
  background: #ffffff;
  border-radius: 36px;
  border: 10px solid #1e293b;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  position: relative;
}

.phone-camera-notch {
  height: 22px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.camera-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0f172a;
}

.speaker-pill {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #334155;
}

.phone-wa-header {
  background: #008069;
  color: #ffffff;
  padding: 0.6rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.phone-wa-back {
  font-size: 1.1rem;
  font-weight: 700;
  cursor: default;
}

.phone-wa-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #00a884;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-wa-user {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.phone-wa-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
}

.phone-wa-status {
  font-size: 0.68rem;
  color: #e2fced;
}

.phone-wa-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.9);
}

.phone-wa-body {
  flex: 1;
  background-color: #efeae2;
  background-image: radial-gradient(#d4cbbe 0.75px, transparent 0.75px);
  background-size: 14px 14px;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  min-height: 300px;
}

.phone-wa-date-pill {
  align-self: center;
  background: rgba(255, 255, 255, 0.88);
  color: #54656f;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.phone-wa-bubble-out {
  align-self: flex-end;
  background: #d9fdd3;
  color: #111b21;
  padding: 0.55rem 0.75rem;
  border-radius: 10px 0 10px 10px;
  max-width: 88%;
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.12);
  word-break: break-word;
  animation: bubblePop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bubblePop {
  from { transform: scale(0.96); opacity: 0.8; }
  to { transform: scale(1); opacity: 1; }
}

.phone-wa-bubble-out p {
  margin: 0 0 0.25rem;
  font-size: 0.84rem;
  line-height: 1.42;
  white-space: pre-wrap;
}

.phone-wa-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  font-size: 0.65rem;
  color: #667781;
}

.phone-wa-ticks {
  color: #53bdeb;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: -1px;
}

.phone-wa-footer {
  background: #f0f2f5;
  padding: 0.45rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.phone-wa-emoji-icon,
.phone-wa-attach-icon {
  font-size: 1.05rem;
  color: #54656f;
  cursor: default;
}

.phone-wa-fake-input {
  flex: 1;
  background: #ffffff;
  border-radius: 18px;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  color: #8696a0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.phone-wa-mic-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #008069;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

/* ==========================================================================
   User Dashboard API Documentation Tab Styles
   ========================================================================== */
.api-credentials-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg, 12px);
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.api-credentials-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00a884 0%, #0284c7 100%);
}

.api-cred-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.api-cred-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.api-key-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.api-cred-title h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.api-cred-title p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0.2rem 0 0 0;
}

.api-cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.api-cred-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.api-cred-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.4rem;
}

.api-cred-val-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.api-cred-val-box code {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.88rem;
  font-weight: 600;
  color: #0284c7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-sm {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-copy-sm:hover {
  background: #f1f5f9;
  color: #00a884;
  border-color: #00a884;
}

.btn-copy-sm.copied {
  background: #00a884;
  color: #ffffff;
  border-color: #00a884;
}

.badge-get-post {
  display: inline-block;
  background: linear-gradient(135deg, #10b981 0%, #0284c7 100%);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 0.5rem;
  letter-spacing: 0.03em;
}

.endpoint-name {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.live-url-box {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.live-url-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.live-url-badge {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.btn-xs {
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  border-radius: 6px;
}

.live-url-code {
  margin: 0;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.85rem;
  color: #38bdf8;
  word-break: break-all;
  white-space: pre-wrap;
  line-height: 1.5;
}

.type-badge {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
}

.req-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #fee2e2;
  color: #dc2626;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.opt-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  background: #f1f5f9;
  color: #64748b;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.code-lang-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.lang-tab-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.lang-tab-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.lang-tab-btn.active {
  background: #008069;
  color: #ffffff;
  border-color: #008069;
  box-shadow: 0 2px 6px rgba(0, 128, 105, 0.25);
}

.code-snippet-container {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 0.75rem;
}

.code-snippet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.snippet-lang-title {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.code-snippet-pre {
  margin: 0;
  padding: 1.25rem 1.25rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
}

.code-mini-box {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 0.85rem;
}

.code-mini-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.code-mini-box pre,
.code-mini-pre {
  margin: 0;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #e2e8f0;
  overflow-x: auto;
}

.text-success { color: #10b981 !important; }
.text-danger { color: #ef4444 !important; }

@media (max-width: 768px) {
  .api-cred-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .code-lang-tabs {
    width: 100%;
  }
}

