:root {
  --bg-dark: #090d16;
  --card-bg: #111726;
  --card-inner: #0b101c;
  --border-color: #1e293f;
  --border-focus: #4f46e5;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --accent-pink: #ec4899;
  --accent-gradient: linear-gradient(135deg, #ec4899, #8b5cf6, #3b82f6);
  --success: #10b981;
  --danger: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius-lg: 16px;
  --radius-md: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: #ffffff;
  text-decoration: none;
}

.app-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

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

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.logo-icon svg {
  width: 24px;
  height: 24px;
}

.brand-text h1 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-text h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.version-tag {
  font-size: 0.7rem;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.45);
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin-right: 6px;
  letter-spacing: 0.5px;
  font-weight: 700;
  display: inline-block;
}

.brand-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  gap: 8px;
  background: #0d1322;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.tab-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
}

.engine-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  color: #34d399;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

/* 2-Column Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Right Pane: Inputs */
.right-pane {
  position: sticky;
  top: 20px;
}

.input-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.header-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.header-title-row h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.auto-line-badge {
  font-size: 0.72rem;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 18px;
  line-height: 1.45;
}

.textarea-container {
  position: relative;
  margin-bottom: 16px;
}

.textarea-container textarea {
  width: 100%;
  background: var(--card-inner);
  border: 1px solid #23304a;
  border-radius: var(--radius-md);
  padding: 14px;
  padding-bottom: 38px;
  color: white;
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  font-family: 'Inter', 'Cairo', monospace;
  line-height: 1.6;
  direction: ltr;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.textarea-container textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.textarea-footer {
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.count-badge {
  font-size: 0.75rem;
  background: #1e293b;
  color: #94a3b8;
  padding: 2px 8px;
  border-radius: 4px;
}

.clear-btn {
  pointer-events: auto;
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s;
}

.clear-btn:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* Quick Samples */
.quick-samples {
  margin-bottom: 20px;
}

.sample-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 6px;
}

.sample-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sample-chip {
  background: #151d2f;
  border: 1px solid #25334d;
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  text-align: right;
  cursor: pointer;
  transition: all 0.2s;
}

.sample-chip:hover {
  background: #202d45;
  color: white;
  border-color: #3b82f6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
  justify-content: center;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid #334155;
}

.btn-secondary:hover {
  background: #334155;
}

.btn-danger {
  background: #dc2626;
  color: white;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-outline-danger {
  background: transparent;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

.btn-success {
  background: #059669;
  color: white;
  border: 1px solid #10b981;
  font-weight: 600;
}

.btn-success:hover {
  background: #10b981;
  transform: translateY(-1px);
}

.btn-warning {
  background: #6366f1;
  color: white;
  border: 1px solid #818cf8;
  font-weight: 600;
}

.btn-warning:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.btn-primary.btn-completed-state {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-color: #34d399 !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.45) !important;
  color: #ffffff !important;
  transform: scale(1.01);
  transition: all 0.3s ease;
}

.btn-primary.btn-completed-state:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.6) !important;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

/* Queue Progress */
.queue-tracker {
  margin-top: 20px;
  background: var(--card-inner);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.status-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.progress-percent {
  font-weight: 700;
  color: #818cf8;
  font-size: 0.9rem;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

.tracker-actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

/* Left Pane: Results */
.left-pane {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 520px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.results-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.results-info h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.naming-notice {
  font-size: 0.82rem;
  color: #38bdf8;
  margin-top: 3px;
}

.naming-notice code {
  background: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
  color: #f472b6;
  font-weight: bold;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 14px;
  opacity: 0.6;
}

.empty-state h3 {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.empty-state p {
  max-width: 440px;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Results Title Row & View Badge */
.results-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-mode-badge {
  font-size: 0.76rem;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 600;
}

/* Group Pagination Bar for 5 vs 5 */
.group-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--card-inner);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 16px;
}

.group-nav-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.group-indicator-pill {
  font-size: 0.85rem;
  color: #38bdf8;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.group-range-text {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.group-nav-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.group-page-btn {
  background: #141c2c;
  color: #cbd5e1;
  border: 1px solid #23304a;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.group-page-btn:hover {
  background: #1e293b;
  border-color: #3b4d75;
  color: white;
}

.group-page-btn.active {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  border-color: #c084fc;
  color: white;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

.group-nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Cards List & 5 vs 5 Grid */
.cards-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cards-list.grid-5v5 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

@media (max-width: 1200px) {
  .cards-list.grid-5v5 {
    grid-template-columns: 1fr;
  }
}

.profile-card {
  background: var(--card-inner);
  border: 1px solid #1f2b42;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.profile-card:hover {
  transform: translateY(-2px);
  border-color: #3b4d75;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.profile-card.error-card {
  border-color: rgba(239, 68, 68, 0.35);
  background: #170f13;
}

/* Avatar Column: Avatar is the largest element, with download button directly under it */
.card-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 125px;
}

.card-avatar-col .avatar-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.card-avatar-col .avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #3b4675;
  transition: transform 0.25s, border-color 0.25s;
  display: block;
}

.card-avatar-col .avatar-wrapper:hover .avatar-img {
  transform: scale(1.06);
  border-color: #ec4899;
}

.card-avatar-col .zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  color: white;
  pointer-events: none;
}

.card-avatar-col .avatar-wrapper:hover .zoom-overlay {
  opacity: 1;
}

.avatar-failed {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #3b1820;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(239, 68, 68, 0.5);
}

.avatar-failed-icon {
  color: #ef4444;
  font-weight: 800;
  font-size: 2.2rem;
}

.avatar-action-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 6px;
}

.avatar-action-wrap .action-btn-group {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.avatar-action-wrap .btn-primary {
  flex-grow: 1;
  padding: 6px 6px;
  font-size: 0.76rem;
  font-weight: 600;
  justify-content: center;
  white-space: nowrap;
}

.avatar-action-wrap .btn-check-indicator {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.avatar-action-wrap .btn-retry-card {
  width: 100%;
  justify-content: center;
  font-size: 0.78rem;
  padding: 6px 8px;
}

.avatar-action-wrap .filename-preview {
  font-size: 0.72rem;
  color: var(--text-dim);
  direction: ltr;
  text-align: center;
  word-break: break-all;
  max-width: 125px;
}

/* Data Column on the Left: Neatly aligned and organized */
.card-details-col {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
  gap: 8px;
}

.card-details-col .ig-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Universal Username Link: Pure White */
.ig-username,
a.ig-username,
.table-username-link,
.history-table td a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 700;
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.ig-username:hover,
a.ig-username:hover,
.table-username-link:hover,
.history-table td a:hover {
  color: #38bdf8 !important;
  text-decoration: underline !important;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.card-details-col .ig-username {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff !important;
  text-decoration: none !important;
  direction: ltr;
  unicode-bidi: isolate;
}

.card-details-col .ig-username:hover {
  color: #38bdf8 !important;
}

.card-details-col .ig-fullname {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
}

.card-details-col .ig-stats-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  flex-wrap: wrap;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: 8px;
  width: fit-content;
}

.card-details-col .ig-stat-item {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-details-col .ig-stat-num {
  font-weight: 700;
  color: #ffffff;
}

.card-details-col .ig-bio {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.45;
  white-space: pre-line;
  word-break: break-word;
  max-height: 55px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-details-col .ig-specs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.chip-error {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}

.error-msg-text {
  color: #f87171;
  font-size: 0.85rem;
  background: rgba(239, 68, 68, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Specific 5 vs 5 compact optimizations (when accounts > 10) */
.cards-list.grid-5v5 .profile-card {
  padding: 12px 14px;
  gap: 14px;
}

.cards-list.grid-5v5 .card-avatar-col {
  width: 95px;
}

.cards-list.grid-5v5 .avatar-wrapper,
.cards-list.grid-5v5 .avatar-failed {
  width: 88px;
  height: 88px;
}

.cards-list.grid-5v5 .card-details-col {
  gap: 6px;
}

.cards-list.grid-5v5 .card-details-col .ig-username {
  font-size: 1.05rem;
}

.cards-list.grid-5v5 .card-details-col .ig-stats-row {
  font-size: 0.8rem;
  gap: 10px;
  padding: 4px 8px;
}

.cards-list.grid-5v5 .card-details-col .ig-bio {
  max-height: 38px;
  font-size: 0.78rem;
}

.cards-list.grid-5v5 .stat-chip {
  font-size: 0.72rem;
  padding: 2px 7px;
}

.stat-chip {
  font-size: 0.76rem;
  padding: 3px 10px;
  border-radius: 6px;
  background: #141c2c;
  color: #cbd5e1;
  border: 1px solid #212c44;
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chip-status {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
  font-weight: 600;
  direction: rtl;
}

.chip-status.changed {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border-color: rgba(139, 92, 246, 0.35);
}

.chip-res {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-weight: 600;
}

/* Distinct color for file size */
.chip-size-distinct {
  background: rgba(236, 72, 153, 0.16);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.4);
  font-weight: 700;
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.15);
}

.action-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.action-btn-group .btn-primary {
  flex-grow: 1;
}

.btn-check-indicator {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.btn-check-indicator:hover {
  border-color: #10b981;
  color: #10b981;
}

.btn-check-indicator.active {
  background: #10b981;
  color: white;
  border-color: #059669;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
}

.btn-downloaded {
  background: #059669 !important;
  border-color: #10b981 !important;
  color: white !important;
}

.btn-zoom-action {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
}

.btn-zoom-action:hover {
  background: #334155;
  border-color: #64748b;
}

.btn-table-refresh {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  cursor: pointer;
  transition: all 0.2s;
  animation: pulseCyan 2s infinite ease-in-out;
}

@keyframes pulseCyan {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.btn-table-refresh:hover {
  background: #0284c7;
  color: #fff;
  transform: translateY(-1px);
}

.badge-updated {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.spinner-inline {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

.table-action-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon-sm {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #1e293b;
  border: 1px solid #334155;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon-sm:hover {
  background: #334155;
  border-color: #64748b;
}

.filename-preview {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
}

/* History Table View */
.history-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.history-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.history-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.history-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
  transition: all 0.2s ease;
}

.history-count-pill strong {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.history-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.history-search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 250px;
  background: var(--input-bg, #0b1120);
  border: 1px solid var(--border-color, #232f48);
  border-radius: var(--radius-md, 8px);
  padding: 0 12px;
  transition: all 0.25s ease;
}

.history-search-box:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: #0f172a;
}

.history-search-icon {
  width: 17px;
  height: 17px;
  color: var(--text-muted, #94a3b8);
  flex-shrink: 0;
  margin-left: 8px;
}

.history-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  padding: 8px 0;
  width: 100%;
}

.history-search-input::placeholder {
  color: var(--text-dim, #64748b);
  font-size: 0.84rem;
}

.history-search-clear {
  background: none;
  border: none;
  color: var(--text-dim, #64748b);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0 4px;
  line-height: 1;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-search-clear:hover {
  color: #ef4444;
  transform: scale(1.15);
}

.table-responsive {
  overflow-x: auto;
}

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

.history-table th {
  background: #0d1322;
  padding: 12px 16px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
}

.history-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #1a2336;
  vertical-align: middle;
}

.history-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #3b4675;
  cursor: pointer;
  transition: transform 0.2s;
}

.table-avatar:hover {
  transform: scale(1.1);
  border-color: #ec4899;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-new {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-changed {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-unchanged {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-content {
  position: relative;
  max-width: 620px;
  width: 100%;
  background: #131926;
  border: 1px solid #2d3748;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.8rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.lightbox-close:hover {
  background: #ef4444;
  transform: scale(1.1);
}

.lightbox-img-wrapper {
  position: relative;
  width: 100%;
  height: 520px;
  max-height: 520px;
  background: #080c16;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
}

.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1);
}

.zoom-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  pointer-events: none;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.lightbox-meta {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f1420;
  border-top: 1px solid #232d40;
}

.lightbox-tags {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tag-user {
  font-weight: 700;
  color: white;
  font-size: 0.9rem;
}

.tag-spec {
  font-size: 0.75rem;
  background: #1e293b;
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 4px;
}

.hidden {
  display: none !important;
}
/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  border: 1px solid #38bdf8;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { bottom: -50px; opacity: 0; }
  to { bottom: 24px; opacity: 1; }
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

.toast-action-btn {
  background: #0284c7;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s;
}

.toast-action-btn:hover {
  background: #0369a1;
}

.nav-extra-actions {
  display: flex;
  align-items: center;
}

/* Retry Buttons for Failed Accounts */
.btn-quick-retry {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-quick-retry:hover {
  background: #0284c7;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
}

.btn-quick-retry:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-warning {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.5);
  font-weight: 700;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-retry-card {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
}

.spinner-inline {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-inline-end: 4px;
}

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

/* =============================================================
   Istanbul Classification & History Folders System
   ============================================================= */

/* Folders Toolbar */
.history-folders-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 12px;
}

.history-folder-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.folder-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
  background: #141c2c;
  border: 1px solid #1e293b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.folder-tab:hover {
  color: #ffffff;
  background: #1e293b;
  border-color: #334155;
  transform: translateY(-1px);
}

.folder-tab.active {
  color: #ffffff;
  background: #1e293b;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.folder-tab-istanbul.active {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}

.folder-tab-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.folder-tab.active .folder-tab-badge {
  background: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

.folder-tab-istanbul.active .folder-tab-badge {
  background: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.folder-extra-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Card Header Badges Wrap */
.header-badges-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Istanbul Checkbox Pill on Result Cards */
.istanbul-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.8);
  color: #94a3b8;
  transition: all 0.2s ease;
  user-select: none;
}

.istanbul-card-pill:hover {
  border-color: #38bdf8;
  color: #ffffff;
  background: rgba(30, 41, 59, 0.9);
}

.istanbul-card-pill.is-active {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.istanbul-checkbox-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.istanbul-check-box {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.2);
}

.istanbul-card-pill.is-active .istanbul-check-box {
  background: #10b981;
  border-color: #10b981;
}

.istanbul-card-pill.is-active .istanbul-check-box::after {
  content: '✓';
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
}

.istanbul-pill-text {
  font-size: 0.78rem;
  letter-spacing: -0.2px;
}

.istanbul-auto-tag {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.4);
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* History Table Istanbul Toggle */
.table-istanbul-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  color: #64748b;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  user-select: none;
}

.table-istanbul-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.table-istanbul-toggle.is-active {
  color: #34d399;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

.table-istanbul-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.table-istanbul-box {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1.5px solid #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.2);
}

.table-istanbul-toggle.is-active .table-istanbul-box {
  background: #10b981;
  border-color: #10b981;
}

.table-istanbul-toggle.is-active .table-istanbul-box::after {
  content: '✓';
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.table-auto-badge {
  background: rgba(139, 92, 246, 0.25);
  color: #c084fc;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 0.7rem;
  font-weight: 800;
}

/* Table Username Cell & Quick Remove from Istanbul Button */
.table-user-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-remove-from-istanbul {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-remove-from-istanbul:hover {
  background: rgba(239, 68, 68, 0.26);
  color: #ffffff;
  border-color: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.btn-remove-from-istanbul .remove-x-icon {
  font-size: 0.76rem;
  font-weight: 900;
  color: #ef4444;
}

.btn-remove-from-istanbul:hover .remove-x-icon {
  color: #ffffff;
}

.btn-remove-from-istanbul .remove-btn-label {
  font-size: 0.72rem;
  letter-spacing: -0.2px;
}

/* -------------------------------------------------------------
   AdSense Banners & Free User Layout Styles
------------------------------------------------------------- */
.adsense-banner {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(55, 65, 81, 0.6);
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
  transition: all 0.3s ease;
}

.adsense-top-banner {
  margin: 0 0 20px 0;
}

.adsense-sidebar-banner {
  margin-top: 16px;
}

.adsense-bottom-banner {
  margin-top: 24px;
}

.adsense-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(55, 65, 81, 0.4);
}

.adsense-tag {
  font-size: 0.72rem;
  color: #9ca3af;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.adsense-remove-btn {
  background: none;
  border: none;
  color: #facc15;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}

.adsense-remove-btn:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.adsense-content {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.adsense-mock {
  text-align: center;
  padding: 14px;
  background: rgba(31, 41, 55, 0.4);
  border: 1px dashed rgba(75, 85, 99, 0.6);
  border-radius: 8px;
  width: 100%;
}

.adsense-mock.small {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mock-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.adsense-mock p {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0;
}

/* Free Bulk Notice Alert */
.free-bulk-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  margin-bottom: 12px;
  animation: noticePop 0.25s ease-out;
}

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

.notice-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.notice-content {
  flex: 1;
  text-align: right;
}

.notice-content strong {
  display: block;
  font-size: 0.86rem;
  color: #38bdf8;
  margin-bottom: 2px;
}

.notice-content span {
  font-size: 0.78rem;
  color: #d1d5db;
}

/* Tab VIP Pill */
.tab-vip-pill {
  background: rgba(139, 92, 246, 0.18);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.45);
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  margin-right: 4px;
}

.tab-btn-vip {
  border-color: rgba(139, 92, 246, 0.45) !important;
  color: #c084fc !important;
}

.tab-btn-vip:hover, .tab-btn-vip.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(99, 102, 241, 0.3)) !important;
  color: #fff !important;
  border-color: rgba(139, 92, 246, 0.7) !important;
}

/* History VIP Locked Card */
.history-vip-locked-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 18px;
  padding: 40px 30px;
  text-align: center;
  max-width: 680px;
  margin: 30px auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.vip-lock-icon {
  font-size: 3.2rem;
  margin-bottom: 12px;
}

.history-vip-locked-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.vip-lock-desc {
  font-size: 0.95rem;
  color: #9ca3af;
  margin-bottom: 26px;
}

.vip-perks-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: right;
  margin-bottom: 30px;
  background: #0b0f19;
  border: 1px solid #1f2937;
  border-radius: 14px;
  padding: 18px 20px;
}

.perk-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.perk-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.perk-item strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 2px;
}

.perk-item span {
  font-size: 0.82rem;
  color: #9ca3af;
}

.vip-lock-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------
   VIP Showcase & Pricing Tab Styles
------------------------------------------------------------- */
.vip-showcase-container {
  max-width: 950px;
  margin: 0 auto;
  padding: 20px 10px;
}

.vip-hero {
  text-align: center;
  margin-bottom: 36px;
}

.vip-badge-glow {
  display: inline-block;
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.4);
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 14px;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

.vip-hero h1 {
  font-size: 2.1rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}

.vip-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto;
}

.vip-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .vip-plans-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.plan-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 22px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.plan-card:hover {
  transform: translateY(-2px);
}

.plan-card.featured {
  border-color: #8b5cf6;
  background: linear-gradient(180deg, #161e2e 0%, #111827 100%);
  box-shadow: 0 20px 45px rgba(139, 92, 246, 0.25);
}

.popular-ribbon {
  position: absolute;
  top: 16px;
  left: 20px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.4);
}

.popular-ribbon.plan-free-ribbon {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: none;
}

.plan-header {
  margin-bottom: 24px;
  border-bottom: 1px solid #1f2937;
  padding-bottom: 20px;
  min-height: 185px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.plan-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.plan-tag.gold {
  color: #c084fc;
  font-weight: 800;
}

.plan-header h3 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  font-family: 'Inter', sans-serif;
  line-height: 1.1;
}

.plan-price span {
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 600;
}

.plan-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-top: 10px;
  line-height: 1.5;
  font-weight: 500;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: #f8fafc;
  line-height: 1.5;
  min-height: 44px;
  font-weight: 500;
}

.plan-features li strong {
  color: #ffffff;
  font-weight: 700;
}

.plan-features li.disabled,
.plan-features li.plan-limit {
  color: #cbd5e1;
  text-decoration: none !important; /* NO STRIKETHROUGH */
}

.check-icon {
  color: #10b981;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.check-icon.gold {
  color: #c084fc;
}

.limit-icon {
  color: #38bdf8;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.cross-icon {
  color: #94a3b8;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.plan-action {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
  justify-content: flex-end;
}

.btn-current-plan {
  min-height: 48px;
  background: #1e293b !important;
  color: #94a3b8 !important;
  border: 1px solid #334155 !important;
  font-weight: 700 !important;
  cursor: default !important;
  opacity: 0.95;
}

.btn-start-free {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid #3b82f6 !important;
  color: #38bdf8 !important;
  transition: all 0.2s;
}

.btn-start-free:hover {
  background: rgba(59, 130, 246, 0.15) !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.stripe-icon-pill.stripe-icon-free {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

/* Bullets styling for Pro VIP in FAQ */
.faq-card-featured {
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(180deg, rgba(22, 30, 46, 0.9) 0%, rgba(17, 24, 39, 0.9) 100%);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.faq-feature-bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-feature-bullets li {
  position: relative;
  padding-right: 22px;
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.faq-feature-bullets li::before {
  content: "•";
  position: absolute;
  right: 2px;
  top: -2px;
  color: #8b5cf6;
  font-size: 1.4rem;
  line-height: 1;
}

.faq-feature-bullets li strong {
  color: #ffffff;
  font-weight: 700;
}

/* ========================================================
   Interactive Stacked Accordion FAQ Section
   ======================================================== */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.faq-accordion-item {
  background: #111a2e;
  border: 1.5px solid #22324f;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.faq-accordion-item:hover {
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.faq-accordion-item.active {
  border-color: #ec4899;
  background: linear-gradient(180deg, #131d33 0%, #17233d 100%);
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.2);
}

.faq-accordion-featured.active {
  border-color: #a855f7;
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.25);
}

.faq-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
  color: inherit;
  transition: background 0.2s ease;
}

.faq-accordion-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-accordion-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.faq-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-accordion-featured .faq-icon-badge {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
}

.faq-accordion-item.active .faq-icon-badge {
  transform: scale(1.08);
  background: linear-gradient(135deg, #ec4899 0%, #d946ef 100%);
  color: #fff;
  border-color: #ec4899;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.5);
}

.faq-accordion-featured.active .faq-icon-badge {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  border-color: #a855f7;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.5);
}

.faq-accordion-question {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.45;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: #94a3b8;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s;
  flex-shrink: 0;
}

.faq-accordion-item.active .faq-chevron {
  transform: rotate(180deg);
  color: #ec4899;
}

.faq-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 24px;
}

.faq-accordion-item.active .faq-accordion-body {
  max-height: 1200px;
  padding: 0 24px 22px 24px;
}

.faq-accordion-content {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

/* VIP Benefits Grid in Accordion */
.faq-vip-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.faq-vip-benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.faq-vip-benefit-card:hover {
  background: rgba(236, 72, 153, 0.06);
  border-color: rgba(236, 72, 153, 0.25);
}

.vip-benefit-ico {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1.2;
}

.vip-benefit-text strong {
  display: block;
  font-size: 0.92rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 2px;
}

.vip-benefit-text span {
  display: block;
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* Light Mode Adaptations */
.mode-free .faq-accordion-item {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.mode-free .faq-accordion-item:hover {
  border-color: rgba(236, 72, 153, 0.4);
}

.mode-free .faq-accordion-item.active {
  background: #ffffff;
  border-color: #ec4899;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.12);
}

.mode-free .faq-accordion-question {
  color: #0f172a;
}

.mode-free .faq-accordion-content {
  color: #334155;
  border-top-color: #f1f5f9;
}

.mode-free .faq-vip-benefit-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.mode-free .faq-vip-benefit-card:hover {
  background: #fff5f8;
  border-color: rgba(236, 72, 153, 0.3);
}

.mode-free .vip-benefit-text strong {
  color: #0f172a;
}

.mode-free .vip-benefit-text span {
  color: #64748b;
}

/* ==========================================================================
   Comprehensive Guides & Multilingual Features Section
   Formatted to match screenshot with rich contrast & clear typography
   ========================================================================== */

.guides-section {
  max-width: 1040px;
  margin: 60px auto 40px auto;
  padding: 0 20px;
}

.guide-lang-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.guide-lang-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 8px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.guide-lang-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.guide-lang-pill.active {
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #fff;
  border-color: #818cf8;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.guide-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 24px 0;
  overflow-x: auto;
  padding: 6px 4px;
}

.guide-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #131c2e;
  border: 1px solid #1f2d44;
  border-radius: 12px;
  padding: 10px 18px;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.guide-tab:hover {
  background: #1e293b;
  border-color: #38bdf8;
  color: #f1f5f9;
  transform: translateY(-1px);
}

.guide-tab.active {
  background: #2563eb;
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.guide-content-box {
  background: #101726;
  border: 1px solid #1e293b;
  border-radius: 20px;
  padding: 42px 38px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.guide-badge-row {
  margin-bottom: 20px;
}

.guide-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
}

.guide-article-h2 {
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 16px;
}

.guide-article-p {
  font-size: 1.08rem;
  color: #cbd5e1;
  line-height: 1.9;
  margin-bottom: 26px;
}

.guide-article-h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #f8fafc;
  margin-top: 32px;
  margin-bottom: 14px;
  line-height: 1.4;
}

.guide-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 22px 0 32px 0;
}

.guide-step-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 20px 22px;
  transition: all 0.2s;
}

.guide-step-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.guide-step-badge {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
}

.guide-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 6px;
}

.guide-step-desc {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.75;
}

.guide-cta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid #1e293b;
}

.guide-launch-btn {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  font-family: inherit;
}

.guide-launch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.5);
}

.guide-permalink-btn {
  color: #38bdf8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.2s;
}

.guide-permalink-btn:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.footer-guides-row {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 0.88rem;
}

.footer-guides-title {
  color: #94a3b8;
  font-weight: 700;
}

@media (max-width: 768px) {
  .guide-content-box {
    padding: 26px 18px;
  }
  .guide-article-h2 {
    font-size: 1.5rem;
  }
  .guide-step-card {
    flex-direction: column;
    gap: 10px;
  }
  .guide-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .guide-launch-btn {
    text-align: center;
    width: 100%;
  }
}



