:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --primary: #6d28d9;
  --primary-hover: #5b21b6;
  --primary-foreground: #ffffff;
  --secondary: #f4f4f5;
  --secondary-foreground: #18181b;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --accent: #f4f4f5;
  --accent-foreground: #18181b;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --success: #22c55e;
  --warning: #f59e0b;
  --border: #e5e5e5;
  --input: #e5e5e5;
  --ring: #6d28d9;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  --sidebar-width: 256px;
  --sidebar-collapsed: 64px;
  --topnav-height: 60px;

  --gradient-primary: linear-gradient(135deg, #6d28d9 0%, #a855f7 100%);
  --gradient-accent: linear-gradient(135deg, #6d28d9 0%, #ec4899 100%);
  --gradient-subtle: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 100%);

  --font-sans: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark {
  --background: #0a0a0a;
  --foreground: #fafafa;
  --card: #171717;
  --card-foreground: #fafafa;
  --primary: #a78bfa;
  --primary-hover: #8b5cf6;
  --primary-foreground: #0a0a0a;
  --secondary: #262626;
  --secondary-foreground: #fafafa;
  --muted: #262626;
  --muted-foreground: #a3a3a3;
  --accent: #262626;
  --accent-foreground: #fafafa;
  --border: #2e2e2e;
  --input: #2e2e2e;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);

  --gradient-subtle: linear-gradient(135deg, #1e1b4b 0%, #1e1b2e 100%);
}

/* Force page background in dark mode so the whole page is dark */
html.dark,
html.dark body,
html.dark #root {
  background-color: #0a0a0a !important;
  background: #0a0a0a !important;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--background);
  color: var(--foreground);
}

#root {
  min-height: 100vh;
  background: var(--background);
}

code {
  font-family: var(--font-mono);
}

*, *::before, *::after {
  box-sizing: border-box;
}

.fb-cont {
  background: #fff;
  color: #1f2937;
  max-width: 600px;
  min-width: 60%;
  margin: 88px auto 0 auto;
  padding: 32px 18px 24px 18px;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 85%;
}

.fb-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 10px;
  text-align: center;
  color: #111827;
  background: linear-gradient(90deg, #8B5CF6 0%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fb-sub {
  color: #4b5563;
  font-size: 1.1rem;
  margin-bottom: 28px;
  text-align: center;
  
}

.fb-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fb-lbl {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: #374151;
}
.fb-txt.required {
  border: 1px solid red;
}
.fb-sel, .fb-inp, .fb-txt {
  background: #f9fafb;
  color: #1f2937;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1rem;
  margin-bottom: 8px;
  outline: none;
  transition: all 0.2s ease;
}

.fb-sel:hover, .fb-inp:hover, .fb-txt:hover {
  border-color: #d1d5db;
}

.fb-sel:focus, .fb-inp:focus, .fb-txt:focus {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  border-color: #4f46e5;
}

.fb-txt {
  resize: vertical;
  min-height: 80px;
}

.fb-note {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.fb-btn {
  background: linear-gradient(90deg, #8B5CF6 0%, #EC4899 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 600;
  margin-top: 10px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.2);
}

.fb-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.fb-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.fb-foot {
  margin-top: 15px;
  color: #4b5563;
  font-size: 1.05rem;
  text-align: center;
}

.fb-message {
  font-size: 12px;
  padding: 6px;
  margin: 6px 0;
  border-radius: 4px;
  text-align: center;
}

.fb-message.success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.fb-message.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@media (min-width: 700px) {
  .fb-cont {
    max-width: 70vw;
    padding-left: 36px;
    padding-right: 36px;
  }
}

@media (min-width: 1200px) {
  .fb-cont {
    max-width: 40vw;
    padding-left: 48px;
    padding-right: 48px;
  }
}

.fb-copyright {
  margin-top: 20px;
  color: #6b7280;
  font-size: 0.9rem;
  text-align: center;
  padding: 10px 0;
  border-top: 1px solid #e5e7eb;
}

.fb-copyright a {
  color: #8B5CF6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.fb-copyright a:hover {
  color: #EC4899;
} 
.about-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2.5rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  color: #1f2937;
  animation: fadeIn 0.5s ease-in-out;
}
.mt88i{
  margin-top:88px !important;
}

.about-container h1 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, #8B5CF6 0%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.about-container h2 {
  font-size: 1.8rem;
  /* color: #4338ca; */
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.75rem;
  background: linear-gradient(90deg, #8B5CF6 0%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-container h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #8B5CF6 0%, #EC4899 100%);
  border-radius: 2px;
}

.about-container p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #4b5563;
  line-height: 1.8;
  transition: transform 0.2s ease;
}

.about-container p:hover {
  transform: translateX(5px);
}

.about-signoff {
  margin-top: 3rem;
  font-style: italic;
  font-weight: 600;
  text-align: center;
  color: #6366f1;
  background: linear-gradient(90deg, #8B5CF6 0%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* Animation for content */
.about-container > * {
  animation: slideUp 0.5s ease-out forwards;
  opacity: 0;
}

.about-container > *:nth-child(1) { animation-delay: 0.1s; }
.about-container > *:nth-child(2) { animation-delay: 0.2s; }
.about-container > *:nth-child(3) { animation-delay: 0.3s; }
.about-container > *:nth-child(4) { animation-delay: 0.4s; }
.about-container > *:nth-child(5) { animation-delay: 0.5s; }
.about-container > *:nth-child(6) { animation-delay: 0.6s; }

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

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

/* Custom scrollbar */
.about-container::-webkit-scrollbar {
  width: 8px;
}

.about-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.about-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #8B5CF6 0%, #EC4899 100%);;
  border-radius: 4px;
}

.about-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #8B5CF6 0%, #EC4899 100%);;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-container {
    margin: 1rem;
    padding: 1.5rem;
  }

  .about-container h1 {
    font-size: 2rem;
  }

  .about-container h2 {
    font-size: 1.5rem;
  }

  .about-container p {
    font-size: 1rem;
  }
}
  
/* Login page - avoid overriding global body; use wrapper for background */
.login-page-wrap {
  min-height: 100vh;
  padding-top: 80px; /* clear fixed header */
  padding-bottom: 2rem;
  box-sizing: border-box;
}

.login-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 30px 25px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.login-container h2 {
  text-align: center;
  color: var(--foreground);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 25px;
  font-family: var(--font-sans);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-container .form-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--foreground);
  font-weight: 500;
  font-size: 14px;
}

.login-container .form-field input {
  padding: 10px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--muted);
  color: var(--foreground);
  transition: border-color 0.2s;
}

.login-container .form-field input::placeholder {
  color: var(--muted-foreground);
}

.login-container .form-field input:focus {
  border-color: var(--primary);
  outline: none;
}

.login-container button[type="submit"] {
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.login-container button[type="submit"]:hover {
  opacity: 0.95;
  box-shadow: var(--shadow-md);
}

.login-container .error {
  color: var(--destructive);
  font-size: 12px;
  margin-top: 4px;
}

/* Root layout */
.psa-root {
  font-family: 'Sora', Arial, sans-serif;
  background: #f6f8fa;
  min-height: 100vh;
  padding: 0;
}

/* Main panel width and layout adjustments */
.psa-main-panel {
  display: flex;
  gap: 32px;
  max-width: 1400px;
  margin: 32px auto 0 auto;
  padding: 0 16px;
}
.psa-left-panel {
  flex: 3 1 0;
  min-width: 500px;
  max-width: 900px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px #e5e7eb;
  padding: 32px 24px 24px 24px;
}
.psa-right-panel {
  flex: 1 1 0;
  min-width: 260px;
  max-width: 350px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px #e5e7eb;
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
@media (max-width: 1200px) {
  .psa-main-panel {
    max-width: 100%;
    gap: 18px;
  }
  .psa-left-panel {
    min-width: 0;
    max-width: 100%;
  }
  .psa-right-panel {
    min-width: 0;
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .psa-main-panel {
    flex-direction: column;
    gap: 18px;
    max-width: 100%;
  }
  .psa-left-panel, .psa-right-panel {
    max-width: 100%;
    min-width: 0;
    padding: 24px 10px 18px 10px;
  }
}

.psa-results-panel {
  max-width: 1200px;
  margin: 32px auto 0 auto;
  padding: 0 16px 32px 16px;
}

/* Form styles */
.psa-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.psa-form-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1f2937;
  text-align: left;
}
.psa-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.psa-form-group label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 2px;
  font-size: 0.8rem;
}
.psa-form-group input,
.psa-form-group select {
  padding: 10px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.8rem;
  background: #f9fafb;
  outline: none;
  transition: border 0.2s;
}
.psa-form-group input:focus,
.psa-form-group select:focus {
  border-color: #6366f1;
}
.psa-product-input {
  margin-bottom: 6px;
  font-size: 0.8rem;
}
.psa-required {
  color: #ef4444;
  margin-left: 2px;
  font-size: 0.8em;
}
.psa-optional {
  color: #6b7280;
  font-size: 0.8em;
}
.psa-run-btn {
  background: linear-gradient(90deg, #a78bfa 0%, #6366f1 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  margin-top: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.psa-run-btn:disabled {
  background: #c7d2fe;
  cursor: not-allowed;
}
.psa-results-filter input[type="checkbox"]:disabled{
  background: #c7d2fe;
  cursor: not-allowed;
}
.psa-run-btn:not(:disabled):hover {
  background: #4338ca;
}

/* Summary panel */
.psa-summary-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.psa-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-direction: column;
}
.psa-download-btn {
  background: #22c55e;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  border: none;
  border-radius: 16px;
  padding: 14px 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px #e5e7eb;
  margin-bottom: 12px;
}
.psa-download-btn:disabled {
  background: #bbf7d0;
  color: #b6b6b6;
  cursor: not-allowed;
}
.psa-download-btn:not(:disabled):hover,
.psa-download-btn:not(:disabled):focus {
  background: #16a34a;
  box-shadow: 0 4px 16px #bbf7d0;
}
.psa-download-icon {
  display: inline-flex;
  align-items: center;
  font-size: 1.3em;
  margin-right: 4px;
}
.psa-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.psa-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.psa-bar-label {
  min-width: 110px;
  font-weight: 500;
  color: #374151;
}
.psa-bar-outer {
  flex: 1;
  background: #f3f4f6;
  border-radius: 8px;
  height: 22px;
  overflow: hidden;
  position: relative;
}
.psa-bar-inner {
  height: 100%;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  padding-left: 10px;
  transition: width 0.4s;
}
.psa-score-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #6366f1;
  margin-top: 10px;
}
.psa-score {
  font-size: 1.5rem;
  font-weight: 800;
  color: #22c55e;
}

