/* Global Style & Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Light Mode Variables - Upgraded to Modern Glassmorphism & Harmonious Palettes */
  --bg-primary: #f6f8fc;
  --bg-secondary: rgba(255, 255, 255, 0.7);
  --bg-tertiary: rgba(241, 245, 249, 0.6);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --accent: #4f46e5; /* Royal Indigo */
  --accent-rgb: 79, 70, 229;
  --accent-hover: #4338ca;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  
  --border-color: rgba(226, 232, 240, 0.8);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04), 0 1px 1px 0 rgba(0, 0, 0, 0.02);
  
  --ad-bg: rgba(255, 255, 255, 0.4);
  --ad-border: rgba(226, 232, 240, 0.5);
  --ad-text: #94a3b8;
  
  --transition-speed: 0.4s;
}

[data-theme="dark"] {
  /* Dark Mode Variables */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #6b7280;
  
  --accent: #818cf8; /* Light Indigo */
  --accent-rgb: 129, 140, 248;
  --accent-hover: #6366f1;
  --accent-success: #34d399;
  --accent-warning: #fbbf24;
  
  --border-color: #374151;
  --glass-bg: rgba(17, 24, 39, 0.95);
  --glass-border: rgba(75, 85, 99, 0.4);
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  
  --ad-bg: #151c2c;
  --ad-border: #1f2937;
  --ad-text: #4b5563;
}

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

html {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  overflow-x: hidden;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

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

a:hover {
  color: var(--accent-hover);
}

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

/* Header & Navbar */
header {
  border-bottom: 1px solid var(--border-color);
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo span {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

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

/* Theme Toggle Button */
.theme-btn {
  background: none;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-speed);
}

.theme-btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--accent);
  border-color: var(--accent);
}

.theme-btn svg {
  width: 20px;
  height: 20px;
}

.theme-btn .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-btn .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-btn .moon-icon {
  display: none;
}

/* Hero Section */
.hero {
  padding: 5rem 0 3rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background-color: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Tool Grid Dashboard */
.tools-section {
  padding: 2rem 0 4rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.section-header h2 {
  font-size: 1.75rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #a78bfa);
  opacity: 0;
  transition: opacity var(--transition-speed);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

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

.tool-icon {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition-speed);
}

.tool-card:hover .tool-icon {
  background-color: var(--accent);
  color: #fff;
}

.tool-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.tool-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tool-action {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tool-action svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-speed);
}

.tool-card:hover .tool-action svg {
  transform: translateX(4px);
}

/* Tool Page Specific */
.tool-page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 2rem 0 4rem;
}

@media (max-width: 992px) {
  .tool-page-layout {
    grid-template-columns: 1fr;
  }
}

.tool-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
}

.tool-header {
  margin-bottom: 2rem;
  text-align: center;
}

.tool-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.tool-header p {
  color: var(--text-secondary);
}

/* Form Controls */
.input-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
  .input-group {
    flex-direction: column;
  }
}

.form-control {
  flex-grow: 1;
  background-color: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  transition: all var(--transition-speed);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15);
}

.btn {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-speed);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.3);
}

.btn:hover {
  background: linear-gradient(135deg, var(--accent-hover), #6d28d9);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(var(--accent-rgb), 0.4);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  background: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Loading Indicator */
.loader-wrapper {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
  gap: 1rem;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(var(--accent-rgb), 0.15);
  border-left-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loader-text {
  font-weight: 500;
  color: var(--text-secondary);
}

/* Result Card */
.result-card {
  display: none;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  border-radius: 18px;
  padding: 2rem;
  margin-top: 2rem;
  animation: slideUp 0.4s ease-out forwards;
}

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

.channel-info {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
  .channel-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.channel-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  object-fit: cover;
  box-shadow: var(--card-shadow);
}

.channel-details {
  flex-grow: 1;
}

.channel-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.channel-stats {
  display: flex;
  gap: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

@media (max-width: 576px) {
  .channel-stats {
    justify-content: center;
  }
}

.channel-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-id-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 576px) {
  .result-id-box {
    flex-direction: column;
    text-align: center;
  }
}

.id-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.id-value {
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
}

.copy-btn {
  background-color: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-speed);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.copy-btn:hover {
  background-color: var(--accent-hover);
}

.copy-btn.copied {
  background-color: var(--accent-success);
}

/* Error State */
.error-msg {
  display: none;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
}

/* Content Sections (SEO Content) */
.seo-content {
  margin-top: 3rem;
}

.seo-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
}

.seo-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.seo-card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.seo-card p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.seo-card ul, .seo-card ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.seo-card li {
  margin-bottom: 0.5rem;
}

/* Step box guides */
.step-guides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.step-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
}

.step-num {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(var(--accent-rgb), 0.1);
  line-height: 1;
}

.step-box h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  padding-right: 2rem;
}

