:root {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --bg-main: #09090b; /* zinc-950 */
  --surface: #18181b; /* zinc-900 */
  --surface-hover: #27272a; /* zinc-800 */
  --border-light: #27272a;
  --border-focus: #3f3f46;
  --text-primary: #f4f4f5; /* zinc-50 */
  --text-secondary: #a1a1aa; /* zinc-400 */
  --text-muted: #71717a; /* zinc-500 */
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --success: #10b981;
  --transition-fast: 0.15s ease;
  
  --font-xs: 11px;
  --font-sm: 12px;
  --font-base: 13px;
  --font-lg: 14px;
  --font-xl: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-size: var(--font-base);
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main); 
}
::-webkit-scrollbar-thumb {
  background: var(--surface-hover); 
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-focus); 
}

/* Header */
header {
  height: 52px;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  background-color: var(--bg-main);
  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 {
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  z-index: 50;
}

.header-logo {
  height: 52px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  vertical-align: middle;
  transform-origin: left center;
  filter: contrast(1.1);
  /* The giant scale(3.6) and mix-blend-mode were causing the artifact and click-blocking issues */
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* GNB */
.gnb {
  display: flex;
  gap: 0.5rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.gnb a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--font-sm);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.gnb a:hover {
  color: var(--text-primary);
  background-color: var(--surface-hover);
}

.gnb a.active {
  color: var(--primary);
  background-color: rgba(59, 130, 246, 0.1);
}

.gnb-dropdown {
  position: relative;
  display: inline-block;
}

.gnb-dropdown-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font: inherit;
  font-weight: 500;
  font-size: var(--font-sm);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  border-radius: 4px;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.gnb-dropdown-toggle:hover {
  color: var(--text-primary);
  background-color: var(--surface-hover);
}

.gnb-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  min-width: 160px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}

.gnb-dropdown-menu.hidden {
  display: none !important;
}

.gnb-dropdown-menu a {
  padding: 0.5rem 1rem;
  border-radius: 0;
  display: block;
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

.gnb-dropdown-menu a:hover {
  background-color: var(--surface-hover);
  text-decoration: none;
}

.sso-avatar {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background-color: var(--surface-hover);
  border: 1px solid var(--border-focus);
  cursor: pointer;
}

/* Buttons */
button {
  cursor: pointer;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 500;
  font-size: var(--font-sm);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.btn {
  padding: 0.4rem 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn.primary {
  background-color: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background-color: var(--primary-hover);
}

@keyframes login-glow {
  0% {
    box-shadow: 0 0 5px 2px rgba(59, 130, 246, 0.2);
  }
  100% {
    box-shadow: 0 0 15px 5px rgba(59, 130, 246, 0.6);
  }
}

#login-btn {
  animation: login-glow 2s infinite alternate ease-in-out;
}

.btn.danger {
  background-color: transparent;
  color: var(--danger);
  border: 1px solid var(--border-light);
}

.btn.danger:hover {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
}

.btn.secondary {
  background-color: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn.secondary:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-focus);
}

.btn-promo-login {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-promo-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.btn-promo-login svg {
  transition: transform 0.3s ease;
}
.btn-promo-login:hover svg {
  transform: translateX(4px);
}

.btn.premium {
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  color: #fff;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 14px 0 rgba(168, 85, 247, 0.2);
  transition: all 0.2s ease;
}

.btn.premium:hover {
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
  transform: translateY(-1px);
}

/* Toolbar */
.toolbar {
  padding: 0.75rem 1.5rem 0 1.5rem;
  display: flex;
  justify-content: flex-end;
  height: 48px;
  align-items: center;
}

/* Main Grid */
.grid-container {
  padding: 1rem 1.5rem 2rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem;
  flex: 1;
}

@media (max-width: 1400px) {
  .grid-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .grid-container {
    padding: 1rem;
    grid-template-columns: 1fr;
  }
}

/* Section Cards */
.section-card {
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  height: max-content;
  transition: border-color var(--transition-fast);
  break-inside: avoid;
  margin-bottom: 1rem;
}

.section-card:hover {
  border-color: var(--border-focus);
}

.section-header {
  padding: 0.6rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  background-color: rgba(24, 24, 27, 0.8);
}

.section-title h3 {
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Badges */
.keyword-badges {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.badge {
  background-color: var(--surface-hover);
  color: var(--text-secondary);
  font-size: var(--font-xs);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-focus);
  white-space: nowrap;
}

/* Icons */
.icon-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.2rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background-color: var(--surface-hover);
  color: var(--text-primary);
}

.collapse-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.collapsed .collapse-icon {
  transform: rotate(180deg);
}

/* Articles List */
.articles-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.article-item {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  color: inherit;
  transition: background-color var(--transition-fast);
}

.article-item:hover {
  background-color: var(--surface-hover);
}

.article-item:last-child {
  border-bottom: none;
}

.article-title {
  font-size: var(--font-sm);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.article-meta {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

/* Section Footer */
.section-footer {
  padding: 0.4rem 0.75rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-xs);
  color: var(--text-muted);
  background-color: var(--bg-main);
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.update-status {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.update-status::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--success);
}

/* Articles Table View Filters */
.articles-toolbar {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--surface);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-input, .filter-select {
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--font-sm);
  transition: border-color var(--transition-fast);
  width: 100%;
}

.filter-input:focus, .filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Articles Table View */
.articles-table-container {
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow-x: auto;
}

.articles-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
}

.articles-table th, .articles-table td {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border-light);
}

.articles-table th {
  background-color: rgba(24, 24, 27, 0.8);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--font-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.articles-table td {
  font-size: var(--font-sm);
  color: var(--text-primary);
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.articles-table tr:hover td {
  background-color: var(--surface-hover);
}

.articles-table tr:last-child td {
  border-bottom: none;
}

.articles-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
  margin: 0;
}

.col-keyword {
  color: var(--text-secondary);
}

.keyword-chip {
  display: inline-block;
  background-color: var(--surface-hover);
  color: var(--text-primary);
  font-size: var(--font-xs);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid var(--border-focus);
  white-space: nowrap;
}

.col-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.col-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.col-title a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.col-summary {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
  font-size: var(--font-xs);
}

.col-preview {
  max-width: 450px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.4s ease;
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

.modal-content {
  background: linear-gradient(150deg, rgba(30, 30, 35, 0.85) 0%, rgba(15, 15, 18, 0.95) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  padding: 2.5rem;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 30px 60px -15px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(99, 102, 241, 0.15);
  transform: scale(1) translateY(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}

.modal.hidden .modal-content {
  transform: scale(0.9) translateY(20px);
}

.markdown-content {
  font-family: inherit;
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-height: 60vh;
  overflow-y: auto;
  color: #f8fafc;
  line-height: 1.6;
}
.markdown-content ul, .markdown-content ol {
  white-space: normal;
}
.markdown-content h3 {
  color: #60a5fa;
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.modal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #9ca3af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 1.2rem;
  display: flex;
  align-items: center;
}

.form-group {
  margin-bottom: 1.25rem;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--surface-hover);
  transition: .4s;
  border-radius: 24px;
  border: 1px solid var(--border-focus);
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-secondary);
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--primary);
  border-color: var(--primary);
}
input:checked + .slider:before {
  transform: translateX(20px);
  background-color: #fff;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  /* text-transform: uppercase; */
  /* letter-spacing: 0.03em; */
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  background-color: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6366f1;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), inset 0 2px 4px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.keyword-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.form-actions .btn {
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hidden {
  display: none !important;
}

/* Section Divider */
.section-divider {
  grid-column: 1 / -1;
  width: 100%;
  padding-bottom: 0.5rem;
  margin: 1.5rem 0 0.5rem 0;
  border-bottom: 2px solid var(--border-focus);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-divider-title {
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}



/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 9999;
  pointer-events: none;
  align-items: center;
}

.global-toast {
  background-color: rgba(24, 24, 27, 0.9);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(20px);
  border: 1px solid var(--border-focus);
  font-size: var(--font-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto; /* Allow interaction if needed, though container is none */
}

.global-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-icon svg {
  width: 16px;
  height: 16px;
}

.toast-message {
  line-height: 1.4;
}
/* Footer */
.app-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: auto;
  font-size: 10px; /* very small text as requested */
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-main);
}

.footer-links {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.app-footer .disclaimer {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
}

/* Promo Banner Revamp */
.promo-banner {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  color: var(--text-primary);
  background: transparent;
  font-family: 'Pretendard', 'Inter', sans-serif;
}

.promo-banner.hidden {
  display: none !important;
}

.promo-hero {
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.15), transparent 70%);
}

.promo-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.promo-hero h2 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.highlight-text {
  background: linear-gradient(135deg, #60a5fa, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.promo-hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}

.premium-btn {
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(126, 34, 206, 0.4);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.premium-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(126, 34, 206, 0.6);
  background: linear-gradient(135deg, #4338ca, #7e22ce);
}

.outline-btn {
  background: transparent;
  color: white;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}
.outline-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.4);
}

.promo-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
}

.glass-panel-promo {
  background: rgba(24, 24, 27, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel-promo:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
  border-color: rgba(168, 85, 247, 0.3);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.glass-panel-promo h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #f3f4f6;
}

.glass-panel-promo p {
  color: #9ca3af;
  line-height: 1.6;
}

.promo-usecases {
  padding: 4rem 2rem;
  background: rgba(0,0,0,0.2);
  text-align: center;
  border-radius: 24px;
  margin: 0 2rem;
}

.section-title-promo {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #f3f4f6;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: left;
}

.usecase-item {
  padding: 0 1rem;
}

.usecase-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #e5e7eb;
}

.usecase-item p {
  color: #9ca3af;
  line-height: 1.6;
  font-size: 0.95rem;
}

.promo-cta {
  padding: 6rem 2rem;
  text-align: center;
}

.promo-cta h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .promo-hero h2 {
    font-size: 2.5rem;
  }
  .promo-hero p {
    font-size: 1.1rem;
  }
  .promo-usecases {
    margin: 0;
    border-radius: 0;
  }
}

