:root {
  --primary-emerald: #065F46;
  --dark-emerald: #022C22;
  --light-emerald: #0D9488;
  --mint-container: #D1FAE5;
  --on-mint-container: #064E3B;

  --amber-gold: #F59E0B;
  --amber-gold-dark: #D97706;
  --amber-container: #FEF3C7;
  --on-amber-container: #78350F;

  --bg-slate: #F8FAFC;
  --surface-white: #FFFFFF;
  --surface-variant: #F1F5F9;
  --border-slate: #E2E8F0;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  --status-green: #10B981;
  --status-green-bg: #ECFDF5;
  --status-red: #EF4444;
  --status-red-bg: #FEF2F2;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-slate);
  color: var(--text-primary);
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* NAVBAR & HEADER */
.top-navbar {
  background: linear-gradient(180deg, var(--dark-emerald) 0%, var(--primary-emerald) 100%);
  color: #fff;
  padding: 16px 0 24px 0;
  box-shadow: 0 4px 12px rgba(6, 95, 70, 0.15);
}

.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--amber-gold), var(--amber-gold-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid var(--amber-gold);
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.brand-text h1 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.brand-text p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

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

.btn-nav {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-nav-outline {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-nav-outline:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-nav-gold {
  background: var(--amber-gold);
  color: var(--dark-emerald);
}

.btn-nav-gold:hover {
  background: #fbb024;
}

/* SYNC BADGE */
.sync-status-bar {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 14px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sync-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
}

/* SPONSOR BANNERS SECTION */
.sponsor-section {
  padding: 18px 0 8px 0;
}

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

.section-header h2 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sponsor-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.sponsor-card {
  min-width: 290px;
  max-width: 290px;
  background: var(--surface-white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-slate);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
}

.sponsor-img-wrapper {
  position: relative;
  height: 110px;
}

.sponsor-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sponsor-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.badge-tag {
  background: var(--amber-gold);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
}

.sponsor-info-overlay {
  color: #fff;
}

.sponsor-info-overlay h3 {
  font-size: 12px;
  font-weight: 700;
}

.sponsor-info-overlay span {
  font-size: 10px;
  color: var(--amber-gold);
}

.sponsor-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
  justify-content: space-between;
}

.sponsor-body h4 {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.sponsor-benefit {
  background: var(--mint-container);
  color: var(--dark-emerald);
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
}

.btn-cta {
  background: var(--primary-emerald);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
}

/* SEARCH & FILTER BAR */
.search-filter-box {
  background: var(--surface-white);
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  margin-bottom: 16px;
  border: 1px solid var(--border-slate);
}

.search-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.search-input {
  flex-grow: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-slate);
  border-radius: 10px;
  font-size: 13px;
  outline: none;
}

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

.city-select {
  padding: 10px 14px;
  border: 1px solid var(--border-slate);
  border-radius: 10px;
  font-size: 13px;
  background: #fff;
  outline: none;
  cursor: pointer;
}

.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.chip-btn {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-slate);
  background: var(--surface-white);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.chip-btn.active {
  background: var(--primary-emerald);
  color: #fff;
  border-color: var(--primary-emerald);
}

/* DA'I CARDS GRID */
.dais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.dai-card {
  background: var(--surface-white);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--border-slate);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dai-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

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

.golden-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--amber-gold), #ffe082, var(--amber-gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.golden-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.dai-info {
  flex-grow: 1;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--status-green-bg);
  color: var(--dark-emerald);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 4px;
}

.status-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--status-green);
}

.dai-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.dai-title {
  font-size: 11.5px;
  color: var(--light-emerald);
  font-weight: 600;
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--amber-container);
  color: var(--on-amber-container);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFBEB;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

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

.topic-tag {
  background: var(--surface-variant);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 6px;
}

.dai-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
  margin-top: 4px;
}

.btn-card-outline {
  padding: 7px 10px;
  border: 1px solid var(--primary-emerald);
  color: var(--primary-emerald);
  background: transparent;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.btn-card-primary {
  padding: 7px 10px;
  background: var(--primary-emerald);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* FOOTER */
.app-footer {
  background: var(--dark-emerald);
  color: #fff;
  padding: 30px 0;
  margin-top: 40px;
  border-top: 2px solid var(--amber-gold);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

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

.footer-quote {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 12px;
  font-size: 11.5px;
  font-style: italic;
  margin-top: 10px;
  line-height: 1.5;
}

/* MODAL STYLES */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-backdrop.show {
  display: flex;
}

.modal-box {
  background: #fff;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  border-radius: 16px;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-slate);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-variant);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.modal-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  padding: 18px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-slate);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-emerald);
}

.btn-submit {
  width: 100%;
  padding: 10px;
  background: var(--primary-emerald);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 10px;
}

.btn-submit:hover {
  background: #044b37;
}

/* ADMIN PANEL STYLES */
.admin-badge {
  background: var(--amber-gold);
  color: var(--dark-emerald);
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 12px;
}

.admin-table th {
  background: var(--surface-variant);
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-slate);
}

.admin-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border-slate);
  vertical-align: middle;
}

.btn-delete {
  background: var(--status-red-bg);
  color: var(--status-red);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
