/* Pay Dirt Admin Styles - index.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  --color-stone-900: #271507;
  --color-stone-800: rgb(87, 78, 69);
  --color-stone-700: #57534e;
  --color-stone-600: #908780;
  --color-stone-500: #a8a29e;
  --color-stone-400: #d6d3d1;
  --color-stone-300: #e7e5e4;
  --color-stone-200: #FAFAF9;
  --color-stone-100: #fafaf9;
  --color-stone-50: #fafaf9;

  --color-orange-600: #ffa724;
  --color-orange-700: #9E4A21;
  --color-orange-500: #f97316;
  --color-orange-400: #fb923c;
  --color-orange-100: #ffedd5;
  --color-orange-50: #fff7ed;

  --color-amber-600: #d97706;
  --color-amber-700: #9c4a21;

  --color-green-600: #16a34a;
  --color-green-100: #dcfce7;

  --color-red-600: #dc2626;
  --color-red-700: #b91c1c;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  position: relative;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  margin: 0 auto;
  color: var(--color-stone-900);
}

.app-shell {
  min-height: 100vh;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--color-stone-200);
  color: var(--color-stone-50);
  border-radius: 100px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(41, 37, 36, 0.25);
  min-width: 710px;
  max-width: 1100px;
  margin: 60px auto
}

.app-brand a {
  color: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.app-brand {
  display: flex;
  align-items: flex-end;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 16px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-stone-50);
  margin: 8px 12px;
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.app-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.app-nav a {
  font-size: 14px;
}

.app-nav a.nav-active,
.app-nav a:hover:not(.main_btn_login) {
  color: var(--color-orange-700);
  position: relative;
  text-decoration: none;
}

.app-nav a.nav-active::after,
.app-nav a:hover:not(.main_btn_login):after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--color-orange-700);
  border-radius: 999px;
}

.app-nav .main_btn_login {
  color: var(--color-stone-50);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.05em;
  padding: 6px 10px 6px 30px;
  border-radius: 30px;
  background-color: var(--color-stone-600);
  min-width: 158px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.app-nav .main_btn_login:hover {
  background: var(--color-stone-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(116, 116, 116, 0.25);
  color: var(--color-stone-100);
  text-decoration: none;
}

.nav_btn_arrow {
  width: 36px;
}

.nav_logo {
  max-width: 183px
}

.app-footer {
  margin: 80px auto 0;
  padding: 14px 30px;
  background: var(--color-stone-900);
  color: var(--color-stone-50);
  border-radius: 0px 0px 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 10px 24px rgba(41, 37, 36, 0.2);
  width: 100vw;
  min-height: 160px;
}

.footer_logo {
  max-width: 227px;
}

.app-footer .muted {
  color: var(--color-stone-300);
}

.main-container {
  max-width: 1400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.health-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.health-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.health-badge.operational {
  background: var(--color-green-100);
  color: var(--color-green-600);
  border: 1px solid var(--color-green-600);
}

.health-badge.degraded {
  background: var(--color-orange-50);
  color: var(--color-orange-700);
  border: 1px solid var(--color-orange-600);
}

.health-badge.down {
  background: #fee2e2;
  color: var(--color-red-600);
  border: 1px solid var(--color-red-600);
}

.health-badge.maintenance {
  background: var(--color-stone-200);
  color: var(--color-stone-700);
  border: 1px solid var(--color-stone-400);
}

.health-bar {
  height: 12px;
  border-radius: 999px;
  background: var(--color-stone-200);
  overflow: hidden;
  margin-top: 12px;
}

.health-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-green-600), var(--color-orange-500));
  transition: width 0.3s ease;
}

.health-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.health-pill {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 24px;
  color: var(--color-stone-700);
  font-weight: 400;
}

.health-pill.active {
  border: 1px solid var(--color-stone-300);
  color: var(--color-orange-700);
}

.health-status-icon {
  font-size: 34px;
  margin-right: 6px;
  vertical-align: middle;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.username_color {
  color: var(--color-orange-700);
}

.health-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--color-stone-50);
  border: 1px solid var(--color-stone-200);
}

.health-label {
  font-weight: 600;
  color: var(--color-stone-900);
}

.member_register {
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 24px;
  text-transform: uppercase;
}

.admin-legend {
  color: var(--color-stone-900);
  font-size: 22px;
  text-align: center;
  font-weight: 600;
  margin: 0
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  background: var(--color-stone-400);
}

.dot.ok {
  background: var(--color-green-600);
}

.dot.warn {
  background: var(--color-orange-600);
}

.steps {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex-direction: column;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.step-arrow {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--color-stone-600);
  color: var(--color-stone-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 30px;
}

.step-body {
  text-align: center;
}

/* Typography */
h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-stone-900);
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  font-family: "Inter", sans-serif;
  text-align: center;
}