/* Results list and cards */
.psa-results-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}
.psa-product-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 6px #e5e7eb;
  padding: 22px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.psa-product-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2px;
}
.psa-classification-label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.psa-confidence-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}
.psa-confidence-fill {
  height: 16px;
  border-radius: 8px;
  transition: width 0.4s;
}
.psa-confidence-bar {
  background: #f3f4f6;
  border-radius: 8px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.psa-confidence-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  z-index: 1;
}
.psa-confidence-text {
  position: relative;
  z-index: 2;
  font-size: 0.98rem;
  font-weight: 600;
  color: #374151;
  margin-left: auto;
  padding-right: 8px;
}
.psa-reason {
  font-size: 1rem;
  color: #374151;
}
.psa-root-cause-box {
  background: #f9fafb;
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 4px;
  font-size: 0.98rem;
  color: #b91c1c;
}
.psa-feedback-btns {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.psa-thumb-btn {
  background: #f3f4f6;
  border: 1.5px solid #e5e7eb;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
}
.psa-thumb-btn.psa-thumb-selected {
  background: #6366f1;
  color: #fff;
  border-color: #6366f1;
}
.psa-loading,
.psa-error,
.psa-empty {
  text-align: center;
  color: #6b7280;
  font-size: 1.1rem;
  margin: 32px 0;
}

/* HeaderBar styles */
.psa-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 10px;
  border: 1.5px solid #f1f5f9;
  box-shadow: 0 1px 4px #e5e7eb;
  padding: 18px 32px 18px 24px;
  margin: 0 auto 0 auto;
  max-width: 100%;
  min-height: 25px;
}
.psa-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.psa-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.psa-header-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.01em;
}
.psa-header-right {
  font-size: 1.1rem;
  color: #9ca3af;
  font-weight: 600;
}
@media (max-width: 600px) {
  .psa-header-bar {
    padding: 10px 8px 10px 8px;
    max-width: 100%;
    border-radius: 0;
  }
  .psa-header-title {
    font-size: 1.1rem;
  }
  .psa-header-right {
    font-size: 0.95rem;
  }
}

/* Responsive design */
@media (max-width: 600px) {
  .psa-main-panel {
    margin: 12px 0 0 0;
    padding: 0 2px;
  }
  .psa-left-panel, .psa-right-panel {
    padding: 14px 4px 10px 4px;
  }
  .psa-results-list {
    gap: 14px;
    margin-top: 12px;
  }
  .psa-product-card {
    padding: 12px 6px 10px 6px;
  }
} 

/* Audit Results section header */
.psa-results-section {
  margin-top: 32px;
}
.psa-results-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  background: none;
}
.psa-results-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.psa-results-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-right: auto;
  letter-spacing: -0.01em;
}
.psa-results-filter {
  font-size: 1rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 18px;
}
.psa-results-filter input[type="checkbox"] {
  margin-right: 4px;
}

/* ProductCard v2 styles */
.psa-product-card-v2 {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px #e5e7eb;
  padding: 26px 28px 22px 28px;
  margin-bottom: 5px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s;
  border: 1px solid #f3f4f6;
}
.psa-product-card-v2:not(:last-child) {
  border-bottom: 1.5px solid #f1f5f9;
}
.psa-product-card-v2:hover {
  box-shadow: 0 4px 16px #e0e7ff;
}
.psa-product-title-v2 {
  font-size: 1rem;
  font-weight: 800;
  color: #1743a3;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.psa-product-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2px;
}
.psa-classification-label-v2 {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  margin-right: 8px;
}
.psa-classification-label-v2[data-type="Highly Relevant"] {
  background: #38b48e;
}
.psa-classification-label-v2[data-type="Relevant"] {
  background: #3b82f6;
}
.psa-classification-label-v2[data-type="Related"] {
  background: #fff3c3;
  color: #7c5e00;
}
.psa-classification-label-v2[data-type="Irrelevant"] {
  background: #f87171;
}
.psa-confidence-label {
  font-size: 0.8rem;
  color: #374151;
  font-weight: 500;
  margin-right: 4px;
}
.psa-confidence-bar-v2 {
  flex: 1;
  background: #f3f4f6;
  border-radius: 8px;
  height: 16px;
  position: relative;
  overflow: hidden;
  margin-right: 8px;
  min-width: 80px;
  max-width: 220px;
  display: flex;
  align-items: center;
}
.psa-confidence-fill-v2 {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 8px;
  transition: width 0.5s cubic-bezier(.4,2,.6,1);
  z-index: 1;
  background: #1743a3;
}
.psa-confidence-text-v2 {
  position: static;
  z-index: 2;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1743a3;
  margin-left: 12px;
  background: #fff;
  padding: 0 6px;
  border-radius: 6px;
  box-shadow: 0 1px 4px #e0e7eb;
}
.psa-reason-v2 {
  font-size: 0.8rem;
  color: #374151;
  margin-top: 6px;
  margin-bottom: 2px;
}
.psa-rca-row {
  margin-top: 8px;
}
.psa-rca-label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 2px;
}
.psa-rca-label[data-type="Query Issue"] {
  background: #a78bfa;
  color: #fff;
}
.psa-rca-label[data-type="Algorithmic Issue"] {
  background: #fca5a5;
  color: #fff;
}
.psa-rca-label[data-type="Category Issue"] {
  background: #60a5fa;
  color: #fff;
}
.psa-rca-label[data-type="Mapping Issue"] {
  background: #60a5fa;
  color: #fff;
}
.psa-fix-row {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #374151;
  font-style: italic;
}
.psa-fix-label {
  font-weight: 600;
  color: #6b7280;
  font-style: normal;
}
.psa-fix-text {
    color: #6b7280;
    font-weight: bold;
    font-style: italic;
}
.psa-notes-box {
  background: #e8f1fd;
  color: #1743a3;
  border-radius: 16px;
  padding: 22px 28px;
  margin-bottom: 28px;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 2px 8px #e0e7eb;
  border: 1.5px solid #b6d4fa;
  text-align: center;
  letter-spacing: -0.01em;
}
.psa-sticky-summary {
  position: sticky;
  top: 32px;
  z-index: 10;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.psa-left-panel .psa-results-panel {
  margin-top: 32px;
}
/* HeroSection.css */
.heross {
  position: relative;
  width: 95%;
  min-height: 120px;
  background: linear-gradient(120deg, #2c3e50 0%, #000000 100%);
  background-size: 200% 200%;
  /* animation: heroGradientMove 8s ease-in-out infinite alternate ;*/
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: auto;
  border-radius: 26px;
  padding: 50px 20px;
  text-align: center;
  margin-top: 20px;
}

@keyframes heroGradientMove {
0% {
  background-position: 0% 50%;
}
100% {
  background-position: 100% 50%;
}
}

.heross h1 {
  font-size: 3rem;
  font-weight: bold;
  color: white;
}

.heross h1 span {
  color: #8a2be2;
}

.heross p {
  font-size: 1.2rem;
  color: #e0e0e0;
  margin-bottom: 30px;
}

.generator-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 0 auto;
}

.social-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.social-tabs button {
  background-color: transparent;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 10px 20px;
  margin: 0 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.social-tabs button.active {
  background-color: #8a2be2;
  color: white;
  border-color: #8a2be2;
}

.social-tabs button .icon {
  margin-right: 8px;
}

.description-label {
  text-align: left;
  font-weight: bold;
  margin-bottom: 10px;
}

.description-textarea {
  width: 100%;
  height: 100px;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  font-size: 1rem;
  resize: none;
  margin-bottom: 20px;
}

.generate-button {
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 1.1rem;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.generate-button .icon {
  margin-right: 8px;
}

@media (max-width: 768px) {
  .heross {
      padding: 30px 15px;
      width: 85%;
      min-height: 220px;
  }

  .heross h1 {
      font-size: 2rem;
  }

  .social-tabs {
      flex-wrap: wrap;
  }

  .social-tabs button {
      margin-bottom: 10px;
      padding: 8px 15px;
      font-size: 0.9rem;
  }

  .generator-card {
      padding: 20px;
  }

  .generate-button {
      padding: 12px 25px;
      font-size: 1rem;
  }
} 
.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Base header styles - uses design tokens for dark mode */
#header.site-header {
  width: 100%;
  min-height: 64px;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-family: var(--font-sans);
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
  box-sizing: border-box;
}

.header-left {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  text-decoration: none;
  color: var(--foreground);
}

.logo-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.logo-icon {
  color: var(--primary);
  font-size: 20px;
}

.site-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--foreground);
}

