/* ==========================================================================
   Linktree Clone Pro - Master Design System & Dashboard Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@400;600;700;800&family=Almarai:wght@400;700;800&family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Aref+Ruqaa:wght@400;700&family=Cairo:wght@400;600;700;800;900&family=Changa:wght@400;600;700;800&family=El+Messiri:wght@400;600;700&family=Katibeh&family=Lalezar&family=Lemonada:wght@400;600;700&family=Marhey:wght@400;600;700&family=Plus+Jakarta+Sans:wght@400;600;700;800&family=Rakkas&family=Readex+Pro:wght@400;500;600;700&family=Reem+Kufi:wght@400;600;700&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  /* Color Palette - Admin Console */
  --bg-app: #0c0e14;
  --bg-sidebar: #12151e;
  --bg-card: #181c28;
  --bg-card-hover: #1f2434;
  --bg-input: #10131c;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #10b981;
  
  /* Accents */
  --primary: #10b981;
  --primary-light: #34d399;
  --primary-glow: rgba(16, 185, 129, 0.25);
  --accent-gold: #d4af37;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-danger: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Geometry & Elevation */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px -15px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px var(--primary-glow);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Readex Pro', 'Cairo', sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  direction: rtl;
}

/* Master Font Family Classes */
.font-readex, .font-readex * { font-family: 'Readex Pro', sans-serif !important; }
.font-cairo, .font-cairo * { font-family: 'Cairo', sans-serif !important; }
.font-tajawal, .font-tajawal * { font-family: 'Tajawal', sans-serif !important; }
.font-almarai, .font-almarai * { font-family: 'Almarai', sans-serif !important; }
.font-alexandria, .font-alexandria * { font-family: 'Alexandria', sans-serif !important; }
.font-lalezar, .font-lalezar * { font-family: 'Lalezar', cursive, sans-serif !important; }
.font-aref, .font-aref * { font-family: 'Aref Ruqaa', serif !important; }
.font-reem, .font-reem * { font-family: 'Reem Kufi', sans-serif !important; }
.font-marhey, .font-marhey * { font-family: 'Marhey', cursive, sans-serif !important; }
.font-rakkas, .font-rakkas * { font-family: 'Rakkas', display, cursive !important; }
.font-lemonada, .font-lemonada * { font-family: 'Lemonada', cursive, sans-serif !important; }
.font-changa, .font-changa * { font-family: 'Changa', sans-serif !important; }
.font-katibeh, .font-katibeh * { font-family: 'Katibeh', serif !important; }
.font-amiri, .font-amiri * { font-family: 'Amiri', serif !important; }
.font-elmessiri, .font-elmessiri * { font-family: 'El Messiri', sans-serif !important; }
.font-inter, .font-inter * { font-family: 'Plus Jakarta Sans', sans-serif !important; }

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: rgba(18, 21, 30, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  color: white;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name span {
  color: var(--primary);
}

.pro-badge {
  background: linear-gradient(135deg, #d4af37, #f6d365);
  color: #0b0c10;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.nav-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab-btn.active {
  background: var(--primary);
  color: #0c0e14;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

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

.btn-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-share {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #0b0c10;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

/* Direct Prominent Header Logout Button */
.btn-direct-logout {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

.btn-direct-logout:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.45);
  transform: translateY(-2px);
}

.btn-direct-logout svg {
  transition: transform var(--transition-fast);
}

.btn-direct-logout:hover svg {
  transform: translateX(2px);
}

/* Header User Profile Widget */
.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 4px 10px 4px 6px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-avatar-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary);
}

.user-meta-header {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: right;
}

.user-name-small {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.8rem;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-provider-badge {
  font-size: 0.68rem;
  color: var(--text-dim);
  direction: ltr;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Client Switcher in Header */
.client-switcher-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.client-switcher-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 14px 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.client-switcher-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.client-switcher-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary);
}

.client-switcher-info {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.15;
}

.client-switcher-name {
  font-size: 0.85rem;
  font-weight: 700;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-switcher-slug {
  font-size: 0.72rem;
  color: var(--primary-light);
  direction: ltr;
  text-align: right;
  font-family: monospace;
}

.client-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: none;
  backdrop-filter: blur(16px);
}

.client-dropdown-menu.open {
  display: block;
  animation: fadeIn 0.2s ease;
}

.client-dropdown-header {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 8px 12px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.client-list-scroll {
  max-height: 260px;
  overflow-y: auto;
  margin: 4px 0;
}

.client-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  gap: 10px;
}

.client-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.client-menu-item.active {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.client-item-details {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}

.client-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-item-slug {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: monospace;
}

.btn-add-new-client-menu {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px dashed var(--primary);
  color: var(--primary-light);
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 6px;
  transition: all var(--transition-fast);
}

.btn-add-new-client-menu:hover {
  background: var(--primary);
  color: #0c0e14;
}

/* Slug input badge in profile bar */
.slug-badge-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4px 10px;
  direction: ltr;
  font-family: monospace;
}

.slug-prefix {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.slug-inline-input {
  background: transparent;
  border: none;
  color: var(--primary-light);
  font-family: monospace;
  font-size: 0.88rem;
  font-weight: 700;
  outline: none;
  width: 110px;
}

/* Main Dashboard Workspace Layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 490px;
  min-height: calc(100vh - 72px);
  max-width: 1620px;
  margin: 0 auto;
  padding: 32px;
  gap: 40px;
}

@media (max-width: 1120px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

/* Left Pane: Tabs & Editor */
.editor-pane {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

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

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

/* Top Quick Bio Bar */
.profile-bar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.profile-avatar-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border-color);
  cursor: pointer;
  flex-shrink: 0;
}

.profile-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: white;
}