h2 {
  font-size: 32px;
  font-weight: 600;
  color: var(--color-stone-900);
  margin: 0px 0 16px 0;
  font-family: "Inter", sans-serif;
  line-height: 1;
}

h3 {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-stone-900);
  margin: 24px 0 12px 0;
  font-family: "Inter", sans-serif;
}

p {
  margin: 12px 0;
  color: var(--color-stone-700);
  font-size: 18px;
}

a {
  color: var(--color-stone-900);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(---color-stone-800);
  text-decoration: underline;
}

/* Links in top-right corner */
body>div[style*="text-align:right"],

/* Cards */
.card {
  background: white;
  border: 1px solid var(--color-stone-300);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 100px;
  box-shadow: 0 1px 3px rgba(41, 37, 36, 0.05);
  position: relative;
}

.card-background-gray {
  background-color: var(--color-stone-200);
  margin: 40px auto 100px;
  padding: 80px 40px;
  position: relative;
}

/* Forms */
form {
  margin: 0;
}

.form_container {
  min-height: 60vh;
  display: block;
}

label {
  display: block;
  font-weight: 500;
  color: var(--color-stone-900);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="file"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-stone-400);
  border-radius: 999px;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  color: var(--color-stone-900);
  transition: all 0.2s ease;
  margin: 5px 0px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-orange-600);
  box-shadow: 0 0 0 3px var(--color-orange-100);
}

input[type="file"] {
  padding: 8px;
  cursor: pointer;
}

input[type="number"] {
  width: auto;
  min-width: 100px;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-stone-500);
  text-align: center;
}

/* Buttons */
button,
.btn {
  padding: 20px 30px;
  background: var(--color-orange-700);
  color: var(--color-stone-50);
  border: none;
  border-radius: 999px;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  letter-spacing: 1px;
}

.upload-button {
  padding: 11px 30px;
  font-size: 14px;
  font-weight: 400;
}

.btn_get_started {
  position: absolute;
  left: 41%;
}

button:hover,
.btn:hover {
  background: var(--color-orange-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
  color: var(--color-stone-100)
}

button:active,
.btn:active {
  transform: translateY(0);
}

.btn.secondary {
  background: var(--color-stone-700);
  color: var(--color-stone-50);
}

.btn.secondary:hover {
  background: var(--color-stone-800);
  box-shadow: 0 4px 12px rgba(68, 64, 60, 0.25);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(41, 37, 36, 0.05);
}

.minitable {
  margin-bottom: 16px;
}

.qualifications-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.qualifications-card {
  max-width: 30%;
  border: 1px solid #27150734;
  border-radius: 10px;
  padding: 20px
}

.qualifications-icon {
  width: 50px;
}

.qualifications-title {
  font-size: 20px;
  text-align: left;
}

th {
  background: var(--color-stone-100);
  color: var(--color-stone-900);
  font-weight: 600;
  text-align: left;
  padding: 12px 8px;
  border-bottom: 2px solid var(--color-stone-300);
  position: sticky;
  top: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-stone-200);
  color: var(--color-stone-700);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background: var(--color-stone-50);
}