.header-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
}

.header-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-theme-toggle:hover {
  background: var(--muted);
  color: var(--primary);
}

.header-theme-icon {
  font-size: 18px;
}

.sign-in-button {
  display: flex;
  align-items: center;
  color: var(--foreground);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: transparent;
  transition: all 0.3s ease;
}

.sign-in-button:hover {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.sign-in-icon {
  margin-right: 8px;
  font-size: 18px;
}

/* Scroll animations */
@media (max-width: 1023px) {
  .scrollT #header {
    animation: animationDownN0 0.8s forwards ease-in;
  }

  .scrollB #header {
    animation: animationUPN0 0.8s forwards ease-in;
  }
}

@keyframes animationDownN0 {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0%);
  }
}

@keyframes animationUPN0 {
  0% {
    transform: translateY(0%);
  }
  100% {
    transform: translateY(-100%);
  }
}

.user-info-login {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 15px;
  color: var(--foreground);
}

.user-icon {
  font-size: 22px;
  color: var(--primary);
}

@media (max-width: 768px) {
  #header.site-header {
    padding: 8px 12px;
  }

  .logo-circle {
    width: 36px;
    height: 36px;
    margin-right: 6px;
  }

  .site-title {
    font-size: 16px;
  }

  .header-right {
    gap: 6px;
  }

  .header-theme-toggle {
    width: 34px;
    height: 34px;
  }

  .header-theme-icon {
    font-size: 15px;
  }

  .sign-in-button {
    font-size: 13px;
    padding: 6px 10px;
  }

  .sign-in-icon {
    font-size: 15px;
    margin-right: 5px;
  }

  .user-info-login {
    font-size: 13px;
  }

  .user-icon {
    font-size: 18px;
  }
}
.footer {
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  color: #f3f4f6;
  padding: 40px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-section {
  flex: 1 1 200px;
  min-width: 180px;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  border-bottom: 2px solid #8B5CF6;
  padding-bottom: 5px;
  background: linear-gradient(90deg, #8B5CF6 0%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-section ul {
  list-style: none;
  padding-left: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #e5e7eb;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-section ul li a:hover {
  color: #8B5CF6;
  transform: translateX(4px);
}

.footer-section a[href^="mailto:"] {
  background: linear-gradient(90deg, #8B5CF6 0%, #EC4899 100%);
  color: #fff;
  padding: 4px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  transition:all 0.3s ease;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
  cursor: pointer;
}

.footer-section a[href^="mailto:"]:hover {
  /* No hover effect */    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.footer-btn {
  background: linear-gradient(90deg, #8B5CF6 0%, #EC4899 100%);
  border: none;
  padding: 12px 24px;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.footer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.footer-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  padding-top: 15px;
  color: #9ca3af;
}

.upload-container {
    margin: 24px;
    padding: 15px;
    font-family: var(--font-sans);
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 26px;
    margin-top: 30px;
    position: relative;
}

@media (max-width: 768px) {
  .upload-container {
    margin: 10px 4px;
    padding: 12px 10px;
    border-radius: 16px;
    margin-top: 14px;
  }

  .upload-container .title {
    font-size: 18px;
  }

  .drop-zone {
    padding: 20px 12px;
  }

  .browse-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
}

.upload-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.upload-icon svg {
    background-color: var(--muted);
    padding: 8px;
    border-radius: 8px;
}

.upload-container .title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--foreground);
}

.upload-boxes {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 768px) {
    .upload-boxes {
        flex-direction: row;
    }
}

.drop-zone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drop-zone-disabled {
    border-color: var(--destructive);
    background-color: var(--muted);
    cursor: not-allowed;
}

.drop-zone-disabled:hover {
    border-color: var(--destructive);
    background-color: var(--muted);
}

.upload-limit-text {
    color: var(--destructive);
    font-weight: 600;
    font-size: 16px;
    margin: 8px 0;
}

.upload-limit-subtext {
    color: var(--destructive);
    font-size: 14px;
    margin: 4px 0;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--foreground);
}

.icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.or-text {
    margin: 8px 0;
    color: var(--muted-foreground);
}

.browse-btn {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.drop-zone:hover {
    border: 2px dashed var(--primary);
}

.preview-upper {
    border: 1px solid var(--border);
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    text-align: center;
    border-radius: 12px;
    padding: 10px;
}

.preview-box {
    background-color: var(--muted);
    height: 300px;
    border-radius: 12px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 12px;
  flex-wrap: wrap;
}


.preview-placeholder {
    color: var(--muted-foreground);
    font-size: 16px;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: auto;
}
.multiple-preview {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  padding: 16px;
}
.thumbnail{
    width: 100px;              
  height: 100px;
  object-fit: contain;       
  border-radius: 8px;
  border: 1px solid var(--border);
  background-color: var(--muted);
}
.thumbnail-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.preview-image-small {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 8px;
  max-width: min(90%, 500px);
  max-height: 90vh;
  position: relative;
  margin: 0 auto;
}

.modal-image {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--muted-foreground);
  color: var(--card);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 18px;
  cursor: pointer;
}

.compare-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--muted);
}

.compare-text {
  font-size: 14px;
  color: var(--foreground);
  max-width: 70%;
}

.compare-btn {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.compare-btn:hover {
  opacity: 0.9;
}

.upload-container .title {
  text-align: center;
  width: 100%;
}
 .mt12{
  margin-top:12px;
 }
 .parent-image{
  display: flex;
    justify-content: center; /* horizontal centering */
    align-items: center;     /* vertical centering */
 }
.cs-container {
  box-shadow: var(--shadow-md);
  padding: 24px 18px 18px 18px;
  font-family: var(--font-sans);
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cs-container > * {
  width: 100%;
  max-width: 100%;
}

.cs-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.cs-col {
  flex: 1;
}
.cs-title{
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 20px;
  text-align: center;
  width: 100%;
  color: var(--foreground);
}

.cs-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  margin-left: 2px;
  color: var(--foreground);
}

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

.cs-select-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--muted);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 18px;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  transition: border 0.2s, background 0.2s;
  outline: none;
}

.cs-select-btn .cs-icon {
  font-size: 22px;
}

.cs-selected {
  border: 2px solid var(--primary);
  background: var(--muted);
  color: var(--primary);
}
.cs-radio-label input[type="radio"] {
  accent-color: var(--primary);
  cursor: pointer;
}

.cs-btn-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--foreground);
}

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

.cs-textarea {
  width: 90%;
  display: flex;
  margin: auto;
  padding: 18px 14px;
  border-radius: 13px;
  border: 1.5px solid var(--border);
  font-size: 14px;
  background: var(--muted);
  color: var(--foreground);
  min-height: 70px;
  margin-top: 2px;
  margin-bottom: 8px;
  resize: none;
}

.cs-btn {
  width: 90%;
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 20px;
  border: none;
  border-radius: 8px;
  padding: 18px 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 2px;
  display: flex;
  margin-left: auto;
  margin-right: auto;
}

.cs-gradient-btn {
  background: var(--gradient-primary);
  box-shadow: var(--shadow-md);
}

.cs-btn-icon {
  font-size: 22px;
}

.cs-dropdown-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--muted);
  border-radius: 10px;
  padding: 0 10px;
  border: 2px solid var(--border);
  margin-bottom: 8px;
}

.cs-dropdown-icon {
  font-size: 22px;
  display: flex;
  align-items: center;
}

.cs-select {
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  padding: 12px 0;
  flex: 1;
}

.cs-btn-group, .cs-select-btn, .cs-selected, .cs-btn-label {
  all: unset;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 12px;
  max-width: 90%;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-images {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 24px;
}

.modal-image-container {
  width: 220px;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 12px 0 0 0;
}

.modal-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  display: block;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--muted-foreground);
  color: var(--card);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background: var(--foreground);
}

.modal-title {
  text-align: center;
  color: var(--foreground);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.modal-select-btn {
  background: var(--card);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.modal-select-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.1);
}
.cs-radio-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.cs-radio-label {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--foreground);
}
.cs-radio-row{
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .cs-container {
    padding: 16px 10px 14px;
    border-radius: 16px;
  }

  .cs-title {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .cs-select-btn {
    padding: 8px 12px;
    font-size: 14px;
  }

  .cs-select-btn .cs-icon {
    font-size: 18px;
  }

  .cs-btn-label {
    font-size: 14px;
  }

  .cs-btn {
    font-size: 16px;
    padding: 14px 0;
    width: 100%;
  }

  .cs-btn-icon {
    font-size: 18px;
  }

  .cs-textarea {
    width: 100%;
    padding: 12px 10px;
    font-size: 13px;
    box-sizing: border-box;
  }

  .cs-label {
    font-size: 13px;
  }

  .cs-radio-label {
    font-size: 13px;
  }

  .cs-dropdown-icon {
    font-size: 18px;
  }

  .cs-select {
    font-size: 13px;
  }

  .modal-images {
    flex-direction: column;
    gap: 15px;
  }

  .modal-image {
    max-width: 90%;
    max-height: 40vh;
  }

  .modal-content {
    padding: 15px;
    max-height: 95vh;
    overflow-y: auto;
    max-width: 85%
  }

  .modal-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
  }

  .modal-select-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    max-width: 160px;
  }
}
.container {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 15px;
  font-family: var(--font-sans);
  border-radius: 26px;
  height: fit-content;
}