.profile-avatar-wrap:hover .profile-avatar-overlay {
  opacity: 1;
}

.profile-info-wrap {
  flex: 1;
}

.profile-title-input {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 4px 8px;
  width: 100%;
  transition: all var(--transition-fast);
}

.profile-title-input:hover, .profile-title-input:focus {
  background: var(--bg-input);
  border-color: var(--border-color);
  outline: none;
}

.profile-bio-input {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 4px 8px;
  width: 100%;
  margin-top: 4px;
  resize: none;
  transition: all var(--transition-fast);
}

.profile-bio-input:hover, .profile-bio-input:focus {
  background: var(--bg-input);
  border-color: var(--border-color);
  outline: none;
}

/* Add Link Button Bar */
.add-link-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-add-primary {
  background: var(--primary);
  color: #090a0f;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-add-primary:hover {
  transform: translateY(-2px);
  background: var(--primary-light);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

/* Preset Platform Quick Add */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.preset-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-chip:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.preset-chip.whatsapp:hover { border-color: #25d366; color: #25d366; }
.preset-chip.tiktok:hover { border-color: #ff0050; color: #ff0050; }
.preset-chip.snapchat:hover { border-color: #fffc00; color: #fffc00; }
.preset-chip.instagram:hover { border-color: #e1306c; color: #e1306c; }

/* Links List Container */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-smooth);
  position: relative;
}

.link-item-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-sm);
  background: var(--bg-card-hover);
}

.link-item-card.disabled {
  opacity: 0.55;
  filter: grayscale(40%);
}

.link-drag-handle {
  color: var(--text-dim);
  cursor: grab;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Interactive Clickable Link Icon Badge */
.link-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.link-icon-badge:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--primary);
  transform: scale(1.08);
}

.link-icon-edit-hint {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  color: #0c0e14;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.link-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.link-title-input {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 2px 4px;
  border-radius: 4px;
  width: 100%;
}

.link-title-input:focus {
  background: var(--bg-input);
  outline: 1px solid var(--border-focus);
}

.link-url-input {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-muted);
  direction: ltr;
  text-align: right;
  padding: 2px 4px;
  border-radius: 4px;
  width: 100%;
}

.link-url-input:focus {
  background: var(--bg-input);
  outline: 1px solid var(--border-focus);
}

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

