/* === Zeinat theme — refined (black / white / gold, high contrast) === */
/* Paste AT THE END of styles.css */

:root{
  --bg:#0b0c0f;
  --surface:#121418;
  --surface-2:#171a1f;
  --text:#f5f7fb;
  --muted:#b6bdc9;     /* lighter for readability */
  --gold:#D4AF37;
  --gold-2:#b99625;
  --danger:#c23b4a;
  --radius:16px;
}

/* Background & base text */
html,body{
  background: var(--bg) !important;   /* remove heavy gradients */
  color: var(--text) !important;
}

/* Headings */
h1,h2,h3,h4{ color: var(--text) !important; }
h1 span,h2 span{ color: var(--gold) !important; }

/* Cards / sections */
.card,.card-alt{
  background: var(--surface) !important;
  border: 1px solid rgba(212,175,55,.18) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 6px 24px rgba(0,0,0,.35) !important;
}

/* Buttons */
.btn, button{
  background: linear-gradient(180deg, var(--gold), var(--gold-2)) !important;
  color:#0d0f12 !important;
  font-weight:700 !important;
  border:none !important;
  border-radius: 999px !important;
  padding:10px 18px !important;
  cursor: pointer;
}
.btn:hover, button:hover{ filter:brightness(.97) !important; }
.btn.small{ padding:6px 12px !important; font-weight:600 !important; }

/* Secondary / dark buttons */
.btn.secondary{
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: none !important;
}

/* Disabled buttons look grey but readable */
button:disabled, .btn:disabled{
  background:#2a2e36 !important;
  color:#9aa3b2 !important;
  border-color:#2a2e36 !important;
  box-shadow:none !important;
  cursor:not-allowed !important;
}

/* Inputs */
input, textarea, select{
  width:100%;
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:12px !important;
  padding:12px 14px !important;
  outline:none !important;
  box-sizing: border-box;
}
input::placeholder, textarea::placeholder{ color:#8b93a2 !important; }
input:focus, textarea:focus, select:focus{
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(212,175,55,.22) !important;
}

/* Subtext */
.muted{ color: var(--muted) !important; }

/* WhatsApp-like chat bubbles — toned down */
.chat-like{ max-width:820px; margin:0 auto; display:flex; flex-direction:column; gap:8px; }
.chat-like .bubble{
  max-width:84%; padding:12px 14px; border-radius:18px; margin:6px 0;
  line-height:1.55; word-wrap:break-word;
  border:1px solid rgba(255,255,255,.06);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  align-self: flex-start;
  position: relative;
}
.chat-like .bubble.user{ background:#1b1f25; border-color: rgba(212,175,55,.35); align-self: flex-end; }
.chat-like .bubble.bot{  background: var(--surface-2); color: var(--text); }

/* Choice pills (radios) — cleaner */
label.radio{ display:inline-flex; align-items:center; gap:8px; margin:6px 8px 0 0; cursor:pointer; }
label.radio input{ display:none; }
label.radio span{
  display:inline-block; padding:8px 12px; border-radius:999px;
  background: var(--surface-2);
  border:1px solid rgba(255,255,255,.09);
  color: var(--text);
}
label.radio input:checked + span{
  background: rgba(212,175,55,.18);
  border-color: var(--gold);
}

/* Links */
a{ color: var(--gold) !important; text-decoration:none; }
a:hover{ text-decoration:underline; }

/* Make sure dark text-on-dark never happens */
* { color-scheme: dark; }

/* Progressive chat mode (one-by-one) */
.q.hidden { display:none !important; }
.q.answered { opacity:.9; filter:saturate(.9); }

.progress-hint{
  text-align:center; margin:14px 0 6px; color:var(--muted);
  font-size:.9rem;
}

/* one-active mode */
.q.readonly{ opacity:.55; }
.q.readonly input, .q.readonly textarea, .q.readonly select{ pointer-events:none; }
.q.readonly label.radio { cursor: default; }

/* ===== Admin (mobile-first) ===== */
.admin-actions{ display:flex; flex-wrap:wrap; gap:10px; }
.admin-actions .btn{ flex:1 1 auto; min-width:120px; }
#answers-section.card{ padding:14px; }
.answers-split{ display:grid; grid-template-columns: 1fr 2fr; gap:16px; }
.answers-split .pane{
  background: var(--surface-2); border:1px solid rgba(255,255,255,.08);
  border-radius:12px; padding:10px; min-height: 320px;
}
#users-answers-list .row-card{
  border:1px solid rgba(255,255,255,.08); border-radius:10px;
  padding:10px; margin-bottom:8px; cursor:pointer;
}
#users-answers-list .row-card:hover{ border-color: var(--gold); }
#user-answers-detail table{ width:100%; border-collapse: collapse; }
#user-answers-detail thead th,
#user-answers-detail tbody td{
  padding:8px; border-bottom:1px solid rgba(255,255,255,.06); text-align:right;
}
#user-answers-detail{ overflow:auto; }
.answers-head{
  display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px;
}
#answers-back{ display:none; }

