/* NitroShock Account Dashboard Styles */

/* ============================================
   DESIGN SYSTEM - CSS Variables
   Use these across all dashboard pages
   ============================================ */
:root {
  /* Background Colors */
  --ns-bg-primary: #0a0a0a;
  --ns-bg-secondary: #111111;
  --ns-bg-tertiary: #1a1a1a;
  --ns-surface: #1f1f1f;
  --ns-surface-hover: #252525;
  
  /* Text Colors */
  --ns-text-primary: #e5e5e5;
  --ns-text-secondary: #a1a1a1;
  --ns-text-muted: #6b7280;
  
  /* Brand Colors */
  --ns-primary: #fbbf24;
  --ns-primary-dark: #f59e0b;
  --ns-primary-gradient: linear-gradient(135deg, #fbbf24, #f59e0b);
  
  /* Status Colors */
  --ns-success: #10b981;
  --ns-success-bg: rgba(16, 185, 129, 0.1);
  --ns-danger: #ef4444;
  --ns-danger-bg: rgba(239, 68, 68, 0.1);
  --ns-warning: #f59e0b;
  --ns-warning-bg: rgba(245, 158, 11, 0.1);
  --ns-info: #3b82f6;
  --ns-info-bg: rgba(59, 130, 246, 0.1);
  
  /* Borders */
  --ns-border: rgba(255, 255, 255, 0.08);
  --ns-border-light: rgba(255, 255, 255, 0.12);
  
  /* Layout */
  --ns-max-width: 1400px;
  --ns-content-padding: 32px;
  --ns-card-radius: 12px;
  --ns-btn-radius: 8px;

  /* Sticky offsets */
  --nsh-bar: 0px;          /* WP admin bar height (0 for regular users) */
  --nsh-header: 64px;      /* .nsh header height */
  --nsh-offset: calc(var(--nsh-header) + var(--nsh-bar));
  
  /* Typography */
  --ns-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  --ns-h1-size: 28px;
  --ns-h2-size: 24px;
  --ns-h3-size: 18px;
  --ns-h4-size: 16px;
  --ns-body-size: 14px;
  --ns-small-size: 12px;
}

/* ============================================
   SHARED COMPONENT CLASSES
   ============================================ */

/* Page Container */
.ns-page-container {
  max-width: var(--ns-max-width);
  margin: 0 auto;
  padding: var(--ns-content-padding);
  font-family: var(--ns-font-family);
  background: var(--ns-bg-primary);
  color: var(--ns-text-primary);
}

/* Page Header */
.ns-page-header {
  margin-bottom: 24px;
}

.ns-page-header h1 {
  font-size: var(--ns-h1-size);
  color: var(--ns-text-primary);
  margin: 0 0 8px 0;
  font-weight: 600;
}

.ns-page-header h2 {
  font-size: var(--ns-h2-size);
  color: var(--ns-text-primary);
  margin: 0 0 8px 0;
  font-weight: 600;
}

.ns-page-header p {
  color: var(--ns-text-secondary);
  margin: 0;
  font-size: var(--ns-body-size);
}

/* Section Cards */
.ns-card {
  background: var(--ns-surface);
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-card-radius);
  padding: 24px;
  margin-bottom: 24px;
}

.ns-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ns-card-header h3 {
  font-size: var(--ns-h3-size);
  color: var(--ns-text-primary);
  margin: 0;
  font-weight: 600;
}

.ns-card-header h4 {
  font-size: var(--ns-h4-size);
  color: var(--ns-text-primary);
  margin: 0;
  font-weight: 600;
}

/* Buttons */
.ns-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--ns-btn-radius);
  font-size: var(--ns-body-size);
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.ns-btn-primary {
  background: var(--ns-primary-gradient);
  color: var(--ns-bg-primary);
}

.ns-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.ns-btn-secondary {
  background: var(--ns-bg-tertiary);
  color: var(--ns-text-primary);
  border: 1px solid var(--ns-border);
}

.ns-btn-secondary:hover {
  background: var(--ns-surface-hover);
  border-color: var(--ns-border-light);
}

.ns-btn-sm {
  padding: 6px 12px;
  font-size: var(--ns-small-size);
}

.ns-btn-danger {
  background: var(--ns-danger);
  color: white;
}

/* Status Badges */
.ns-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: var(--ns-small-size);
  font-weight: 500;
}

.ns-badge-success {
  background: var(--ns-success-bg);
  color: var(--ns-success);
}

.ns-badge-danger {
  background: var(--ns-danger-bg);
  color: var(--ns-danger);
}

.ns-badge-warning {
  background: var(--ns-warning-bg);
  color: var(--ns-warning);
}

.ns-badge-info {
  background: var(--ns-info-bg);
  color: var(--ns-info);
}

/* Tables */
.ns-table {
  width: 100%;
  border-collapse: collapse;
}

.ns-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--ns-bg-tertiary);
  color: var(--ns-text-secondary);
  font-size: var(--ns-small-size);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--ns-border);
}

.ns-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ns-border);
  color: var(--ns-text-primary);
  font-size: var(--ns-body-size);
}

.ns-table tr:hover td {
  background: var(--ns-bg-secondary);
}

/* Empty State */
.ns-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--ns-text-muted);
}

.ns-empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.ns-empty-state h3 {
  font-size: var(--ns-h3-size);
  color: var(--ns-text-secondary);
  margin: 0 0 8px 0;
}

.ns-empty-state p {
  margin: 0;
  font-size: var(--ns-body-size);
}

/* Metric Cards */
.ns-metric-card {
  background: var(--ns-bg-tertiary);
  border-radius: var(--ns-card-radius);
  padding: 20px;
  text-align: center;
}

.ns-metric-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--ns-text-primary);
  margin-bottom: 4px;
}

