* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4f6f8;
  color: #1c2530;
}

header {
  background: #12233e;
  color: #fff;
  padding: 24px 0 20px;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

header h1 {
  margin: 0 0 4px;
  font-size: 22px;
}

header p {
  margin: 0;
  color: #a9bad3;
  font-size: 13px;
}

.header-tagline {
  margin: 0;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.header-auth {
  text-align: right;
}

.header-auth-text {
  margin: 0 0 8px;
  font-size: 12px;
  color: #a9bad3;
}

.header-auth-buttons {
  display: flex;
  gap: 10px;
}

.header-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.header-btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.header-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.header-btn-solid {
  background: #6ea8ff;
  color: #12233e;
}

.header-btn-solid:hover {
  background: #8fbdff;
}

.page-nav {
  margin-top: 14px;
  display: flex;
  gap: 18px;
}

.page-nav a {
  color: #a9bad3;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.page-nav a:hover { color: #fff; }
.page-nav a.active { color: #fff; border-bottom-color: #6ea8ff; }

.page-nav-spacer { flex: 1; }

.auth-email {
  color: #a9bad3;
  font-size: 12.5px;
  margin-right: 10px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 32px 64px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: #fff;
  border: 1px solid #e1e6ec;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  align-items: center;
}

.filters label {
  font-size: 12px;
  color: #5b6b7f;
  font-weight: 600;
  margin-right: 6px;
}

.filters select, .filters input {
  border: 1px solid #d6dce3;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  background: #fafbfc;
}

.filters input[type="text"] {
  min-width: 200px;
}

.filters-clear {
  margin-left: auto;
  align-self: flex-end;
}

.meta-bar {
  font-size: 12px;
  color: #66788e;
  margin-bottom: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

/* Reserved space for future ad units (AdSense goes live after hosting is
   connected) — plain placeholders for now so the layout already accounts
   for them; swap the inner content for a real <ins class="adsbygoogle">
   unit later, no layout change needed. */
.ad-slot {
  border: 1px dashed #c7cfd9;
  border-radius: 8px;
  background: #eef1f5;
  color: #8a97a8;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  margin-bottom: 16px;
  grid-column: 1 / -1;
}

.ad-slot-banner {
  min-height: 90px;
}

.ad-slot-infeed {
  min-height: 140px;
}

.card {
  background: #fff;
  border: 1px solid #e1e6ec;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.bank-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  background: #eaf1fb;
  color: #1a4d8f;
  white-space: nowrap;
}

.status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
}

.status.active { background: #e6f6ec; color: #1c7a3c; }
.status.ending-soon { background: #fdf1dc; color: #a15c00; }
.status.expired { background: #fbe8e8; color: #a12626; }
.status.unknown { background: #eef0f2; color: #667; }

.card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.card p.summary {
  margin: 0;
  font-size: 13px;
  color: #46566a;
  line-height: 1.45;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  background: #f1f0fb;
  color: #4a3d99;
  padding: 3px 8px;
  border-radius: 999px;
}

.tag.category-tag {
  background: #e8f4f2;
  color: #146c5e;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f0f2f5;
}

.dates {
  font-size: 11.5px;
  color: #7c8ba0;
}

.card a.source-link {
  font-size: 12px;
  color: #1a4d8f;
  text-decoration: none;
  font-weight: 600;
}

.card a.source-link:hover { text-decoration: underline; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #7c8ba0;
  font-size: 14px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 28px 0 12px;
}

.pagination button {
  padding: 8px 16px;
  border: 1px solid #d3dae3;
  border-radius: 6px;
  background: #fff;
  color: #12233e;
  font-size: 13px;
  cursor: pointer;
}

.pagination button:hover:not(:disabled) {
  background: #eef4fc;
}

.pagination button:disabled {
  color: #b9c2cd;
  cursor: not-allowed;
}

.pagination .page-status {
  font-size: 13px;
  color: #66788e;
}

.callout-note {
  background: #eef4fc;
  border: 1px solid #d3e3f7;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: #35506e;
  margin-bottom: 20px;
  line-height: 1.5;
}

.callout-note code {
  background: #dce9f8;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}

.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

.grid.users-grid {
  grid-template-columns: 1fr;
}

.user-card {
  background: #fff;
  border: 1px solid #e1e6ec;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.user-card-head h3 {
  margin: 2px 0 0;
  font-size: 16px;
}

.user-id {
  font-size: 11px;
  color: #7c8ba0;
}

.user-city {
  font-size: 12.5px;
  color: #5b6b7f;
}

.user-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-label {
  font-size: 11px;
  color: #7c8ba0;
}

.user-total {
  font-weight: 700;
  font-size: 14px;
  color: #12233e;
}

.user-card table th, .user-card table td {
  font-size: 12.5px;
}

.user-summary {
  background: #fff;
  border: 1px solid #e1e6ec;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.user-summary h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.user-summary-meta {
  margin: 0;
  font-size: 12.5px;
  color: #5b6b7f;
}

.rec-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: start;
}

.rec-sidebar {
  position: sticky;
  top: 16px;
  background: #fff;
  border: 1px solid #e1e6ec;
  border-radius: 10px;
  padding: 14px 16px;
}

.rec-sidebar h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: #5b6b7f;
}

.cat-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f2f5;
}

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

.cat-row-muted { color: #9aa7b6; }

.cat-name { font-weight: 600; }

.cat-stats {
  color: #5b6b7f;
  overflow-wrap: break-word;
}

.callout-note-small {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 11.5px;
}

.rec-section {
  margin-bottom: 26px;
}

.rec-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e1e6ec;
}

.rec-section-head h3 {
  margin: 0;
  font-size: 15px;
  color: #12233e;
}

.rec-section-meta {
  font-size: 12px;
  color: #7c8ba0;
}

.rec-more {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #1a4d8f;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.rec-more:hover {
  text-decoration: underline;
}

.rec-subhead {
  font-size: 12px;
  font-weight: 700;
  color: #7c8ba0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 14px 0 8px;
}

.card-featured {
  border-color: #e8b923;
  box-shadow: 0 0 0 1px #e8b923 inset;
}

.featured-badge {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  color: #8a6400;
  background: #fdf1cf;
  padding: 2px 8px;
  border-radius: 999px;
}

.offer-audience {
  font-size: 11.5px;
  color: #5b6b7f;
  font-weight: 600;
}

.offer-stats {
  display: flex;
  gap: 10px;
  background: #f7f9fb;
  border-radius: 8px;
  padding: 10px 12px;
}

.offer-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.offer-stat-label {
  font-size: 10.5px;
  color: #7c8ba0;
}

.offer-stat-value {
  font-size: 14px;
  font-weight: 700;
  color: #12233e;
}

.offer-components {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: #46566a;
  line-height: 1.5;
}

.offer-note {
  font-size: 11.5px;
  font-style: italic;
  color: #a15c00;
  background: #fdf1dc;
  border-radius: 6px;
  padding: 6px 10px;
}

@media (max-width: 800px) {
  .rec-layout {
    grid-template-columns: 1fr;
  }
  .rec-sidebar {
    position: static;
  }
}

.survey {
  background: #fff;
  border: 1px solid #e1e6ec;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.survey-header {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.survey-header h2 {
  margin: 0;
  font-size: 18px;
}

.survey-header-summary {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: #7c8ba0;
  font-weight: 600;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.survey-chevron {
  font-size: 12px;
  color: #7c8ba0;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.survey-body {
  overflow: hidden;
  max-height: 30000px;
  opacity: 1;
  margin-top: 16px;
  transition: max-height 0.3s ease, opacity 0.2s ease, margin-top 0.3s ease;
}

.survey.collapsed .survey-body {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.survey.collapsed .survey-chevron {
  transform: rotate(-90deg);
}

.survey-block {
  margin-bottom: 20px;
}

.survey-block h3 {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: #35506e;
}

.bank-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  background: #f4f6f8;
  border: 1px solid #e1e6ec;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.check-pill:has(input:checked) {
  background: #eaf1fb;
  border-color: #a9c6ec;
  color: #1a4d8f;
  font-weight: 600;
}

.check-pill-small {
  font-size: 11.5px;
  padding: 4px 10px;
}

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

.category-row {
  border-bottom: 1px solid #f0f2f5;
  padding: 10px 0;
}

.category-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-row-name {
  font-size: 13.5px;
  font-weight: 600;
}

.intensity-select {
  border: 1px solid #d6dce3;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12.5px;
  background: #fafbfc;
}

.brand-picker {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f7f9fb;
  border-radius: 8px;
}

.brand-picker-label {
  display: block;
  font-size: 11.5px;
  color: #7c8ba0;
  margin-bottom: 8px;
}

.brand-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
}

.save-btn {
  background: #12233e;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.save-btn:hover {
  background: #1a3157;
}

.save-status {
  margin-left: 12px;
  font-size: 12.5px;
  color: #1c7a3c;
  font-weight: 600;
}

.auth-card {
  background: #fff;
  border: 1px solid #e1e6ec;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 24px;
  max-width: 380px;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: #f4f6f8;
  border-radius: 8px;
  padding: 4px;
}

.auth-tab {
  flex: 1;
  border: none;
  background: none;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #5b6b7f;
  border-radius: 6px;
  cursor: pointer;
}

.auth-tab.active {
  background: #fff;
  color: #12233e;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

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

.auth-form label {
  font-size: 12px;
  font-weight: 600;
  color: #5b6b7f;
  margin-top: 4px;
}

.auth-form input {
  border: 1px solid #d6dce3;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
}

.auth-form .save-btn {
  margin-top: 10px;
}

.otp-info {
  font-size: 12.5px;
  color: #5b6b7f;
  margin: 0 0 4px;
}

#otp-code {
  letter-spacing: 6px;
  font-size: 18px;
  text-align: center;
}

.kvkk-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: #5b6b7f;
  font-weight: normal;
  cursor: pointer;
}

.kvkk-check input {
  margin-top: 2px;
  flex-shrink: 0;
}

.kvkk-check a {
  color: #1a4d8f;
  font-weight: 600;
}

.legal-page {
  background: #fff;
  border: 1px solid #e1e6ec;
  border-radius: 10px;
  padding: 24px 28px;
  max-width: 760px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #2c3644;
}

.legal-page h2 {
  font-size: 16px;
  margin: 24px 0 8px;
}

.legal-page h2:first-child {
  margin-top: 0;
}

.legal-page p, .legal-page ul {
  margin: 0 0 12px;
}

.legal-page ul {
  padding-left: 20px;
}

.link-btn {
  background: none;
  border: none;
  color: #1a4d8f;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  text-align: left;
}

.link-btn:hover {
  text-decoration: underline;
}

.auth-message {
  margin-top: 10px;
  font-size: 12.5px;
  color: #1c7a3c;
}

.auth-message-error {
  color: #a12626;
}

.site-footer {
  border-top: 1px solid #e1e6ec;
  margin-top: 24px;
}

.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 32px 32px;
}

.site-footer p {
  margin: 0 0 8px;
  font-size: 12px;
  color: #8a97a8;
}

.site-footer a {
  color: #5b6b7f;
}
