/* Custom CSS Design System - Private Domain Search */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f4f4f5;
  --text-primary: #0a0c4c; /* Brand Navy Blue */
  --text-secondary: #4b5563;
  --text-muted: #71717a;
  --border-color: #e4e4e7;
  --border-hover: #0a0c4c; /* Brand Navy Blue */
  --accent-green: #22AA00;
  --accent-green-bg: #ecfdf5;
  --accent-red: #ef4444;
  --accent-red-bg: #fef2f2;
  --focus-ring: rgba(10, 12, 76, 0.15); /* Brand Navy focus ring */
  
  --font-display: 'Outfit', sans-serif;
  --font-sans: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-y: scroll;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

/* Layout */
.app-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-secondary);
}

/* Top Navigation Bar */
.app-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px; /* Zero vertical padding */
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  box-sizing: border-box;
  height: 72px; /* Fixed navbar height */
  position: relative;
}



.navbar-left, .navbar-right {
  flex: 0 0 260px; /* Force left and right blocks to have equal fixed width */
  height: 100%;
  display: flex;
  align-items: center;
}

.navbar-left {
  justify-content: flex-start;
}

.navbar-right {
  justify-content: flex-end;
}

.navbar-center {
  flex: 1;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar-logo {
  height: 72px; /* Logo height matches the navbar height exactly, fitting edge-to-edge */
  width: auto;
  object-fit: contain;
  display: block;
}

.navbar-heading {
  font-family: var(--font-display);
  font-size: 2.1rem; /* Enlarged title size */
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0a0c4c 30%, #006699 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-header-container {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  padding: 12px 20px 0 20px; /* Reduced vertical padding */
}

.app-container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 20px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

header {
  text-align: center;
  margin-bottom: 8px; /* Reduced space below header text */
  animation: fadeIn 0.6s ease;
}

header p {
  font-size: 0.95rem;
  font-weight: 400;
  max-width: none; /* Allow it to be on a single line on desktop */
  margin: 0 auto;
}

/* Security Ticker Banner */
.security-ticker {
  background: #dff2f6; /* Custom brand soft teal */
  border: 1px solid #b2e3ed; /* Light teal border */
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  white-space: nowrap; /* Prevent text from wrapping into double lines */
}

.security-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.sticky-search-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-secondary);
  height: 56px; /* Explicit height - reduced from 64px */
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 10px; /* Reduced from 12px */
  width: 100%;
  box-sizing: border-box; /* Include padding in width calculation */
  padding: 0;
}



.search-section {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding: 0 20px; /* Match app-container padding */
  box-sizing: border-box;
  position: relative;
}

.search-form {
  display: flex;
  border: 2px solid var(--text-primary);
  background: var(--bg-primary);
  box-shadow: 6px 6px 0px rgba(9, 9, 11, 0.1);
  height: 44px; /* Set search form height - reduced from 52px */
  width: 100%;
  max-width: 750px; /* Keep search bar itself at max 750px */
  margin: 0 auto; /* Center the search bar */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-form:focus-within {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0px rgba(9, 9, 11, 0.15);
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 20px;
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: 0 20px 0 52px; /* Rely on form height */
  border: none;
  font-size: 1.15rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  outline: none;
  height: 100%;
}

.search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.search-button {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0 24px; /* Slightly more compact padding */
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease;
  border-radius: 0;
  height: 100%;
}

.search-button:hover {
  background: #27272a;
}

/* Results section (table container) */
.results-section {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  margin-bottom: 50px;
  animation: fadeIn 0.8s ease;
}

.results-header {
  padding: 10px 20px; /* Reduced from 20px 24px */
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-primary);
}

.results-header h3 {
  font-size: 1.15rem; /* Slightly reduced from 1.25rem */
  font-weight: 600;
  margin: 0;
}

.results-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.scroll-tip-badge {
  font-size: 0.72rem;
  background-color: rgba(10, 12, 76, 0.06);
  color: #0a0c4c;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
  border: 1px solid rgba(10, 12, 76, 0.1);
  display: inline-flex;
  align-items: center;
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 4px 10px;
  font-weight: 500;
}

/* Scrollable responsive table */
.table-wrapper {
  overflow: visible; /* Allows vertical sticky headers relative to viewport on desktop */
  width: 100%;
}