.ns-metric-label {
  font-size: var(--ns-small-size);
  color: var(--ns-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Grid Layouts */
.ns-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ns-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ns-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .ns-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ns-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .ns-grid-4, .ns-grid-3, .ns-grid-2 { grid-template-columns: 1fr; }
  .ns-page-container { padding: 16px; }
}

/* ============================================
   ORIGINAL STYLES (updated to use variables)
   ============================================ */

.ns-account-dashboard {
  max-width: var(--ns-max-width);
  margin: 0 auto;
  padding: 0;
  font-family: var(--ns-font-family);
  background: var(--ns-bg-primary);
  color: var(--ns-text-primary);
  min-height: 100vh;
}

/* Navigation */
.dashboard-nav {
  display: flex;
  gap: 4px;
  background: #1a1a1a;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  position: sticky;
  top: 0;
  z-index: 90;
  justify-content: center;
}

.dashboard-nav::before {
  content: '';
  flex: 1;
  max-width: calc((100vw - var(--ns-max-width)) / 2);
}

.dashboard-nav::after {
  content: '';
  flex: 1;
  max-width: calc((100vw - var(--ns-max-width)) / 2);
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #a1a1a1;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-tab:hover {
  color: #e5e5e5;
  background: rgba(255, 255, 255, 0.03);
}

.nav-tab.active {
  color: #fbbf24;
  border-bottom-color: #fbbf24;
}

.nav-tab .tab-icon {
  width: 18px;
  height: 18px;
}

/* Content Area */
.dashboard-content {
  padding: 32px;
  max-width: 1440px;
  margin: 0 auto;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

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

.tab-header h2 {
  font-size: 24px;
  margin: 0;
  color: #e5e5e5;
}

.tab-header p {
  color: #a1a1a1;
  margin: 4px 0 0 0;
  font-size: 14px;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.btn-primary {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0a0a0a;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e5e5;
}

.btn-secondary:hover {
  background: #252525;
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-primary-large {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0a0a0a;
  padding: 14px 28px;
  font-size: 16px;
}

.btn-primary svg, .btn-secondary svg {
  width: 18px;
  height: 18px;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s;
}

.project-card:hover {
  border-color: rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.project-header h3 {
  font-size: 18px;
  margin: 0;
  color: #e5e5e5;
}

.project-actions {
  display: flex;
  gap: 8px;
}

.project-actions button {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #a1a1a1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}

.project-actions button:hover {
  background: #252525;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e5e5e5;
}

.project-actions button svg {
  width: 16px;
  height: 16px;
}

.project-domain {
  color: #a1a1a1;
  font-size: 14px;
  margin-bottom: 20px;
  word-break: break-all;
}

.project-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #fbbf24;
}

.stat-label {
  font-size: 12px;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-card .btn-primary,
.project-card .btn-secondary {
  width: 100%;
  justify-content: center;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #e5e5e5;
}

.empty-state p {
  color: #a1a1a1;
  margin-bottom: 24px;
  font-size: 16px;
}

/* Tools Section */
.tools-section {
  margin-bottom: 48px;
}

.tools-section:last-child {
  margin-bottom: 0;
}

.tools-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tools-section-header h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  color: #e5e5e5;
  margin: 0;
}

.tools-section-header h3 svg {
  vertical-align: middle;
  stroke: #fbbf24;
}

.tools-badge {
  padding: 6px 14px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 20px;
  color: #22c55e;
  font-size: 13px;
  font-weight: 500;
}

.tools-badge-premium {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.tool-card {
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  border-color: rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
}

.tool-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 12px;
}

.tool-icon svg {
  stroke: #fbbf24;
  vertical-align: middle;
}

.tool-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #e5e5e5;
}

.tool-card p {
  color: #a1a1a1;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
  flex: 1;
}

.tool-card .btn-secondary {
  width: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-top: auto;
}

.tool-card .btn-secondary svg {
  vertical-align: middle;
}

/* Billing Grid */
.billing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.billing-card {
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}

.billing-card h3 {
  font-size: 16px;
  margin-bottom: 20px;
  color: #a1a1a1;
  font-weight: 500;
}

.credit-amount, .usage-amount {
  font-size: 48px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 8px;
}

.credit-label, .usage-label {
  color: #6b6b6b;
  font-size: 14px;
  margin-bottom: 24px;
}

.billing-card .btn-primary {
  width: 100%;
  justify-content: center;
}

/* Transaction History */
.transaction-history {
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
}

.transaction-history h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #e5e5e5;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1a1;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tbody td {
  padding: 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e5e5e5;
  font-size: 14px;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.badge-grey {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
}

.text-muted {
  color: #6b7280;
}

.text-green {
  color: #10b981;
  font-weight: 600;
}

.text-red {
  color: #ef4444;
  font-weight: 600;
}

.text-center {
  text-align: center;
  color: #6b6b6b;
  padding: 40px 20px;
}

/* Transaction History Controls */
.txn-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.txn-header h3 { margin: 0 !important; }
.txn-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.txn-filter-group { display: flex; align-items: center; gap: 6px; }
.txn-filter-label { font-size: 12px; color: #a1a1a1; white-space: nowrap; }
.txn-select, .txn-input {
  background: #111; border: 1px solid rgba(255,255,255,0.1); color: #e5e5e5; padding: 6px 10px;
  border-radius: 6px; font-size: 13px; outline: none;
}
.txn-select:focus, .txn-input:focus { border-color: #fbbf24; }
.txn-date-range-picker { display: flex; gap: 2px; background: #111; padding: 2px; border-radius: 5px; margin-left: auto; }
.txn-range-btn {
  padding: 4px 8px; background: transparent; border: none; color: #6b6b6b;
  font-size: 11px; cursor: pointer; border-radius: 3px; transition: all 0.2s;
}
.txn-range-btn:hover { color: #e5e5e5; }
.txn-range-btn.active { background: #262626; color: #fbbf24; }
.txn-sortable { cursor: pointer; user-select: none; }
.txn-sortable:hover { color: #fbbf24; }
.txn-sortable .sort-arrow { font-size: 10px; opacity: 0.4; margin-left: 2px; }
.txn-sortable.asc .sort-arrow, .txn-sortable.desc .sort-arrow { opacity: 1; color: #fbbf24; }
.txn-pagination {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0 0; font-size: 13px; color: #a1a1a1;
}
.txn-pagination .txn-page-info { flex: 1; }
.txn-pagination .txn-page-btns { display: flex; gap: 4px; }
.txn-page-btn {
  padding: 6px 12px; background: #262626; border: 1px solid rgba(255,255,255,0.08);
  color: #e5e5e5; border-radius: 6px; font-size: 13px; cursor: pointer;
}
.txn-page-btn:hover { border-color: #fbbf24; color: #fbbf24; }
.txn-page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.txn-page-btn:disabled:hover { border-color: rgba(255,255,255,0.08); color: #e5e5e5; }
.txn-page-btn.active { background: #fbbf24; color: #000; border-color: #fbbf24; }

/* ================================================
   ENHANCED BILLING & CREDITS SECTION
   ================================================ */

/* Balance Row */
.billing-balance-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.billing-card.balance-card,
.billing-card.usage-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  text-align: left;
}

.balance-icon {
  width: 56px;
  height: 56px;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.balance-icon svg {
  stroke: #fbbf24;
}

.usage-card .balance-icon {
  background: rgba(59, 130, 246, 0.1);
}

.usage-card .balance-icon svg {
  stroke: #3b82f6;
}

.balance-info {
  flex: 1;
}

.balance-label {
  font-size: 14px;
  color: #a1a1a1;
  margin-bottom: 4px;
}

.balance-amount {
  font-size: 32px;
  font-weight: 700;
  color: #e5e5e5;
}

.balance-amount span {
  font-size: 16px;
  font-weight: 400;
  color: #6b6b6b;
}

/* Billing Section */
.billing-section {
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
}

.billing-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #e5e5e5;
  margin: 0 0 8px;
}

.section-desc {
  font-size: 14px;
  color: #6b6b6b;
  margin: 0 0 24px;
}

/* Credit Packages Grid */
.credit-packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.credit-package {
  position: relative;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  transition: all 0.2s;
}

.credit-package:hover {
  border-color: rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
}

.credit-package.popular {
  border-color: #fbbf24;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.1);
}

.package-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.package-price {
  font-size: 28px;
  font-weight: 700;
  color: #e5e5e5;
  margin-bottom: 4px;
}

.package-credits {
  font-size: 14px;
  color: #a1a1a1;
  margin-bottom: 8px;
}

.package-rate {
  margin-bottom: 16px;
}

.package-rate .savings {
  font-size: 12px;
  color: #10b981;
  font-weight: 500;
}

.package-rate .base-rate {
  font-size: 12px;
  color: #6b6b6b;
}

.btn-package {
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid #fbbf24;
  color: #fbbf24;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-package:hover {
  background: #fbbf24;
  color: #000;
}

.credit-package.popular .btn-package {
  background: #fbbf24;
  color: #000;
}

.credit-package.popular .btn-package:hover {
  background: #f59e0b;
}

/* Auto-Refill Card */
.auto-refill-card {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 24px;
}

/* Payment Method Section */
.payment-method-section {
  margin-bottom: 20px;
}

.payment-method-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #e5e5e5;
  margin-bottom: 16px;
}

.payment-method-header svg {
  stroke: #fbbf24;
}

.payment-method-content {
  padding-left: 34px;
}

.card-on-file {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.card-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.card-status-active {
  color: #10b981;
}

.card-status-active svg {
  stroke: #10b981;
}

.no-card-setup {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.no-card-message {
  font-size: 14px;
  color: #a1a1a1;
  margin: 0;
}

.no-card-setup .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.stripe-secure-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b6b6b;
  margin: 0;
}

.stripe-secure-note svg {
  stroke: #6b6b6b;
}

.section-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 20px 0;
}

/* Button styles */
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e5e5e5;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: #fbbf24;
  color: #fbbf24;
}

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

.auto-refill-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.toggle-label {
  font-size: 15px;
  font-weight: 500;
  color: #e5e5e5;
}

.toggle-disabled-hint {
  font-size: 12px;
  color: #6b6b6b;
  font-weight: 400;
  margin-left: 8px;
}

.toggle-switch input:disabled + .toggle-slider {
  background: #222;
  cursor: not-allowed;
  opacity: 0.6;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #333;
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background: #fbbf24;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

.auto-refill-settings {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.setting-row label {
  font-size: 14px;
  color: #a1a1a1;
}

.input-with-suffix {
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-with-suffix input {
  width: 100px;
  padding: 10px 12px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #e5e5e5;
  font-size: 14px;
  text-align: right;
}

.input-with-suffix input:focus {
  outline: none;
  border-color: #fbbf24;
}

.input-with-suffix span {
  font-size: 14px;
  color: #6b6b6b;
}

/* Threshold options for auto-refill */
.threshold-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.threshold-options select {
  width: 220px;
  padding: 10px 12px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #e5e5e5;
  font-size: 14px;
}

.threshold-options select:focus {
  outline: none;
  border-color: #fbbf24;
}

.custom-threshold {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.custom-threshold input {
  width: 120px;
  padding: 10px 12px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #e5e5e5;
  font-size: 14px;
  text-align: right;
}

.custom-threshold input:focus {
  outline: none;
  border-color: #fbbf24;
}

.custom-threshold span {
  font-size: 14px;
  color: #6b6b6b;
}

.setting-row select {
  width: 220px;
  padding: 10px 12px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #e5e5e5;
  font-size: 14px;
}

.setting-row select:focus {
  outline: none;
  border-color: #fbbf24;
}

.btn-link {
  background: none;
  border: none;
  color: #fbbf24;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

.btn-link:hover {
  color: #f59e0b;
}

#save-auto-refill-btn {
  margin-top: 8px;
}

/* ================================================
   END ENHANCED BILLING SECTION
   ================================================ */

/* Settings */
.settings-section {
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.settings-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #e5e5e5;
}

.api-key-section label {
  display: block;
  margin-bottom: 8px;
  color: #a1a1a1;
  font-size: 14px;
  font-weight: 500;
}

.api-key-display {
  display: flex;
  gap: 8px;
}

.api-key-display input {
  flex: 1;
  padding: 12px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #e5e5e5;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.api-key-display button {
  width: 40px;
  height: 40px;
  background: #252525;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #a1a1a1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}

.api-key-display button:hover {
  background: #2a2a2a;
  color: #e5e5e5;
}

.api-key-display button svg {
  width: 18px;
  height: 18px;
}

/* Settings Toggle - Clean Implementation */
.ns-setting-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ns-setting-row:last-of-type {
  border-bottom: none;
}

.ns-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

.ns-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.ns-toggle-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #3a3a3a;
  border-radius: 14px;
  transition: background-color 0.2s ease;
}

.ns-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background-color: #777;
  border-radius: 50%;
  transition: transform 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ns-toggle input:checked + .ns-toggle-track {
  background-color: #fbbf24;
}

.ns-toggle input:checked + .ns-toggle-track .ns-toggle-thumb {
  transform: translateX(24px);
  background-color: #1a1a1a;
}

.ns-toggle input:focus + .ns-toggle-track {
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.3);
}

.ns-setting-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ns-setting-title {
  color: #e5e5e5;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
}

.ns-setting-desc {
  color: #888;
  font-size: 13px;
  line-height: 1.4;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row label {
  color: #a1a1a1;
  font-weight: 500;
  font-size: 14px;
}

.info-row span {
  color: #e5e5e5;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-content {
    padding: 20px;
    margin: 0 auto;
  }
  
  .dashboard-nav {
    padding: 0 20px;
  }
  
  .projects-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .tab-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .tab-header .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* Overview Grid Layout */
/* Account Dashboard - Projects + Sidebar Grid */
.ns-account-dashboard .overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.overview-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.overview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Dashboard Cards */
.dashboard-card {
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-header h3 {
  font-size: 16px;
  margin: 0;
  color: #e5e5e5;
  font-weight: 600;
}

.card-content {
  padding: 24px;
}

/* Stats Grid - Large Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card-large {
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon.credits {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.15));
}

.stat-icon.keywords {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
}

.stat-icon.projects {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(124, 58, 237, 0.15));
}

.stat-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fbbf24;
}

.stat-icon.keywords svg {
  stroke: #10b981;
}

.stat-icon.projects svg {
  stroke: #8b5cf6;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #e5e5e5;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  color: #6b6b6b;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Compact Project Cards */
.projects-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.project-card-compact {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s;
}

.project-card-compact:hover {
  border-color: rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
}

.project-card-compact .project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.project-card-compact .project-header h4 {
  font-size: 16px;
  margin: 0;
  color: #e5e5e5;
}

.project-stats-compact {
  display: flex;
  gap: 16px;
  margin: 12px 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.project-stats-compact .stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-stats-compact .stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #fbbf24;
}

.project-stats-compact .stat-label {
  font-size: 11px;
  color: #6b6b6b;
  text-transform: uppercase;
}

.btn-sm {
  padding: 8px 16px !important;
  font-size: 13px !important;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #e5e5e5;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}

.action-item:hover {
  background: #252525;
  border-color: rgba(251, 191, 36, 0.3);
  transform: translateX(4px);
}

.action-item svg {
  flex-shrink: 0;
  color: #fbbf24;
}

.action-item span {
  font-size: 14px;
  font-weight: 500;
}

/* Credit Summary */
.credit-summary {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.credit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.credit-row:last-child {
  margin-bottom: 0;
}

.credit-row span {
  color: #a1a1a1;
  font-size: 14px;
}

.credit-row strong {
  color: #e5e5e5;
  font-size: 16px;
}

.text-success {
  color: #10b981 !important;
}

/* Tab Subtitle */
.tab-subtitle {
  color: #a1a1a1;
  font-size: 14px;
  margin: 4px 0 0 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .ns-account-dashboard .overview-grid {
    grid-template-columns: 1fr;
  }
  
  .overview-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid-compact {
    grid-template-columns: 1fr;
  }
}

/* Project Dashboard - Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.back-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.back-link:hover {
  color: #fbbf24;
}

/* Project Dashboard Header */
.ns-project-dashboard .dashboard-header {
  background: #1f1f1f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 32px;
}

.ns-project-dashboard .header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ns-project-dashboard .header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.project-switcher {
  position: relative;
}

.project-switcher select {
  background: #2a2a2a;
  color: #e5e5e5;
  border: 1px solid #404040;
  padding: 8px 32px 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  min-width: 200px;
}

.project-switcher select:hover {
  border-color: #fbbf24;
}

.project-switcher::after {
  content: '▼';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #9ca3af;
  font-size: 10px;
}

.project-info h2 {
  margin: 0;
  font-size: 20px;
  color: #e5e5e5;
}

.project-domain {
  color: #9ca3af;
  font-size: 13px;
  margin-top: 4px;
}

/* Admin bar sticky offset — sets the CSS var used by all sticky elements */
.admin-bar {
  --nsh-bar: 32px;
}
@media (max-width: 782px) {
  .admin-bar {
    --nsh-bar: 46px;
  }
}

/* Project Dashboard Header - Better Layout */
.ns-project-dashboard .dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.ns-project-dashboard .header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

.ns-project-dashboard .header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.project-info h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #e5e5e5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-switcher label {
  color: #9ca3af;
  font-size: 13px;
  white-space: nowrap;
}

/* Credits Display - Stat Style (not button) */
.ns-project-dashboard .user-credits {
  background: transparent;
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .ns-project-dashboard .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .ns-project-dashboard .header-left {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .ns-project-dashboard .header-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .project-switcher {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .project-switcher select {
    width: 100%;
    min-width: auto;
  }
}

/* Project Overview - Setup Card */
.setup-card {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

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

.setup-header h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: #e5e5e5;
}

.setup-header p {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
}

.setup-progress {
  text-align: right;
  min-width: 120px;
}

.progress-text {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 8px;
}

.progress-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.setup-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setup-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: all 0.2s;
}

.setup-step:hover {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(0, 0, 0, 0.4);
}

.setup-step.completed {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  flex-shrink: 0;
}

.setup-step.completed .step-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-content h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  color: #e5e5e5;
}

.step-content p {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
}

/* Overview Stats Grid */
.overview-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card-large {
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
}

.stat-card-large:hover {
  border-color: rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
}

.stat-icon-large {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-large svg {
  width: 28px;
  height: 28px;
}

.keywords-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
  color: #60a5fa;
}

.content-icon {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(147, 51, 234, 0.1));
  color: #a78bfa;
}

.documents-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
  color: #34d399;
}

.credits-icon {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
  color: #fbbf24;
}

.stat-details {
  flex: 1;
}

.stat-value-large {
  font-size: 32px;
  font-weight: 700;
  color: #e5e5e5;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label-large {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.stat-meta {
  font-size: 12px;
  color: #6b7280;
}

/* Project Dashboard - Overview Grid (Two Column Layout) */
.ns-project-dashboard .overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.overview-section {
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-header h3 {
  margin: 0;
  font-size: 18px;
  color: #e5e5e5;
}

.section-header a {
  font-size: 14px;
  color: #fbbf24;
  text-decoration: none;
  transition: color 0.2s;
}

.section-header a:hover {
  color: #f59e0b;
}

/* Keywords List */
.keywords-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.keyword-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.keyword-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.keyword-text {
  color: #e5e5e5;
  font-size: 14px;
}

.badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.badge-info {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.position-value {
  font-size: 18px;
  font-weight: 700;
  color: #fbbf24;
}

/* Content List */
.content-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.content-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  gap: 12px;
}

.content-info {
  flex: 1;
  min-width: 0;
}

.content-title {
  display: block;
  color: #e5e5e5;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-meta {
  display: block;
  color: #9ca3af;
  font-size: 12px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-state p {
  color: #9ca3af;
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .overview-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .overview-grid {
    grid-template-columns: 1fr;
  }
  
  .setup-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .setup-progress {
    width: 100%;
  }
}

/* Setup Steps - Grid Layout */
.setup-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.setup-steps-grid .setup-step {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-height: 140px;
}

.setup-steps-grid .step-content {
  margin-bottom: 12px;
}

.setup-steps-grid .btn-sm {
  align-self: stretch;
  width: 100%;
}

/* Adjust setup card margin */
.setup-card {
  margin-top: 32px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .setup-steps-grid {
    grid-template-columns: 1fr;
  }
}

/* Credit Chart Container - Fixed Sizing */
.dashboard-card canvas#creditChart {
  max-height: 240px;
  width: 100% !important;
  height: auto !important;
}

.credit-chart-container {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 16px;
}

.credit-summary {
  font-size: 14px;
  line-height: 1.6;
}

/* Ensure chart card has proper sizing */
.dashboard-card:has(#creditChart) {
  min-height: 380px;
}

/* ============================================
   PROJECT HEADER COMPONENT (Reusable)
   ============================================ */

.nitroshock-project-header {
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Header Bar */
.project-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 32px;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 1440px;
  margin: 0 auto;
}

.project-header-bar .header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

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

.project-header-bar .project-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  margin: 0;
}

.project-header-bar .project-info h1 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-header-bar .project-domain {
  font-size: 14px;
  color: #fbbf24;
  font-weight: 600;
  margin: 0;
  line-height: 1;
}

.project-header-bar .project-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-header-bar .project-switcher label {
  display: none;
}

.project-header-bar .project-switcher select {
  background-color: #2a2a2a !important;
  color: #fbbf24;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px 28px 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-width: 200px;
  outline: none;
}

@-moz-document url-prefix() {
  .project-header-bar .project-switcher select {
    color: #fbbf24;
    padding-right: 40px;
  }
}

.project-header-bar .project-switcher select::-ms-expand {
  display: none;
}

.project-header-bar .project-switcher select:focus {
  border-color: rgba(251, 191, 36, 0.3);
  background-color: rgba(251, 191, 36, 0.05);
}

.project-header-bar .project-switcher select option {
  background-color: #1a1a1a !important;
  background-image: none !important;
  color: #fbbf24;
}

.project-header-bar .user-credits {
  background: transparent;
  color: #fbbf24;
  border: 1px solid #fbbf24;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* Navigation Tabs */
.project-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0 32px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: #1a1a1a;
}

.project-nav-tabs::-webkit-scrollbar {
  display: none;
}

.project-nav-tabs .nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
}

.project-nav-tabs .nav-tab .tab-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.project-nav-tabs .nav-tab:hover {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.05);
}

.project-nav-tabs .nav-tab.active {
  color: #fbbf24;
  border-bottom-color: #fbbf24;
}

/* Responsive */
@media (max-width: 1024px) {
  .project-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .project-header-bar .header-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .project-nav-tabs {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .project-header-bar {
    padding: 12px 16px;
    padding-top: 38px;
  }
  
  .project-header-bar .project-switcher {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .project-header-bar .project-switcher select {
    width: 100%;
  }
  
  .project-nav-tabs .nav-tab {
    padding: 12px 16px;
    font-size: 13px;
  }
}

/* ============================================
   STANDALONE TOOL LAYOUT
   ============================================ */

.ns-standalone-tool {
  background: #1a1a1a;
  min-height: 100vh;
}

/* Tool Header (for standalone tools) */
.ns-standalone-tool .tool-header {
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: var(--nsh-offset, 64px);
  z-index: 100;
}

.ns-standalone-tool .tool-header .header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

.ns-standalone-tool .tool-header .header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.ns-standalone-tool .tool-header h1 {
  font-size: var(--ns-h1-size, 28px);
  font-weight: 600;
  color: var(--ns-text-primary, #e5e5e5);
  margin: 0;
}

/* Tool Navigation Tabs (for standalone tools) */
.tool-nav-tabs {
  display: flex;
  gap: 0;
  padding: 0 32px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: sticky;
  top: calc(var(--nsh-offset, 64px) + 57px);
  z-index: 99;
}

/* Standalone Header (alternative header style used by some tools) */
.standalone-header {
  background: var(--ns-bg-tertiary, #1a1a1a);
  border-bottom: 1px solid var(--ns-border, rgba(255, 255, 255, 0.08));
  padding: 16px 32px;
}

.standalone-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: var(--ns-max-width, 1400px);
  margin: 0 auto;
}

.standalone-header h1 {
  font-size: var(--ns-h1-size, 28px);
  font-weight: 600;
  color: var(--ns-text-primary, #e5e5e5);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.standalone-header h1 svg {
  color: var(--ns-primary, #fbbf24);
}

.tool-nav-tabs::-webkit-scrollbar {
  display: none;
}

.tool-nav-tabs .nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  cursor: pointer;
}

.tool-nav-tabs .nav-tab .tab-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tool-nav-tabs .nav-tab:hover {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.05);
}

.tool-nav-tabs .nav-tab.active {
  color: #fbbf24;
  border-bottom-color: #fbbf24;
}

/* Tool Content Area */
.ns-standalone-tool .tool-content {
  padding: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.ns-standalone-tool .tab-content {
  display: none;
}

.ns-standalone-tool .tab-content.active {
  display: block;
}

/* Content History Styles */
.content-history .history-header {
  margin-bottom: 32px;
}

.content-history .history-header h3 {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px 0;
}

.content-history .history-header p {
  color: #9ca3af;
  margin: 0;
}

.content-history .empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #9ca3af;
}

.content-history .empty-state svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  opacity: 0.3;
}

.content-history .empty-state p {
  font-size: 16px;
  margin: 0 0 24px 0;
}

.content-history .history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.content-history .history-item {
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.2s;
}

.content-history .history-item:hover {
  border-color: rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
}

.content-history .history-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px 0;
}

.content-history .item-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #9ca3af;
}

.content-history .item-meta .keywords {
  color: #fbbf24;
}

.content-history .item-actions {
  display: flex;
  gap: 8px;
}

/* Content Templates Styles */
.content-templates .templates-header {
  margin-bottom: 32px;
}

.content-templates .templates-header h3 {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px 0;
}

.content-templates .templates-header p {
  color: #9ca3af;
  margin: 0;
}

.content-templates .templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.content-templates .template-card {
  background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.content-templates .template-card:hover {
  border-color: rgba(251, 191, 36, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.1);
}

.content-templates .template-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 12px;
}

.content-templates .template-icon svg {
  width: 32px;
  height: 32px;
  fill: #fbbf24;
}

.content-templates .template-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px 0;
}

.content-templates .template-card p {
  font-size: 14px;
  color: #9ca3af;
  margin: 0 0 20px 0;
}

/* Responsive for Standalone Tools */
@media (max-width: 1024px) {
  .ns-standalone-tool .tool-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .ns-standalone-tool .tool-content {
    padding: 20px;
  }
  
  .tool-nav-tabs {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .ns-standalone-tool .tool-header {
    padding: 12px 16px;
  }
  
  .ns-standalone-tool .tool-header h1 {
    font-size: 20px;
  }
  
  .standalone-header {
    padding: 12px 16px;
  }
  
  .standalone-header h1 {
    font-size: 20px;
  }
  
  .content-history .history-grid,
  .content-templates .templates-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   COMPETITOR TRACKER
   ============================================ */

/* Form Elements */
.ns-input,
input.ns-input,
textarea.ns-input {
  width: 100%;
  background: #1a1a1a;
  color: #e5e5e5;
  border: 1px solid #404040;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}

.ns-input:focus,
input.ns-input:focus,
textarea.ns-input:focus {
  outline: none;
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.ns-input::placeholder {
  color: #6b7280;
}

.ns-select,
select.ns-select {
  width: 100%;
  background: #1a1a1a;
  color: #e5e5e5;
  border: 1px solid #404040;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.ns-select:focus,
select.ns-select:focus {
  outline: none;
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1a1a1a;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: currentColor;
}

.btn-secondary {
  background: #2a2a2a;
  color: #e5e5e5;
  border: 1px solid #404040;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: #333;
  border-color: #fbbf24;
  color: #fbbf24;
}

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

.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
}

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

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  opacity: 0.3;
  stroke: currentColor;
}

.empty-state h4 {
  font-size: 18px;
  font-weight: 600;
  color: #e5e5e5;
  margin: 0 0 8px 0;
}

.empty-state p {
  margin: 0;
  font-size: 14px;
}

.competitors-tracker {
  max-width: 1400px;
  margin: 0 auto;
}

/* Add Competitor Section */
.competitor-add-section {
  background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
}

.competitor-add-section .section-header {
  margin-bottom: 24px;
}

.competitor-add-section .section-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px 0;
}

.competitor-add-section .section-header p {
  color: #9ca3af;
  margin: 0;
  font-size: 14px;
}

.add-competitor-form .form-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.add-competitor-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.add-competitor-form .form-group.flex-0 {
  flex: 0 0 auto;
}

.add-competitor-form .form-group.flex-1 {
  flex: 1;
}

.add-competitor-form .form-group.flex-2 {
  flex: 2;
}

.add-competitor-form label {
  font-size: 13px;
  font-weight: 500;
  color: #e5e5e5;
}

/* Competitors List */
.competitors-list {
  margin-top: 32px;
}

.competitors-list .list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.competitors-list .list-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

/* Competitors Grid */
.competitors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
}

.competitor-card {
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.competitor-card:hover {
  border-color: rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.competitor-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}

.competitor-card .competitor-info {
  flex: 1;
  min-width: 0;
}

.competitor-card .competitor-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.competitor-card .domain-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.competitor-card .domain-link:hover {
  color: #fbbf24;
}

.competitor-card .domain-link svg {
  flex-shrink: 0;
}

.competitor-card .card-actions {
  display: flex;
  gap: 8px;
}

.competitor-card .btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.competitor-card .btn-icon:hover {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.competitor-card .btn-icon svg {
  stroke: currentColor;
}

/* Metrics Grid */
.competitor-card .metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.competitor-card .metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.competitor-card .metric-label {
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.competitor-card .metric-value {
  font-size: 20px;
  font-weight: 600;
  color: #fbbf24;
}

.competitor-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.competitor-card .last-tracked {
  font-size: 12px;
  color: #9ca3af;
}

.competitor-card .frequency-badge {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.competitor-card .no-data {
  text-align: center;
  padding: 40px 20px;
}

.competitor-card .no-data p {
  color: #9ca3af;
  margin: 0 0 16px 0;
}

/* Tracking Overlay */
.tracking-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 26, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.tracking-message {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 500;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(251, 191, 36, 0.3);
  border-top-color: #fbbf24;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Insights */
.competitor-insights {
  max-width: 1200px;
  margin: 0 auto;
}

.competitor-insights .insights-header {
  margin-bottom: 32px;
}

.competitor-insights .insights-header h3 {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px 0;
}

.competitor-insights .insights-header p {
  color: #9ca3af;
  margin: 0;
}

.competitor-insights .insights-placeholder {
  text-align: center;
  padding: 80px 20px;
  color: #9ca3af;
}

.competitor-insights .insights-placeholder svg {
  stroke: currentColor;
  margin: 0 auto 24px;
  opacity: 0.3;
}

.competitor-insights .insights-placeholder h4 {
  font-size: 18px;
  color: #e5e5e5;
  margin: 0 0 8px 0;
}

.competitor-insights .insights-placeholder p {
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .add-competitor-form .form-row {
    flex-direction: column;
  }
  
  .add-competitor-form .form-group.flex-0,
  .add-competitor-form .form-group.flex-1,
  .add-competitor-form .form-group.flex-2 {
    flex: 1;
    width: 100%;
  }
  
  
  .competitors-grid {
    grid-template-columns: 1fr;
  }
  
  .competitor-card .metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Instant Overview Cards - Domain Intelligence
   ======================================== */

.instant-overview-section {
  margin-bottom: 32px;
  padding: 24px;
  background: rgba(251, 191, 36, 0.02);
  border: 1px solid rgba(251, 191, 36, 0.1);
  border-radius: 16px;
}

.instant-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.instant-card {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.2s ease;
}

.instant-card:hover {
  border-color: rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.instant-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.instant-card-content {
  flex: 1;
  min-width: 0;
}

.instant-card-label {
  font-size: 12px;
  color: #a1a1a1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.instant-card-value {
  font-size: 28px;
  font-weight: 700;
  color: #e5e5e5;
  line-height: 1.2;
}

.instant-card-meta {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

/* DoFollow bar mini */
.dofollow-bar-mini {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.dofollow-bar-mini .dofollow-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #10b981);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .instant-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .instant-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .instant-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .instant-card {
    padding: 16px;
  }
  
  .instant-card-icon {
    width: 40px;
    height: 40px;
  }
  
  .instant-card-value {
    font-size: 24px;
  }
}

/* ========================================
   Scan Prompt Card - Empty State
   ======================================== */

.scan-prompt-card {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), rgba(245, 158, 11, 0.02));
  border: 1px dashed rgba(251, 191, 36, 0.3);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.scan-prompt-card:hover {
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(245, 158, 11, 0.04));
}

.scan-prompt-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 20px;
}

.scan-prompt-content {
  flex: 1;
}

.scan-prompt-content h4 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: #e5e5e5;
}

.scan-prompt-content p {
  margin: 0 0 16px 0;
  color: #a1a1a1;
  font-size: 14px;
  line-height: 1.5;
}

.scan-prompt-content strong {
  color: #fbbf24;
}

.scan-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.scan-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #a1a1a1;
}

.scan-features-list svg {
  flex-shrink: 0;
}

.btn-scan-domain {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0a0a0a;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-scan-domain:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
}

.btn-scan-domain:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-scan-domain.scanning {
  background: #374151;
  color: #e5e5e5;
}

/* Refresh button styling */
.btn-sm.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #a1a1a1;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sm.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e5e5e5;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading spinner for buttons */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-loading svg {
  animation: spin 1s linear infinite;
}

/* Responsive scan prompt */
@media (max-width: 900px) {
  .scan-prompt-card {
    flex-direction: column;
    text-align: center;
  }
  
  .scan-features-list {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media (max-width: 600px) {
  .scan-prompt-card {
    padding: 24px;
    gap: 20px;
  }
  
  .scan-prompt-icon {
    width: 64px;
    height: 64px;
  }
  
  .scan-prompt-icon svg {
    width: 36px;
    height: 36px;
  }
}

/* ============================================
   REPORTS HISTORY TAB
   ============================================ */

/* Filters Row - contains project dropdown and type tabs */
.reports-filters-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.project-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-filter label {
  color: var(--ns-text-secondary);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.project-filter select {
  padding: 8px 32px 8px 12px;
  background: var(--ns-bg-tertiary);
  border: 1px solid var(--ns-border);
  border-radius: 8px;
  color: var(--ns-text-primary);
  font-size: 14px;
  min-width: 180px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.project-filter select:hover {
  border-color: var(--ns-border-light);
}

.project-filter select:focus {
  outline: none;
  border-color: var(--ns-primary);
}

.reports-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 20px;
  background: var(--ns-bg-tertiary);
  border: 1px solid var(--ns-border);
  border-radius: 20px;
  color: var(--ns-text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab:hover {
  background: var(--ns-surface-hover);
  color: var(--ns-text-primary);
  border-color: var(--ns-border-light);
}

.filter-tab.active {
  background: var(--ns-primary);
  color: #000;
  border-color: var(--ns-primary);
}

.reports-history-container {
  background: var(--ns-bg-tertiary);
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-card-radius);
  overflow: hidden;
}

.reports-table {
  width: 100%;
  border-collapse: collapse;
}

.reports-table th,
.reports-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--ns-border);
}

.reports-table th {
  background: var(--ns-surface);
  color: var(--ns-text-secondary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reports-table tbody tr:hover {
  background: var(--ns-surface-hover);
}

.reports-table td {
  color: var(--ns-text-primary);
  font-size: 14px;
}

.report-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-name svg {
  color: var(--ns-text-secondary);
  flex-shrink: 0;
}

.report-type-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.report-type-badge.type-position-tracking {
  background: var(--ns-info-bg);
  color: var(--ns-info);
}

.report-type-badge.type-site-audit {
  background: var(--ns-success-bg);
  color: var(--ns-success);
}

.report-type-badge.type-backlinks {
  background: var(--ns-warning-bg);
  color: var(--ns-warning);
}

.report-type-badge.type-combined {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ns-surface);
  border: 1px solid var(--ns-border);
  border-radius: 6px;
  color: var(--ns-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-icon:hover {
  background: var(--ns-surface-hover);
  color: var(--ns-text-primary);
  border-color: var(--ns-border-light);
}

.btn-icon.btn-danger:hover {
  background: var(--ns-danger-bg);
  color: var(--ns-danger);
  border-color: var(--ns-danger);
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--ns-text-secondary);
}

.empty-state svg {
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state p {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--ns-text-primary);
}

.empty-state span {
  font-size: 14px;
  color: var(--ns-text-muted);
}

.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  color: var(--ns-text-secondary);
}

.loading-indicator .spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--ns-border);
  border-top-color: var(--ns-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Notification Toast */
.ns-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 14px 20px;
  background: var(--ns-surface);
  border: 1px solid var(--ns-border);
  border-radius: 8px;
  color: var(--ns-text-primary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.ns-notification.show {
  transform: translateX(0);
}

.ns-notification.success {
  border-color: var(--ns-success);
}

.ns-notification.error {
  border-color: var(--ns-danger);
}

.ns-notification button {
  background: none;
  border: none;
  color: var(--ns-text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* Branding Editor Wrapper - Embedded in Account Dashboard */
.branding-editor-wrapper {
  margin-top: 16px;
}

.branding-editor-wrapper .ns-branding-editor {
  background: transparent;
  padding: 0;
  min-height: auto;
}

/* Override branding editor header when embedded (already have tab header) */
.branding-editor-wrapper .branding-header {
  display: none; /* Hide redundant header - dashboard already has one */
}

/* Fix branding container grid on smaller screens */
.branding-editor-wrapper .branding-container {
  gap: 24px;
}

@media (max-width: 900px) {
  .branding-editor-wrapper .branding-container {
    grid-template-columns: 1fr;
  }
  
  .branding-editor-wrapper .profile-sidebar {
    position: static;
  }
}

/* Schedule Modal */
#schedule-modal.ns-modal-overlay {
  z-index: 999999;
}

#schedule-modal .ns-modal {
  max-width: 450px;
}

#schedule-modal .form-group {
  margin-bottom: 16px;
}

#schedule-modal .form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--ns-text-secondary);
  font-size: 13px;
  font-weight: 500;
}

#schedule-modal .form-group input,
#schedule-modal .form-group select {
  width: 100%;
  padding: 10px 12px;
  background: var(--ns-bg-primary);
  border: 1px solid var(--ns-border);
  border-radius: 6px;
  color: var(--ns-text-primary);
  font-size: 14px;
}

#schedule-modal .form-group input:focus,
#schedule-modal .form-group select:focus {
  outline: none;
  border-color: var(--ns-primary);
}

#schedule-modal .form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--ns-border);
}

#schedule-modal .form-actions .btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

#schedule-modal .form-actions .btn-secondary {
  background: var(--ns-surface);
  border: 1px solid var(--ns-border);
  color: var(--ns-text-primary);
}

#schedule-modal .form-actions .btn-primary {
  background: var(--ns-primary);
  border: 1px solid var(--ns-primary);
  color: #000;
}

#schedule-modal .form-actions .btn-primary:hover {
  background: var(--ns-primary-dark);
}

/* Responsive adjustments for reports table */
@media (max-width: 768px) {
  .reports-table th:nth-child(4),
  .reports-table td:nth-child(4) {
    display: none;
  }
  
  .reports-filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }
  
  .filter-tab {
    flex-shrink: 0;
  }
}

@media (max-width: 600px) {
  .reports-table th:nth-child(3),
  .reports-table td:nth-child(3) {
    display: none;
  }
  
  .reports-table th,
  .reports-table td {
    padding: 10px 12px;
  }
}
/* ================================================
   CREDIT CHECKOUT MODAL (Embedded Stripe)
   ================================================ */

#credit-checkout-modal {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 999999 !important;
  align-items: center;
  justify-content: center;
}

#credit-checkout-modal.active {
  display: flex !important;
}

#credit-checkout-modal .checkout-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

#credit-checkout-modal .checkout-modal {
  position: relative;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 440px;
  margin: 20px;
  max-height: 90vh;
  overflow-y: auto;
}

#credit-checkout-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: #6b6b6b;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

#credit-checkout-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

#credit-checkout-modal h2 {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 24px 0;
  text-align: center;
}

#credit-checkout-modal .order-summary {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

#credit-checkout-modal .order-summary h3 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px 0;
}

#credit-checkout-modal .summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #e5e5e5;
  margin-bottom: 8px;
}

#credit-checkout-modal .summary-line.small {
  font-size: 13px;
  color: #6b6b6b;
  margin-bottom: 16px;
}

#credit-checkout-modal .summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#credit-checkout-modal .form-group {
  margin-bottom: 20px;
}

#credit-checkout-modal .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #a1a1a1;
  margin-bottom: 8px;
}

