/* =====================================================================
 * KOMERZA DISCORD BOT & WEBPANEL DESIGN SYSTEM
 * Theme: The Last of Us Part II — Seattle Moss & Botanical Obsidian Glass
 * Designed for elirakeys.xyz by raeno
 * ===================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #080b09;
  --bg-card: rgba(16, 23, 18, 0.75);
  --bg-card-hover: rgba(23, 33, 26, 0.85);
  --bg-elevated: #151e18;
  --bg-input: rgba(10, 15, 12, 0.85);
  --border-glass: rgba(78, 115, 85, 0.22);
  --border-focus: rgba(74, 222, 128, 0.45);

  /* Botanical Seattle Accents */
  --primary-moss: #3e5341;
  --primary-moss-light: #526f56;
  --accent-emerald: #4ade80;
  --accent-forest: #22c55e;
  --accent-amber: #f59e0b;
  --accent-rust: #ef4444;
  --accent-slate: #94a3b8;
  --accent-blurple: #5865f2;

  /* Typography Colors */
  --text-main: #f1f5f2;
  --text-muted: #8e9e92;
  --text-subtle: #5f7064;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 25px rgba(74, 222, 128, 0.15);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  /* Sizing */
  --sidebar-width: 270px;
  --header-height: 70px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
}

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

html, body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 15, 12, 0.5);
}
::-webkit-scrollbar-thumb {
  background: rgba(62, 83, 65, 0.5);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-moss-light);
}

/* Ambient Background Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  transition: opacity 1s ease;
}
.glow-1 {
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(62, 83, 65, 0.8) 0%, rgba(34, 197, 94, 0.15) 70%, transparent 100%);
}
.glow-2 {
  bottom: -150px;
  left: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(20, 35, 24, 0.9) 0%, rgba(74, 222, 128, 0.1) 70%, transparent 100%);
}
.glow-3 {
  top: 40%;
  left: -200px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(191, 160, 84, 0.15) 0%, transparent 70%);
}

/* Glassmorphism Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
  border-color: rgba(74, 222, 128, 0.35);
}

/* =====================================================================
 * LOGIN SCREEN
 * ===================================================================== */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 480px;
  animation: fadeIn 0.4s ease-out;
}

.login-card {
  padding: 40px 36px;
  text-align: center;
  border-top: 1px solid rgba(74, 222, 128, 0.35);
}

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

.brand-logo-container {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.brand-logo {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid var(--border-glass);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(74, 222, 128, 0.2);
}

.status-dot-pulse {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  background-color: var(--accent-emerald);
  border: 3px solid var(--bg-dark);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.brand-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.access-policy-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(62, 83, 65, 0.25);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 12px;
  color: #c2d1c6;
  margin-bottom: 24px;
}

.access-policy-badge strong {
  color: var(--accent-emerald);
}

/* Alert Boxes */
.alert-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  font-size: 13px;
  line-height: 1.5;
  animation: slideDown 0.3s ease;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.alert-danger h4 {
  color: #f87171;
  font-weight: 700;
  margin-bottom: 4px;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

.alert-warning h4 {
  color: #fbbf24;
  font-weight: 700;
  margin-bottom: 4px;
}

.alert-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.alert-content code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 5px;
  border-radius: 4px;
  color: #ffffff;
}

.alert-small {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-lg {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
}

.btn-discord {
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.35);
}

.btn-discord:hover {
  background: linear-gradient(135deg, #6775f5 0%, #5865f2 100%);
  box-shadow: 0 6px 24px rgba(88, 101, 242, 0.5);
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #3e5341 0%, #2f4032 100%);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #ffffff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f6853 0%, #3e5341 100%);
  border-color: var(--accent-emerald);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-emerald {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #0c150e;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  box-shadow: 0 6px 24px rgba(74, 222, 128, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(30, 43, 34, 0.85);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 10px 18px;
  font-size: 13.5px;
}

.btn-secondary:hover {
  background: rgba(45, 62, 50, 0.95);
  border-color: rgba(74, 222, 128, 0.4);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 8px 14px;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.35);
  border-color: var(--accent-rust);
  color: #ffffff;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12.5px;
}

/* Divider */
.divider {
  position: relative;
  text-align: center;
  margin: 28px 0 20px;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(62, 83, 65, 0.3);
}

.divider span {
  position: relative;
  background: var(--bg-card);
  padding: 0 12px;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--text-subtle);
}

/* Quick Access Box */
.quick-access-box {
  background: rgba(12, 18, 14, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
}

.quick-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.quick-desc code {
  color: var(--accent-emerald);
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 4px;
  border-radius: 4px;
}

.input-group {
  display: flex;
  gap: 8px;
}

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

.field-hint {
  display: block;
  font-size: 11px;
  color: var(--text-subtle);
  margin-top: 6px;
}

.login-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(62, 83, 65, 0.2);
}

.security-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.security-tag {
  font-size: 11.5px;
  color: var(--text-muted);
}

.copyright {
  font-size: 11px;
  color: var(--text-subtle);
}

/* =====================================================================
 * APP LAYOUT (SIDEBAR + MAIN DASHBOARD)
 * ===================================================================== */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(12, 17, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  transition: transform var(--transition-normal);
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(62, 83, 65, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border-glass);
}

.sidebar-header-text h2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #ffffff;
}