.domain-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

/* Sticky Column Headers Wrapper (Single continuous gradient across the entire row) */
.domain-table thead {
  position: sticky;
  top: 56px; /* Sticks right below the sticky search bar wrapper (56px) */
  z-index: 90;
  background: linear-gradient(45deg, #0a0c4c 0%, #0099ff 100%); /* Single continuous brand gradient */
  box-shadow: 0 2px 4px rgba(10, 12, 76, 0.08);
}

.domain-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff; /* White text */
  padding: 12px 14px; /* More compact header padding */
  border-bottom: 2px solid #0a0c4c;
  white-space: nowrap;
  background: transparent; /* Transparent so the single continuous thead gradient shines through */
}

.domain-table td {
  padding: 10px 14px; /* More compact body cell padding */
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  font-size: 0.92rem;
  transition: background-color 0.15s ease;
}

.domain-row {
  transition: opacity 0.2s ease;
}

.domain-row:hover {
  background-color: rgba(244, 244, 245, 0.4);
}

.domain-row.taken {
  background-color: rgba(250, 250, 250, 0.6);
}

.domain-name-cell {
  font-weight: 600;
  font-size: 1.05rem;
  min-width: 180px;
}

.domain-text-green {
  color: var(--accent-green) !important;
  font-weight: 700;
}

.domain-text-blue {
  color: #2563eb !important;
  font-weight: 700;
}

.domain-text-black {
  color: var(--text-primary) !important;
  font-weight: 700;
}

.domain-path-text {
  color: var(--text-muted) !important;
  font-weight: normal !important;
}

/* Inline WHOIS Button */
.domain-name-flex {
  display: flex;
  align-items: center;
  gap: 8px;
}

.whois-inline-btn {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.65rem;
  padding: 2px 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.whois-inline-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
  background-color: var(--bg-tertiary);
}

/* Sticky Left Column for Domain Name */
.domain-table th:first-child,
.domain-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 10;
  background-color: var(--bg-primary);
  width: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
}

.domain-table th:first-child {
  z-index: 95;
  background: #0a0c4c !important;
}

/* Sticky Second Column for Status */
.domain-table th:nth-child(2),
.domain-table td:nth-child(2) {
  position: sticky;
  left: 180px;
  z-index: 10;
  background-color: var(--bg-primary);
  box-shadow: 2px 0 5px rgba(10, 12, 76, 0.05);
  border-right: 1px solid var(--border-color);
}

.domain-table th:nth-child(2) {
  z-index: 95;
  background: #0a0c4c !important;
}

.domain-row:hover td:first-child,
.domain-row:hover td:nth-child(2) {
  background-color: #f4f4f5 !important;
}

.domain-row.taken td:first-child,
.domain-row.taken td:nth-child(2) {
  background-color: #fafafa !important;
}

.domain-row.taken:hover td:first-child,
.domain-row.taken:hover td:nth-child(2) {
  background-color: #f4f4f5 !important;
}

.clickable-domain-cell {
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
}

.domain-row:hover td.clickable-domain-cell:first-child,
.domain-row.taken:hover td.clickable-domain-cell:first-child {
  background-color: #bae6fd !important; /* Sky blue background on hover */
}

.primary-broker-btn:hover {
  filter: brightness(0.9) !important;
}