.step-box p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* FAQ Accordion Styling */
.faq-accordion {
  margin-top: 1.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
}

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

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem 0;
}

.faq-trigger:hover {
  color: var(--accent);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: transform var(--transition-speed);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) ease-out;
}

.faq-content p {
  padding-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-item.active .faq-content {
  max-height: 300px;
  transition: max-height var(--transition-speed) ease-in;
}

/* Code Snippet Box */
.code-box {
  background-color: var(--bg-tertiary);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0.75rem 0;
  word-break: break-all;
  border: 1px solid var(--border-color);
}

/* Ads Optimization Components */
.ad-slot-wrapper {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.ad-placeholder {
  background-color: var(--ad-bg);
  border: 2px dashed var(--ad-border);
  border-radius: 12px;
  color: var(--ad-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  position: relative;
  text-align: center;
  width: 100%;
  transition: all var(--transition-speed);
}

.ad-placeholder::before {
  content: 'ADVERTISEMENT';
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 0.35rem;
}

.ad-banner-header {
  min-height: 90px;
  max-width: 728px;
}

.ad-banner-inline {
  min-height: 250px;
  max-width: 336px;
  margin: 2rem auto;
}

.ad-skyscraper {
  min-height: 600px;
  width: 100%;
  position: sticky;
  top: 90px;
}

.ad-text-label {
  font-size: 0.8rem;
  font-weight: 500;
}

/* Sidebar Layout */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}

.sidebar-widget h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.recent-tools-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.recent-tool-item a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}

.recent-tool-item a:hover {
  color: var(--accent);
}

/* Footer styling */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  transition: all var(--transition-speed);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-about p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 400px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.footer-nav h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }

/* Hide Theme Toggles */
.theme-btn, .js-theme-toggle, #theme-mode-toggle {
  display: none !important;
}

/* Global Contrast & Section Borders Override */
nav.bg-surface-white\/80, nav.bg-surface-white\/85 {
  background-color: rgba(255, 255, 255, 0.85) !important;
  border-bottom: 1px solid var(--glass-border) !important;
}

footer.bg-transparent {
  background-color: rgba(248, 250, 252, 0.5) !important; /* bg-slate-50/50 */
  border-top: 1px solid var(--glass-border) !important;
}

.glass-panel {
  border-color: var(--glass-border) !important;
  box-shadow: var(--card-shadow) !important;
  background-color: var(--glass-bg) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.glass-panel:hover {
  border-color: rgba(99, 102, 241, 0.25) !important;
  background-color: rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.08) !important;
  transform: translateY(-4px) !important;
}

/* Global Mesh Gradient Background for Ucha.in */
.fixed-bg {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -2 !important;
  background-color: #f6f8fc !important;
  background-image: 
      radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.06) 0px, transparent 50%),
      radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.06) 0px, transparent 50%),
      radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.06) 0px, transparent 50%),
      radial-gradient(at 0% 100%, rgba(236, 72, 153, 0.06) 0px, transparent 50%) !important;
  transition: background-color 0.4s ease !important;
}

.bg-surface-white {
  background-color: var(--bg-secondary) !important;
}

/* Premium Category Badges */
.premium-badge-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.6); /* slate-900/60 */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  user-select: none;
}

