/* ==========================================================================
   KOPIFY DESIGN SYSTEM & TEMPLATE STYLESHEET
   Platform Website Koperasi Indonesia Modern & Fiduciary Ecosystem
   ========================================================================== */

:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);
  
  /* Platform Defaults (Kopify Brand) */
  --primary: #047857;
  --primary-dark: #065F46;
  --primary-light: #10B981;
  --primary-50: #ECFDF5;
  --secondary: #F59E0B;
  --secondary-light: #FDE68A;
  
  --dark: #0F172A;
  --dark-light: #1E293B;
  --gray: #64748B;
  --gray-light: #E2E8F0;
  --gray-50: #F8FAFC;
  --white: #FFFFFF;
  
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   6 TEMPLATE THEMES FOR INDONESIAN COOPERATIVES
   ========================================================================== */

/* 1. Gotong Royong Modern */
[data-theme="gotong-royong"] {
  --primary: #1B5E20;
  --primary-dark: #0D3310;
  --primary-light: #2E7D32;
  --primary-50: #E8F5E9;
  --secondary: #D4AF37;
  --secondary-light: #F9E79F;
  --hero-bg: linear-gradient(135deg, #1B5E20 0%, #0D3310 100%);
}

/* 2. Syariah Barakah (KSPPS / BMT) */
[data-theme="syariah-barakah"] {
  --primary: #064E3B;
  --primary-dark: #022C22;
  --primary-light: #047857;
  --primary-50: #ECFDF5;
  --secondary: #F59E0B;
  --secondary-light: #FEF3C7;
  --hero-bg: linear-gradient(135deg, #064E3B 0%, #042f24 100%);
}

/* 3. Fintech Nusantara */
[data-theme="fintech-nusantara"] {
  --primary: #1E1B4B;
  --primary-dark: #0F0E26;
  --primary-light: #312E81;
  --primary-50: #EEF2FF;
  --secondary: #06B6D4;
  --secondary-light: #CFFAFE;
  --hero-bg: linear-gradient(135deg, #1E1B4B 0%, #0c0a24 100%);
}

/* 4. Agraria & Bahari Lestari */
[data-theme="agraria-bahari"] {
  --primary: #14532D;
  --primary-dark: #052E16;
  --primary-light: #15803D;
  --primary-50: #F0FDF4;
  --secondary: #B45309;
  --secondary-light: #FEF3C7;
  --hero-bg: linear-gradient(135deg, #14532D 0%, #083318 100%);
}

/* 5. Bina Niaga & Usaha */
[data-theme="bina-niaga"] {
  --primary: #334155;
  --primary-dark: #1E293B;
  --primary-light: #475569;
  --primary-50: #F1F5F9;
  --secondary: #1D4ED8;
  --secondary-light: #DBEAFE;
  --hero-bg: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
}

/* 6. Kreatif & Milenial */
[data-theme="kreatif-milenial"] {
  --primary: #E11D48;
  --primary-dark: #9F1239;
  --primary-light: #FB7185;
  --primary-50: #FFF1F2;
  --secondary: #0D9488;
  --secondary-light: #CCFBF1;
  --hero-bg: linear-gradient(135deg, #E11D48 0%, #4F46E5 100%);
}

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

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-light);
  padding: 0.85rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.nav-brand .badge {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  background: var(--primary-50);
  color: var(--primary);
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-light);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
}

.nav-menu a {
  font-weight: 500;
  color: var(--dark);
  padding: 0.5rem 0.25rem;
  border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--dark) !important;
}

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

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary) !important;
}

.btn-outline:hover {
  background: var(--primary-50);
}

.btn-outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white) !important;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

/* Hero Section */
.hero {
  background: var(--hero-bg, linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%));
  color: var(--white);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 2.75rem;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(5px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Statistics Bar */
.stats-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  padding: 1.75rem 2rem;
  border: 1px solid var(--gray-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
}

/* Section Common */
.section {
  padding: 4.5rem 0;
}

.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-title h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.section-title p {
  color: var(--gray);
  font-size: 1.05rem;
}

/* Cards & Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--secondary-light);
  color: var(--dark);
  margin-bottom: 0.75rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-light);
  outline: none;
  transition: var(--transition);
  background: var(--white);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}

/* Calculator Component */
.calculator-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem;
}

.calc-results {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
  border-left: 4px solid var(--primary);
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.calc-result-row.highlight {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  border-top: 1px solid var(--gray-light);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

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

.table th {
  background: var(--gray-50);
  padding: 0.9rem 1rem;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 2px solid var(--gray-light);
}

.table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--gray-light);
}

.table tr:hover td {
  background: var(--primary-50);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #25D366;
  color: var(--white) !important;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-xl);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}

/* Watermark Notice for Free/Trial plan */
.kopify-watermark {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.kopify-watermark a {
  color: var(--secondary);
  font-weight: 700;
}

/* Trust Score Badge */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ECFDF5;
  color: #065F46;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid #10B981;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .nav-menu {
    display: none;
  }
  
  .stats-bar {
    margin-top: 1rem;
  }

  body {
    padding-bottom: 75px; /* ruang untuk floating bottom bar */
  }
}