.secondary-broker-btn.view-site:hover {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

/* Sticky TLD search reference card container */
.tld-search-reference-card {
  position: sticky;
  left: 20px;
  max-width: calc(100vw - 80px);
}

.subtitle-divider-row h4 {
  position: sticky;
  left: 20px;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 0;
  white-space: nowrap;
}

.status-badge.available {
  background-color: var(--accent-green-bg);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.taken {
  background-color: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.status-badge.reserved {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.status-badge.forsale {
  background-color: #0284c7; /* Brand Sky Blue */
  color: #ffffff;
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 2px 6px;
  font-size: 0.7rem;
}

.aftermarket-price {
  display: block;
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: #0a0c4c;
  margin-top: 4px;
  text-align: center;
  white-space: nowrap;
}

/* Registrar Button Grid in Cell */
.price-btn {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 6px 10px; /* More compact button padding */
  width: 100%;
  min-width: 90px; /* More compact button min-width */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 0;
}

.price-btn:hover {
  border-color: var(--border-hover);
  background: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-1px);
}

.price-btn .reg-name {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 2px;
}

.price-btn:hover .reg-name {
  opacity: 0.9;
}

.price-btn .reg-price-inr {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.1;
}

.price-btn .reg-price-usd {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 1px;
}

.price-btn:hover .reg-price-usd {
  opacity: 0.85;
}

.price-unavailable {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  font-style: italic;
  opacity: 0.5;
}

/* Suggested Domains Subtitle divider row */
.subtitle-divider-row td {
  background-color: var(--bg-secondary) !important;
  padding: 24px 20px 12px 20px !important;
  border-bottom: 2px solid var(--text-primary) !important;
}

.subtitle-divider-row h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* WHOIS Modal Overlay classes */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.2) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: none !important;
  animation: fadeIn 0.2s ease;
}

.modal-container {
  background: var(--bg-primary);
  border: 2px solid var(--text-primary);
  width: 92%;
  max-width: 820px !important;
  box-shadow: 8px 8px 0px rgba(9, 9, 11, 0.15);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  border-radius: 0;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-primary);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.modal-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  background-color: var(--bg-primary);
}

.modal-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-secondary);
  padding: 50px 0;
  font-size: 0.95rem;
}

.modal-error {
  background-color: var(--accent-red-bg);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 0.9rem;
}

.modal-pre {
  background-color: var(--bg-tertiary);
  padding: 18px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  overflow: visible; /* Let parent modal-body handle scrolling */
  white-space: pre-wrap;
  word-break: break-all;
  border: 1px solid var(--border-color);
  color: #27272a;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  background-color: var(--bg-secondary);
}

.modal-btn-close {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  padding: 10px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 0;
  transition: background-color 0.2s ease;
}

.modal-btn-close:hover {
  background-color: #27272a;
}

/* Spinner and Loader */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
  color: var(--text-secondary);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--text-primary);
  animation: spin 0.8s linear infinite;
}

.spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-color);
  border-top-color: var(--text-primary);
  animation: spin 0.8s linear infinite;
}

/* Empty states */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  border: 1px dashed var(--border-color);
  background: var(--bg-primary);
}

.empty-state-icon {
  color: var(--text-muted);
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.empty-state p {
  max-width: 450px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Security Cards */
.security-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 60px;
  animation: slideUp 0.8s ease;
}

.security-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.security-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.security-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.security-card-header .icon-container {
  background: var(--bg-tertiary);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-card-header h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

.security-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 40px 0 20px 0;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--text-primary);
}

.for-sale-domain-link {
  color: #2563eb !important;
  cursor: pointer !important;
  transition: all 0.2s ease;
}
.for-sale-domain-link:hover {
  color: #1d4ed8 !important;
  text-decoration: underline !important;
  opacity: 0.9;
}

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

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

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

/* Responsive details */
@media (max-width: 1350px) {
  .table-wrapper {
    overflow-x: auto; /* Enable horizontal scrolling on smaller screens */
  }
  .domain-table thead {
    position: static; /* Disable sticky headers when horizontal scroll is active to avoid CSS conflicts */
  }
}

@media (max-width: 900px) {
  .security-dashboard {
    grid-template-columns: 1fr;
  }
  header h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  .app-container {
    padding: 20px 10px;
  }
  header {
    margin-bottom: 8px; /* Reduced from 20px */
  }
  header h1 {
    font-size: 1.8rem;
  }
  .sticky-search-wrapper {
    height: 56px; /* Reduced from 64px */
    margin-bottom: 10px; /* Reduced from 12px */
  }
  .search-form {
    box-shadow: 4px 4px 0px rgba(9, 9, 11, 0.1);
    height: 40px; /* Reduced from 48px */
  }
  .search-input {
    padding: 0 15px 0 46px;
    font-size: 1rem;
  }
  .search-icon {
    left: 15px;
  }
  .search-button {
    padding: 0 18px;
  }
  .search-button span {
    display: none; /* Hide the text "Search" on mobile, keeping it extremely compact */
  }
  .domain-table thead {
    position: static; /* Disable sticky headers on mobile */
  }
  .domain-table th {
    padding: 10px 12px;
    font-size: 0.7rem;
  }
  .domain-table td {
    padding: 8px 12px;
  }
  footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .app-navbar {
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
    text-align: center;
    height: auto; /* Reset fixed desktop height on mobile */
  }
  .navbar-left, .navbar-right {
    flex: 0 0 auto;
    justify-content: center;
    width: 100%;
  }
  .navbar-logo {
    height: 36px;
  }
  .navbar-heading {
    font-size: 1.4rem;
  }
}