#credit-checkout-modal .form-group input {
  width: 100%;
  padding: 14px 16px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #e5e5e5;
  font-size: 16px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

#credit-checkout-modal .form-group input:focus {
  outline: none;
  border-color: #fbbf24;
}

#credit-checkout-modal .stripe-card-element {
  padding: 14px 16px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  transition: border-color 0.2s;
}

#credit-checkout-modal .stripe-card-element.StripeElement--focus {
  border-color: #fbbf24;
}

#credit-checkout-modal .error-message {
  color: #ef4444;
  font-size: 13px;
  margin-top: 8px;
  min-height: 20px;
}

#credit-checkout-modal .btn-full {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#credit-checkout-modal .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

#credit-checkout-modal .checkout-security {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

#credit-checkout-modal .security-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b6b6b;
}

#credit-checkout-modal .security-item svg {
  stroke: #6b6b6b;
}

/* ================================================
   PAYMENT METHOD MODAL (Shares base styles with checkout)
   ================================================ */

#payment-method-modal {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 999999 !important;
  align-items: center;
  justify-content: center;
}

#payment-method-modal.active {
  display: flex !important;
}

#payment-method-modal .checkout-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

#payment-method-modal .checkout-modal {
  position: relative;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 440px;
  margin: 20px;
  max-height: 90vh;
  overflow-y: auto;
}