.title {
  font-size: 22px;
  font-weight: 700;
  color: var(--foreground);
}

.card {
  background: var(--muted);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 22px 24px 18px 24px;
  margin: 0 24px 18px 24px;
}

.user-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

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

.user-info {
  display: flex;
  flex-direction: column;
}

.name {
  font-weight: 700;
  font-size: 16px;
  color: var(--foreground);
}

.meta {
  font-size: 13px;
  color: var(--muted-foreground);
  margin-top: 2px;
}

.caption {
  font-size: 16px;
  color: var(--foreground);
  margin-bottom: 16px;
  margin-top: 2px;
}

.img-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.tags {
  margin: 18px 24px 0 24px;
}

.tags-label {
  font-size: 15px;
  color: var(--foreground);
  font-weight: 600;
  margin-bottom: 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  align-items: center;
  justify-content: center;
}

.tag {
  background: var(--muted);
  color: var(--primary);
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 16px;
  font-weight: 600;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 24px 0 24px;
}

.actions-top {
  display: flex;
  gap: 14px;
  width: 100%;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 0;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: var(--muted);
  color: var(--foreground);
  transition: all 0.2s ease;
}

.btn-copy, .btn-tags {
  flex: 1;
  border: 1.5px solid var(--border);
  min-width: 0;
}

.btn-copy:hover, .btn-tags:hover {
  background: var(--border);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

.btn-improve {
  width: 100%;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  font-size: 20px;
  margin-top: 4px;
}

.btn-improve:hover {
  opacity: 0.9;
}

.iconcopy {
  display: flex;
  height: 22px;
  width: 22px;
  margin-right: 8px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .container {
    padding: 12px 8px;
    margin: 0;
    border-radius: 16px;
  }

  .title {
    font-size: 17px;
  }

  .card {
    padding: 14px 12px;
    margin: 0 4px 12px 4px;
    border-radius: 12px;
  }

  .caption {
    font-size: 14px;
  }

  .tags {
    margin: 12px 4px 0 4px;
  }

  .tag {
    font-size: 12px;
    padding: 4px 10px;
  }

  .actions {
    margin: 14px 4px 0 4px;
  }

  .actions-top {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    font-size: 14px;
    padding: 12px 0;
  }

  .btn-improve {
    font-size: 16px;
  }

  .caption-heading {
    font-size: 1.15rem;
  }

  .caption-text {
    font-size: 1rem;
    padding: 0 8px;
  }

  .feedback-box {
    margin: 14px 4px 0 4px;
    padding: 14px 12px 10px;
  }

  .feedback-label {
    font-size: 13px;
  }

  .feedback-textarea {
    font-size: 13px;
    padding: 8px 10px;
  }
}


.caption-container {
  background-color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 700px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s ease;
  margin: auto;
}

.caption-container.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.caption-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--foreground);
}

.caption-text {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 500;
  color: var(--foreground);
  padding: 0 12px;
  line-height: 1.6;
}

.headContain{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    margin-top: 12px;
}
.retryBtn{
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}



.caption-glitter-wrapper {
  position: relative;
  display: inline-block;
}


.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.sparkle {
  position: absolute;
  font-size: 1.2rem;
  color: gold;
  opacity: 0;
  animation: twinkle 2.5s infinite ease-in-out;
}

.sparkle::before {
  content: '✨';
}

/* Position sparkles with classes */
.sparkle-1 {
  top: -10px;
  left: 10%;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 0px;
  left: 50%;
  animation-delay: 0.5s;
}

.sparkle-3 {
  top: 10px;
  right: 5%;
  animation-delay: 1s;
}

.sparkle-4 {
  bottom: -5px;
  left: 30%;
  animation-delay: 1.5s;
}

.sparkle-5 {
  bottom: 10px;
  right: 15%;
  animation-delay: 2s;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0.9) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.3) rotate(20deg);
  }
}

.feedback-box {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin: 24px 24px 0 24px;
  padding: 18px 20px 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feedback-label {
  font-size: 15px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.feedback-textarea {
  width: 95%;
  min-height: 48px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  padding: 10px 14px;
  font-size: 15px;
  color: var(--foreground);
  background: var(--card);
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 2px;
}

.feedback-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.2);
}

.recent-captions {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 20px;
  margin: 24px;
}

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

.recent-header .rec-cap {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.clear-btn {
  background: var(--muted);
  border: 1.5px solid var(--border);
  color: var(--foreground);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-btn:hover {
  background: var(--border);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.captions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.caption-item {
  background: var(--muted);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  position: relative;
}

.caption-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tone-badge, .platform-badge {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
}

.tone-badge {
  background: var(--muted);
  color: var(--primary);
}

.platform-badge {
  background: var(--muted);
  color: var(--success);
}

.caption-content {
  font-size: 15px;
  color: var(--foreground);
  line-height: 1.5;
  margin: 0;
}

.empty-captions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.empty-icon {
  margin-bottom: 16px;
}

.empty-text {
  color: var(--muted-foreground);
  font-size: 1.1rem;
  text-align: center;
}

.caption-row {
  display: flex;
  align-items: flex-end;
}

.copy-caption-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s;
}

.copy-caption-btn:hover {
  background: var(--border);
}

@media (max-width: 768px) {
  .recent-captions {
    margin: 10px 4px;
    padding: 14px 10px;
    border-radius: 12px;
  }

  .recent-header .rec-cap {
    font-size: 1rem;
  }

  .clear-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .caption-item {
    padding: 12px 10px;
    border-radius: 10px;
  }

  .caption-content {
    font-size: 13px;
  }

  .tone-badge, .platform-badge {
    font-size: 11px;
    padding: 3px 8px;
  }
}
.compare-box {
  margin: 10px;
  padding: 24px;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}


.compare-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  justify-content: center;
}

.fire-icon {
  color: var(--destructive);
  margin-right: 8px;
  font-size: 20px;
}

.compare-box h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.compare-subtext {
  font-size: 14px;
  color: var(--muted-foreground);
  margin-bottom: 16px;
}

.image-upload-section input[type="file"] {
  margin-bottom: 16px;
}

.image-preview-section {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.image-preview img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.vis-compare-button{
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-md) !important;
}
.compare-button {
    background-color: var(--muted);
    color: var(--muted-foreground);
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
  font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    margin-top: 16px;
}

.compare-button-enabled {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    cursor: pointer;
}

.compare-button-enabled:hover {
    opacity: 0.9;
}
.ch-title{
    font-weight: 600;
}

.comparison-result {
  margin-top: 24px;
  width: 100%;
  background: var(--muted);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
}

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

.result-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--foreground);
}

.check-icon {
  color: var(--success);
  font-size: 24px;
}