.clicks-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
}

/* Custom Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: #0c0e14;
}

/* Action Delete / Reorder Buttons */
.btn-delete-link {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-delete-link:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-danger);
}

.reorder-btns {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-reorder {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

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

/* Section Header */
.section-title-wrap {
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Appearance Tab Elements: Layouts, Fonts, Custom Colors, Pro Themes
   ========================================================================== */

/* Profile Layout Modes */
.layout-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.layout-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.layout-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.layout-card.active {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 20px var(--primary-glow);
}

.layout-preview-svg {
  width: 100%;
  height: 64px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Custom Theme Builder Hero Showcase Card (UI UX Pro Max) */
.custom-theme-hero-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(212, 175, 55, 0.12) 50%, rgba(99, 102, 241, 0.12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  backdrop-filter: blur(12px);
}

.custom-theme-hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-theme-content {
  position: relative;
  z-index: 2;
}

.hero-theme-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--accent-gold);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-theme-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-theme-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.5;
}

.btn-hero-create-theme {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #0b0c10;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4), 0 0 15px rgba(16, 185, 129, 0.2);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.btn-hero-create-theme:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
}

.btn-hero-create-theme:active {
  transform: translateY(1px) scale(0.98);
}

@media (max-width: 768px) {
  .custom-theme-hero-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .btn-hero-create-theme {
    width: 100%;
    justify-content: center;
  }
}

/* Typography / Font Showcase (UI UX Pro Max) */
.font-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.font-cat-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.font-cat-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.font-cat-tab:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.font-cat-tab.active {
  background: var(--primary);
  color: #0b0c10;
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

/* Custom Interactive Font Dropdown (UI UX Pro Max) */
.custom-font-dropdown-container {
  position: relative;
  margin-bottom: 28px;
  user-select: none;
}

.custom-font-trigger {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.custom-font-trigger:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.custom-font-trigger.open {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.custom-font-trigger-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  overflow: hidden;
}

.custom-font-trigger-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  white-space: nowrap;
}

.custom-font-trigger-sample {
  font-size: 1.25rem;
  color: var(--primary-light);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 2px 10px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.08);
}

.custom-font-trigger-arrow {
  color: var(--text-muted);
  transition: transform 0.25s ease;
  display: flex;
  align-items: center;
}

.custom-font-trigger.open .custom-font-trigger-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.custom-font-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #131722;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  z-index: 100;
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  display: none;
  backdrop-filter: blur(16px);
}

.custom-font-menu.open {
  display: block;
}

.font-menu-category-header {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-gold);
  padding: 8px 12px 4px 12px;
  margin-top: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 6px;
}

.custom-font-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin: 4px 0;
  border: 1px solid transparent;
}

.custom-font-option:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(-3px);
}

.custom-font-option.selected {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--primary);
}

.custom-font-option-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.custom-font-option-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.custom-font-option-preview {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.custom-font-option-badge {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-weight: 600;
}

.custom-font-option.selected .custom-font-option-badge {
  background: rgba(16, 185, 129, 0.2);
  color: var(--primary-light);
}

/* Custom Color Palette & Pickers */
.color-customizer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
}

.color-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.color-control-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 16px;
}

.color-control-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.color-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-input-native {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 36px;
  height: 36px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}

.color-input-native::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-input-native::-webkit-color-swatch {
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.btn-reset-colors {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-reset-colors:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* 12 Themes Picker Grid */
.theme-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  width: 100%;
  margin-bottom: 32px;
}

@media (min-width: 992px) {
  .theme-picker-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 650px) {
  .theme-picker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .theme-picker-grid {
    grid-template-columns: 1fr;
  }
}

.theme-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.theme-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
}

.theme-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  background: var(--bg-card-hover);
}

.theme-preview-box {
  height: 90px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  overflow: hidden;
}