.table-wrapper {
  max-width: 100%;
  max-height: 375px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid var(--color-stone-300);
  margin: 12px 0 0px 0;
}

.table-wrapper table {
  border-collapse: collapse;
  width: 100%;
}

.table-wrapper th {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-orange-700);
  text-wrap: nowrap;
}

.table-wrapper td {
  font-size: 13px;
  color: var(--color-stone-700);
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 12px 8px 0;
  font-size: 14px;
  color: var(--color-stone-600);
}

.page-size {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-pagination select {
  border: 1px solid var(--color-stone-300);
  border-radius: 8px;
  padding: 4px 8px;
  background: white;
  font-size: 14px;
  height: auto;
  width: auto;
}

.page-controls {
  display: flex;
  gap: 6px;
}

.page-btn {
  border: none;
  background: transparent;
  font-size: 18px;
  color: var(--color-stone-600);
  cursor: pointer;
  padding: 4px 8px;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@supports (-webkit-touch-callout: none) {
  .table-wrapper {
    -webkit-overflow-scrolling: touch;
  }
}

td.editable {
  background: #9e4a210a;
  font-weight: 500;
}

.learn-input {
  border: 1px solid transparent !important;
  font-size: 13px !important;
  padding: 6px 8px !important;
  height: auto !important;
}

.learn-input:focus {
  outline: none;
  border-color: var(--color-orange-400);
  background: #fff;
}

/* Muted text */
.muted {
  color: var(--color-stone-600);
}

/* Insights */

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.insights-card {
  border: 1px solid var(--color-stone-300);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 30px rgba(41, 37, 36, 0.04);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.insights-link {
  color: var(--color-orange-700);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Documentation */
.docs-wrap {
  padding: 20px 0 40px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.docs-card {
  border: 1px solid var(--color-stone-300);
  border-radius: 16px;
  background: white;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(41, 37, 36, 0.04);
}

.docs-card h1 {
  margin-bottom: 30px !important;
}

.docs-list {
  margin: 0;
  padding-left: 18px;
  color: var(--color-stone-600);
  font-size: 18px;
  line-height: 1.6;
}

.docs-list li+li {
  margin-top: 10px;
}

.docs-subline {
  display: block;
  margin-left: 6px;
  color: var(--color-stone-500);
  font-size: 18px;
}

.faq-item {
  background: #2715071f;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-toggle {
  width: 100%;
  border: none;
  background: transparent;
  padding: 16px 14px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--color-stone-700);
  cursor: pointer;
  font-size: 17px;
  transition: none;
  border-radius: unset;
}

.is-open .faq-toggle {
  background: var(--color-stone-600);
  border-radius: unset;
}

.faq-toggle:hover {
  background: var(--color-stone-600);
  color: var(--color-stone-50);
  box-shadow: none;
}

.faq-toggle i {
  color: var(--color-stone-50);
  background: var(--color-stone-600);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.faq-body {
  padding: 0 14px 14px;
  font-size: 0.9rem;
  color: var(--color-stone-600);
  display: none;
}

.faq-item.is-open {
  background: #2715071f;
}

.faq-item.is-open .faq-toggle {
  color: var(--color-stone-50);
}

.faq-item.is-open .faq-toggle i {
  color: var(--color-stone-700);
  background: #fff;
}

.faq-item.is-open .faq-body {
  display: block;
  color: #7E746D;
  margin: 10px 0px;
}

/* Integrations */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.platform-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--color-stone-300);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  background: var(--color-stone-50);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.platform-card input[type="radio"] {
  margin-top: 4px;
}

.platform-card:hover {
  border-color: var(--color-orange-600);
  box-shadow: 0 2px 10px rgba(41, 37, 36, 0.08);
}

.platform-fields {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--color-stone-200);
}

.platform-fields.is-hidden {
  display: none;
}

.form-actions {
  margin-top: 16px;
  text-align: center;
}

code {
  background: var(--color-stone-200);
  color: var(--color-stone-900);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Courier New', monospace;
  font-size: 0.9em;
}

/* Details/Summary */
details {
  margin-top: 8px;
}

summary {
  cursor: pointer;
  color: var(--color-orange-600);
  font-weight: 500;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

summary:hover {
  background: var(--color-orange-50);
}

details[open] summary {
  margin-bottom: 8px;
}

details ul {
  margin: 8px 0;
  padding-left: 24px;
}

details li {
  margin: 6px 0;
  color: var(--color-stone-700);
}

/* Progress bar */
#progressCard {
  background: white;
  border: 1px solid var(--color-stone-300);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 16px;
}

#progressBar {
  height: 100%;
  background: #2715074b;
  transition: width 0.3s ease;
  border-radius: 8px;
}

#progressCard strong {
  color: var(--color-stone-900);
  font-size: 1rem;
}

#progressText {
  font-size: 0.9rem;
}