#payment-method-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: #6b6b6b;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

#payment-method-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

#payment-method-modal h2 {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px 0;
  text-align: center;
}

#payment-method-modal .modal-description {
  text-align: center;
  color: #a1a1a1;
  font-size: 14px;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

#payment-method-modal .form-group {
  margin-bottom: 20px;
}

#payment-method-modal .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #a1a1a1;
  margin-bottom: 8px;
}

#payment-method-modal .form-group input {
  width: 100%;
  padding: 14px 16px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #e5e5e5;
  font-size: 16px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

#payment-method-modal .form-group input:focus {
  outline: none;
  border-color: #fbbf24;
}

#payment-method-modal .stripe-card-element {
  padding: 14px 16px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  transition: border-color 0.2s;
}

#payment-method-modal .stripe-card-element.StripeElement--focus {
  border-color: #fbbf24;
}

#payment-method-modal .error-message {
  color: #ef4444;
  font-size: 13px;
  margin-top: 8px;
  min-height: 20px;
}

#payment-method-modal .btn-full {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#payment-method-modal .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

#payment-method-modal .checkout-security {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

#payment-method-modal .security-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b6b6b;
}

#payment-method-modal .security-item svg {
  stroke: #6b6b6b;
}

/* ─── Geo Location: City Autocomplete Dropdown ─── */
.ns-city-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: #1a1a1a;
  border: 1px solid #333;
  border-top: none;
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.ns-city-autocomplete::-webkit-scrollbar {
  width: 6px;
}
.ns-city-autocomplete::-webkit-scrollbar-track {
  background: #111;
}
.ns-city-autocomplete::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

/* Geo select styling inside modals */
#create-project-form select,
#ns-settings-form select {
  background: #111;
  color: #e5e5e5;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  width: 100%;
  appearance: auto;
}

#create-project-form select:focus,
#ns-settings-form select:focus {
  border-color: #fbbf24;
  outline: none;
}

/* Notification bell styles are now inline in nsh-header.php */
