/* ============================================================
   REMODA™ SHIELD V2 — FULL PREMIUM CSS (FINAL)
   Clean, glassy, mobile-friendly, premium
============================================================ */

/* ----------------------
   BRAND VARIABLES
------------------------- */
:root {
  --bg:#0b1a2a;
  --surface:#0e1d2e;
  --ink:#ffffff;
  --muted:#8fa4bb;

  --gold:#E7C978;
  --gold-strong:#F4E7B0;

  --glass:#ffffff0d;
  --glass-heavy:#ffffff18;
  --glass-border:#ffffff25;

  --radius:16px;
  --inner-radius:12px;

  --shadow:0 30px 80px rgba(0,0,0,.55);
  --transition:0.25s ease;
}

/* -----------------------------------------------------------
   GLOBAL RESET
------------------------------------------------------------ */
* { box-sizing:border-box; }
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  -webkit-font-smoothing:antialiased;
  padding-top:84px;
}
a { color:inherit; text-decoration:none; }
h1, h2, h3 { font-weight:900; letter-spacing:-0.01em; }
.tm { font-size:.7em; vertical-align:super; font-weight:300; }
.wrap { max-width:1120px; margin:0 auto; padding:0 20px; }


/* ============================================================
   TOPBAR
============================================================ */
.topbar {
  position:fixed;
  top:0; left:0; right:0;
  height:84px;
  background:linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.12));
  backdrop-filter:blur(20px) saturate(160%);
  border-bottom:1px solid var(--glass-border);
  z-index:1000;
}
.topbar-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:84px;
  padding:10px 16px;
}
.brand-icon {
  width:64px;
  height:64px;
  border-radius:14px;
  object-fit:cover;
  cursor:pointer;
}

.chip {
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid var(--glass-border);
  color:white;
  font-weight:700;
  cursor:pointer;
  transition:var(--transition);
}
.chip:hover {
  background:rgba(255,255,255,.2);
}


/* ============================================================
   HERO + LOGO
============================================================ */
.logo-top {
  display:flex;
  justify-content:center;
  margin-top:10px;
}
.logo-top img {
  height:160px;
  width:auto;
}

.hero {
  text-align:center;
  padding:24px 0 10px;
}
.hero h1 { font-size:clamp(28px, 4.4vw, 48px); }
.hero .muted { color:var(--muted); }


/* ============================================================
   EDUCATIONAL EXPANDABLE CARDS
============================================================ */

.edu-card {
  border:1px solid var(--glass-border);
  background:rgba(255,255,255,.05);
  border-radius:var(--radius);
  padding:0;
  margin-bottom:18px;
  overflow:hidden;
  backdrop-filter:blur(20px);
  box-shadow:var(--shadow);
}

.edu-card-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 20px;
  cursor:pointer;
}
.edu-card-header h3 {
  margin:0;
  font-size:18px;
}
.edu-toggle {
  font-size:22px;
  font-weight:900;
  opacity:0.7;
}

.edu-card-body {
  display:none;
  padding:0 20px 18px 20px;
  line-height:1.6;
}
.edu-card-body.open {
  display:block;
}


/* ============================================================
   FORM FIELD
============================================================ */

.field {
  background:rgba(255,255,255,.06);
  border:1px solid var(--glass-border);
  border-radius:var(--inner-radius);
  padding:12px 14px;
  margin-bottom:16px;
}
.field label {
  font-size:13px;
  color:#cfe0ff;
  font-weight:600;
}
.field input, .field textarea {
  width:100%;
  margin-top:6px;
  border:none;
  outline:none;
  background:transparent;
  font-size:15px;
  color:white;
  font-family:inherit;
}

/* Typing-style font (static) */
.typing-style {
  font-family:"Menlo", "Consolas", monospace;
  white-space:pre-wrap;
  color:#dce1eb;
}


/* ============================================================
   PREMIUM BUTTONS
============================================================ */

.admin-btn-primary {
  padding:12px 18px;
  border-radius:12px;
  background:linear-gradient(180deg, rgba(231,201,120,.85), rgba(231,201,120,.55));
  color:#0b1a2a;
  font-weight:900;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.24);
  box-shadow:0 12px 32px rgba(231,201,120,.32);
  transition:var(--transition);
}
.admin-btn-primary:hover { transform:translateY(-2px); }

.admin-btn {
  padding:10px 14px;
  border-radius:12px;
  background:rgba(255,255,255,.12);
  border:1px solid var(--glass-border);
  color:white;
  font-weight:700;
  cursor:pointer;
  transition:var(--transition);
}
.admin-btn:hover {
  background:rgba(255,255,255,.22);
}


/* ============================================================
   CLIENT ESTIMATE VIEW
============================================================ */
#clientEstimateBox {
  min-height:220px;
}
.shield-total {
  font-size:34px;
  font-weight:900;
  color:var(--gold);
  margin-bottom:16px;
}