/* ==========================================================================
   Admin Console & Developer Portal Custom Dashboards Styling System
   ========================================================================== */

/* 1. Admin Login & Dev Auth Layouts */
.admin-login-wrapper, .dev-auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 85vh;
  padding: 40px 20px;
  background-color: var(--bg-secondary);
}

.admin-login-card, .dev-auth-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: 8px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-sm);
  animation: slideUp 0.5s ease;
}

.admin-login-icon, .dev-auth-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #f1f2f6;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto;
}

.admin-login-card h2, .dev-auth-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.admin-login-card p, .dev-auth-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Form Styling */
.admin-login-form, .dev-auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-secondary);
  opacity: 0.8;
}

.input-with-icon input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.input-with-icon input:focus {
  outline: none;
  border-color: #0a0c4c;
  box-shadow: 0 0 0 3px rgba(10, 12, 76, 0.1);
}

.admin-login-btn, .dev-auth-btn {
  background-color: #0a0c4c;
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.admin-login-btn:hover, .dev-auth-btn:hover {
  background-color: #006699;
}

.admin-login-btn:disabled, .dev-auth-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-toggle {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-toggle button {
  background: none;
  border: none;
  color: #006699;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
}

.auth-toggle button:hover {
  text-decoration: underline;
}

.back-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #0a0c4c;
}

/* 2. Admin Dashboard Layout */
.admin-dashboard-container, .dev-portal-container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 15px 20px; /* Reduced vertical padding */
  animation: fadeIn 0.5s ease;
}

/* Admin Tabbed Sidebar Layout */
.admin-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.admin-sidebar {
  width: 210px; /* Reduced width */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 15px; /* Reduced gap */
  position: sticky;
  top: 80px;
}

.admin-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.admin-menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px; /* Reduced height and padding */
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.admin-menu-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-color: #cbd5e1;
}

.admin-menu-btn.active {
  background-color: #0a0c4c;
  color: #ffffff;
  border-color: #0a0c4c;
  box-shadow: 0 4px 12px rgba(10, 12, 76, 0.12);
}