.result-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.better-image-container {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.better-image {
  width: 100%;
  height: 300px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.better-image-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(16, 185, 129, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.reason-box {
  background: var(--card);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.reason-box h4 {
  margin: 0 0 8px 0;
  color: var(--foreground);
  font-size: 16px;
}

.reason-box p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .comparison-result {
    padding: 16px;
  }

  .better-image-container {
    max-width: 100%;
  }

  .better-image {
    height: 100%;
  }

  .result-header h3 {
    font-size: 16px;
  }

  .reason-box {
    padding: 12px;
  }
}
.resCont {
  display: flex;
  gap: 24px;
  padding: 0 24px;
  /* max-width: 1400px; */
  margin: 0 auto;
}

.resCont > * {
  flex: 1;
  min-width: 0; /* Prevents flex items from overflowing */
}

/* Make containers responsive */
@media (max-width: 1024px) {
  .resCont {
    flex-direction: column;
  }
}

/* seo-section.css - uses design tokens for dark mode */

.seo-section {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 2.5rem;
  font-family: var(--font-sans);
  color: var(--foreground);
  line-height: 1.7;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.seo-section h1 {
  font-size: 2.5rem;
  color: var(--foreground);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.seo-section h2 {
  font-size: 1.8rem;
  color: var(--foreground);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seo-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.seo-section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--foreground);
  line-height: 1.8;
}

.seo-section ul, 
.seo-section ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  list-style-type: none;
}

.seo-section ul li,
.seo-section ol li {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--foreground);
  line-height: 1.6;
  transition: transform 0.2s ease;
}

.seo-section ul li::before {
  content: '•';
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

.seo-section ol {
  counter-reset: item;
}

.seo-section ol li {
  counter-increment: item;
  padding-left: 2.5rem;
}

.seo-section ol li::before {
  content: counter(item);
  color: var(--primary-foreground);
  background: var(--primary);
  position: absolute;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.seo-section strong {
  color: var(--foreground);
  font-weight: 600;
  padding: 0 2px;
}

/* FAQ Section Styling */
.seo-section .faq {
  background: var(--muted);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 1rem;
}

.seo-section .faq h3 {
  color: var(--foreground);
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
}

.seo-section .faq h3:first-child {
  margin-top: 0;
}

.seo-section .faq p {
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

/* Hover effects */
.seo-section ul li:hover,
.seo-section ol li:hover {
  transform: translateX(5px);
}

/* Animation for content */
.seo-section {
  animation: fadeIn 0.5s ease-in-out;
}

.seo-section > * {
  animation: slideUp 0.5s ease-out forwards;
  opacity: 0;
}

.seo-section > *:nth-child(1) { animation-delay: 0.1s; }
.seo-section > *:nth-child(2) { animation-delay: 0.2s; }
.seo-section > *:nth-child(3) { animation-delay: 0.3s; }
.seo-section > *:nth-child(4) { animation-delay: 0.4s; }
.seo-section > *:nth-child(5) { animation-delay: 0.5s; }
.seo-section > *:nth-child(6) { animation-delay: 0.6s; }
.seo-section > *:nth-child(7) { animation-delay: 0.7s; }

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

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

/* Custom scrollbar */
.seo-section::-webkit-scrollbar {
  width: 8px;
}

.seo-section::-webkit-scrollbar-track {
  background: var(--muted);
  border-radius: 4px;
}

.seo-section::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.seo-section::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

/* Responsive Design */
@media (max-width: 768px) {
  .seo-section {
    margin: 1.5rem 4px;
    padding: 1rem;
    border-radius: 14px;
  }

  .seo-section h1 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .seo-section h2 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .seo-section p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .seo-section ul li,
  .seo-section ol li {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }

  .seo-section .faq {
    padding: 0.8rem;
    border-radius: 10px;
  }

  .seo-section .faq h3 {
    font-size: 0.95rem;
  }

  .seo-section .faq p {
    font-size: 0.85rem;
  }
}

.ai-hero-bg {
  position: relative;
  width: 95%;
  min-height: 420px;
  background: linear-gradient(120deg, #f3e8ff 0%, #ff9de2 50%, #91d1fb 100%, #e9d5ff 120%);
  background-size: 200% 200%;
  animation: heroGradientMove 8s ease-in-out infinite alternate;
  animation-play-state: paused;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: auto;
  border-radius: 26px;
  margin-top: 85px;
}

@media (max-width: 768px) {
  .ai-hero-bg {
    margin-top: 16px;
    min-height: 260px;
    border-radius: 16px;
    width: 100%;
  }
}

html.dark .ai-hero-bg {
  background: var(--gradient-subtle);
}
.ai-hero-bg.animate {
  animation-play-state: running;
}

@keyframes heroGradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.ai-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  min-height: 150px; /* Prevent layout shift */
}

.ai-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 18px;
  min-height: 3.5em; /* Avoid LCP layout shift */
  text-shadow: none;
  transition: font-size 0.2s;
}

.ai-hero-title.glow {
  background: linear-gradient(90deg, #8B5CF6 0%, #EC4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ai-hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  font-weight: 500;
  line-height: 1.5;
  margin: 0.5rem 0;
  text-shadow: none;
}

@media (max-width: 768px) {
  .ai-hero-title {
    font-size: 1.3rem;
    padding: 0 12px;
    font-weight: 700;
    min-height: auto;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    color: var(--primary);
  }

  .ai-hero-subtitle {
    font-size: 0.9rem;
    padding: 0 12px;
  }

  .ai-hero-content {
    min-height: auto;
  }
}

.ai-hero-glow {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80vw;
  height: 48px;
  background: linear-gradient(90deg, #8B5CF6 0%, #EC4899 100%);
  filter: blur(32px) brightness(1.5);
  opacity: 0.7;
  z-index: 1;
  animation: beamMove 4s linear infinite alternate, beamSlide 8s ease-in-out infinite alternate;
  border-radius: 32px 32px 0 0;
}

@keyframes beamMove {
  0% { filter: blur(32px) brightness(1.2); opacity: 0.6; }
  50% { filter: blur(40px) brightness(2); opacity: 0.9; }
  100% { filter: blur(32px) brightness(1.2); opacity: 0.6; }
}

@keyframes beamSlide {
  0% { left: 45%; width: 70vw; }
  50% { left: 55%; width: 90vw; }
  100% { left: 45%; width: 70vw; }
}

.ai-cubes {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}

.ai-cube {
  position: absolute;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #8B5CF6 60%, #EC4899 100%);
  opacity: 0.18;
  border-radius: 12px;
  box-shadow: 0 8px 32px #8B5CF633, 0 0 32px 8px #8B5CF622;
  animation: floatCube 8s infinite ease-in-out alternate, rotateCube 7s infinite linear;
  will-change: transform, opacity;
  
}

.ai-cube::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 120%; height: 120%;
  background: inherit;
  filter: blur(18px) brightness(1.7);
  opacity: 0.5;
  border-radius: 16px;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.ai-cube1 { left: 8%; top: 18%; animation-delay: 0s, 0s; }
.ai-cube2 { left: 80%; top: 10%; width: 40px; height: 40px; animation-delay: 1.2s, 0.5s; }
.ai-cube3 { left: 60%; top: 60%; width: 50px; height: 50px; animation-delay: 2.4s, 1.2s; }
.ai-cube4 { left: 30%; top: 70%; width: 36px; height: 36px; animation-delay: 3.6s, 2.1s; }
.ai-cube5 { left: 70%; top: 35%; width: 44px; height: 44px; animation-delay: 4.8s, 2.8s; }
.ai-cube6 { left: 15%; top: 60%; width: 32px; height: 32px; animation-delay: 6s, 3.5s; }
.ai-cube7 { left: 50%; top: 20%; width: 54px; height: 54px; animation-delay: 7.2s, 4.2s; }

@keyframes floatCube {
  0% { transform: translateY(0) scale(1) rotateZ(0deg); opacity: 0.18; }
  30% { transform: translateY(-40px) scale(1.12) rotateZ(10deg); opacity: 0.22; }
  50% { transform: translateY(-60px) scale(1.18) rotateZ(20deg); opacity: 0.28; }
  70% { transform: translateY(-40px) scale(1.12) rotateZ(10deg); opacity: 0.22; }
  100% { transform: translateY(0) scale(1) rotateZ(0deg); opacity: 0.18; }
}

@keyframes rotateCube {
  0% { transform: rotateY(0deg) rotateX(0deg); }
  100% { transform: rotateY(360deg) rotateX(360deg); }
}
.ai-cube {
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ai-cube.fade-in {
  opacity: 1;
  transform: scale(1);
}

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

.ai-cube {
  opacity: 0;
  /* transform: scale(0.6) translateY(20px); */
  /* animation: cubeEnter 0.5s ease forwards; */
}

/* Apply staggered delay per cube */
.ai-cube1 { animation-delay: 0s; }
.ai-cube2 { animation-delay: 0.1s; }
.ai-cube3 { animation-delay: 0.2s; }
.ai-cube4 { animation-delay: 0.3s; }
.ai-cube5 { animation-delay: 0.4s; }
.ai-cube6 { animation-delay: 0.5s; }
.ai-cube7 { animation-delay: 0.6s; }

/* HeroSection.css */
.hero-section {
    position: relative;
    width: 95%;
    min-height: 320px;
    background: linear-gradient(120deg, #2c3e50 0%, #000000 100%);
    background-size: 200% 200%;
    /* animation: heroGradientMove 8s ease-in-out infinite alternate ;*/
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: auto;
    border-radius: 26px;
    margin-top: 85px;
    padding: 50px 20px;
    text-align: center;
}

@keyframes heroGradientMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    color: white;
}

.hero-section h1 span {
    color: #8a2be2;
}

.hero-section p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.generator-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.social-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.social-tabs button {
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.social-tabs button.active {
    background-color: #8a2be2;
    color: white;
    border-color: #8a2be2;
}

.social-tabs button .icon {
    margin-right: 8px;
}

.description-label {
    text-align: left;
    font-weight: bold;
    margin-bottom: 10px;
}

.description-textarea {
    width: 100%;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    font-size: 1rem;
    resize: none;
    margin-bottom: 20px;
}

.generate-button {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.generate-button .icon {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 30px 15px;
        margin-top: 80px;
        width: 85%;
        min-height: 220px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .social-tabs {
        flex-wrap: wrap;
    }

    .social-tabs button {
        margin-bottom: 10px;
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .generator-card {
        padding: 20px;
    }

    .generate-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
} 
/* WhyUseHashtag.css */
.why-use-section {
    text-align: center;
    padding: 50px 20px;
}

.why-use-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.why-use-section .subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 40px;
}

.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(80, 63, 205, 0.13);
    padding: 2.5rem 2rem 2rem 2rem;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 260px;
    max-width: 340px;
}

.feature-icon {
    font-size: 3rem;
    color: #8a2be2;
    background-color: #e9d8fd;
    padding: 20px;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.feature-item p {
    color: #6c757d;
}

@media (max-width: 900px) {
    .features {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .feature-item {
        width: 80%;
        max-width: 400px;
    }
}
@media (max-width: 768px) {
    .why-use-section h2 {
        font-size: 2rem;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        margin-bottom: 30px;
    }


    .feature-icon {
        font-size: 2rem;
        padding: 15px;
    }
} 
.switch-input-type-bg {
  width: 90%;
  /* max-width: 900px; */
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(60,60,60,0.07);
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.switch-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: #23272f;
  margin-bottom: 18px;
  margin-left: 2px;
  text-align: center;
}

.switch-btn-row {
  display: flex;
  width: 100%;
  gap: 16px;
}

.switch-btn {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.18rem;
  font-weight: 600;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  color: #949494;
  padding: 18px 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s;
  outline: none;
  gap: 10px;
  box-shadow: none;
}

.switch-btn.active {
  background: #f6f0ff;
  color: #8a2be2;
  border: 1.5px solid #c7a8f7;
}

.switch-btn:not(.active):hover {
  background: #f3f4f8;
  border: 1.5px solid #d1c4e9;
}

.switch-icon {
  font-size: 1.35rem;
  margin-right: 8px;
}

@media (max-width: 600px) {
  .switch-input-type-bg {
    padding: 18px;
    max-width: 80%;
  }
  .switch-btn-row {
    gap: 10px;
  }
  .switch-btn {
    font-size: 1rem;
    padding: 13px 0;
  }
  .switch-icon {
    margin-right: 0px;
  }
  /* .switch-label {
    font-size: 1.1rem;
    margin-bottom: 10px;
  } */
} 
.keyword-input-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(60,60,60,0.07);
  padding: 28px 24px 24px 24px;
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.keyword-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 6px;
}

.keyword-label {
  font-size: 1.08rem;
  font-weight: 600;
  color: #23272f;
  margin-bottom: 10px;
}

.keyword-input-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.keyword-input-box {
  flex: 1 1 0;
  font-size: 1.08rem;
  padding: 13px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px 0 0 8px;
  outline: none;
  color: #23272f;
  background: #fff;
  transition: border 0.18s;
}
.keyword-input-box:focus {
  border-color: #8a2be2;
}
.keyword-input-box::placeholder {
  color: #b6b6c1;
  opacity: 1;
  font-weight: 500;
}

.keyword-search-btn {
  background: #181f2a;
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 0 18px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.18rem;
  cursor: pointer;
  transition: background 0.18s;
}
.keyword-search-btn:hover {
  background: #232b3a;
}
.keyword-search-btn:disabled {
  background: #c5c5c5;
  cursor: not-allowed;
  opacity: 0.6;
}

@media (max-width: 600px) {
    .keyword-input-card {
        padding: 16px 15px 14px 16px;
        max-width: 80%;
    }
  .keyword-title {
    font-size: 1.08rem;
  }
  .keyword-label {
    font-size: 0.98rem;
  }
  .keyword-input-box {
    font-size: 0.98rem;
    padding: 10px 10px;
  }
  .keyword-search-btn {
    font-size: 1rem;
    height: 40px;
    padding: 0 10px;
  }
} 
.hashtag-results-card {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 400px;
}
.btn-copy, .btn-tags-Hash {
  flex: 1;
  border: 1.5px solid #e5e7eb;
  min-width: 0;
}
.btnHash {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 0;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: #f3f4f6;
  color: #222;
  transition: all 0.2s ease;
  width: 100%;
  margin-top: 10px;
        background: linear-gradient(90deg, #a78bfa 0%, #6366f1 100%);
        color: white;
}
.placeholder-content {
  max-width: 350px;
}

.placeholder-icon {
  width: 64px;
  height: 64px;
  background-color: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #8b5cf6;
  font-size: 2rem;
}

.placeholder-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.placeholder-text {
  color: #6b7280;
  line-height: 1.6;
} 
.hashtag-trends-table-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(80, 0, 200, 0.04);
    padding: 24px;
    margin-top: 24px;
    margin-bottom: 24px;
  }
  .trends-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #222;
  }
  .hashtag-trends-table {
    width: 100%;
    border-collapse: collapse;
  }
  .hashtag-trends-table th, .hashtag-trends-table td {
    padding: 10px 12px;
    text-align: left;
  }
  .hashtag-trends-table th {
    background: #f6f3ff;
    color: #6c3ef4;
    font-weight: 600;
    border-bottom: 2px solid #eee;
  }
  .hashtag-trends-table tr:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
  }
  .hashtag-cell {
    color: #6c3ef4;
    font-weight: 500;
  }
  .hashtag-trends-table td {
    font-size: 1rem;
  }
  .hashtag-insights-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(80, 0, 200, 0.04);
    padding: 10px;
    margin-top: 20px;
    margin-bottom: 24px;
  }
  .insights-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
  }
  .insights-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
  }
  .insights-title-icon {
    color: #6c3ef4;
    font-size: 1.3rem;
  }
  .insights-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .insights-row-v2 {
    display: flex;
    align-items: center;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 0;
    box-shadow: 0 1px 2px rgba(80,0,200,0.03);
    background: #f6f3ff;
    justify-content: space-between;
    gap: 12px;
  }
  .insight-bg-main {
    background: #f6f8ff;
    border: 1.5px solid #dbeafe;
  }
  .insight-bg-green {
    background: #e8f8ef;
    border: 1.5px solid #b2f2d7;
  }
  .insight-bg-orange {
    background: #fff5ec;
    border: 1.5px solid #ffe0c2;
  }
  .insight-bg-blue {
    background: #eaf6ff;
    border: 1.5px solid #bae6fd;
  }
  .insight-bg-yellow {
    background: #fffbe6;
    border: 1.5px solid #fff3bf;
  }
  .insight-bg-pink {
    background: #fdf2fa;
    border: 1.5px solid #fbcfe8;
  }
  .insights-icon-v2 {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #6c3ef4;
    background: #ede9fe;
    margin-right: 18px;
  }
  .insights-main-v2 {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .insights-hashtag-v2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: left;
  }
  .insights-sublabel-v2 {
    font-size: 0.98rem;
    color: #888;
    margin-top: 5px;
    text-align: left;
  }
  .insights-right-v2 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 90px;
    flex-shrink: 0;
  }
  .insights-posts-v2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
  }
  .insights-percent-v2 {
    font-size: 1rem;
    margin-top: 2px;
    font-weight: 600;
  }
  .insight-percent-green {
    color: #16a34a;
  }
  .insight-percent-red {
    color: #e11d48;
  }
  .insights-pill {
    width: 12px;
    height: 48px;
    border-radius: 9px;
    margin-right: 5px;
    display: inline-block;
  }
  .insight-pill-blue {
    background: #3fa7ff;
  }
  .insight-pill-green {
    background: #16a34a;
  }
  .insight-pill-orange {
    background: #ff8c42;
  }
  .insight-pill-yellow {
    background: #ffe066;
  }
  .insight-pill-pink {
    background: #f472b6;
  }
  .insights-row-abs {
    position: relative;
    /* min-height: 80px; */
    padding-bottom: 28px;
    display: block;
  }
  .insights-row-main {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
  }
  .insights-posts-abs {
    position: absolute;
    right: 24px;
    bottom: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
  }
  
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width var(--transition-slow);
  overflow: hidden;
}

.sidebar-collapsed {
  width: var(--sidebar-collapsed);
}

.sidebar-brand {
  padding: var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--border);
  min-height: var(--topnav-height);
  display: flex;
  align-items: center;
}