.theme-preview-btn-mock {
  width: 80%;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.theme-card-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-name {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Button Style Selector */
.button-styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.btn-style-option {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 12px;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.btn-style-option:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-style-option.active {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.08);
  color: var(--primary);
}

/* Analytics Tab */
.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-title {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -1px;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
}

/* Top Links Performance Table */
.perf-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.perf-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.perf-item:last-child {
  border-bottom: none;
}

.perf-bar-wrap {
  flex: 1;
  margin: 0 24px;
  background: rgba(255, 255, 255, 0.06);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}

.perf-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 999px;
}

/* ==========================================================================
   Right Pane: Realistic iPhone 15 Pro Mockup (Live Preview)
   ========================================================================== */
.preview-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 104px;
  height: calc(100vh - 136px);
}

.mockup-controls {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* iPhone Chassis */
.iphone-frame {
  width: 370px;
  height: 735px;
  background: #111318;
  border-radius: 52px;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8),
              0 0 0 3px #282c37,
              0 0 0 6px #151820;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Side Buttons */
.iphone-frame::before {
  content: '';
  position: absolute;
  top: 130px;
  left: -8px;
  width: 3px;
  height: 48px;
  background: #333742;
  border-radius: 2px 0 0 2px;
}

.iphone-frame::after {
  content: '';
  position: absolute;
  top: 190px;
  left: -8px;
  width: 3px;
  height: 48px;
  background: #333742;
  border-radius: 2px 0 0 2px;
}

/* iPhone Screen Glass */
.iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 42px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 56px 20px 32px 20px;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Dynamic Island */
.dynamic-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 105px;
  height: 28px;
  background: #000000;
  border-radius: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.camera-lens {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #141724;
  box-shadow: inset 0 0 3px rgba(0, 255, 255, 0.3);
}

.sensor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0d0f17;
}

/* Profile Header Inside Screen */
.screen-profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  width: 100%;
}

/* Layout Variant: Hero Banner */
.layout-banner .screen-hero-banner {
  display: block !important;
  width: calc(100% + 40px);
  margin: -56px -20px 0 -20px;
  height: 120px;
  object-fit: cover;
}

.screen-hero-banner {
  display: none;
}

.layout-banner .screen-avatar {
  margin-top: -45px;
  border: 3px solid rgba(255, 255, 255, 0.85) !important;
}

/* Layout Variant: Side/Compact */
.layout-side .screen-profile-header {
  flex-direction: row;
  text-align: right;
  gap: 16px;
  align-items: center;
  padding: 0 4px;
}

.layout-side .screen-avatar {
  width: 70px;
  height: 70px;
  margin-bottom: 0;
}

.layout-side .screen-bio {
  max-width: 100%;
  text-align: right;
}

.screen-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
}

.screen-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.screen-name {
  font-size: 1.15rem;
  font-weight: 700;
}

.screen-handle {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 6px;
  direction: ltr;
}

.screen-bio {
  font-size: 0.88rem;
  opacity: 0.85;
  line-height: 1.45;
  max-width: 90%;
  margin-bottom: 16px;
  white-space: pre-line;
}