/* Spinner Loader */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--text-secondary);
  gap: 1rem;
}

/* Global Loader Overlay */
.global-loader-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.global-loader-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.global-loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

.global-loader-text {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* FAB Styles */
.fab-container {
  position: fixed;
  top: 70px;
  right: 30px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
@media (max-width: 768px) {
  .fab-container {
    top: 64px;
    right: 24px;
  }
}

.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s, box-shadow 0.2s;
}

.fab-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.fab-btn.active .fab-icon {
  transform: rotate(45deg);
}

.fab-icon {
  transition: transform 0.3s ease;
}

.fab-menu {
  position: absolute;
  top: 68px; /* Below the FAB */
  right: 0;
  background-color: rgba(24, 24, 27, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  min-width: 120px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (max-width: 768px) {
  .fab-menu {
    top: 68px;
  }
}

.fab-menu:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fab-menu-item {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  text-align: left;
  border-radius: 8px;
  font-size: var(--font-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
}

.fab-menu-item:hover {
  background-color: var(--surface-hover);
}

/* Intro Background */
#intro-view {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 48px); /* Ensure it covers full height under header */
}

#intro-view::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/intro-bg.png') no-repeat center center;
  background-size: cover;
  opacity: 0.25;
  z-index: -1;
}

@keyframes star-wars-crawl {
  0% { transform: translateY(0); }
  100% { transform: translateY(-150%); }
}

/* Custom Alert & Confirm Modals */
.custom-alert-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-alert-overlay.show {
  opacity: 1;
}

.custom-alert-content {
  background: linear-gradient(150deg, rgba(30, 30, 35, 0.9) 0%, rgba(15, 15, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 25px 50px -12px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(99, 102, 241, 0.1);
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  text-align: center;
}

.custom-alert-overlay.show .custom-alert-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.custom-alert-message {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.custom-alert-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.custom-alert-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-alert-btn-cancel {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-focus);
}

.custom-alert-btn-cancel:hover {
  background-color: var(--surface-hover);
  color: var(--text-primary);
}

.custom-alert-btn-confirm {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* Premium Modal */
.premium-modal-content {
  background: linear-gradient(150deg, rgba(20, 20, 24, 0.95) 0%, rgba(10, 10, 12, 0.98) 100%);
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 25px 50px -12px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(168, 85, 247, 0.15);
}

.premium-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 1.5rem;
}

.premium-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.premium-icon-circle svg {
  color: #c084fc;
}

.premium-modal-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #d8b4fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.premium-modal-body {
  text-align: left;
}

.quota-info {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.quota-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.quota-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.quota-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.quota-value {
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  text-align: right;
  min-width: 60px;
}

.premium-skeleton {
  height: 20px;
  width: 50px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.premium-instruction {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 1.5rem;
}

.premium-instruction strong {
  color: #e879f9;
  font-weight: 600;
}

.custom-alert-btn-confirm:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

/* Curation 4-Column Layouts */
.curation-fourcol-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: start;
  gap: 1.5rem;
}

@media (max-width: 1400px) {
  .curation-fourcol-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1024px) {
  .curation-fourcol-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .curation-fourcol-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Curation Hero Banner */
.curation-hero-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.95) 0%, rgba(8, 12, 30, 1) 100%);
  border: 1px solid rgba(255,255,255,0.06);
}

/* Animated canvas background */
.curation-hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  border-radius: 20px;
}

.curation-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.curation-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.35;
  background: linear-gradient(to right, #ffffff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  word-break: keep-all;
}

.curation-hero-desc {
  color: #9ca3af;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  word-break: keep-all;
}

.curation-hero-actions .btn {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.curation-hero-decoration {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  pointer-events: none;
  z-index: 1;
}

.curation-deco-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.curation-deco-shape.shape-1 {
  width: 300px;
  height: 300px;
  background: rgba(168, 85, 247, 0.4);
  top: -100px;
  right: -50px;
}

.curation-deco-shape.shape-2 {
  width: 250px;
  height: 250px;
  background: rgba(59, 130, 246, 0.3);
  bottom: -80px;
  right: 150px;
}

.curation-deco-shape.shape-3 {
  width: 200px;
  height: 200px;
  background: rgba(236, 72, 153, 0.2); /* pinkish */
  top: 50px;
  left: 50px;
  filter: blur(80px);
}

/* =====================================================
   CURATION DETAIL – Hero & Sections
===================================================== */

/* Thin hero banner */
.cdetail-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  flex-shrink: 0;
}

/* Blurred thumbnail background */
.cdetail-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
  transition: background-image 0.4s ease;
}