.sidebar-logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--foreground);
}

.sidebar-logo {
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.sidebar-brand-text {
  font-size: 18px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-2) var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-2) var(--space-2);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--muted-foreground);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition-fast);
  cursor: pointer;
  min-height: 38px;
}

.sidebar-item:hover {
  background: var(--muted);
  color: var(--foreground);
}

.sidebar-item-active {
  background: var(--gradient-subtle);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-item-active .sidebar-item-icon {
  color: var(--primary);
}

.sidebar-item-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.sidebar-item-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.sidebar-item-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.sidebar-soon-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: var(--muted);
  color: var(--muted-foreground);
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  margin: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--muted-foreground);
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.sidebar-toggle:hover {
  background: var(--muted);
  color: var(--foreground);
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-xl);
  }

  .sidebar.sidebar-mobile-open {
    transform: translateX(0);
  }
}

.topnav {
  position: fixed;
  top: 0;
  right: 0;
  height: var(--topnav-height);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  z-index: 90;
  transition: left var(--transition-slow);
}

.topnav-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.topnav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--foreground);
}

.topnav-brand-logo {
  border-radius: 50%;
}

.topnav-brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.topnav-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 18px;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
}

.topnav-menu-btn:hover {
  background: var(--muted);
}

.topnav-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.topnav-create-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--transition-fast);
  white-space: nowrap;
}

.topnav-create-btn:hover {
  opacity: 0.9;
}

.topnav-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted-foreground);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.topnav-icon-btn:hover {
  background: var(--muted);
  color: var(--foreground);
}

.topnav-bell {
  position: relative;
}

.topnav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: var(--destructive);
  color: white;
  font-size: 9px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.topnav-user {
  position: relative;
}

.topnav-avatar-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-2);
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  color: var(--foreground);
  transition: background var(--transition-fast);
}

.topnav-avatar-btn:hover {
  background: var(--muted);
}

.topnav-avatar-icon {
  font-size: 28px;
  color: var(--muted-foreground);
}

.topnav-user-name {
  font-size: 13px;
  font-weight: 500;
}

.topnav-dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: dropdown-fade var(--transition-fast) ease-out;
}

.topnav-dropdown-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
}

.topnav-dropdown-avatar {
  font-size: 32px;
  color: var(--muted-foreground);
}

.topnav-dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}

.topnav-dropdown-plan {
  font-size: 12px;
  color: var(--muted-foreground);
}

.topnav-dropdown-divider {
  height: 1px;
  background: var(--border);
}

.topnav-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font-size: 13px;
  color: var(--foreground);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.topnav-dropdown-item:hover {
  background: var(--muted);
}

.topnav-dropdown-logout {
  color: var(--destructive);
}