.sidebar-header-text p {
  font-size: 11px;
  color: var(--accent-emerald);
  font-weight: 600;
}

.sidebar-nav {
  flex: 1;
  padding: 18px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-subtle);
  padding: 12px 12px 6px;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.nav-item:hover {
  background: rgba(30, 44, 34, 0.6);
  color: var(--text-main);
  border-color: rgba(74, 222, 128, 0.15);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(62, 83, 65, 0.5) 0%, rgba(30, 44, 34, 0.2) 100%);
  color: #ffffff;
  border-color: rgba(74, 222, 128, 0.35);
  font-weight: 600;
}

.nav-item.active .nav-icon {
  color: var(--accent-emerald);
}

.nav-icon {
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: rgba(74, 222, 128, 0.15);
  color: var(--accent-emerald);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(62, 83, 65, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
}

.user-details {
  min-width: 0;
}

.user-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.role-owner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.3) 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.role-support {
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

.btn-icon-logout {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* Main Content Area */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Navigation Bar */
.top-header {
  height: var(--header-height);
  background: rgba(12, 17, 14, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.view-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #ffffff;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 26, 21, 0.85);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-muted);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.pulse-dot.offline {
  background-color: var(--accent-rust);
  box-shadow: 0 0 8px var(--accent-rust);
}

/* Main View Body */
.view-body {
  padding: 32px;
  flex: 1;
}

.tab-content {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

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

/* Key Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.metric-card {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-focus), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.metric-card:hover::before {
  opacity: 1;
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.metric-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(62, 83, 65, 0.2);
  border: 1px solid var(--border-glass);
}

.metric-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 4px;
}

.metric-sub {
  font-size: 12px;
  color: var(--text-subtle);
}

.metric-sub.good {
  color: var(--accent-emerald);
}

/* Grid Sections */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(62, 83, 65, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.card-body {
  padding: 24px;
}

/* Activity Feed */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(14, 21, 16, 0.6);
  border: 1px solid rgba(62, 83, 65, 0.2);
  border-radius: var(--radius-md);
  font-size: 13px;
}

.activity-icon {
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.activity-details {
  flex: 1;
  min-width: 0;
}

.activity-text {
  color: var(--text-main);
  word-break: break-word;
}

.activity-time {
  font-size: 11px;
  color: var(--text-subtle);
  margin-top: 4px;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.data-table th {
  background: rgba(22, 32, 25, 0.85);
  color: var(--text-muted);
  font-weight: 600;
  padding: 12px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-glass);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(62, 83, 65, 0.15);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(30, 44, 34, 0.35);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-success {
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.badge-slate {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-thumb-wrap {
  position: relative;
  height: 160px;
  background: rgba(8, 12, 10, 0.9);
  overflow: hidden;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-thumb {
  transform: scale(1.05);
}

.product-stock-tag {
  position: absolute;
  top: 10px;
  right: 10px;
}

.product-info {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.product-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 14px;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(62, 83, 65, 0.2);
}

.product-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-emerald);
}

/* Discord Embed Builder & WYSIWYG Preview */
.embed-builder-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

.color-palette-picker {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition-fast);
}

.color-swatch:hover, .color-swatch.active {
  transform: scale(1.15);
  border-color: #ffffff;
}

/* Realistic Discord Message Box Preview */
.discord-preview-box {
  background: #313338;
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.discord-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.discord-bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.discord-bot-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #f2f3f5;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bot-tag {
  background: #5865F2;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
}

.discord-time {
  font-size: 11px;
  color: #949ba4;
}

.discord-embed-card {
  background: #2b2d31;
  border-left: 4px solid #3e5341;
  border-radius: 4px;
  padding: 14px 16px;
  margin-top: 6px;
  max-width: 520px;
}

.preview-embed-author {
  font-size: 12px;
  font-weight: 600;
  color: #dbdee1;
  margin-bottom: 4px;
}

.preview-embed-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.preview-embed-desc {
  font-size: 13.5px;
  color: #dbdee1;
  line-height: 1.45;
  white-space: pre-line;
  margin-bottom: 10px;
}

.preview-embed-thumb {
  max-width: 80px;
  max-height: 80px;
  border-radius: 4px;
  float: right;
  margin-left: 12px;
  margin-bottom: 6px;
}

.preview-embed-img {
  max-width: 100%;
  border-radius: 4px;
  margin-top: 8px;
}

.preview-embed-footer {
  font-size: 11px;
  color: #949ba4;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.toast {
  background: rgba(18, 27, 21, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  color: #ffffff;
  animation: slideInRight 0.3s ease;
  min-width: 280px;
}

.toast-success {
  border-color: rgba(74, 222, 128, 0.5);
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.5);
}

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

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
  }
  .two-col-grid, .embed-builder-layout {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
 * MULTI-TENANT STORE SWITCHER & SETUP STYLES
 * ===================================================================== */
.store-switcher-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 27, 21, 0.9);
  border: 1px solid var(--border-glass);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.store-switcher-pill:hover,
.store-switcher-pill:focus-within {
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.15);
}

.store-select-dropdown {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  max-width: 200px;
}

.store-select-dropdown option {
  background: #111a14;
  color: #f1f5f2;
}

.store-status-card {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-glass);
  background: rgba(15, 23, 18, 0.7);
}

.store-status-card.connected {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.store-status-card.error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.store-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(62, 83, 65, 0.4);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--accent-emerald);
}