/* Individual badge styles (by theme) */
.premium-badge-container.badge-red {
  border-color: rgba(239, 68, 68, 0.2); /* red-500/20 */
  box-shadow: 
    0 4px 20px rgba(239, 68, 68, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}
.premium-badge-container.badge-red:hover {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 
    0 4px 25px rgba(239, 68, 68, 0.15),
    0 0 10px rgba(239, 68, 68, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.premium-badge-container.badge-emerald {
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 
    0 4px 20px rgba(16, 185, 129, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}
.premium-badge-container.badge-emerald:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 
    0 4px 25px rgba(16, 185, 129, 0.15),
    0 0 10px rgba(16, 185, 129, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.premium-badge-container.badge-indigo {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 
    0 4px 20px rgba(99, 102, 241, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}
.premium-badge-container.badge-indigo:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 
    0 4px 25px rgba(99, 102, 241, 0.15),
    0 0 10px rgba(99, 102, 241, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.premium-badge-container.badge-rose {
  border-color: rgba(244, 63, 94, 0.2);
  box-shadow: 
    0 4px 20px rgba(244, 63, 94, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}
.premium-badge-container.badge-rose:hover {
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 
    0 4px 25px rgba(244, 63, 94, 0.15),
    0 0 10px rgba(244, 63, 94, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.premium-badge-container.badge-amber {
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow: 
    0 4px 20px rgba(245, 158, 11, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}
.premium-badge-container.badge-amber:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 
    0 4px 25px rgba(245, 158, 11, 0.15),
    0 0 10px rgba(245, 158, 11, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.premium-badge-container.badge-purple {
  border-color: rgba(168, 85, 247, 0.2);
  box-shadow: 
    0 4px 20px rgba(168, 85, 247, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}
.premium-badge-container.badge-purple:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 
    0 4px 25px rgba(168, 85, 247, 0.15),
    0 0 10px rgba(168, 85, 247, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Shimmer/Sweep effect on hover */
.premium-badge-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transform: skewX(-25deg);
  transition: none;
}
.premium-badge-container:hover::before {
  animation: badgeShine 0.8s ease-in-out;
}

@keyframes badgeShine {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}

/* Pulse/ping indicators */
.premium-badge-ping {
  position: relative;
  display: flex;
  height: 8px;
  width: 8px;
}
.premium-badge-ping .ping-ring {
  animation: badgePing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  opacity: 0.75;
}
.premium-badge-ping .ping-dot {
  position: relative;
  display: inline-flex;
  border-radius: 9999px;
  height: 8px;
  width: 8px;
}

@keyframes badgePing {
  75%, 100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Icon rotate / bounce on hover */
.premium-badge-container:hover .premium-badge-icon {
  transform: scale(1.1) rotate(15deg);
}
.premium-badge-icon {
  transition: transform 0.3s ease;
}

/* App-based Custom Toast / Alert Dialog */
.app-alert-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.7); /* slate-900/70 */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: appAlertFadeIn 0.3s ease-out forwards;
}

.app-alert-card {
  width: 90%;
  max-width: 440px;
  background: rgba(30, 41, 59, 0.95); /* slate-800/95 */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.5), 
    0 10px 10px -5px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(99, 102, 241, 0.1);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  transform: scale(0.9);
  animation: appAlertScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  color: white;
}

.app-alert-icon-container {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #ef4444; /* red-500 */
}

.app-alert-icon-container.info {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #818cf8; /* indigo-400 */
}

.app-alert-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #f8fafc;
}

.app-alert-body {
  font-size: 14px;
  color: #cbd5e1; /* slate-300 */
  line-height: 1.5;
  margin-bottom: 20px;
}

.app-alert-button {
  padding: 10px 24px;
  background: #4f46e5;
  color: white;
  border-radius: 9999px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
  transition: all 0.2s ease;
}

.app-alert-button:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

@keyframes appAlertFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes appAlertScaleIn {
  from { transform: scale(0.9); }
  to { transform: scale(1); }
}