@keyframes dropdown-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .topnav {
    left: 0 !important;
    padding: 0 var(--space-3);
    height: 52px;
  }

  .topnav-menu-btn {
    display: flex;
    padding: var(--space-1);
    font-size: 16px;
  }

  .topnav-left {
    gap: var(--space-2);
  }

  .topnav-brand-name {
    font-size: 15px;
  }

  .topnav-brand-logo {
    width: 26px;
    height: 26px;
  }

  .topnav-create-btn {
    padding: var(--space-1) var(--space-2);
    font-size: 12px;
  }

  .topnav-create-btn span {
    display: none;
  }

  .topnav-icon-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .topnav-avatar-icon {
    font-size: 22px;
  }

  .topnav-user-name {
    display: none;
  }

  .topnav-right {
    gap: 2px;
  }
}

.dashboard-layout {
  min-height: 100vh;
  background: var(--background);
}

.dashboard-content {
  padding-top: var(--topnav-height);
  min-height: 100vh;
  transition: margin-left var(--transition-slow);
}

.dashboard-content-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

.dashboard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 95;
}

@media (max-width: 768px) {
  .dashboard-content {
    margin-left: 0 !important;
    padding-top: 52px;
  }

  .dashboard-content-inner {
    padding: var(--space-3) var(--space-2);
  }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-10) var(--space-6);
  gap: var(--space-3);
}

.empty-state-icon {
  font-size: 48px;
  color: var(--muted-foreground);
  opacity: 0.5;
  margin-bottom: var(--space-2);
}

.empty-state-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--foreground);
}

.empty-state-desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted-foreground);
  max-width: 320px;
  line-height: 1.5;
}

.empty-state-action {
  margin-top: var(--space-4);
}

.command-center {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Welcome Card */
.cc-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gradient-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-8);
  position: relative;
  overflow: hidden;
}

.cc-welcome-greeting {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 var(--space-2) 0;
  color: var(--foreground);
}

.cc-welcome-sub {
  margin: 0;
  font-size: 15px;
  color: var(--muted-foreground);
}

.cc-welcome-visual {
  position: relative;
  flex-shrink: 0;
}

.cc-welcome-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.3;
  filter: blur(20px);
  animation: cc-orb-pulse 3s ease-in-out infinite;
}

@keyframes cc-orb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.5; }
}

/* AI Suggestion */
.cc-suggestion {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.cc-suggestion-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.cc-suggestion-icon {
  color: var(--warning);
  font-size: 18px;
}

.cc-suggestion-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted-foreground);
}

.cc-suggestion-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--foreground);
}

/* Cards */
.cc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.cc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.cc-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--foreground);
  display: flex;
  align-items: center;
}

.cc-card-link {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.cc-card-link:hover {
  text-decoration: underline;
}

.cc-badge-soon {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--muted);
  color: var(--muted-foreground);
}

/* Grid */
.cc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .command-center {
    gap: var(--space-3);
  }

  .cc-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .cc-welcome {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
  }

  .cc-welcome-greeting {
    font-size: 18px;
  }

  .cc-welcome-sub {
    font-size: 13px;
  }

  .cc-welcome-orb {
    width: 50px;
    height: 50px;
  }

  .cc-suggestion {
    padding: var(--space-3);
  }

  .cc-suggestion-text {
    font-size: 13px;
  }

  .cc-card {
    padding: var(--space-3);
    border-radius: var(--radius-lg);
  }

  .cc-card-title {
    font-size: 14px;
  }

  .cc-section-title {
    font-size: 15px;
    margin-bottom: var(--space-3);
  }

  .cc-actions-grid {
    gap: var(--space-2);
  }

  .cc-action-card {
    padding: var(--space-4) var(--space-3);
    gap: var(--space-2);
    border-radius: var(--radius-lg);
  }

  .cc-action-icon-wrap {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .cc-action-label {
    font-size: 12px;
  }

  .cc-action-desc {
    font-size: 11px;
  }

  .cc-chart {
    height: 120px;
  }

  .cc-draft-text {
    font-size: 12px;
  }
}

/* Drafts */
.cc-drafts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cc-draft-item {
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.cc-draft-item:hover {
  background: var(--muted);
}

.cc-draft-meta {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.cc-draft-platform,
.cc-draft-tone {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background: var(--muted);
  color: var(--muted-foreground);
}

.cc-draft-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--foreground);
}

/* Chart */
.cc-chart {
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  height: 160px;
  padding-top: var(--space-4);
}

.cc-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  height: 100%;
}

.cc-chart-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cc-chart-bar {
  width: 100%;
  max-width: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  transition: height 0.5s ease;
  min-height: 8px;
}

.cc-chart-val {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-foreground);
}

.cc-chart-label {
  font-size: 11px;
  color: var(--muted-foreground);
  font-weight: 500;
}

/* Quick Actions */
.cc-section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 var(--space-4) 0;
  color: var(--foreground);
}

.cc-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

@media (max-width: 768px) {
  .cc-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cc-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.cc-action-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.cc-action-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.cc-action-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.cc-action-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cc-action-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}

.cc-action-desc {
  font-size: 12px;
  color: var(--muted-foreground);
}

/* Link button */
.cc-link-btn {
  display: inline-block;
  padding: var(--space-2) var(--space-5);
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: opacity var(--transition-fast);
}

.cc-link-btn:hover {
  opacity: 0.9;
}

.skeleton-group {
  display: flex;
  flex-direction: column;
}

.skeleton-pulse {
  background: var(--muted);
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

.post-analyzer {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.pa-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.pa-header-icon {
  font-size: 28px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
}

.pa-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: var(--foreground);
}

.pa-subtitle {
  margin: var(--space-1) 0 0 0;
  font-size: 14px;
  color: var(--muted-foreground);
}

.pa-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

@media (max-width: 900px) {
  .pa-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .post-analyzer {
    gap: var(--space-3);
  }

  .pa-header-icon {
    font-size: 22px;
  }

  .pa-title {
    font-size: 18px;
  }

  .pa-subtitle {
    font-size: 12px;
  }

  .pa-layout {
    gap: var(--space-3);
  }

  .pa-card {
    padding: var(--space-3);
    border-radius: var(--radius-lg);
  }

  .pa-analyze-btn {
    font-size: 14px;
    padding: var(--space-3) var(--space-4);
  }

  .pa-score-center {
    width: 140px;
    height: 140px;
  }

  .pa-score-number {
    font-size: 32px;
  }

  .pa-results-card {
    padding: var(--space-4);
  }

  .pa-improvements-toggle {
    padding: var(--space-3) var(--space-4);
    font-size: 13px;
  }

  .pa-improvements-list {
    padding: 0 var(--space-3) var(--space-3);
    gap: var(--space-2);
  }

  .pa-improvement-item {
    padding: var(--space-2);
  }

  .pa-optimize-btn {
    font-size: 14px;
    padding: var(--space-3) var(--space-4);
  }

  .pa-empty-results {
    min-height: 200px;
  }

  .pa-empty-icon {
    font-size: 36px;
  }
}

.pa-input-section,
.pa-results-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pa-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.pa-card-title {
  margin: 0 0 var(--space-3) 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}

.pa-textarea {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--foreground);
  background: var(--background);
  resize: vertical;
  transition: border-color var(--transition-fast);
}

.pa-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

.pa-analyze-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-3) var(--space-6);
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.pa-analyze-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.pa-analyze-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pa-btn-loading {
  animation: pa-pulse 1.2s ease-in-out infinite;
}

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

/* Score Meter */
.pa-score-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  position: relative;
}

.pa-score-center {
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pa-score-number {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.pa-score-label-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-top: 4px;
}

.pa-score-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}

.pa-results-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

/* Breakdown Bars */
.pa-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pa-breakdown-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
}

.pa-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pa-bar-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

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

.pa-bar-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
}

.pa-bar-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
}

.pa-bar-track {
  height: 8px;
  background: var(--muted);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.pa-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s ease;
}

/* Posting Time */
.pa-posting-time {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pa-time-icon {
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.pa-time-label {
  display: block;
  font-size: 12px;
  color: var(--muted-foreground);
  font-weight: 500;
}

.pa-time-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--foreground);
}

/* Improvements */
.pa-improvements {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.pa-improvements-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}

.pa-improvements-toggle:hover {
  background: var(--muted);
}

.pa-improvements-toggle-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pa-improvements-icon {
  color: var(--warning);
}

.pa-improvements-list {
  padding: 0 var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pa-improvement-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--muted);
  border-radius: var(--radius-md);
}

.pa-improvement-num {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.pa-improvement-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--foreground);
}

/* Optimize Button */
.pa-optimize-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-3) var(--space-6);
  background: var(--gradient-accent);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.pa-optimize-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.pa-optimize-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Empty Results */
.pa-empty-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 300px;
  gap: var(--space-3);
}

.pa-empty-icon {
  font-size: 48px;
  color: var(--muted-foreground);
  opacity: 0.3;
}

.pa-empty-results h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--foreground);
}

.pa-empty-results p {
  margin: 0;
  font-size: 14px;
  color: var(--muted-foreground);
  max-width: 280px;
}

/* Content Planner — uses design tokens for dark mode */

.cp-page {
  padding-bottom: var(--space-8);
}

.cp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.cp-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.cp-title-icon {
  color: var(--primary);
}

.cp-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.cp-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cp-nav-btn:hover {
  background: var(--muted);
  border-color: var(--primary);
  color: var(--primary);
}

.cp-month-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
  min-width: 160px;
  text-align: center;
}

.cp-today-btn {
  padding: var(--space-1) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--foreground);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cp-today-btn:hover {
  background: var(--muted);
  border-color: var(--primary);
}

/* Calendar grid */
.cp-grid-wrapper {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.cp-weekday-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--border);
}