/* Dark gradient overlay for readability */
.cdetail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(9, 9, 11, 0.95) 0%,
    rgba(9, 9, 11, 0.7) 40%,
    rgba(9, 9, 11, 0.2) 100%
  );
  z-index: 1;
}

/* Content row inside hero */
.cdetail-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.5rem 5.5rem;
}

.cdetail-hero-left {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}

/* Back button */
.cdetail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.3rem;
  transition: background 0.2s, color 0.2s;
}

.cdetail-back-btn.icon-only {
  padding: 0;
  width: 36px;
  height: 36px;
  justify-content: center;
  border-radius: 8px; /* Slightly rounder for icon */
}

.cdetail-back-btn:hover {
  background: rgba(255,255,255,0.14);
  color: #f4f4f5;
}

/* Text block in hero */
.cdetail-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.cdetail-hero-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #f4f4f5;
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cdetail-hero-desc {
  font-size: 0.88rem;
  color: #a1a1aa;
  margin: 0;
  line-height: 1.5;
  max-width: 640px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cdetail-hero-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.cdetail-avatar-wrap {
  display: flex;
  align-items: center;
  color: #60a5fa;
}

.cdetail-creator-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #60a5fa;
}

.cdetail-dot {
  color: #3f3f46;
  font-size: 0.8rem;
}

