/* ============================================================
   SmartLib — support.css   v5
   Save to: /css/support.css
============================================================ */

/* ══ HERO BANNER ══ */
.sup-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3.5rem 4vw 3rem;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
.sup-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(232,201,109,.05), transparent 60%);
  pointer-events: none;
}
.sup-hero-text { flex: 1; position: relative; z-index: 2; }
.sup-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .3rem .9rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.sup-hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulseDot 2s ease infinite;
}
@keyframes pulseDot {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.6); opacity: .5; }
}
.sup-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--txt);
  line-height: 1.1;
  margin-bottom: .6rem;
}
.sup-hero h1 em { font-style: italic; color: var(--gold); }
body.light-mode .sup-hero h1 em { color: var(--txt); }
.sup-hero-desc {
  font-size: .95rem;
  color: var(--txt2);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 1rem;
}
.sup-hero-note {
  font-size: .82rem;
  color: var(--txt3);
  line-height: 1.5;
}
.sup-hero-note a { color: var(--teal); text-decoration: none; }
.sup-hero-note a:hover { text-decoration: underline; }

/* Hero art — minimalist, no border, just centered icon */
.sup-hero-art {
  flex-shrink: 0;
  width: 260px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.sup-hero-art-inner {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  /* no background, no border — completely clean */
  background: transparent;
  border: none !important;
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
}
.sup-hero-art-inner::before { display: none; }
/* Dark mode: SVG lines white */
.sup-hero-art-inner svg { color: #fff; }
/* Light mode: SVG lines black */
body.light-mode .sup-hero-art-inner svg { color: #111; }

/* ══ BODY: sidebar + content ══ */
.sup-body {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: calc(100vh - var(--nav-h) - 240px);
  align-items: start;
}


/* ══ FORCE: no line above sidebar HELP TOPICS label ══ */
.sup-body > .sup-sidebar {
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  margin-top: 0 !important;
  box-shadow: none !important;
}

/* Content panel: only right border removed */
.sup-body > .sup-content {
  border-right: none !important;
}
/* ══ LEFT SIDEBAR ══ */
.sup-sidebar {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  background: transparent;
  border: none !important;  /* NO borders on sidebar */
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
}
.sup-sidebar::-webkit-scrollbar { width: 3px; }
.sup-sidebar::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 3px; }

.sup-sidebar-label {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--txt3);
  padding: 0 1.5rem .75rem;
}
.sup-nav-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .68rem 1.5rem;
  border: none;
  background: none;
  color: var(--txt2);
  font-family: 'Nunito', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  border-left: 2px solid transparent;
  transition: all .18s;
}
.sup-nav-btn:hover {
  color: var(--txt);
  background: var(--bg-card);
}
.sup-nav-btn.active {
  color: var(--txt);
  font-weight: 800;
  border-left-color: var(--gold);
  background: rgba(232,201,109,.06);
}
body.light-mode .sup-nav-btn.active {
  border-left-color: #111;
  background: rgba(0,0,0,.04);
}

/* Nav icons: white in dark mode, black in light mode */
.sup-nav-icon {
  font-size: .95rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  filter: grayscale(1) brightness(10); /* dark → white */
}
body.light-mode .sup-nav-icon {
  filter: grayscale(1) brightness(0); /* light → black */
}

/* ══ RIGHT CONTENT ══ */
.sup-content {
  padding: 3rem 3.5rem;
  min-width: 0;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sup-panel { display: none; }
.sup-panel.active { display: block; }

/* Panel header */
.panel-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.panel-label {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .35rem;
}
body.light-mode .panel-label { color: #555; }
.panel-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--txt);
  margin-bottom: .4rem;
}
.panel-sub {
  font-size: .9rem;
  color: var(--txt2);
  line-height: 1.65;
  max-width: 600px;
}