/* Social Row in Screen */
.screen-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.screen-social-icon {
  color: inherit;
  opacity: 0.85;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.screen-social-icon:hover {
  transform: scale(1.18);
  opacity: 1;
}

/* Links Container in Screen */
.screen-links-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.screen-link-btn {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.screen-link-btn:hover {
  transform: translateY(-2px);
}

.screen-link-btn:active {
  transform: translateY(1px) scale(0.99);
}

.screen-link-icon-lead {
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.screen-link-text {
  flex: 1;
  text-align: center;
  padding: 0 10px;
}

.screen-link-arrow {
  width: 20px;
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Screen Footer Branding */
.screen-footer {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
}

.screen-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
  opacity: 0.75;
}

/* ==========================================================================
   12 Pro Themes Library
   ========================================================================== */

/* 1. Theme: Emerald Signature */
.theme-emerald {
  background: #254f1a;
  color: #ffffff;
}
.theme-emerald .screen-link-btn, .theme-emerald .public-link-item {
  background: #d2e823;
  color: #1e3914;
  border: none;
  font-weight: 700;
}
.theme-emerald .screen-link-btn:hover, .theme-emerald .public-link-item:hover {
  background: #e1f538;
  box-shadow: 0 8px 24px rgba(210, 232, 35, 0.35);
}

/* 2. Theme: Obsidian & Gold */
.theme-gold {
  background: radial-gradient(circle at 50% 10%, #211c12 0%, #0d0c0a 100%);
  color: #f3e5ab;
}
.theme-gold .screen-link-btn, .theme-gold .public-link-item {
  background: linear-gradient(135deg, #d4af37, #f6d365, #c59b27);
  color: #12100a;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* 3. Theme: Aurora Mesh Gradient */
.theme-aurora {
  background: linear-gradient(135deg, #4338ca 0%, #7c3aed 50%, #ec4899 100%);
  color: #ffffff;
}
.theme-aurora .screen-link-btn, .theme-aurora .public-link-item {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}
.theme-aurora .screen-link-btn:hover, .theme-aurora .public-link-item:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* 4. Theme: Velvet Glassmorphism */
.theme-velvet {
  background: linear-gradient(180deg, #090b10 0%, #111420 100%);
  color: #f8fafc;
}
.theme-velvet .screen-link-btn, .theme-velvet .public-link-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(12px);
}
.theme-velvet .screen-link-btn:hover, .theme-velvet .public-link-item:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* 5. Theme: Cyberpunk Neon */
.theme-cyber {
  background: linear-gradient(180deg, #130924 0%, #070314 100%);
  color: #e0e7ff;
}
.theme-cyber .screen-link-btn, .theme-cyber .public-link-item {
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid #06b6d4;
  color: #67e8f9;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}
.theme-cyber .screen-link-btn:hover, .theme-cyber .public-link-item:hover {
  background: #06b6d4;
  color: #070314;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.6);
}

/* 6. Theme: Desert Sand */
.theme-desert {
  background: linear-gradient(180deg, #2b1d14 0%, #170f0a 100%);
  color: #f5e6d3;
}
.theme-desert .screen-link-btn, .theme-desert .public-link-item {
  background: #d97706;
  color: #1a0f05;
  border: none;
  font-weight: 700;
}
.theme-desert .screen-link-btn:hover, .theme-desert .public-link-item:hover {
  background: #f59e0b;
}

/* 7. Theme: Cherry Blossom */
.theme-cherry {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  color: #831843;
}
.theme-cherry .screen-link-btn, .theme-cherry .public-link-item {
  background: #ffffff;
  color: #9d174d;
  border: 1px solid #fbcfe8;
  box-shadow: 0 4px 15px rgba(244, 114, 182, 0.15);
}
.theme-cherry .screen-link-btn:hover, .theme-cherry .public-link-item:hover {
  background: #fdf2f8;
}

/* 8. Theme: Monochrome Clean */
.theme-minimal {
  background: #f8fafc;
  color: #0f172a;
}
.theme-minimal .screen-link-btn, .theme-minimal .public-link-item {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.theme-minimal .screen-link-btn:hover, .theme-minimal .public-link-item:hover {
  background: #f1f5f9;
}

/* 9. Theme: Deep Ocean */
.theme-ocean {
  background: linear-gradient(180deg, #0f172a 0%, #0369a1 100%);
  color: #e0f2fe;
}
.theme-ocean .screen-link-btn, .theme-ocean .public-link-item {
  background: #38bdf8;
  color: #0c4a6e;
  border: none;
  font-weight: 700;
}
.theme-ocean .screen-link-btn:hover, .theme-ocean .public-link-item:hover {
  background: #7dd3fc;
}

/* 10. Theme: Retro Sunset 80s */
.theme-sunset {
  background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
  color: #2b1108;
}
.theme-sunset .screen-link-btn, .theme-sunset .public-link-item {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: #3e160a;
  border: none;
}
.theme-sunset .screen-link-btn:hover, .theme-sunset .public-link-item:hover {
  background: #ffffff;
}

/* 11. Theme: Forest Pine */
.theme-forest {
  background: linear-gradient(180deg, #052e16 0%, #021a0d 100%);
  color: #dcfce7;
}
.theme-forest .screen-link-btn, .theme-forest .public-link-item {
  background: #15803d;
  color: #ffffff;
  border: 1px solid #22c55e;
}
.theme-forest .screen-link-btn:hover, .theme-forest .public-link-item:hover {
  background: #16a34a;
}

/* 12. Theme: Royal Amethyst */
.theme-amethyst {
  background: radial-gradient(circle at 50% 20%, #3b0764 0%, #150124 100%);
  color: #f3e8ff;
}
.theme-amethyst .screen-link-btn, .theme-amethyst .public-link-item {
  background: linear-gradient(135deg, #c084fc, #9333ea);
  color: #ffffff;
  border: none;
  font-weight: 700;
}
.theme-amethyst .screen-link-btn:hover, .theme-amethyst .public-link-item:hover {
  background: linear-gradient(135deg, #d8b4fe, #a855f7);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

/* Button Radius Variants */
.radius-pill .screen-link-btn, .radius-pill .public-link-item, .theme-preview-btn-mock.radius-pill, .radius-pill .theme-preview-btn-mock { border-radius: 999px !important; }
.radius-rounded .screen-link-btn, .radius-rounded .public-link-item, .theme-preview-btn-mock.radius-rounded, .radius-rounded .theme-preview-btn-mock { border-radius: 14px !important; }
.radius-sharp .screen-link-btn, .radius-sharp .public-link-item, .theme-preview-btn-mock.radius-sharp, .radius-sharp .theme-preview-btn-mock { border-radius: 4px !important; }

/* ==========================================================================
   Icon Picker Modal Styles
   ========================================================================== */
.icon-modal-card {
  max-width: 600px !important;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.icon-category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.icon-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.icon-tab-btn.active, .icon-tab-btn:hover {
  background: var(--primary);
  color: #0c0e14;
  border-color: var(--primary);
}

.icon-search-input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
  width: 100%;
  margin: 12px 0;
}

.icon-search-input:focus {
  outline: none;
  border-color: var(--primary);
}

.icon-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  overflow-y: auto;
  max-height: 380px;
  padding: 4px;
}

.icon-option-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.icon-option-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--text-main);
  transform: translateY(-2px);
}

.icon-option-btn.selected {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary);
}

.icon-option-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.icon-option-name {
  font-size: 0.78rem;
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Modals General */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
  overflow-y: auto;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
  box-shadow: var(--shadow-lg);
  text-align: center;
  margin: auto;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

/* ==========================================================================
   Compact Share & QR Modal - Fits Perfectly Within Screen Bounds
   ========================================================================== */
#share-modal .modal-card,
.modal-card-share {
  max-width: 440px !important;
  max-height: 85vh !important;
  padding: 16px 20px !important;
  gap: 10px !important;
}

#share-modal .modal-title {
  font-size: 1.1rem !important;
}

#share-modal .share-url-box {
  margin-bottom: 8px !important;
  padding: 6px 10px !important;
  gap: 6px !important;
}

#share-modal .share-url-text {
  font-size: 0.82rem !important;
}

#share-modal .btn-copy {
  padding: 6px 14px !important;
  font-size: 0.82rem !important;
}

#share-modal .qr-studio-wrapper {
  padding: 10px 12px !important;
  margin-bottom: 8px !important;
}

#share-modal .qr-studio-label {
  font-size: 0.76rem !important;
  margin-bottom: 5px !important;
}

#share-modal .qr-themes-grid {
  gap: 5px !important;
  margin-bottom: 8px !important;
}

#share-modal .qr-theme-chip {
  padding: 4px 8px !important;
  font-size: 0.74rem !important;
  gap: 5px !important;
  border-radius: 8px !important;
}

#share-modal .qr-logo-options-row {
  gap: 4px !important;
  margin-bottom: 8px !important;
}

#share-modal .qr-logo-btn {
  padding: 3px 8px !important;
  font-size: 0.73rem !important;
  border-radius: 6px !important;
}

#share-modal .qr-preview-card {
  padding: 8px 10px !important;
  margin-bottom: 8px !important;
  border-radius: 12px !important;
}

#share-modal .qr-preview-header {
  font-size: 0.86rem !important;
  margin-bottom: 1px !important;
}

#share-modal .qr-preview-handle {
  font-size: 0.72rem !important;
  margin-bottom: 6px !important;
}

#share-modal .qr-stage-container {
  padding: 6px !important;
  border-radius: 8px !important;
  margin: 0 auto !important;
}