/* ==========================================================================
   WEBKOP GENERATOR v2.1 (PRODUCTION READY) - KOMPONEN KHUSUS PRD
   ========================================================================== */

/* 1. Ticker Pengumuman Mendesak (Urgent Announcement Bar) */
.ticker-wrap {
  width: 100%;
  background: linear-gradient(90deg, #B45309, #D97706);
  color: #FFF;
  overflow: hidden;
  height: 38px;
  line-height: 38px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 50;
}
.ticker-title {
  background: #78350F;
  padding: 0 1rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
}
.ticker-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 2rem;
  animation: tickerMarquee 25s linear infinite;
}
.ticker-content:hover {
  animation-play-state: paused;
}
@keyframes tickerMarquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* 2. Bento Grid Layanan Terpadu */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.bento-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}
.bento-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}
.bento-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--primary-50);
  color: var(--primary);
  border: 1px solid var(--primary-light);
}

/* 3. Floating WhatsApp Chatbot 24 Jam Widget & Popover */
.wa-chatbot-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
}
@media (max-width: 768px) {
  .wa-chatbot-widget {
    bottom: 85px; /* Berada di atas Mobile Bottom Bar */
    right: 15px;
  }
}
.wa-chatbot-btn {
  background: #25D366;
  color: #FFF;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s ease;
}
.wa-chatbot-btn:hover {
  transform: scale(1.05);
  background: #20BA5A;
}
.pulsing-dot {
  width: 10px;
  height: 10px;
  background-color: #FFF;
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Chatbot Popover Card */
.wa-chatbot-popover {
  display: none;
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 320px;
  background: #FFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  border: 1px solid var(--gray-light);
  overflow: hidden;
  animation: popoverFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.wa-chatbot-popover.active {
  display: block;
}
@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(15px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.wa-popover-header {
  background: #075E54;
  color: #FFF;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wa-popover-body {
  padding: 1rem;
}
.wa-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}
.wa-quick-chip {
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}
.wa-quick-chip:hover {
  background: #DCFCE7;
  border-color: #22C55E;
}

/* 4. App-Shell & Floating Bottom Navigation Bar (Mobile Native) */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,0,0,0.08);
  z-index: 900;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.05);
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}
@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
  }
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  transition: var(--transition);
}
.bottom-nav-item.active, .bottom-nav-item:hover {
  color: var(--primary);
}
.bottom-nav-icon {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

/* 5. Native Sheet Modal Drawer (60 FPS Smooth) */
.native-sheet-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.native-sheet-overlay.active {
  display: flex;
  opacity: 1;
}
.native-sheet-content {
  background: #FFF;
  width: 100%;
  max-width: 650px;
  border-radius: 24px 24px 0 0;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
  position: relative;
}
.native-sheet-overlay.active .native-sheet-content {
  transform: translateY(0);
}
.sheet-drag-handle {
  width: 45px;
  height: 5px;
  background: var(--gray-light);
  border-radius: 10px;
  margin: -1rem auto 1.5rem;
}

/* 6. Emergency Revert Floating Bar (Fitur Pulihkan Darurat) */
.emergency-revert-bar {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1E293B;
  color: #FFF;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 950;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}
[data-wysiwyg="true"] {
  outline: none;
  transition: background 0.2s;
  border-radius: 4px;
}
[data-wysiwyg="true"]:hover {
  background: rgba(245, 158, 11, 0.15);
  cursor: text;
}
[data-wysiwyg="true"]:focus {
  background: rgba(245, 158, 11, 0.25);
  box-shadow: 0 0 0 2px #F59E0B;
}

/* 7. Kemenkop Verified Glow Badge */
.kemenkop-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1.5px solid #10B981;
  color: #065F46;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

/* 8. Firebase Auth Styles (Google & Email/Password) */
.btn-google-auth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #FFF;
  border: 1.5px solid #D1D5DB;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}
.btn-google-auth:hover {
  background: #F9FAFB;
  border-color: #9CA3AF;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
  color: var(--gray);
  font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--gray-light);
}
.auth-divider span {
  padding: 0 0.75rem;
}
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-light);
  margin-bottom: 1.25rem;
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 0.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.auth-user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}
.auth-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}
.btn-signout {
  background: none;
  border: none;
  color: #DC2626;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding-left: 0.35rem;
  border-left: 1px solid #A7F3D0;
}
.btn-signout:hover {
  text-decoration: underline;
}

/* 9. Slug Validation & Live Availability Feedback */
.slug-feedback {
  margin-top: 6px;
  font-size: 0.82rem;
  line-height: 1.4;
  transition: all 0.2s ease;
}
.slug-feedback.loading {
  color: #D97706;
}
.slug-feedback.available {
  color: #16A34A;
  font-weight: 600;
}
.slug-feedback.unavailable {
  color: #DC2626;
  font-weight: 600;
}
.slug-feedback.invalid {
  color: #E11D48;
}
.slug-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
  align-items: center;
}
.slug-chip-btn {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.slug-chip-btn:hover {
  background: #DBEAFE;
  border-color: #3B82F6;
  transform: translateY(-1px);
}
input.form-control.input-valid {
  border-color: #16A34A !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
}
input.form-control.input-invalid {
  border-color: #DC2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}