/* Log/Console */
#log,
pre {
  background: var(--color-stone-900);
  color: #e6edf3;
  padding: 16px;
  border-radius: 8px;
  overflow: auto;
  font-size: 0.85rem;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Courier New', monospace;
  line-height: 1.5;
  max-height: 240px;
  border: 1px solid var(--color-stone-800);
}

/* Toolbar */
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px;
  justify-content: center;
}

.download-link {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

/* Flash messages */
div[style*="color:green"],
div[style*="color:#b00"] {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 500;
  max-width: 1100px;
  margin: 40px auto;
}

div[style*="color:green"] {
  background: var(--color-green-100) !important;
  color: var(--color-green-600) !important;
  border: 1px solid var(--color-green-600);
  max-width: 1100px;
  margin: 10px auto;
}

div[style*="color:#b00"] {
  background: #fee2e2 !important;
  color: var(--color-red-600) !important;
  border: 1px solid var(--color-red-600);
}

/* Downloads section */
#downloads {
  background: var(--color-orange-50);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--color-orange-200);
  margin-top: 16px;
}

#downloads p {
  margin: 0;
}

#downloads a {
  font-weight: 600;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.download-actions .btn {
  margin-left: auto;
}

#runHistory .history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#runHistory .history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-stone-200);
}

#runHistory .history-row:last-child {
  border-bottom: none;
}

.history-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Login page specific */
body h2:first-of-type {
  text-align: center;
  border-bottom: none;
}

form[action*="login"] {
  max-width: 344px;
  margin: 0 auto;
  background: white;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--color-stone-300);
  box-shadow: 0 4px 12px rgba(41, 37, 36, 0.1);
  text-align: center;
}

form[action*="login"] button {
  width: 100%;
  max-width: 146px;
  margin-top: 8px;
}

/* Health page */
body h1:first-child {
  text-align: center;
  font-size: 48px;
  font-weight: 600;
  border-bottom: none;
  margin-bottom: 0px;
  line-height: 1;
}

/* Textarea */
textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px;
  font-family: inherit;
  resize: vertical;
}

/* ─── Accordion ───────────────────────────────────────────── */
.accordion-item {
  border: 1px solid var(--color-stone-300);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.accordion-header {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-stone-900);
  background: var(--color-stone-100);
  box-sizing: border-box;
  transition: background 0.15s ease;
}

.accordion-header:hover { background: var(--color-stone-200); }