.admin-sidebar-footer {
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.admin-content {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tab-pane-content {
  animation: fadeIn 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

@media (max-width: 900px) {
  .admin-layout {
    flex-direction: column;
    gap: 20px;
  }
  .admin-sidebar {
    width: 100%;
    position: static;
  }
  .admin-sidebar-menu {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .admin-menu-btn {
    width: auto;
    flex: 1 1 40%;
  }
}


.admin-header, .dev-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px; /* Reduced bottom padding */
  margin-bottom: 15px; /* Reduced bottom margin */
}

.admin-header-title, .dev-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header-title h1, .dev-header-title h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.badge-live {
  font-size: 0.65rem;
  font-weight: 700;
  background-color: #fee2e2;
  color: #ef4444;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  animation: pulse 2s infinite;
}

.admin-header-actions {
  display: flex;
  gap: 12px;
}

.btn-refresh, .btn-logout, .btn-logout-dev {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-refresh:hover {
  background-color: #f1f2f6;
}

.btn-logout, .btn-logout-dev {
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  color: #ef4444;
}

.btn-logout:hover, .btn-logout-dev:hover {
  background-color: #fecaca;
}

/* Metrics Row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

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

.metric-content {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 2px 0;
  line-height: 1.1;
}

.metric-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* Analytics Row Split */
.analytics-details-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

@media (max-width: 900px) {
  .analytics-details-row {
    grid-template-columns: 1fr;
  }
}

.analytics-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.analytics-card-header {
  padding: 16px 24px; /* Slightly tighter padding */
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between; /* Align items to left and right */
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.analytics-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0; /* Removed bottom margin to keep it centered */
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.analytics-card-body {
  padding: 24px;
  flex: 1;
}

/* Stats Progress list */
.stats-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stats-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stats-item-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}

.stats-item-name {
  color: var(--text-primary);
}

.stats-item-val {
  color: var(--text-secondary);
}

.stats-item-bar-bg {
  width: 100%;
  height: 8px;
  background-color: #f1f2f6;
  border-radius: 4px;
  overflow: hidden;
}

.stats-item-bar {
  height: 100%;
  border-radius: 4px;
}

/* Simple list table */
.stats-table-wrapper {
  overflow-x: auto;
}

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

.stats-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-bottom: 2px solid var(--border-color);
}

.stats-table td {
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}

.query-text {
  font-family: monospace;
  font-weight: 600;
  color: #006699;
}

.empty-stats {
  padding: 40px 0;
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.9rem;
}

.loading-stats {
  padding: 80px 0;
  text-align: center;
  color: var(--text-secondary);
}

/* Spinner Round (for Dashboard) */
.spinner-round {
  width: 32px;
  height: 32px;
  border: 3px solid #f1f2f6;
  border-top-color: #0a0c4c;
  border-radius: 50%;
  margin: 0 auto 16px auto;
  animation: spin 0.8s linear infinite;
}

.spin {
  animation: spin 1s linear infinite;
}

/* 3. Developer Portal Dashboard Grid */
.dev-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 30px;
}

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

.dev-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dev-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.dev-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.card-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0 0 16px 0;
}

.api-key-box {
  display: flex;
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.api-key-text {
  flex: 1;
  font-family: monospace;
  font-size: 0.85rem;
  padding: 10px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
}

.btn-copy {
  background-color: #f1f5f9;
  border: none;
  border-left: 1px solid var(--border-color);
  padding: 0 12px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-copy:hover {
  background-color: #e2e8f0;
}

.copy-confirm {
  display: block;
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 600;
  margin-top: 6px;
}

/* Subscription status badge */
.plan-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.plan-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.plan-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.plan-badge.free {
  background-color: #f1f2f6;
  color: var(--text-secondary);
}

.plan-badge.pro {
  background-color: #d1fae5;
  color: #065f46;
}

.plan-features {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #065f46;
  font-weight: 600;
}

/* Upgrades quota bar */
.quota-bar-wrapper {
  margin-bottom: 20px;
}

.quota-bar-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.quota-bar-bg {
  width: 100%;
  height: 6px;
  background-color: #f1f2f6;
  border-radius: 3px;
  overflow: hidden;
}

.quota-bar {
  height: 100%;
  background-color: #f59e0b;
  border-radius: 3px;
}

.upgrade-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0 0 16px 0;
}

.btn-upgrade-now {
  width: 100%;
  background-color: #10b981;
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-upgrade-now:hover {
  background-color: #059669;
}

/* Documentation panel */
.docs-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.docs-header h3 {
  margin: 0;
}

.endpoint-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.endpoint-badge {
  background-color: #e2e8f0;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.endpoint-url {
  font-family: monospace;
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 600;
}

.docs-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px 0;
}

.code-block {
  background-color: #0f172a;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.82rem;
  overflow-x: auto;
  line-height: 1.5;
  margin-bottom: 24px;
  border: 1px solid #1e293b;
}

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

/* Phase 3 Footer & Legal Pages */
.app-footer {
  background-color: var(--text-primary);
  color: #e2e8f0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px 20px;
  width: 100%;
  margin-top: auto;
  position: relative;
}



.footer-container {
  max-width: 1350px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-column h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
  cursor: pointer;
}

.footer-column ul li a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1350px;
  margin: 40px auto 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: #64748b;
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 20px;
  transition: color 0.2s ease;
  cursor: pointer;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* Legal & Informational Pages Styling */
.legal-page-container {
  max-width: 800px;
  margin: 40px auto;
  background-color: var(--bg-primary);
  border: 2px solid var(--text-primary);
  box-shadow: 6px 6px 0px rgba(9, 9, 11, 0.1);
  padding: 40px;
  border-radius: 4px;
}

.legal-title {
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 800;
}

.legal-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.legal-content h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin: 28px 0 12px 0;
  font-weight: 700;
}

.legal-content p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 24px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.btn-back-home:hover {
  transform: translateX(-4px);
}

/* TLDs grid styling */
.tlds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.tld-card {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  background-color: var(--bg-primary);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tld-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-primary);
}

.tld-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tld-price {
  font-size: 0.9rem;
  color: var(--accent-green);
  font-weight: 700;
}