/* ══ ABOUT ══ */
.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.about-col-item { margin-bottom: 1.5rem; }
.about-col-item:last-child { margin-bottom: 0; }
.about-col-item h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: .35rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.about-col-item h4 .aicon {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; flex-shrink: 0;
}
/* aicon emoji: black in light, natural in dark */
.about-col-item h4 .aicon {
  filter: grayscale(1) brightness(10); /* dark → white */
}
body.light-mode .about-col-item h4 .aicon {
  filter: grayscale(1) brightness(0); /* light → black */
}
.about-col-item p {
  font-size: .85rem;
  color: var(--txt2);
  line-height: 1.65;
}
.ic-gold { background: rgba(232,201,109,.12); border: 1px solid rgba(232,201,109,.2); }
.ic-teal { background: rgba(94,196,182,.12);  border: 1px solid rgba(94,196,182,.2); }
.ic-rose { background: rgba(232,125,138,.12); border: 1px solid rgba(232,125,138,.2); }
.ic-blue { background: rgba(100,149,237,.12); border: 1px solid rgba(100,149,237,.2); }

.about-fyp-strip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.about-fyp-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.about-fyp-icon { filter: grayscale(1) brightness(10); } /* dark → white */
body.light-mode .about-fyp-icon { filter: grayscale(1) brightness(0); } /* light → black */
.about-fyp-strip h4 {
  font-family: 'Playfair Display', serif;
  font-size: .93rem; font-weight: 700; color: var(--txt);
  margin-bottom: .22rem;
}
.about-fyp-strip p { font-size: .83rem; color: var(--txt2); line-height: 1.6; }

/* ══ FAQ — two-col Shopify style ══ */
.faq-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 2.5rem;
  margin-bottom: 2rem;
}
.faq-col-item { padding-bottom: .5rem; }
.faq-col-item h5 {
  font-size: .87rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: .35rem;
  line-height: 1.4;
}
.faq-col-item p {
  font-size: .84rem;
  color: var(--txt2);
  line-height: 1.7;
  font-family: 'Crimson Pro', serif;
}