@media (max-width: 768px){
  h1, h2, h3{ font-size:1.1rem; }
  .admin-actions .btn{ flex:1 1 calc(50% - 10px); min-width:auto; }
  .answers-split{ grid-template-columns: 1fr; gap:10px; }
  #answers-section.show-detail .pane-list{ display:none; }
  #answers-section.show-detail #answers-back{ display:inline-flex; }
  #answers-section .pane-detail{ min-height: 60vh; }
  #users-answers-list .row-card div{ word-break: break-word; }
  #user-answers-detail{ overflow-x:auto; -webkit-overflow-scrolling: touch; }
}

/* ===== Footer ===== */
.site-footer{
  margin-top: 64px; background: var(--surface);
  border-top: 1px solid rgba(212,175,55,.18); color: var(--text);
}
.site-footer .footer-top{ position: relative; padding: 28px 0; }
.site-footer .footer-top::before{
  content:""; position:absolute; inset:0 0 auto 0; height:1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.35), transparent); top: 0;
}
.footer-grid{
  max-width: 1060px; margin:0 auto; padding: 0 16px;
  display:grid; grid-template-columns: 1.1fr 1fr 1fr; gap:24px;
}
.footer-col h4{ margin:0 0 10px; color: var(--gold); font-size:1.05rem; }
.footer-col p{ margin:0; }
.brand .brand-mark{
  font-size: 1.5rem; font-weight: 800; letter-spacing:.5px; color: var(--text);
}
.brand .brand-mark span{ color: var(--gold); }
.link-list{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.link-list a{ color: var(--text); }
.link-list a:hover{ color: var(--gold); }
.btn.sm{ padding:8px 12px; font-size:.95rem; }
.footer-contact .contact-item{ color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-contact .contact-item:hover{ color: var(--gold); }
.footer-socials{ display:flex; gap:10px; margin-top:10px; }
.icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px; border-radius:999px;
  background: var(--surface-2); color: var(--gold);
  border:1px solid rgba(212,175,55,.25);
  transition: transform .12s ease, filter .12s ease, border-color .12s ease;
}
.icon-btn:hover{ transform: translateY(-2px); filter: brightness(1.06); border-color: var(--gold); }
.footer-copy{
  text-align:center; padding: 12px 10px; font-size:.92rem;
  background:#0f1216; border-top:1px solid rgba(255,255,255,.06); color: var(--muted);
}
.brand-logo{
  display:block; margin:0 auto 16px; max-width:260px; height:auto;
  filter: drop-shadow(0 4px 14px rgba(212,175,55,.18));
}
.brand-logo--footer{ margin:0 0 10px auto; }
.btn-row{ display:flex; gap:12px; justify-content:center; margin:8px 0; flex-wrap:wrap; }
.btn-row.subtle .btn{ opacity:.95; }
.wrap { max-width: 600px; margin: 2rem auto; padding: 0 1rem; }
.hero { text-align: center; margin-bottom: 2rem; }
.form { display: flex; flex-direction: column; gap: 1rem; }
.buttons { display: flex; gap: 0.5rem; justify-content: center; }

@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){
  .footer-grid{ grid-template-columns: 1fr; gap:16px; }
  .btn.sm, .btn.admin-btn{ width:100%; text-align:center; }
  .site-footer .footer-top{ padding: 18px 0 8px; }
  .footer-col{ text-align:center; }
  .brand .brand-mark{ text-align:center; }
  .brand .brand-logo--footer{ margin: 0 auto 8px !important; max-width: 160px; filter: drop-shadow(0 4px 12px rgba(212,175,55,.16)); }
  .link-list{ display:flex !important; flex-direction:column; align-items:center; gap:8px; }
  .link-list a.btn, .btn.secondary.sm{ width: 100%; max-width: 300px; padding: 10px 14px; border-radius: 12px; }
  .footer-contact .contact-item{
    display:inline-block; font-size: 1.02rem; padding: 6px 10px; border-radius:10px;
    background: rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); margin: 2px 0;
  }
  .footer-socials{ justify-content:center; gap: 12px !important; margin-top: 12px !important; }
  .icon-btn{ width: 46px; height: 46px; border-radius: 14px; }
  .footer-copy{ font-size: .95rem; padding: 14px 8px; }
}