.tld-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  background-color: var(--accent-green-bg);
  color: var(--accent-green);
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 8px;
}

/* TLDs page custom styling */
.tlds-page-header {
  margin-bottom: 24px;
}

.tld-index-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.tld-index-bar a.anchor {
  display: inline-block;
  color: var(--text-secondary);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-size: 0.95rem;
}

.tld-index-bar a.anchor:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.tld-index-bar span.anchor.disabled {
  color: var(--text-muted);
  cursor: default;
  opacity: 0.5;
  padding: 2px 6px;
  font-size: 0.95rem;
}

.tld-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.tld-filters-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tld-filters-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.2s ease;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.tld-filters-links a:hover {
  color: var(--text-primary);
}

.tld-filters-links a.active {
  color: var(--text-primary);
  font-weight: 800;
  border-bottom-color: var(--text-primary);
}

.tld-search-wrapper {
  margin-left: auto;
  position: relative;
  width: 240px;
}

.tld-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.tld-search-input:focus {
  border-color: var(--text-primary);
}

.tld-group-list {
  margin-bottom: 40px;
}

.tld-group-section {
  margin-bottom: 32px;
}

.tld-group-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.tld-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.tld-card-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-tertiary);
  border-radius: 6px;
  padding: 8px 12px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.tld-card-item:hover {
  background-color: rgba(10, 12, 76, 0.08);
  transform: translateY(-1px);
}

.tld-card-link {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tld-card-item .flag {
  font-size: 1.2rem;
}

.tld-card-item .wiki-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  opacity: 0.5;
  transition: opacity 0.2s ease, color 0.2s ease;
  padding-left: 8px;
}

.tld-card-item .wiki-link:hover {
  opacity: 1;
  color: var(--text-primary);
}

.tld-no-results {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 40px;
}

/* TLD Details badges */
.tld-badge-brand {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  background-color: #fce7f3;
  color: #db2777;
  padding: 4px 12px;
  border-radius: 12px;
}

.tld-badge-country {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  background-color: #dcfce7;
  color: #16a34a;
  padding: 4px 12px;
  border-radius: 12px;
}

.tld-badge-generic {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  background-color: #dbeafe;
  color: #2563eb;
  padding: 4px 12px;
  border-radius: 12px;
}

.tld-badge-idn {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  background-color: #f3e8ff;
  color: #9333ea;
  padding: 4px 12px;
  border-radius: 12px;
}

/* Payment Selector Modal */
.payment-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 12, 76, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: fadeIn 0.25s ease;
}

.payment-modal-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 90%;
  max-width: 460px;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(10, 12, 76, 0.15);
  animation: slideIn 0.3s ease;
}

.payment-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.payment-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.payment-modal-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.payment-methods-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-method-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.payment-method-btn:hover {
  background-color: #f1f2f6;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.payment-method-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-method-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: block;
}

.payment-method-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.payment-method-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #0a0c4c;
}

.payment-modal-close-btn {
  width: 100%;
  padding: 10px;
  margin-top: 20px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-modal-close-btn:hover {
  background-color: #f3f4f6;
  color: var(--text-primary);
}

/* Phase 6: Search Table Filters, Badges & Action Buttons styling */
.results-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  padding: 4px;
  background-color: var(--bg-light);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  width: fit-content;
}

.filter-btn {
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background-color: transparent;
  color: var(--text-secondary);
}

.filter-btn:hover {
  background-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}

.filter-btn.btn-all.active {
  background-color: #2563eb !important;
  color: #ffffff !important;
}
.filter-btn.btn-all.active:hover {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
}

.filter-btn.btn-available.active {
  background-color: #10b981 !important;
  color: #ffffff !important;
}
.filter-btn.btn-available.active:hover {
  background-color: #059669 !important;
  color: #ffffff !important;
}

.filter-btn.btn-premium.active {
  background-color: #d97706 !important;
  color: #ffffff !important;
}
.filter-btn.btn-premium.active:hover {
  background-color: #b45309 !important;
  color: #ffffff !important;
}

.filter-btn.btn-taken.active {
  background-color: #ef4444 !important;
  color: #ffffff !important;
}
.filter-btn.btn-taken.active:hover {
  background-color: #dc2626 !important;
  color: #ffffff !important;
}