/* ══ CONTACT ══ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
}
.contact-chips { display: flex; flex-direction: column; gap: .75rem; }
.chip {
  display: flex; align-items: center; gap: .8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .85rem 1.1rem;
  transition: border-color .18s;
}
.chip:hover { border-color: var(--border-h); }
.chip-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.chip-icon { filter: grayscale(1) brightness(10); } /* dark → white */
body.light-mode .chip-icon { filter: grayscale(1) brightness(0); } /* light → black */
.chip h5 { font-size: .81rem; font-weight: 700; color: var(--txt); margin-bottom: .08rem; }
.chip span { font-size: .75rem; color: var(--txt2); }
.contact-tip {
  background: rgba(94,196,182,.06);
  border: 1px solid rgba(94,196,182,.15);
  border-radius: 11px;
  padding: .85rem 1.1rem;
  font-size: .79rem; color: var(--txt2); line-height: 1.6;
}
body.light-mode .contact-tip { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.08); }
.contact-tip strong { color: var(--teal); }
body.light-mode .contact-tip strong { color: #555; }
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem;
  display: flex; flex-direction: column; gap: .8rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.fg { display: flex; flex-direction: column; gap: .27rem; }
.fg label {
  font-size: .68rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; color: var(--txt3);
}
.fg input, .fg textarea, .fg select {
  padding: .6rem .9rem;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--txt);
  font-size: .86rem;
  font-family: 'Nunito', sans-serif;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: none; width: 100%;
}
.fg input:focus, .fg textarea:focus, .fg select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--glow-gold);
}
body.light-mode .fg input:focus,
body.light-mode .fg textarea:focus,
body.light-mode .fg select:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}
.fg textarea { height: 100px; }
.submit-btn {
  background: linear-gradient(135deg, var(--gold), #c9a84c);
  color: #1a1200;
  font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: .87rem;
  padding: .68rem 1.7rem;
  border: none; border-radius: 50px;
  cursor: pointer; align-self: flex-start;
  transition: all .22s;
  box-shadow: 0 2px 10px var(--glow-gold);
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--glow-gold); }
body.light-mode .submit-btn { background: #111; color: #fff; box-shadow: none; }
.contact-success {
  background: rgba(94,196,182,.1); border: 1px solid rgba(94,196,182,.28);
  color: var(--teal); border-radius: 10px;
  padding: .8rem 1.1rem; font-size: .87rem; font-weight: 600; margin-bottom: 1.2rem;
}
body.light-mode .contact-success { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.12); color: #2a7a6a; }
.contact-error {
  background: rgba(232,125,138,.1); border: 1px solid rgba(232,125,138,.28);
  color: var(--rose); border-radius: 10px;
  padding: .8rem 1.1rem; font-size: .87rem; font-weight: 600; margin-bottom: 1.2rem;
}

/* ══ PRIVACY ══ */
.doc-toc {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem;
}
.toc-pill {
  background: var(--tag-bg); border: 1px solid var(--tag-border);
  border-radius: 50px; padding: .27rem .82rem;
  font-size: .71rem; font-weight: 700; color: var(--tag-col);
  text-decoration: none; display: inline-block; transition: all .18s;
}
.toc-pill:hover { border-color: var(--gold); color: var(--gold); }
body.light-mode .toc-pill:hover { border-color: #111; color: #111; }
.doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 2.5rem; }
.doc-block { margin-bottom: 1.6rem; }
.doc-block h4 {
  font-size: .9rem; font-weight: 700; color: var(--txt);
  margin-bottom: .5rem;
  display: flex; align-items: center; gap: .4rem;
}
.doc-block p, .doc-block li {
  font-size: .86rem; color: var(--txt2);
  line-height: 1.75; font-family: 'Crimson Pro', serif;
}
.doc-block ul { padding-left: 1.2rem; margin-top: .4rem; }
.doc-block li { margin-bottom: .25rem; }
.priv-tag {
  display: inline-block;
  font-size: .59rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .11rem .48rem; border-radius: 5px;
  background: rgba(94,196,182,.1); color: var(--teal);
  border: 1px solid rgba(94,196,182,.22);
}
body.light-mode .priv-tag { background: rgba(0,0,0,.05); color: #555; border-color: rgba(0,0,0,.12); }

/* ══ TERMS ══ */
.warn-strip {
  background: rgba(232,201,109,.06);
  border: 1px solid rgba(232,201,109,.18);
  border-radius: 12px; padding: .95rem 1.3rem;
  display: flex; gap: .75rem; align-items: flex-start;
  margin-bottom: 1.8rem;
}
body.light-mode .warn-strip { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.1); }
.warn-strip p { font-size: .84rem; color: var(--txt2); line-height: 1.6; font-family: 'Crimson Pro', serif; }
.terms-cols { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.terms-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 11px; padding: 1.15rem 1.35rem; margin-bottom: 0;
}
.terms-block h4 { font-size: .87rem; font-weight: 700; color: var(--txt); margin-bottom: .4rem; }
.terms-block p, .terms-block li {
  font-size: .84rem; color: var(--txt2);
  line-height: 1.7; font-family: 'Crimson Pro', serif;
}
.terms-block ul { padding-left: 1.1rem; margin-top: .35rem; }
.terms-block li { margin-bottom: .2rem; }

/* ══ SETTINGS ══ */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.settings-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.3rem;
  display: flex; flex-direction: column; gap: .4rem;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.settings-card:hover {
  border-color: var(--border-h);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.settings-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin-bottom: .2rem;
}
.settings-card-icon { filter: grayscale(1) brightness(10); } /* dark → white */
body.light-mode .settings-card-icon { filter: grayscale(1) brightness(0); } /* light → black */
.settings-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: .92rem; font-weight: 700; color: var(--txt);
}
.settings-card p { font-size: .79rem; color: var(--txt2); line-height: 1.55; }
.settings-card .card-arrow {
  margin-top: auto; padding-top: .4rem;
  font-size: .75rem; font-weight: 700; color: var(--gold);
}
body.light-mode .settings-card .card-arrow { color: #111; }

/* ══ TOAST ══ */
#sl-toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--txt); padding: .72rem 1.5rem;
  border-radius: 50px; font-size: .875rem; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  opacity: 0; pointer-events: none;
  transition: all .3s; z-index: 9999; white-space: nowrap;
}
#sl-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══ RESPONSIVE ══ */
@media (max-width: 1100px) {
  .sup-body { grid-template-columns: 185px 1fr; }
  .sup-content { padding: 2.5rem 2rem; }
  .sup-hero-art { width: 200px; height: 150px; }
}
@media (max-width: 860px) {
  .sup-hero { flex-direction: column; text-align: center; padding: 2.5rem 4vw 2rem; }
  .sup-hero-desc { max-width: 100%; }
  .sup-hero-art { width: 100%; height: 120px; }
  .sup-body { grid-template-columns: 1fr; }
  .sup-sidebar {
    position: sticky; top: var(--nav-h); z-index: 800;
    height: auto; flex-direction: row; flex-wrap: nowrap;
    overflow-x: auto; overflow-y: hidden;
    border-bottom: 1px solid var(--border);
    background: var(--nav-bg); backdrop-filter: blur(16px);
    padding: 0;
  }
  .sup-sidebar::-webkit-scrollbar { height: 0; }
  .sup-sidebar-label { display: none; }
  .sup-nav-btn {
    flex: 0 0 auto; border-left: none;
    border-bottom: 2px solid transparent;
    padding: .72rem 1rem; font-size: .82rem;
    border-radius: 0; white-space: nowrap;
  }
  .sup-nav-btn.active {
    border-left: none; border-bottom-color: var(--gold);
    background: rgba(232,201,109,.06);
  }
  body.light-mode .sup-nav-btn.active {
    border-bottom-color: #111; background: rgba(0,0,0,.04);
  }
  .sup-content { padding: 2rem 4vw; border-left: none; border-top: 1px solid var(--border); }
  .contact-layout { grid-template-columns: 1fr; }
  .about-cols { grid-template-columns: 1fr; }
  .faq-cols { grid-template-columns: 1fr; }
  .doc-cols { grid-template-columns: 1fr; }
  .terms-cols { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .sup-hero h1 { font-size: 1.75rem; }
  .sup-content { padding: 1.5rem 4vw; }
  .form-row { grid-template-columns: 1fr; }
  .panel-title { font-size: 1.3rem; }
  .about-fyp-strip { flex-direction: column; }
  .settings-grid { grid-template-columns: 1fr; }
  .sup-hero-art { display: none; }
}

/* ══ FINAL OVERRIDES ══ */

/* Remove every possible border/line above sidebar */
.sup-sidebar,
.sup-body > .sup-sidebar,
nav.sup-sidebar {
  border: none !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-left: none !important;
  box-shadow: none !important;
  outline: none !important;
  margin-top: 0 !important;
  padding-top: 1.8rem !important;
}

/* Privacy panel header — bordered box: top, left, bottom only */
#panel-privacy .panel-header {
  border: none !important;       /* reset the default bottom-only border */
  border-top: 1px solid var(--border) !important;
  border-left: 3px solid var(--gold) !important;
  border-bottom: 1px solid var(--border) !important;
  border-right: none !important;
  border-radius: 0 !important;
  padding: 1.2rem 1.4rem !important;
  margin-left: -1.4rem;          /* align with content edge */
  background: rgba(232,201,109,.03);
}
body.light-mode #panel-privacy .panel-header {
  border-left-color: #111 !important;
  background: rgba(0,0,0,.02);
}

/* Kill any gap/line between hero and sidebar top */
.sup-body {
  margin-top: 0 !important;
  border-top: none !important;
}
.sup-sidebar::before,
.sup-sidebar::after {
  display: none !important;
  content: none !important;
}
/* Extra: remove hero border-bottom bleed into sidebar grid cell */
.sup-body > nav.sup-sidebar:first-child {
  border-top: none !important;
  margin-top: 0 !important;
}