.accordion-arrow {
  font-size: 12px;
  color: var(--color-stone-600);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.accordion-item.is-open .accordion-arrow { transform: rotate(180deg); }

.accordion-body {
  display: none;
  padding: 20px 20px 24px;
  background: #fff;
}

.accordion-item.is-open .accordion-body { display: block; }

.accordion-item.is-open .accordion-header {
  background: var(--color-stone-200);
  border-bottom: 1px solid var(--color-stone-300);
}

/* ─── Google Ads page ─────────────────────────────────────── */
.gads-creds-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gads-cred-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.gads-cred-row .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gads-cred-row .dot.ok   { background: var(--color-green-600); }
.gads-cred-row .dot.warn { background: var(--color-orange-500); }

.gads-cred-label {
  flex: 1;
  color: var(--color-stone-700);
  font-size: 13px;
  font-family: monospace;
}

.gads-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gads-badge-ok      { background: var(--color-green-100);  color: var(--color-green-700); }
.gads-badge-missing { background: var(--color-orange-100); color: var(--color-orange-700); }

.gads-result-box {
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid transparent;
  line-height: 1.6;
}

.gads-result-pending {
  background: var(--color-stone-100);
  border-color: var(--color-stone-300);
  color: var(--color-stone-600);
}

.gads-result-ok {
  background: #f0fdf4;
  border-color: var(--color-green-300);
  color: var(--color-green-800);
}

.gads-result-error {
  background: #fff5f5;
  border-color: #fca5a5;
  color: var(--color-red-700);
}

.gads-summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  padding: 14px 18px;
  background: var(--color-stone-100);
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid var(--color-stone-200);
}

/* ─── Ping Analyzer ───────────────────────────────────────── */
.ping-drop-zone {
  border: 2px dashed var(--color-stone-400);
  border-radius: 16px;
  padding: 44px 24px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
  cursor: default;
}

.ping-drop-active {
  border-color: var(--color-orange-600);
  background: var(--color-orange-50);
}

.ping-drop-icon {
  font-size: 42px;
  color: var(--color-stone-400);
  display: block;
  margin-bottom: 4px;
}

.ping-stat-card {
  border: 1px solid var(--color-stone-300);
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 10px 30px rgba(41, 37, 36, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.ping-stat-icon {
  font-size: 26px;
  color: var(--color-orange-700);
}

.ping-stat-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-stone-900);
  line-height: 1.1;
}

.ping-stat-label {
  font-size: 13px;
  color: var(--color-stone-600);
}

.ping-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .ping-two-col {
    grid-template-columns: 1fr;
  }
}

/* ─── Dropdown nav groups ──────────────────────────────────── */
.nav-group {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-group-btn {
  display: flex !important;
  align-items: center;
  gap: 5px;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--color-stone-900) !important;
  cursor: pointer;
  transition: color 0.2s ease !important;
  white-space: nowrap;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  font-family: inherit !important;
  letter-spacing: normal !important;
}

.nav-group-btn:hover,
.nav-group-active .nav-group-btn,
.nav-group.is-open .nav-group-btn {
  color: var(--color-orange-700) !important;
  background: none !important;
  transform: none !important;
  box-shadow: none !important;
}

.nav-group-btn .fa-solid:not(.nav-group-arrow) {
  font-size: 12px;
}

.nav-group-arrow {
  font-size: 9px;
  transition: transform 0.2s ease;
}

.nav-group.is-open .nav-group-arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--color-stone-200);
  border-radius: 16px;
  padding: 6px;
  min-width: 170px;
  box-shadow: 0 15px 35px rgba(41, 37, 36, 0.18);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s 0.15s;
  z-index: 50;
}

.nav-group:hover .nav-dropdown,
.nav-group.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s;
}

.nav-dropdown a {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-stone-700);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown a:hover,
.nav-dropdown a.nav-active {
  background: var(--color-stone-300);
  color: var(--color-orange-700);
  text-decoration: none;
}

.nav-dropdown a::after {
  display: none !important;
}