.client-notes {
  background:rgba(255,255,255,.06);
  border:1px solid var(--glass-border);
  padding:16px;
  border-radius:14px;
  font-family:"Menlo", monospace;
  margin-bottom:22px;
  white-space:pre-wrap;
  color:#dce1eb;
}

.locked-box {
  border-radius:14px;
  border:1px solid var(--glass-border);
  padding:18px;
  background:rgba(255,255,255,.06);
}

.unlock-btn {
  margin-top:14px;
  padding:12px 18px;
  background:linear-gradient(180deg, rgba(231,201,120,.78), rgba(231,201,120,.50));
  color:#0b1a2a;
  font-weight:900;
  border-radius:12px;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.24);
  box-shadow:0 12px 32px rgba(231,201,120,.32);
  transition:var(--transition);
}
.unlock-btn:hover { transform:translateY(-2px); }


/* ============================================================
   PDF VIEWER
============================================================ */

.pdf-viewer {
  margin-top:20px;
  width:100%;
  height:650px;
  border-radius:16px;
  border:1px solid var(--glass-border);
  overflow:hidden;
  background:black;
}

.download-pdf-btn {
  margin-top:14px;
  padding:10px 16px;
  background:rgba(255,255,255,.10);
  border:1px solid var(--glass-border);
  border-radius:12px;
  color:white;
  cursor:pointer;
  font-weight:700;
  transition:var(--transition);
}
.download-pdf-btn:hover {
  background:rgba(255,255,255,.20);
}


/* ============================================================
   ADMIN PANEL
============================================================ */

.admin-wrapper.hidden { display:none; }

.admin-header {
  display:flex;
  justify-content:flex-end;
  margin-bottom:20px;
}

.admin-title { font-size:26px; margin-bottom:4px; }
.admin-sub { color:var(--muted); margin-bottom:20px; }

/* Tabs */
.admin-tabs {
  display:flex;
  gap:12px;
  margin-bottom:24px;
}
.admin-tab {
  padding:10px 18px;
  border-radius:12px;
  background:rgba(255,255,255,.12);
  border:1px solid var(--glass-border);
  cursor:pointer;
  color:white;
  font-weight:700;
  transition:var(--transition);
}
.admin-tab:hover { background:rgba(255,255,255,.2); }
.admin-tab.active {
  background:linear-gradient(180deg, rgba(231,201,120,.25), rgba(231,201,120,.12));
  border-color:rgba(231,201,120,.5);
  box-shadow:0 12px 30px rgba(231,201,120,.25);
}

.admin-tab-content { display:none; }
.admin-tab-content.active { display:block; }

/* Summary Grid */
.admin-summary-grid {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:24px;
}


/* ============================================================
   MODALS (Connect + Admin Access)
============================================================ */

.modal {
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(18px);
  z-index:4000;
  padding:20px;
}
.modal[open] { display:flex; }

.modal-card {
  width:100%;
  max-width:480px;
  background:var(--surface);
  border-radius:18px;
  padding:22px;
  border:1px solid var(--glass-border);
  box-shadow:var(--shadow);
  animation:fadeIn .25s ease;
}

@keyframes fadeIn {
  from { opacity:0; transform:scale(.94); }
  to { opacity:1; transform:scale(1); }
}

.modal-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* Connect Modal */
.connect-list {
  display:flex;
  flex-direction:column;
  border:1px solid var(--glass-border);
  border-radius:14px;
  overflow:hidden;
  background:rgba(255,255,255,.05);
}
.connect-row {
  padding:12px 14px;
  display:flex;
  align-items:center;
  gap:12px;
  transition:var(--transition);
}
.connect-row:hover {
  background:rgba(255,255,255,.10);
}

.connect-icon {
  width:18px;
  height:18px;
  opacity:.85;
}
.connect-main {
  flex:1;
}
.connect-title {
  font-weight:800;
  font-size:14px;
}
.connect-sub {
  font-size:12px;
  color:var(--muted);
}

.link-ghost {
  padding:6px 10px;
  border-radius:10px;
  border:1px solid var(--glass-border);
  background:rgba(255,255,255,.10);
  color:white;
  font-weight:700;
  font-size:12px;
}
.link-ghost:hover {
  background:rgba(255,255,255,.20);
}

.connect-divider {
  height:1px;
  background:linear-gradient(90deg, transparent, var(--glass-border), transparent);
  opacity:.4;
}


/* ============================================================
   FOOTER
============================================================ */
.footer {
  text-align:center;
  margin:40px 0 28px;
  color:var(--muted);
  font-size:13px;
}

.gold-line {
  width:60%;
  height:2px;
  margin:0 auto 12px;
  background:linear-gradient(90deg, transparent, var(--gold), transparent);
}

.built {
  margin-top:6px;
  font-size:12px;
}
.brand { color:white; }


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width:820px) {
  .admin-summary-grid {
    grid-template-columns:1fr;
  }
}

@media (max-width:640px) {
  .pdf-viewer {
    height:480px;
  }
}