.cp-weekday-cell {
  padding: var(--space-3) var(--space-2);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted-foreground);
  background: var(--muted);
}

.cp-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cp-day-cell {
  min-height: 110px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-1);
  position: relative;
  transition: background var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.cp-day-cell:nth-child(7n) {
  border-right: none;
}

.cp-day-cell:hover {
  background: var(--muted);
}

.cp-day-cell.cp-other-month {
  opacity: 0.35;
}

.cp-day-cell.cp-today {
  background: var(--muted);
}

.cp-day-cell.cp-drag-over {
  background: var(--accent);
  outline: 2px dashed var(--primary);
  outline-offset: -2px;
}

.cp-day-number {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  padding: 2px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cp-day-cell.cp-today .cp-day-number span:first-child {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-full);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.cp-add-btn {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--muted-foreground);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-fast);
}

.cp-day-cell:hover .cp-add-btn {
  opacity: 1;
}

.cp-add-btn:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.cp-day-posts {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
  flex: 1;
  overflow-y: auto;
}

/* Post chip */
.cp-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  cursor: grab;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
}

.cp-chip:active {
  cursor: grabbing;
}

.cp-chip.cp-chip-dragging {
  opacity: 0.5;
}

.cp-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.cp-chip-title {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-chip-time {
  font-size: 10px;
  opacity: 0.8;
  margin-left: auto;
  flex-shrink: 0;
}

/* Add Post Modal */
.cp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: cpFadeIn var(--transition-fast) ease-out;
}

.cp-modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: cpSlideUp var(--transition-base) ease-out;
}

.cp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
}

.cp-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--foreground);
}

.cp-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  font-size: 18px;
  transition: all var(--transition-fast);
}

.cp-modal-close:hover {
  background: var(--muted);
  color: var(--foreground);
}

.cp-modal-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.cp-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.cp-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
}

.cp-field input,
.cp-field textarea,
.cp-field select {
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--muted);
  color: var(--foreground);
  font-size: 14px;
  font-family: var(--font-sans);
  transition: border-color var(--transition-fast);
}

.cp-field input:focus,
.cp-field textarea:focus,
.cp-field select:focus {
  outline: none;
  border-color: var(--primary);
}

.cp-field textarea {
  resize: vertical;
  min-height: 80px;
}

.cp-platform-options {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.cp-platform-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-2) var(--space-3);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--foreground);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cp-platform-btn:hover {
  border-color: var(--muted-foreground);
}

.cp-platform-btn.cp-platform-active {
  border-color: currentColor;
  background: var(--muted);
}

.cp-platform-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.cp-time-row {
  display: flex;
  gap: var(--space-3);
}

.cp-time-row .cp-field {
  flex: 1;
}

.cp-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
}

.cp-btn-cancel {
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--foreground);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cp-btn-cancel:hover {
  background: var(--muted);
}

.cp-btn-save {
  padding: var(--space-2) var(--space-5);
  border: none;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.cp-btn-save:hover {
  opacity: 0.9;
}

/* Post preview popup */
.cp-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: cpFadeIn var(--transition-fast) ease-out;
}

.cp-preview {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 400px;
  animation: cpSlideUp var(--transition-base) ease-out;
}

.cp-preview-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5) var(--space-3);
}

.cp-preview-platform-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.cp-preview-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  flex: 1;
}

.cp-preview-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  font-size: 16px;
}

.cp-preview-close:hover {
  background: var(--muted);
  color: var(--foreground);
}

.cp-preview-body {
  padding: 0 var(--space-5) var(--space-4);
}

.cp-preview-meta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  font-size: 13px;
  color: var(--muted-foreground);
}

.cp-preview-caption {
  font-size: 14px;
  color: var(--foreground);
  line-height: 1.6;
  background: var(--muted);
  padding: var(--space-3);
  border-radius: var(--radius-md);
}

.cp-preview-actions {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border);
}

.cp-preview-edit,
.cp-preview-delete {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cp-preview-edit {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
}

.cp-preview-edit:hover {
  background: var(--muted);
  border-color: var(--primary);
  color: var(--primary);
}

.cp-preview-delete {
  border: 1px solid var(--destructive);
  background: transparent;
  color: var(--destructive);
}

.cp-preview-delete:hover {
  background: var(--destructive);
  color: #fff;
}

/* Empty state for calendar */
.cp-empty-day {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  font-size: 11px;
  color: var(--muted-foreground);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.cp-day-cell:hover .cp-empty-day {
  opacity: 0.6;
}

/* Animations */
@keyframes cpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive */
@media (max-width: 768px) {
  .cp-page {
    padding-bottom: var(--space-4);
  }

  .cp-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
  }

  .cp-title {
    font-size: 1.15rem;
  }

  .cp-nav {
    justify-content: center;
  }

  .cp-month-label {
    font-size: 0.95rem;
    min-width: 120px;
  }

  .cp-grid-wrapper {
    border-radius: var(--radius-lg);
    overflow-x: auto;
  }

  .cp-weekday-cell {
    font-size: 10px;
    padding: var(--space-2) 1px;
  }

  .cp-day-cell {
    min-height: 52px;
    padding: 1px;
  }

  .cp-day-number {
    font-size: 11px;
    padding: 1px 3px;
  }

  .cp-day-cell.cp-today .cp-day-number span:first-child {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .cp-add-btn {
    width: 16px;
    height: 16px;
    font-size: 13px;
    opacity: 1;
  }

  .cp-chip {
    font-size: 9px;
    padding: 1px 4px;
    gap: 2px;
  }

  .cp-chip-dot {
    width: 4px;
    height: 4px;
  }

  .cp-chip-time {
    display: none;
  }

  .cp-chip-title {
    max-width: 48px;
  }

  .cp-modal {
    width: 95%;
    max-height: 85vh;
  }

  .cp-modal-header {
    padding: var(--space-3) var(--space-4);
  }

  .cp-modal-body {
    padding: var(--space-4);
    gap: var(--space-3);
  }

  .cp-modal-footer {
    padding: var(--space-3) var(--space-4);
  }

  .cp-modal-title {
    font-size: 1rem;
  }

  .cp-platform-btn {
    padding: var(--space-1) var(--space-2);
    font-size: 12px;
  }

  .cp-preview {
    width: 95%;
  }
}

@media (max-width: 480px) {
  .cp-day-cell {
    min-height: 44px;
  }

  .cp-chip-title {
    max-width: 36px;
  }

  .cp-weekday-cell {
    font-size: 9px;
  }
}

.hashtag-page-container {
  display: flex;
  padding: 2rem;
  gap: 2rem;
  background-color: #f7f8fc;
  align-items: flex-start;
  padding-top: 0;
}

.hashtag-left {
  width: 50%;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem;
}

.hashtag-right {
  width: 50%;
  position: sticky;
  top: 2rem;
}

@media (max-width: 992px) {
  .hashtag-page-container {
    flex-direction: column;
    align-items: center;
  }

  .hashtag-left{
    width: 85%;
    position: static;
  }

  .hashtag-right {
    width: 100%;
    position: static;
  }
} 
.generator-container {
  padding: 2rem 0;
  background-color: #f7f8fc;
  display: flex;
  justify-content: center;
}

.generator-card {
  background-color: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  margin: 0;
  width: 100%;
  max-width: 600px;
}

.generator-card.new-design {
  background-color: transparent;
  padding: 0;
  box-shadow: none;
}

.social-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  background-color: #f0f2f5;
  border-radius: 12px;
  padding: 6px;
}

.social-tabs button {
  background-color: transparent;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  transition: all 0.3s ease;
}

.social-tabs button.active {
  background: linear-gradient(to right, #a78bfa, #6366f1);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.social-tabs button .icon {
  margin-right: 8px;
  font-size: 1.1rem;
}

.description-label {
  text-align: left;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #333;
}

.description-textarea {
  width: 100%;
  background-color: #fff;
  border: 1px solid #d1d5db;
  min-height: 120px;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  resize: none;
  box-sizing: border-box;
}

.new-design .description-textarea {
  background-color: #fff;
  border: 1px solid #d1d5db;
  min-height: 120px;
}

.generate-button {
  background: linear-gradient(to right, #8b5cf6, #6366f1);
  color: white;
  border: none;
  padding: 1rem 0;
  font-size: 1.1rem;
  border-radius: 12px;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.generate-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(167, 139, 250, 0.4);
}

.generate-button .icon {
  margin-right: 8px;
}

.settings-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.7rem;
}

.setting-group {
  margin-bottom: 1.5rem;
}

.setting-label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 1rem;
}

.platform-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.platform-tabs button {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80px;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s ease;
  cursor: pointer;
}

.platform-tabs button .icon {
  margin-right: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.platform-tabs button.active {
  border-color: #8b5cf6;
  color: #8b5cf6;
  background-color: #f5f3ff;
  transform: scale(1.05);
  box-shadow: none;
}

.language-tabs {
  display: flex;
  gap: 1rem;
}

.language-tabs button {
  background-color: #f3f4f6;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s ease;
  cursor: pointer;
}

.language-tabs button.active {
  background-color: #8b5cf6;
  color: #fff;
  transform: scale(1);
}

@media (max-width: 768px) {
  .generator-container {
    padding: 1rem;
    background-color: transparent;
  }

  .social-tabs {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .social-tabs button {
    padding: 10px 16px;
    font-size: 0.9rem;
    margin: 4px;
  }
  .platform-tabs button {
    padding: 0.5rem;
    height: 70PX;
  }
} 