#share-modal .qr-preview-footer-text {
  font-size: 0.68rem !important;
  margin-top: 5px !important;
}

#share-modal .qr-action-buttons-row {
  gap: 8px !important;
}

#share-modal .btn-download-qr {
  padding: 8px 12px !important;
  font-size: 0.82rem !important;
}

#share-modal .btn-whatsapp-share {
  padding: 8px 14px !important;
  font-size: 0.82rem !important;
}

#share-modal .btn-add-primary {
  padding: 8px 14px !important;
  font-size: 0.85rem !important;
  margin-top: 2px !important;
}

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

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.btn-close-modal:hover {
  color: var(--text-main);
}

.share-url-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 16px;
}

.share-url-text {
  flex: 1;
  font-family: monospace;
  font-size: 0.92rem;
  color: var(--primary-light);
  direction: ltr;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy {
  background: var(--primary);
  color: #0c0e14;
  border: none;
  font-family: inherit;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ==========================================================================
   QR Code Studio - Multi-Theme & Brand Center (UI UX Pro Max)
   ========================================================================== */
.qr-studio-wrapper {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.qr-studio-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.qr-themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

@media (max-width: 480px) {
  .qr-themes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.qr-theme-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.qr-theme-chip:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-main);
}

.qr-theme-chip.active {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.12);
  color: var(--text-main);
  box-shadow: 0 0 10px var(--primary-glow);
}

.qr-theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.qr-logo-options-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.qr-logo-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}