.nav-exit-assume {
  font-size: 13px;
  color: var(--color-stone-600);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {

  .app-header {
    flex-wrap: wrap;
    position: relative;
    margin: 30px 10px;
  }

  .menu-toggle {
    display: block;
  }

  .app-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: var(--color-stone-900);
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(41, 37, 36, 0.4);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .nav_logo {
    max-width: 120px;
  }

  body.nav-open .app-nav {
    max-height: 260px;
    opacity: 1;
  }

  .app-footer {
    min-height: 100px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  button,
  .btn {
    font-size: 1.0rem;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .footer_logo {
    max-width: 150px;
  }

  .toolbar .btn {
    width: 100%;
  }

  table {
    font-size: 0.85rem;
  }

  th,
  td {
    padding: 8px 10px;
  }
}

/* Utility classes */
.mb-2 {
  margin-bottom: 8px;
}

.mb-3 {
  margin-bottom: 12px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mt-2 {
  margin-top: 8px;
}

.mt-3 {
  margin-top: 12px;
}

.mt-4 {
  margin-top: 16px;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.upload-card {
  background: white;
  border: 1px solid var(--color-stone-300);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(41, 37, 36, 0.05);
  text-align: center;
  position: relative;
}

.upload-card-header h2 {
  margin: 0 0 6px 0;
}

.upload-form h1 {
  margin-top: 0;
}


.file-choose {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-stone-300);
  background: var(--color-stone-50);
  margin: 12px auto 16px auto;
  cursor: pointer;
}

.file-choose input {
  display: none;
}

.file-btn {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--color-stone-700);
}

.file-name {
  font-size: 0.85rem;
  color: var(--color-stone-600);
}

.progress-container {
  max-width: 609px;
  margin: auto;
}

.upload-file-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.progress-track {
  height: 10px;
  background: var(--color-stone-200);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px auto;
  max-width: 609px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-stone-600);
  transition: width 0.3s ease;
}

.step-arrow-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--color-stone-600);
  color: var(--color-stone-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 30px;
  position: absolute;
  left: 46.5%;
  z-index: 1;
  bottom: -66px;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.history-item {
  padding: 12px;
}

.history-item input {
  margin-top: 4px;
}

.history-meta strong {
  display: block;
}

.disq-title {
  margin: 0 0 6px 0;
  font-family: "Questrial", sans-serif;
}

.disq-subtitle {
  margin-top: 0;
}

.disq-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.disq-chip {
  margin: 0;
}

.disq-chip-btn {
  border: 1px solid var(--color-stone-300);
  background: var(--color-stone-50);
  color: var(--color-stone-700);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.disq-chip-btn:hover {
  border-color: var(--color-stone-600);
  background: var(--color-stone-600);
  color: #000;
  box-shadow: none;
}

.disq-chip-x {
  font-weight: 700;
  opacity: 0.7;
}

.disq-add input {
  flex: 1;
  border-radius: 999px;
  height: 34px;
  font-size: 14px;
  width: 100%;
}

.disq-add button {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  margin-top: 0px;
  font-weight: 300;
}

.loan-type-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 16px;
}

.loan-type-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.loan-type-name {
  color: var(--color-stone-700);
  font-size: 16px;
}

.loan-type-points {
  width: 88px;
  border-radius: 999px;
  text-align: center;
  padding: 6px 10px;
  border: 1px solid var(--color-stone-300);
  background: white;
  font-weight: 600;
  height: 36px;
}

@media (max-width: 768px) {
  .upload-file-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .nav-group {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .nav-group-btn {
    width: 100%;
    padding: 4px 0 !important;
  }

  .nav-dropdown {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    background: transparent;
    padding: 0 0 4px 18px;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    display: block;
    transition: max-height 0.2s ease;
  }

  .nav-group.is-open .nav-dropdown {
    max-height: 300px;
  }

  .nav-dropdown a {
    padding: 6px 0;
    border-radius: 0;
  }

  .nav-dropdown a:hover,
  .nav-dropdown a.nav-active {
    background: transparent;
  }
}