.cdetail-date-text {
  font-size: 0.8rem;
  color: #71717a;
}

/* Action buttons in hero */
.cdetail-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Sections grid – fixed width layout */
.cdetail-sections-grid {
  padding: 1.5rem 5.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem;
  flex: 1;
}

.cdetail-action-row {
  padding: 0 5.5rem;
}

@media (max-width: 1400px) {
  .cdetail-sections-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .cdetail-sections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Section cards in curation detail – lighter, no thick border */
.cdetail-sections-grid .section-card {
  background-color: rgba(24, 24, 27, 0.7);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  backdrop-filter: blur(4px);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
}

.cdetail-sections-grid .section-card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Divider labels in curation detail */
.cdetail-sections-grid .section-divider {
  grid-column: 1 / -1;
  border-bottom-color: rgba(255,255,255,0.07);
}

@media (max-width: 768px) {
  .cdetail-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 3.5rem;
  }
  .cdetail-nav-arrow {
    width: 36px;
    height: 36px;
  }
  .cdetail-nav-arrow.left-arrow { left: 0.5rem; }
  .cdetail-nav-arrow.right-arrow { right: 0.5rem; }
  .cdetail-hero-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .cdetail-hero-title {
    font-size: 1.25rem;
  }
  .cdetail-action-row {
    padding: 0 3.5rem;
  }
  .cdetail-sections-grid {
    padding: 1rem 3.5rem 3rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.cdetail-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cdetail-nav-arrow:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.05);
}
.cdetail-nav-arrow.left-arrow { left: 1.5rem; }
.cdetail-nav-arrow.right-arrow { right: 1.5rem; }