.qr-logo-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.qr-logo-btn.active {
  background: var(--primary);
  color: #0b0c10;
  border-color: var(--primary);
  font-weight: 700;
}

/* Printable / Downloadable QR Showcase Card */
.qr-preview-card {
  background: #0f121a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.qr-preview-header {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.qr-preview-handle {
  font-size: 0.8rem;
  color: var(--primary-light);
  margin-bottom: 14px;
}

.qr-stage-container {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  padding: 12px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.qr-central-logo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  pointer-events: none;
}

.qr-preview-footer-text {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 12px;
}

.qr-action-buttons-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-download-qr {
  flex: 1;
  background: linear-gradient(135deg, #d4af37, #f59e0b);
  color: #0b0c10;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  transition: all var(--transition-fast);
}

.btn-download-qr:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-whatsapp-share {
  background: #25d366;
  color: #0b0c10;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-whatsapp-share:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* Toast Notifications */
.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--primary);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 2000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   User Profile Header Widget & Dropdown
   ========================================================================== */
.user-profile-menu {
  position: relative;
}

.user-avatar-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 5px 14px 5px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-avatar-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.user-meta-header {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.2;
}

.user-name-small {
  font-size: 0.85rem;
  font-weight: 700;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-provider-badge {
  font-size: 0.7rem;
  color: var(--primary-light);
  font-weight: 600;
}

.btn-login-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.btn-login-header:hover {
  background: var(--primary);
  color: #0c0e14;
  border-color: var(--primary);
}

.btn-direct-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-direct-logout:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.user-dropdown-card {
  position: absolute;
  top: 48px;
  left: 0;
  width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 200;
  text-align: right;
}

.user-dropdown-card.active {
  display: flex;
  animation: fadeIn 0.15s ease;
}

.user-dropdown-header {
  padding: 6px 10px 10px 10px;
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

/* ==========================================================================
   Saved Custom Themes & Theme Builder
   ========================================================================== */
.saved-themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.btn-create-theme-card {
  background: rgba(16, 185, 129, 0.05);
  border: 2px dashed rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  min-height: 160px;
  text-align: center;
  color: var(--primary-light);
}

.btn-create-theme-card:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

.create-theme-plus-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.saved-theme-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.saved-theme-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
}

.saved-theme-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  background: var(--bg-card-hover);
}

.saved-theme-preview {
  height: 90px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

.saved-theme-btn-mock {
  width: 80%;
  height: 14px;
  border-radius: 999px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.saved-theme-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.saved-theme-name {
  font-size: 0.95rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-delete-saved-theme {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-delete-saved-theme:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-danger);
}

/* Theme Builder Modal Specifics */
.theme-builder-modal-card {
  max-width: 620px !important;
  text-align: right !important;
}

.theme-builder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

@media (max-width: 600px) {
  .theme-builder-grid {
    grid-template-columns: 1fr;
  }
}

.theme-live-preview-box {
  height: 120px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  margin-top: 10px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   MULTI-CLIENT SaaS & SLUG MANAGEMENT STYLES
   ========================================================================== */

.client-switcher-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.client-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.client-switcher-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.client-switcher-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary);
  background: var(--bg-dark);
}

.client-switcher-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-switcher-badge {
  font-size: 0.72rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  direction: ltr;
  display: inline-block;
}

.client-switcher-arrow {
  display: flex;
  align-items: center;
  color: var(--text-dim);
  transition: transform var(--transition-fast);
}

.client-switcher-wrap.open .client-switcher-arrow {
  transform: rotate(180deg);
}

.client-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: rgba(18, 22, 31, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  padding: 8px;
  z-index: 1200;
  display: none;
  flex-direction: column;
  gap: 4px;
  animation: fadeInDown 0.18s ease-out;
}

.client-switcher-wrap.open .client-dropdown-menu {
  display: flex;
}

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

.client-dropdown-header {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  padding: 8px 12px 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.client-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: right;
  width: 100%;
}

.client-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.client-menu-item.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

.client-menu-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.client-menu-item-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-card);
}

.client-menu-item-texts {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.client-menu-item-name {
  font-size: 0.88rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-menu-item-slug {
  font-size: 0.74rem;
  color: var(--text-dim);
  direction: ltr;
  text-align: right;
}

.client-menu-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-delete-client-mini {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.btn-delete-client-mini:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-danger);
}

.btn-add-new-client-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px dashed rgba(16, 185, 129, 0.4);
  color: var(--primary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-add-new-client-menu:hover {
  background: var(--primary);
  color: #fff;
  border-style: solid;
}

/* Inline Slug Editor in Profile Bar */
.slug-badge-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 6px 10px;
  margin-top: 6px;
  font-size: 0.85rem;
}

.slug-prefix-label {
  color: var(--text-dim);
  font-size: 0.8rem;
  direction: ltr;
  white-space: nowrap;
}

.slug-inline-input {
  background: transparent;
  border: 1px dashed transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  font-family: monospace, sans-serif;
  direction: ltr;
  padding: 2px 6px;
  border-radius: 6px;
  outline: none;
  min-width: 80px;
  flex: 1;
  transition: all var(--transition-fast);
}

.slug-inline-input:focus {
  background: rgba(0, 0, 0, 0.3);
  border-color: var(--primary);
}

.btn-slug-action {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.btn-slug-action:hover {
  color: var(--primary);
}

/* Starter Templates Grid for New Client Modal */
.client-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 12px 0 18px;
}

.client-template-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.client-template-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.client-template-card.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.client-template-icon {
  font-size: 1.6rem;
}

.client-template-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.client-template-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.2;
}

/* Header & Logout Responsive Polish */
@media (max-width: 991px) {
  .app-header {
    padding: 0 16px;
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .header-actions {
    gap: 8px;
    flex-wrap: wrap;
  }
  .btn-direct-logout {
    padding: 6px 12px;
    font-size: 0.82rem;
  }
}