/* Promo Page (Intro) Overrides & Additions */
.promo-hero { text-align: center; padding: 12rem 1.5rem 8rem; }
.promo-badge { font-size: 0.8rem; background: rgba(59, 130, 246, 0.1); color: #60a5fa; padding: 0.25rem 0.75rem; border-radius: 99px; margin-bottom: 1rem; display: inline-block; border: 1px solid rgba(59, 130, 246, 0.3); }
.promo-hero h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.highlight-text { background: linear-gradient(135deg, #60a5fa, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.promo-hero p { font-size: 1.1rem; color: #a1a1aa; margin-bottom: 2rem; }
.btn-promo-login { padding: 0.75rem 1.5rem; border-radius: 99px; font-size: 1rem; cursor: pointer; border: none; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s; }
.btn-promo-login.outline-btn { background: transparent; border: 1px solid var(--border-light); color: white; }
.btn-promo-login.outline-btn:hover { background: rgba(255,255,255,0.05); }

/* Process section */
.promo-process-wrapper { padding: 4rem 1.5rem; max-width: 1000px; margin: 0 auto 6rem; }
.section-title-promo { text-align: center; font-size: 1.75rem; font-weight: 700; margin-bottom: 2.5rem; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
@media(max-width: 768px) { .process-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.process-step-card { text-align: center; padding: 2rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; position: relative; z-index: 2; transition: transform 0.2s; }
.process-step-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.04); }
.process-icon { font-size: 2rem; margin-bottom: 1rem; display: inline-flex; width: 64px; height: 64px; background: rgba(59,130,246,0.1); border-radius: 50%; align-items: center; justify-content: center; }
.process-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; color: #e4e4e7; }
.process-desc { font-size: 0.95rem; color: #a1a1aa; line-height: 1.5; }

/* Mockup section */
.promo-mockup-wrapper { max-width: 900px; margin: 0 auto 3rem; padding: 0 1.5rem; }
.browser-mockup { background: #18181b; border: 1px solid #27272a; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.browser-header { background: #27272a; padding: 0.5rem 1rem; display: flex; gap: 0.5rem; align-items: center; }
.browser-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.browser-dot:nth-child(2) { background: #f59e0b; }
.browser-dot:nth-child(3) { background: #10b981; }
.browser-content { position: relative; background: #09090b; }
.mockup-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(9,9,11,1) 0%, rgba(9,9,11,0) 30%); pointer-events: none;}

/* Feature / Compare Grid */
.promo-compare-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 1000px; margin: 0 auto 8rem; padding: 0 1.5rem; }
@media(max-width: 768px) { .promo-compare-wrapper { grid-template-columns: 1fr; } }
.compare-card { padding: 2.5rem; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }
.compare-card.watchroom { background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(0,0,0,0)); }
.compare-card.curation { background: linear-gradient(135deg, rgba(168,85,247,0.1), rgba(0,0,0,0)); }
.compare-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; color: #fff; }
.compare-desc { font-size: 1rem; color: #a1a1aa; line-height: 1.6; }

/* FAQ section */
.promo-faq-wrapper { max-width: 800px; margin: 0 auto 8rem; padding: 0 1.5rem; }
.faq-item { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; margin-bottom: 1rem; padding: 1.25rem 1.5rem; }
.faq-q { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; color: #e4e4e7; }
.faq-a { font-size: 0.95rem; color: #9ca3af; line-height: 1.5; }

/* Stats Bar */
.promo-stats-bar { display: flex; justify-content: center; gap: 5rem; padding: 2.5rem 1.5rem; background: rgba(24,24,27,0.5); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 4rem; }
  line-height: 1.5;
  max-width: 640px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cdetail-hero-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.cdetail-avatar-wrap {
  display: flex;
  align-items: center;
  color: #60a5fa;
}

.cdetail-creator-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #60a5fa;
}

.cdetail-dot {
  color: #3f3f46;
  font-size: 0.8rem;
}

.cdetail-date-text {
  font-size: 0.8rem;
  color: #71717a;
}

/* Action buttons in hero */
.cdetail-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Sections grid – fixed width layout */
.cdetail-sections-grid {
  padding: 1.5rem 5.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem;
  flex: 1;
}

.cdetail-action-row {
  padding: 0 5.5rem;
}

@media (max-width: 1400px) {
  .cdetail-sections-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .cdetail-sections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Section cards in curation detail – lighter, no thick border */
.cdetail-sections-grid .section-card {
  background-color: rgba(24, 24, 27, 0.7);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  backdrop-filter: blur(4px);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
}

.cdetail-sections-grid .section-card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Divider labels in curation detail */
.cdetail-sections-grid .section-divider {
  grid-column: 1 / -1;
  border-bottom-color: rgba(255,255,255,0.07);
}

@media (max-width: 768px) {
  .cdetail-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 3.5rem;
  }
  .cdetail-nav-arrow {
    width: 36px;
    height: 36px;
  }
  .cdetail-nav-arrow.left-arrow { left: 0.5rem; }
  .cdetail-nav-arrow.right-arrow { right: 0.5rem; }
  .cdetail-hero-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .cdetail-hero-title {
    font-size: 1.25rem;
  }
  .cdetail-action-row {
    padding: 0 3.5rem;
  }
  .cdetail-sections-grid {
    padding: 1rem 3.5rem 3rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.cdetail-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cdetail-nav-arrow:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.05);
}
.cdetail-nav-arrow.left-arrow { left: 1.5rem; }
.cdetail-nav-arrow.right-arrow { right: 1.5rem; }

/* Promo Page (Intro) Overrides & Additions */
.promo-hero { text-align: center; padding: 12rem 1.5rem 8rem; }
.promo-badge { font-size: 0.8rem; background: rgba(59, 130, 246, 0.1); color: #60a5fa; padding: 0.25rem 0.75rem; border-radius: 99px; margin-bottom: 1rem; display: inline-block; border: 1px solid rgba(59, 130, 246, 0.3); }
.promo-hero h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.highlight-text { background: linear-gradient(135deg, #60a5fa, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.promo-hero p { font-size: 1.1rem; color: #a1a1aa; margin-bottom: 2rem; }
.btn-promo-login { padding: 0.75rem 1.5rem; border-radius: 99px; font-size: 1rem; cursor: pointer; border: none; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s; }
.btn-promo-login.outline-btn { background: transparent; border: 1px solid var(--border-light); color: white; }
.btn-promo-login.outline-btn:hover { background: rgba(255,255,255,0.05); }

/* Process section */
.promo-process-wrapper { padding: 4rem 1.5rem; max-width: 1000px; margin: 0 auto 6rem; }
.section-title-promo { text-align: center; font-size: 1.75rem; font-weight: 700; margin-bottom: 2.5rem; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
@media(max-width: 768px) { .process-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.process-step-card { text-align: center; padding: 2rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; position: relative; z-index: 2; transition: transform 0.2s; }
.process-step-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.04); }
.process-icon { font-size: 2rem; margin-bottom: 1rem; display: inline-flex; width: 64px; height: 64px; background: rgba(59,130,246,0.1); border-radius: 50%; align-items: center; justify-content: center; }
.process-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; color: #e4e4e7; }
.process-desc { font-size: 0.95rem; color: #a1a1aa; line-height: 1.5; }

/* Mockup section */
.promo-mockup-wrapper { max-width: 900px; margin: 0 auto 3rem; padding: 0 1.5rem; }
.browser-mockup { background: #18181b; border: 1px solid #27272a; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.browser-header { background: #27272a; padding: 0.5rem 1rem; display: flex; gap: 0.5rem; align-items: center; }
.browser-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.browser-dot:nth-child(2) { background: #f59e0b; }
.browser-dot:nth-child(3) { background: #10b981; }
.browser-content { position: relative; background: #09090b; }
.mockup-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(9,9,11,1) 0%, rgba(9,9,11,0) 30%); pointer-events: none;}

/* Feature / Compare Grid */
.promo-compare-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 1000px; margin: 0 auto 8rem; padding: 0 1.5rem; }
@media(max-width: 768px) { .promo-compare-wrapper { grid-template-columns: 1fr; } }
.compare-card { padding: 2.5rem; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }
.compare-card.watchroom { background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(0,0,0,0)); }
.compare-card.curation { background: linear-gradient(135deg, rgba(168,85,247,0.1), rgba(0,0,0,0)); }
.compare-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; color: #fff; }
.compare-desc { font-size: 1rem; color: #a1a1aa; line-height: 1.6; }

/* FAQ section */
.promo-faq-wrapper { max-width: 800px; margin: 0 auto 8rem; padding: 0 1.5rem; }
.faq-item { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; margin-bottom: 1rem; padding: 1.25rem 1.5rem; }
.faq-q { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; color: #e4e4e7; }
.faq-a { font-size: 0.95rem; color: #9ca3af; line-height: 1.5; }

/* Stats Bar */
.promo-stats-bar { display: flex; justify-content: center; gap: 5rem; padding: 2.5rem 1.5rem; background: rgba(24,24,27,0.5); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 4rem; }
@media(max-width: 600px) { .promo-stats-bar { gap: 2rem; text-align: center; flex-wrap: wrap; } }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 2.2rem; font-weight: 700; background: linear-gradient(135deg, #fff, #9ca3af); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 0.25rem;}
.stat-label { font-size: 0.9rem; color: #71717a; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

.promo-cta { text-align: center; padding: 6rem 1.5rem 8rem; }

/* Global Skeleton Loading Overlay */
#global-loader {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#global-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

@keyframes skeleton-pulse {
  0% { background-color: rgba(255, 255, 255, 0.03); }
  50% { background-color: rgba(255, 255, 255, 0.08); }
  100% { background-color: rgba(255, 255, 255, 0.03); }
}

.skeleton {
  animation: skeleton-pulse 1.5s infinite ease-in-out;
  border-radius: 4px;
}
.skeleton-title { height: 28px; width: 250px; max-width: 40%; border-radius: 6px; }
.skeleton-search { height: 40px; width: 200px; max-width: 30%; border-radius: 8px; }
.skeleton-item { height: 60px; width: 100%; border-radius: 8px; }
