/* GLOBAL */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: rgb(31, 30, 30);
  color: gold;
}

/* HEADERS */
.h1-head {
  background-color: gold;
  color: black;
  text-align: center;
  padding: 20px 10px;
}

.h1-head h1 {
  margin: 0;
  letter-spacing: 1px;
}

.system-tagline {
  font-size: 12px;
  margin-top: 6px;
}

.h2-head {
  background-color: gold;
  color: black;
  text-align: center;
  padding: 10px;
}

/* LAYOUT */
.app-shell {
  display: flex;
  min-height: calc(100vh - 140px);
}

/* SIDEBAR */
.sidebar-navigation {
  width: 220px;
  background-color: black;
  padding: 20px;
}

.sidebar-navigation ul {
  list-style: none;
  padding: 0;
}

.sidebar-navigation li {
  margin-bottom: 14px;
}

.sidebar-navigation a {
  color: gold;
  text-decoration: none;
  font-size: 14px;
}

.sidebar-navigation a:hover {
  text-decoration: underline;
}


.site-switcher {
  margin-top: 30px;
  border-top: 1px solid gold;
  padding-top: 15px;
}

.site-switcher h4 {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: gold;
}

.site-switcher ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-switcher li {
  margin-bottom: 10px;
}

.site-switcher a {
  color: gold;
  text-decoration: none;
  font-size: 13px;
  display: block;
}

.site-switcher a.active-site {
  font-weight: bold;
}

.site-switcher a:hover {
  text-decoration: underline;
}

/* MAIN */
.main-content {
  flex: 1;
  padding: 30px;
}

/* METRICS */
.overview-metrics {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  background-color: gold;
  color: black;
  padding: 20px;
  min-width: 180px;
}

.metric-label {
  font-size: 12px;
  text-transform: uppercase;
}

.metric-value {
  font-size: 28px;
  font-weight: bold;
}

/* TABLE */
.overview-table h3 {
  margin-bottom: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: black;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid #444;
  text-align: left;
  font-size: 14px;
}

th {
  color: gold;
}

td a {
  color: gold;
  text-decoration: underline;
}

/* STATUS */
.status-green {
  color: #00ff88;
}

.status-red {
  color: #ff5555;
}

/* REMINDERS */
.overview-reminders {
  margin-top: 40px;
}

.overview-reminders ul {
  padding-left: 18px;
}

.data-rule {
  margin-top: 20px;
  font-size: 12px;
  opacity: 0.7;
}

.site-core-data,
.site-phase-lock,
.timeline-anchors,
.site-status-control,
.friction-log {
  background-color: black;
  padding: 20px;
  margin-bottom: 30px;
}

.site-core-data p,
.timeline-anchors p {
  font-size: 14px;
}

.phase-bar {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.phase {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 12px;
  border: 1px solid gold;
}

.phase.active {
  background-color: gold;
  color: black;
}

.phase.locked {
  opacity: 0.3;
}

.phase-note {
  font-size: 12px;
  margin-top: 10px;
  opacity: 0.7;
}

.site-status-control label {
  display: block;
  margin-bottom: 8px;
}

.kill-reason,
.friction-log textarea {
  width: 100%;
  min-height: 80px;
  background-color: rgb(31, 30, 30);
  color: gold;
  border: 1px solid gold;
  padding: 10px;
  margin-top: 10px;
}

.sop-content p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}

/* =========================================
   PHASE LOCKING — OPERATOR UI
========================================= */

.phase-lock-panel {
  background-color: gold;
  padding: 16px;
  margin-top: 24px;
}

.phase-lock-panel h3 {
  margin-bottom: 12px;
}

.phase-bar {
  display: flex;
  gap: 8px;
}

.phase-item {
  flex: 1;
  background-color: black;
  color: gold;
  padding: 12px 8px;
  text-align: center;
  font-size: 13px;
  opacity: 0.35;
  border: 1px solid gold;
}

.phase-item span {
  font-size: 11px;
  opacity: 0.8;
}

.phase-item.active {
  opacity: 1;
}

.phase-item.completed {
  opacity: 0.75;
}

.phase-item.locked {
  opacity: 0.15;
}

.phase-note {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.85;
}



.content-vault-section {
  background-color: #111;
  color: gold;
  padding: 20px;
  margin-bottom: 25px;
  border: 1px solid #333;
}

.vault-textarea {
  width: 100%;
  min-height: 160px;
  background-color: #000;
  color: gold;
  border: 1px solid #444;
  padding: 12px;
  font-family: monospace;
  resize: vertical;
}

.vault-subsection {
  margin-top: 15px;
}

.vault-list {
  list-style: square;
  padding-left: 20px;
}

.vault-note {
  font-size: 0.9em;
  opacity: 0.85;
}

.system-tagline {
  text-align: center;
  color: #d4af37;
  margin-top: 6px;
  font-size: 14px;
}

.ui-priority {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  margin-top: 6px;
}

/* APP SHELL */
.app-shell {
  display: flex;
}

/* SIDEBAR */
.sidebar-navigation {
  width: 220px;
  background-color: #000;
  padding: 20px;
}

.primary-nav li {
  list-style: none;
  margin-bottom: 12px;
}

.primary-nav a {
  color: gold;
  text-decoration: none;
}

.active-nav a {
  font-weight: bold;
  text-decoration: underline;
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  padding: 30px;
}

/* OPERATOR PANELS */
.operator-panel {
  background-color: #111;
  border: 1px solid #333;
  padding: 20px;
  margin-bottom: 30px;
}

.operator-panel h3 {
  color: gold;
  margin-bottom: 15px;
}

.panel-note {
  font-size: 12px;
  color: #999;
  margin-top: 10px;
}

/* PITCH */
.pitch-box {
  background-color: #000;
  border-left: 4px solid gold;
  padding: 15px;
  font-style: italic;
}

/* TABLE */
.operator-table {
  width: 100%;
  border-collapse: collapse;
}

.operator-table th,
.operator-table td {
  border: 1px solid #333;
  padding: 10px;
  font-size: 13px;
}

.operator-table th {
  color: gold;
  background-color: #000;
}

/* PARTNER GRID */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.partner-card {
  background-color: #000;
  border: 1px solid #333;
  padding: 15px;
}

.partner-card h4 {
  color: gold;
  margin-bottom: 8px;
}

.partner-card textarea {
  width: 100%;
  min-height: 80px;
  margin-top: 10px;
  background-color: #111;
  color: #fff;
  border: 1px solid #333;
  padding: 8px;
}

.partner-card.potential {
  opacity: 0.85;
}

/* ======================================================
   IRON LOCAL — QUIET LUXURY UI REFINEMENT
   CSS ONLY — NO LOGIC CHANGES
====================================================== */

/* ---------- GLOBAL RHYTHM & TYPOGRAPHY ---------- */

body {
  background-color: #1f1e1e; /* unchanged */
  color: #e6d9a8; /* softer gold for body text */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  line-height: 1.55;
}

h1, h2, h3 {
  letter-spacing: 0.3px;
  font-weight: 600;
}

h1 {
  font-size: 1.9rem;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

p {
  font-size: 0.95rem;
  opacity: 0.95;
}

/* ---------- HEADER AREA (CALMER, MORE COMMANDING) ---------- */

.h1-head {
  background-color: #d4af37; /* refined gold */
  padding: 18px 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(0,0,0,0.25);
}

.system-tagline,
.ui-priority {
  font-size: 0.85rem;
  color: #1f1e1e;
  opacity: 0.85;
  margin-top: 6px;
}

/* ---------- APP LAYOUT SPACING ---------- */

.app-shell {
  display: flex;
  gap: 36px;
  padding: 0 32px 40px;
}

.main-content {
  flex: 1;
  max-width: 920px;
}

/* ---------- SIDEBAR — QUIET & FUNCTIONAL ---------- */

.sidebar-navigation {
  background-color: #000;
  padding: 18px 16px;
  min-width: 200px;
  border-right: 1px solid rgba(212,175,55,0.15);
}

.primary-nav li {
  list-style: none;
  margin-bottom: 14px;
}

.primary-nav a {
  color: #d4af37;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.85;
}

.primary-nav a:hover {
  opacity: 1;
}

/* ---------- SECTION CONTAINERS (CARD FEEL) ---------- */

section {
  background-color: #111;
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 6px;
  padding: 22px 24px;
  margin-bottom: 28px;
}

/* Subtle depth — not flashy */
section {
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}





/* ======================================================
   IRON LOCAL — ULTRA PREMIUM OPERATOR FINISH
   CSS ONLY — SAFE OVERRIDES
   No logic, no structure changes
====================================================== */

/* ---------- GLOBAL TYPE REFINEMENT ---------- */

body {
  color: #e4d8a4; /* warmer, calmer gold */
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: 0.4px;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* ---------- HEADER (COMMANDING BUT QUIET) ---------- */

.h1-head {
  background: linear-gradient(
    to bottom,
    #e0c35a,
    #d4af37
  );
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.3);
}

.system-tagline {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ---------- APP SHELL RHYTHM ---------- */

.app-shell {
  gap: 40px;
  padding: 0 36px 48px;
}

.main-content {
  max-width: 980px;
}

/* ---------- SIDEBAR — PREMIUM NAV ---------- */

.sidebar-navigation {
  border-right: 1px solid rgba(212,175,55,0.15);
}

.primary-nav a {
  font-size: 0.9rem;
  opacity: 0.8;
}

.primary-nav a:hover {
  opacity: 1;
}

/* ---------- MY SITES SIDEBAR BLOCK ---------- */

.sidebar-section {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(212,175,55,0.2);
}

.sidebar-section h4 {
  font-size: 0.7rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.8;
}

#my-sites-list li {
  margin-bottom: 8px;
}

#my-sites-list a {
  font-size: 0.88rem;
  opacity: 0.85;
}

#my-sites-list a:hover {
  opacity: 1;
}

.add-site-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  opacity: 0.7;
}

.add-site-link:hover {
  opacity: 1;
}

/* ---------- SECTION CARDS ---------- */

section {
  background-color: #111;
  border: 1px solid rgba(212,175,55,0.14);
  border-radius: 7px;
  padding: 26px 28px;
  margin-bottom: 32px;
  box-shadow:
    0 8px 18px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

/* ---------- FIELD BLOCKS ---------- */

.field-block label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  opacity: 0.8;
}

/* ---------- FORMS ---------- */

.operator-form input,
.operator-form select,
.operator-form textarea {
  background-color: #1f1e1e;
  border: 1px solid rgba(212,175,55,0.22);
  color: #e4d8a4;
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 0.9rem;
}



/* ---------- CORE SITE INFO (EDIT SAFETY) ---------- */

.core-row input.hidden {
  display: none;
}




.operator-form textarea {
  line-height: 1.6;
}

.operator-form input:focus,
.operator-form select:focus,
.operator-form textarea:focus {
  border-color: #d4af37;
  outline: none;
}

/* ---------- BUTTONS — CONFIDENT, NOT LOUD ---------- */

.operator-form button,
.operator-btn {
  background-color: #d4af37;
  color: #1f1e1e;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 9px 14px;
}

.operator-form button:hover,
.operator-btn:hover {
  background-color: #c2a432;
}

/* ---------- CITATION CARDS ---------- */

#citations > div {
  background-color: #1a1919;
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 5px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

/* ---------- FRICTION LOG ---------- */

#friction-log {
  min-height: 120px;
  resize: vertical;
}

/* ---------- DANGER ZONE — SERIOUS, NOT FLASHY ---------- */

.danger-zone {
  border: 1px solid rgba(255,80,80,0.35);
  background-color: #140d0d;
}

.danger-zone h3 {
  color: #ff8c8c;
}

.danger-btn {
  background-color: #2a0000;
  color: #ff8c8c;
  border: 1px solid rgba(255,80,80,0.5);
}

.danger-btn:hover {
  background-color: #3a0000;
}


/* ======================================================
   MY SITES — PRIMARY ASSET EMPHASIS
   CSS ONLY — SAFE
====================================================== */

#my-sites-list {
  margin-top: 6px;
}

#my-sites-list li {
  margin-bottom: 10px;
}

#my-sites-list a {
  display: block;
  padding: 10px 12px;
  background-color: #111;
  border-left: 3px solid rgba(212,175,55,0.45);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #f0e2a8;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 4px 10px rgba(0,0,0,0.35);
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

#my-sites-list a:hover {
  background-color: #161515;
  border-left-color: #d4af37;
  transform: translateX(2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 6px 14px rgba(0,0,0,0.5);
}

/* ===============================
   SITE BUILD — PROMPT TERMINAL
================================ */

.validation-list {
  list-style: none;
  padding-left: 0;
  margin-top: 12px;
}

.validation-list li {
  padding: 10px 12px;
  margin-bottom: 8px;
  background-color: #1a1919;
  border-left: 3px solid #d4af37;
  font-size: 0.9rem;
  opacity: 0.95;
}

.prompt-block {
  margin-top: 22px;
}

.prompt-block label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: #d4af37;
  letter-spacing: 0.4px;
}

.prompt-block textarea {
  width: 100%;
  background-color: #0f0f0f;
  color: #e6d9a8;
  border: 1px solid rgba(212,175,55,0.25);
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  resize: vertical;
  border-radius: 6px;
}

.prompt-block textarea:focus {
  outline: none;
  border-color: #d4af37;
}
/* ======================================================
   FINALISE PROMPT — FINAL TOUCH STAGING PANEL
====================================================== */

.finalise-panel {
  position: relative;
  background-color: #0f0f0f;
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 8px;
  padding: 26px 28px 28px;
  margin-bottom: 36px;

  /* subtle elevation */
  box-shadow:
    0 10px 26px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(212,175,55,0.08);
}

/* soft gold emphasis bar — not loud */
.finalise-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(
    to bottom,
    #d4af37,
    rgba(212,175,55,0.4)
  );
  border-radius: 8px 0 0 8px;
}

/* heading — calm authority */
.finalise-panel h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.15rem;
  letter-spacing: 0.4px;
  color: #d4af37;
}

/* supporting copy */
.finalise-panel .panel-note {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 16px;
  max-width: 720px;
}

/* textarea — feels like a staging canvas */
#finalise-prompt {
  width: 100%;
  min-height: 240px;
  background-color: #1b1a1a;
  color: #e6d9a8;

  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 6px;

  padding: 16px 18px;
  font-size: 0.9rem;
  line-height: 1.6;

  resize: vertical;
}

/* placeholder tone */
#finalise-prompt::placeholder {
  color: rgba(230,217,168,0.45);
}

/* focus = intentional, not flashy */
#finalise-prompt:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 2px rgba(212,175,55,0.15);
}

/* ---------- Undo Button ---------- */

.undo-btn {
  align-self: flex-start;
  margin-top: 6px;

  background: transparent;
  color: rgba(212,175,55,0.75);
  border: 1px solid rgba(212,175,55,0.25);

  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;

  cursor: pointer;
}

.undo-btn:hover {
  background-color: rgba(212,175,55,0.08);
  color: #d4af37;
}




/* ======================================================
   LUX PANEL — MATERIAL DEPTH SYSTEM
====================================================== */

.lux-panel {
  position: relative;
  background:
    linear-gradient(
      180deg,
      #121212 0%,
      #0c0c0c 100%
    );
  border-radius: 12px;
  padding: 34px 36px 38px;
  margin-bottom: 44px;

  border: 1px solid rgba(212,175,55,0.22);

  box-shadow:
    0 30px 60px rgba(0,0,0,0.75),
    inset 0 1px 0 rgba(255,255,255,0.04),
    inset 0 0 0 1px rgba(212,175,55,0.06);
}

/* quiet gold spine */
.lux-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: linear-gradient(
    to bottom,
    rgba(212,175,55,0.9),
    rgba(212,175,55,0.25)
  );
  border-radius: 4px;
}

.lux-panel h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: #d4af37;
}


/* ======================================================
   SITE CONTEXT — OPERATOR CALIBRATION
====================================================== */

.site-context .context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-bottom: 26px;
}

.site-context label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 6px;
}

/* inputs feel embedded, not boxed */
.site-context input {
  background:
    linear-gradient(
      180deg,
      #1a1a1a,
      #121212
    );
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: #e6d9a8;

  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.6);
}

.site-context input:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.6),
    0 0 0 2px rgba(212,175,55,0.15);
}

/* ---------- TONE PANEL ---------- */

.tone-panel {
  margin-bottom: 30px;
}

.tone-options {
  display: flex;
  gap: 18px;
  margin-top: 10px;
}

.tone-options label {
  position: relative;
  padding: 12px 16px;
  background-color: #111;
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 8px;
  cursor: pointer;

  font-size: 0.85rem;
  letter-spacing: 0.3px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 8px 18px rgba(0,0,0,0.5);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.tone-options label:hover {
  transform: translateY(-1px);
  border-color: rgba(212,175,55,0.6);
}

/* hide default radio */
.tone-options input {
  display: none;
}

/* checked = calibrated */
.tone-options input:checked + span,
.tone-options label:has(input:checked) {
  border-color: #d4af37;
  box-shadow:
    inset 0 0 0 1px rgba(212,175,55,0.35),
    0 12px 26px rgba(0,0,0,0.7);
}



/* ======================================================
   CODE VAULT — SEALED ASSET ZONE
====================================================== */

.code-vault .panel-note {
  font-size: 0.85rem;
  opacity: 0.75;
  max-width: 760px;
  margin-bottom: 22px;
}

/* grid spacing */
.vault-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.vault-block label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: 0.8;
}

/* textarea = protected slab */
.code-vault textarea {
  width: 100%;
  background:
    linear-gradient(
      180deg,
      #0b0b0b,
      #050505
    );
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 8px;
  padding: 18px;

  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.65;
  color: #e6d9a8;

  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.85),
    inset 0 0 0 1px rgba(212,175,55,0.08);
}

.code-vault textarea:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.85),
    0 0 0 2px rgba(212,175,55,0.18);
}


/* ======================================================
   VAULT LOCK — DELIBERATE CONTROL
====================================================== */

.vault-lock-btn {
  margin-left: auto;
  margin-bottom: 16px;

  background: transparent;
  border: 1px solid rgba(212,175,55,0.35);
  color: rgba(212,175,55,0.85);

  padding: 6px 12px;
  font-size: 0.7rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;

  border-radius: 999px;
  cursor: pointer;

  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.vault-lock-btn.locked {
  opacity: 0.85;
}

.vault-lock-btn.unlocked {
  color: #111;
  background-color: #d4af37;
  border-color: #d4af37;
}

/* visual cue when locked */
.code-vault textarea[readonly] {
  opacity: 0.85;
  cursor: not-allowed;
}



/* ---------- CORE EDIT BUTTON (PREMIUM) ---------- */

.core-edit-btn {
  margin-left: auto;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);

  background: linear-gradient(
    180deg,
    rgba(212, 175, 55, 0.18),
    rgba(212, 175, 55, 0.08)
  );

  color: #d4af37; /* gold */
  cursor: pointer;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

/* hover = subtle lift, not cheesy */
.core-edit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  border-color: rgba(212, 175, 55, 0.7);
}

/* active press */
.core-edit-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ---------- SAVE STATE ---------- */

.core-edit-btn:not(.locked) {
  background: linear-gradient(
    180deg,
    rgba(212, 175, 55, 0.35),
    rgba(212, 175, 55, 0.2)
  );

  color: #111;
  border-color: #d4af37;
}

/* save hover = authority */
.core-edit-btn:not(.locked):hover {
  background: linear-gradient(
    180deg,
    rgba(212, 175, 55, 0.5),
    rgba(212, 175, 55, 0.3)
  );
}


content-vault-section {
  padding: 30px;
}

.vault-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vault-edit-btn {
  background: #111;
  border: 1px solid #c9a24d;
  color: #c9a24d;
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 6px;
}

.vault-edit-btn.locked {
  opacity: 0.7;
}

.vault-group {
  background: #0e0e0e;
  border: 1px solid #1f1f1f;
  padding: 20px;
  margin-top: 20px;
  border-radius: 10px;
}

.vault-list li {
  list-style: none;
  padding: 6px 0;
}

.vault-list li input {
  width: 100%;
  background: #111;
  border: 1px solid #333;
  color: #c9a24d;
  padding: 6px;
  display: none;
}

.vault-textarea {
  width: 100%;
  min-height: 220px;
  background: #111;
  border: 1px solid #333;
  color: #c9a24d;
  padding: 12px;
  margin-top: 10px;
  resize: vertical;
}

.add-topic-btn,
#copy-blog-prompt {
  margin-top: 12px;
  background: #111;
  border: 1px solid #c9a24d;
  color: #c9a24d;
  padding: 6px 12px;
  cursor: pointer;
}


.vault-textarea[readonly] {
  background: #111;
  border: 1px solid #333;
  color: #cfae70;
  cursor: default;
}

.vault-textarea.editing {
  background: #0b0b0b;
  border: 1px solid #cfae70;
  cursor: text;
}

.vault-delete {
  background: transparent;
  border: none;
  color: #cfae70;
  font-size: 14px;
  cursor: pointer;
  margin-left: 10px;
}

.vault-delete:hover {
  color: #fff;
}




/* Final Prompt Workbench Buttons */
.final-vault .vault-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

#undo-final-prompt,
#copy-final-blog-prompt {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(212,179,106,.35);
  color: #e0c27a;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
}

#undo-final-prompt:hover,
#copy-final-blog-prompt:hover {
  background: rgba(212,179,106,.08);
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  transform: translateY(-1px);
}

#undo-final-prompt:active,
#copy-final-blog-prompt:active {
  transform: translateY(0);
  box-shadow: none;
}

#undo-final-prompt {
  opacity: .85;
}

#undo-final-prompt:hover {
  opacity: 1;
}


/* ---------- DASHBOARD LAYOUT ---------- */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background-color: #000;
  color: #fff;
  font-family: "Inter", "Helvetica", sans-serif;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  width: 230px;
  background: linear-gradient(180deg, #0b0b0b, #050505);
  color: #f5c518;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1rem;
  box-shadow: 3px 0 18px rgba(0,0,0,0.6);
}

.sidebar-navigation {
  margin-top: 1.4rem;
}

.sidebar-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-navigation li {
  margin-bottom: 0.7rem;
}

.sidebar-navigation a {
  color: #f5c518;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  display: block;
  padding: 0.45rem 0.3rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.sidebar-navigation a:hover {
  color: #fff;
  background: rgba(0,140,255,0.08);
  padding-left: 0.6rem;
}






/* ===============================
   CITATIONS – MODERN RED UI
================================ */

#citations {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

/* Card */
.outreach-card {
  background: linear-gradient(180deg, #bca9ff, #3643ff);
  border: 1px solid rgba(255, 13, 13, 0.774);
  border-left: 5px solid #ff3b3b;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 10px 25px rgba(116, 141, 5, 0.45);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.outreach-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.6);
}

/* Title */
.outreach-card strong {
  grid-column: 1 / -1;
  font-size: 0.95rem;
  letter-spacing: .4px;
  color: #000000;
}

/* Status select */
.outreach-card select {
  background: #0000001f;
  border: 1px solid rgba(0, 0, 0, 0.55);
  color: #000000;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* Notes */
.outreach-card textarea {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 80, 80, 0.35);
  border-radius: 6px;
  padding: 8px;
  resize: vertical;
  min-height: 60px;
  color: #000000;
}

/* Remove button */
.outreach-card button {
  background: rgba(255, 60, 60, 0.15);
  border: 1px solid rgba(255, 80, 80, 0.6);
  color: #ffbdbd;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}

.outreach-card button:hover {
  background: rgba(255, 60, 60, 0.35);
  transform: translateY(-1px);
}

/* Inputs above */
.operator-form input,
.operator-form button {
  border: 1px solid rgba(255, 80, 80, 0.4);
}

#add-citation {
  background: rgba(255, 60, 60, 0.2);
  color: #ffdada;
  border-radius: 6px;
}

#add-citation:hover {
  background: rgba(255, 60, 60, 0.4);
}
/* ======================================================
   SITE BUILD Section design — ULTRA BLUE OPERATOR THEME
====================================================== */

.site-build-section {
  background: radial-gradient(circle at top, #071a2f, #020b16 70%);
  border: 1px solid rgba(90,180,255,0.25);
  border-radius: 10px;
  box-shadow:
    0 18px 40px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(120,200,255,0.05);
}

/* ---------- HEADER ---------- */

.site-build-section .vault-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(120,200,255,0.25);
}

.site-build-section h3 {
  color: #8fd0ff;
  letter-spacing: 0.6px;
}

.site-build-section .vault-edit-btn {
  background: rgba(120,200,255,0.15);
  border: 1px solid rgba(120,200,255,0.4);
  color: #cfeaff;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.75rem;
}

.site-build-section .vault-edit-btn:hover {
  background: rgba(120,200,255,0.3);
}

/* ---------- GROUP PANELS ---------- */

.site-build-section .vault-group {
  background: rgba(10,25,45,0.55);
  border: 1px solid rgba(120,200,255,0.22);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 26px;
  box-shadow:
    0 12px 26px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ---------- TITLES ---------- */

.site-build-section h4 {
  color: #7fc7ff;
  margin-bottom: 16px;
  letter-spacing: 0.4px;
}

.site-build-section h5 {
  color: #a9dcff;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

/* ---------- INPUT GRID ---------- */

.build-inputs .operator-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.site-build-section input {
  background: rgba(5,20,40,0.75);
  color: #e6f5ff;
  border: 1px solid rgba(120,200,255,0.35);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.site-build-section input::placeholder {
  color: rgba(200,235,255,0.5);
}

.site-build-section input:focus {
  outline: none;
  border-color: #6fc3ff;
  box-shadow: 0 0 0 1px rgba(120,200,255,0.35);
}

/* ---------- TEMPLATE LAYOUT ---------- */

.template-card {
  background: linear-gradient(180deg, rgba(8,30,60,0.65), rgba(4,18,36,0.65));
  border: 1px solid rgba(120,200,255,0.25);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 22px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.template-panel label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.6px;
  color: #9fd7ff;
}

/* ---------- TEXTAREAS ---------- */

.site-build-section .vault-textarea {
  background: rgba(3,15,32,0.8);
  color: #e9f7ff;
  border: 1px solid rgba(120,200,255,0.3);
  border-radius: 8px;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  resize: vertical;
}

.site-build-section .vault-textarea:focus {
  outline: none;
  border-color: #7fd0ff;
  box-shadow: 0 0 0 1px rgba(120,200,255,0.4);
}

/* ---------- ACTIONS ---------- */

.site-build-section .vault-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.site-build-section .vault-actions button {
  background: linear-gradient(180deg, #4fb3ff, #1e6fb3);
  color: #031321;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.45);
}

.site-build-section .vault-actions button:hover {
  background: linear-gradient(180deg, #72c7ff, #2b86d4);
  transform: translateY(-1px);
}

/* ---------- SUBTLE GLOW ---------- */

.site-build-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 12px;
  box-shadow: inset 0 0 40px rgba(90,170,255,0.05);
}


/* locked css theme for site build page */
.vault-group.locked {
  opacity: 0.75;
  filter: grayscale(0.2);
}

.vault-group.locked textarea {
  background: rgba(5,20,40,0.4);
  border-color: rgba(120,200,255,0.15);
}

/* ===============================
   MASTER PAGE PROMPTS — ULTRA BLUE
================================ */

.master-page-prompts {
  background: linear-gradient(180deg, rgba(30,70,160,.35), rgba(10,25,60,.55));
  border: 1px solid rgba(120,180,255,0.35);
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
}

.master-prompt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 16px;
}

.master-prompt-card {
  background: linear-gradient(180deg, rgba(40,90,200,.25), rgba(12,22,48,.8));
  border: 1px solid rgba(120,180,255,0.45);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 12px 26px rgba(0,0,0,.6);
}

.master-prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #bcdcff;
  margin-bottom: 8px;
}

.master-prompt-textarea {
  background: rgba(8,18,40,.85);
  color: #e7f2ff;
  border: 1px solid rgba(120,180,255,.35);
  border-radius: 10px;
  min-height: 160px;
}

.master-prompt-textarea:focus {
  outline: none;
  border-color: #4db3ff;
  box-shadow: 0 0 0 1px rgba(77,179,255,.4);
}

.master-prompt-card .vault-actions {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}

.master-prompt-card .vault-actions button {
  background: linear-gradient(180deg,#2b79ff,#1451c4);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: .7rem;
  cursor: pointer;
}

.master-prompt-card .vault-actions button:hover {
  background: linear-gradient(180deg,#4aa1ff,#1a63d6);
}





.operator-sidebar {
  background: linear-gradient(180deg,#06122e,#020816);
  border-right: 1px solid rgba(90,160,255,.25);
  box-shadow: inset -1px 0 0 rgba(255,255,255,.04);
}

.operator-logo {
  padding: 20px;
  font-weight: 700;
  color: #7cc2ff;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(120,180,255,.15);
}

.operator-sidebar .primary-nav li a {
  display: block;
  padding: 12px 18px;
  color: #cfe7ff;
  text-decoration: none;
  font-size: .8rem;
}

.operator-sidebar .primary-nav li a:hover {
  background: rgba(60,120,255,.15);
  color: #fff;
}

.operator-sidebar .primary-nav .active a {
  background: linear-gradient(90deg,#2f7dff,#0f3c9c);
  color: #fff;
}

.operator-footer {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: .65rem;
  color: #6fa8ff;
  opacity: .7;
}



/* ===================================
   IRON LOCAL — SCOPED LUXURY FIELDS
   Only for: Address, Times, Blog
=================================== */

.site-address input,
.opening-times input,
.blog-activity input {
  width: 100%;
  background: linear-gradient(180deg, rgba(20,20,20,.85), rgba(8,8,8,.95));
  border: 1px solid rgba(255,210,90,.28);
  border-radius: 10px;
  padding: 12px 14px;
  color: #f3f3f3;
  font-size: 14px;
  outline: none;
  transition: all .18s ease;
  box-shadow:
    inset 0 0 0 rgba(0,0,0,0),
    0 6px 18px rgba(0,0,0,.45);
}

/* Placeholder */
.site-address input::placeholder,
.opening-times input::placeholder,
.blog-activity input::placeholder {
  color: rgba(255,255,255,.38);
}

/* Focus glow */
.site-address input:focus,
.opening-times input:focus,
.blog-activity input:focus {
  border-color: #ffd25a;
  background: linear-gradient(180deg, rgba(30,30,30,.9), rgba(15,15,15,1));
  box-shadow:
    0 0 0 1px rgba(255,210,90,.35),
    0 10px 26px rgba(255,210,90,.18);
}

/* Labels */
.site-address label,
.opening-times label,
.blog-activity label {
  color: #ffd25a;
  font-size: 12px;
  letter-spacing: .08em;
  margin-bottom: 6px;
  display: block;
  text-transform: uppercase;
}

/* Field layout */
.site-address .context-grid > div,
.opening-times .context-grid > div,
.blog-activity .context-grid > div,
.site-address .field-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Subtle neon edge */
.site-address input,
.opening-times input,
.blog-activity input {
  background-image:
    radial-gradient(circle at top, rgba(255,210,90,.08), transparent 60%),
    linear-gradient(180deg, rgba(18,18,18,.9), rgba(6,6,6,1));
}

/* Caret glow */
.site-address input,
.opening-times input,
.blog-activity input {
  caret-color: #ffd25a;
}

/* ===============================
   IRON LOCAL — HACKER LUXURY
   Scoped Only To New Sections
   Address • Times • Blog
================================ */

/* Base fields */
.site-address input,
.site-address textarea,
.opening-times input,
.opening-times textarea,
.blog-activity input,
.blog-activity textarea {
  width: 100%;
  background: linear-gradient(180deg, rgba(20,20,20,0.88), rgba(8,8,8,0.96));
  border: 1px solid rgba(255, 210, 90, 0.28);
  border-radius: 10px;
  padding: 12px 14px;
  color: #f4f4f4;
  font-size: 14px;
  outline: none;
  transition: all .18s ease;
  box-shadow:
    inset 0 0 0 rgba(0,0,0,0),
    0 6px 18px rgba(0,0,0,0.55);
}

/* Placeholder */
.site-address input::placeholder,
.opening-times input::placeholder,
.blog-activity input::placeholder {
  color: rgba(255,255,255,0.38);
}

/* Focus glow */
.site-address input:focus,
.opening-times input:focus,
.blog-activity input:focus {
  border-color: #ffd25a;
  background: linear-gradient(180deg, rgba(32,32,32,0.95), rgba(14,14,14,1));
  box-shadow:
    0 0 0 1px rgba(255,210,90,0.4),
    0 12px 28px rgba(255,210,90,0.22);
}

/* Caret */
.site-address input,
.opening-times input,
.blog-activity input {
  caret-color: #ffd25a;
}

/* Labels */
.site-address label,
.opening-times label,
.blog-activity label {
  color: #ffd25a;
  font-size: 12px;
  letter-spacing: .08em;
  margin-bottom: 6px;
  display: block;
  text-transform: uppercase;
}

/* Layout */
.site-address .context-grid > div,
.opening-times .context-grid > div,
.blog-activity .context-grid > div,
.site-address .field-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Subtle edge neon */
.site-address input,
.opening-times input,
.blog-activity input {
  background-image:
    radial-gradient(circle at top, rgba(255,210,90,.08), transparent 60%),
    linear-gradient(180deg, rgba(18,18,18,.9), rgba(6,6,6,1));
}

/* Section panels */
.site-address,
.opening-times,
.blog-activity {
  background: linear-gradient(180deg, rgba(18,18,18,.92), rgba(6,6,6,.98));
  border: 1px solid rgba(255,210,90,.22);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0,0,0,.75);
}



.content-watering-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 215, 0, 0.08);
  border: 4px solid rgba(255, 215, 0, 0.5);
  border-radius: 10px;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.35);
  margin-bottom: 18px;
}

.watering-label {
  font-weight: 600;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: .6px;
}

#lastWateredDate {
  color: #fff;
  font-size: 14px;
}

#updateWateringBtn {
  background: linear-gradient(135deg, #ffd700, #ffb300);
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}




.blog-topics-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px;
  border-radius: 10px;
}

.blog-topics-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #f5f5f5;
}

#blogTopicsList {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.blog-topic-pill {
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.4);
  padding: 4px 8px;
  border-radius: 14px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-topic-pill span {
  cursor: pointer;
}

.blog-topic-pill button {
  background: none;
  border: none;
  color: #ffcc00;
  cursor: pointer;
}

#blogTopicInput {
  width: 100%;
  padding: 6px;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,.15);
  color: white;
}


/* ===============================
   SITE BUILD — ULTRA BLUE OPERATOR
   Electric Glass Workbench FX
================================ */

:root {
  --ultra-blue: #2fa4ff;
  --ultra-blue-soft: rgba(47, 164, 255, 0.25);
  --ultra-blue-glow: rgba(47, 164, 255, 0.55);
  --ultra-blue-border: rgba(47, 164, 255, 0.35);
}

/* Template cards */
.site-build-section .template-card,
.site-build-section .full-css-panel,
.site-build-section .master-prompt-card {
  background: linear-gradient(180deg, rgba(13,13,45,.95), rgba(10,10,70,.98));
  border: 1px solid var(--ultra-blue-border);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 14px 36px rgba(0,0,0,.75),
    0 0 26px var(--ultra-blue-soft);
}

/* HEADER BAR */
.site-build-section .page-integration-header {
  background: linear-gradient(90deg, #001a4d, #0b56ff);
  border-bottom: 2px solid var(--ultra-blue);
  padding: 10px 14px;
  box-shadow:
    inset 0 -1px 0 rgba(255,255,255,0.08),
    0 0 22px rgba(47,164,255,.55);
}

/* HEADER TEXT */
.site-build-section .page-integration-header h4 {
  color: #ffffff;
  letter-spacing: .08em;
  text-shadow:
    0 0 6px rgba(47,164,255,.8),
    0 0 18px rgba(47,164,255,.45);
}

/* Textareas */
.site-build-section .vault-textarea {
  background: linear-gradient(180deg, #040e2b, #030611);
  border: 1px solid rgba(255,255,255,.35);
  color: #f3f7ff;
  border-radius: 12px;
  transition: .18s ease;
  box-shadow: inset 0 0 10px rgba(0,0,0,.6);
}

.site-build-section .vault-textarea:focus {
  outline: none;
  border-color: var(--ultra-blue);
  box-shadow:
    0 0 0 1px var(--ultra-blue),
    0 0 18px var(--ultra-blue-glow);
}

/* Full CSS bays */
.site-build-section .template-css {
  min-height: 260px;
}

/* Lock state */
.site-build-section .locked-card {
  opacity: .6;
  box-shadow: none;
}

.site-build-section .locked-field {
  background: rgba(20,25,40,.85);
  border-color: rgba(47,164,255,.25);
}

/* Buttons */
.site-build-section .vault-actions button,
.site-build-section .integration-lock-btn {
  background: linear-gradient(180deg, #36b2ff, #0b6fd6);
  border: none;
  color: #07131f;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(47,164,255,.55);
}

.site-build-section .vault-actions button:hover,
.site-build-section .integration-lock-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(47,164,255,.75);
}

/* Grid glow separation */
.site-build-section .template-panel {
  background: rgba(12,18,36,.92);
  border: 1px solid rgba(47,164,255,.28);
  border-radius: 12px;
  padding: 12px;
  box-shadow: inset 0 0 22px rgba(47,164,255,.12);
}


/* ===========================
   CSS for Undo Buttons
   =========================== */

.css-undo-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 14px;
  background: #020b16;
  border: 2px solid #2fa4ff;
  border-radius: 8px;
  box-shadow: 0 0 14px #2fa4ff, 0 0 28px rgba(47,164,255,.6);
}

.css-undo-btn {
  padding: 7px 16px;
  background: linear-gradient(45deg, #2fa4ff, #00d4ff);
  color: #04121f;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all .18s ease;
  box-shadow: 0 0 10px rgba(47,164,255,.7);
}

.css-undo-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 16px rgba(47,164,255,.9), 0 0 34px rgba(47,164,255,.6);
}

.undo-note {
  color: #9ad8ff;
  font-size: .85rem;
  font-style: italic;
}

/* ===============================
   TEMPLATE 2 — NEON PINK REBUILD
================================ */

.tpl2-neon-card {
  background: linear-gradient(180deg, #160014, #0c000b);
  border: 2px solid rgba(255,60,200,.65);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05),
    0 18px 50px rgba(0,0,0,.85),
    0 0 36px rgba(255,60,200,.55);
}

.tpl2-neon-header {
  background: linear-gradient(90deg, #6b004f, #ff2fb3);
  border-bottom: 2px solid #ff6ad5;
  padding: 14px 18px;
  box-shadow:
    inset 0 -1px 0 rgba(255,255,255,.2),
    0 0 28px rgba(255,60,200,.75);
}

.tpl2-neon-title {
  color: #ffffff;
  letter-spacing: .12em;
  text-shadow:
    0 0 8px rgba(255,80,220,.9),
    0 0 22px rgba(255,80,220,.7);
}

.tpl2-neon-lock {
  background: linear-gradient(180deg, #ff6ad5, #c8007a);
  color: #220014;
  box-shadow: 0 6px 18px rgba(255,60,200,.7);
}

.tpl2-neon-grid {
  gap: 16px;
}

.tpl2-neon-panel {
  background: rgba(45,0,40,.92);
  border: 1px solid rgba(255,80,220,.45);
  box-shadow: inset 0 0 22px rgba(255,80,220,.18);
}

.tpl2-neon-label {
  color: #ffb6ea;
  letter-spacing: .08em;
}

.tpl2-neon-textarea {
  background: linear-gradient(180deg, #26001f, #12000e);
  border: 1px solid rgba(255,80,220,.45);
  color: #ffd9f3;
  box-shadow: inset 0 0 14px rgba(0,0,0,.7);
}

.tpl2-neon-textarea:focus {
  border-color: #ff5bd6;
  box-shadow:
    0 0 0 1px #ff5bd6,
    0 0 22px rgba(255,80,220,.85);
}

.tpl2-neon-card .vault-actions button,
.tpl2-neon-card .css-undo-btn {
  background: linear-gradient(180deg, #ff6ad5, #cc0077);
  color: #1c0012;
  box-shadow: 0 8px 22px rgba(255,80,220,.7);
}

.tpl2-neon-card .vault-actions button:hover,
.tpl2-neon-card .css-undo-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(255,80,220,.9);
}

.tpl2-neon-card .undo-note {
  color: #ffb6ea;
}




/* ===============================
   CONTENT VAULT — ELITE BLUE GLOW
   Scoped to your real HTML
================================ */

/* --- Layout --- */

.vault-app {
  display: flex;
  min-height: 100vh;
  background: radial-gradient(circle at top, #061a33, #020916 70%);
}

.vault-sidebar {
  width: 220px;
  background: linear-gradient(180deg,#050e22,#020611);
  border-right: 1px solid rgba(120,180,255,.25);
  box-shadow: inset -1px 0 0 rgba(255,255,255,.04);
}

.vault-sidebar h2 {
  padding: 18px;
  color: #7cc2ff;
  letter-spacing: 1px;
}

.vault-sidebar a {
  display: block;
  padding: 12px 18px;
  color: #cfe7ff;
  text-decoration: none;
  font-size: .85rem;
}

.vault-sidebar a:hover {
  background: rgba(80,140,255,.18);
  color: #fff;
}

.vault-main {
  flex: 1;
  padding: 34px;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Header --- */

.vault-header h1 {
  background: linear-gradient(120deg,#fff,#7cc9ff,#fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: .6px;
}

.vault-subtitle {
  color: #9fd7ff;
  opacity: .75;
}

/* --- Sections --- */

.vault-section {
  background: linear-gradient(180deg, #08152e, #040a18);
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 32px;
  border: 1px solid rgba(120,180,255,.22);
  box-shadow:
    0 22px 55px rgba(0,0,0,.65),
    inset 0 0 0 1px rgba(255,255,255,.03);
  position: relative;
  transition: all .3s ease;
}

.vault-section:hover {
  transform: translateY(-2px);
  box-shadow:
    0 30px 80px rgba(0,0,0,.85),
    0 0 26px rgba(80,150,255,.35);
}

.vault-section::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, #4fb7ff, transparent);
  opacity: .22;
  filter: blur(14px);
  pointer-events: none;
}

/* --- Section Header --- */

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

.section-header h3 {
  background: linear-gradient(120deg,#fff,#79c6ff,#fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: .5px;
}

/* --- Textareas --- */

.vault-section textarea {
  width: 100%;
  background: #020817;
  color: #eaf3ff;
  border: 1px solid rgba(120,180,255,.25);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  resize: vertical;
  transition: all .25s ease;
}

.vault-section textarea:focus {
  outline: none;
  border-color: #4fb7ff;
  box-shadow:
    0 0 0 2px rgba(79,183,255,.25),
    0 0 22px rgba(79,183,255,.35);
}

/* --- Actions --- */

.vault-actions {
  display: flex;
  gap: 12px;
}

.vault-actions button,
.add-topic,
.lock-btn {
  background: linear-gradient(135deg,#0a1a33,#0f2b55);
  color: #dff1ff;
  border: 1px solid rgba(120,180,255,.3);
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .25s ease;
}

.vault-actions button:hover,
.add-topic:hover,
.lock-btn:hover {
  transform: translateY(-1px);
  border-color: #4fb7ff;
  box-shadow: 0 0 18px rgba(79,183,255,.45);
}

/* --- Topics --- */

.topics-section ul li {
  background: rgba(79,183,255,.06);
  border: 1px solid rgba(79,183,255,.2);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}



.workbench-header {
  margin: 14px 0 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.workbench-header h4 {
  color: #6fc3ff;
  font-size: .85rem;
  letter-spacing: .6px;
}

.workbench-header span {
  font-size: .65rem;
  color: rgba(180,220,255,.6);
}

/* ===== BLOG MIXER — GOLD MIX ENGINE (#f5c518) ===== */
.vault-section:nth-of-type(2) {
  position: relative;
  background: #f5c518;
  border: 1px solid rgba(0,0,0,.25);
  box-shadow:
    0 18px 40px rgba(0,0,0,.65),
    inset 0 0 28px rgba(255,255,255,.28),
    0 0 32px rgba(245,197,24,.65);
  overflow: hidden;
}

/* rotating mixer light */
.vault-section:nth-of-type(2)::before {
  content: "";
  position: absolute;
  inset: -45%;
  background:
    conic-gradient(
      from 0deg,
      transparent,
      rgba(255,255,255,.45),
      transparent,
      rgba(255,255,255,.25),
      transparent
    );
  animation: mixerSpin 22s linear infinite;
  pointer-events: none;
}

@keyframes mixerSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* horizontal flow line */
.vault-section:nth-of-type(2)::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,.35),
    transparent
  );
  animation: mixerSweep 7s linear infinite;
  pointer-events: none;
}

@keyframes mixerSweep {
  from { left: -60%; }
  to   { left: 140%; }
}


/* TEXTAREAS — DARK WITH LIGHT TEXT */
.vault-section:nth-of-type(2) textarea {
  background: rgba(0,0,0,.78);
  color: #fff6d6;
  border: 1px solid rgba(0,0,0,.55);
  box-shadow: inset 0 0 14px rgba(255,255,255,.12);
}

.vault-section:nth-of-type(2) textarea::placeholder {
  color: rgba(255,255,255,.65);
}

/* BUTTONS — DARK WITH LIGHT TEXT */
.vault-section:nth-of-type(2) button {
  background: rgba(0,0,0,.88);
  color: #fff2c0;
  border: 1px solid rgba(0,0,0,.65);
  box-shadow: 0 6px 16px rgba(0,0,0,.45);
}

.vault-section:nth-of-type(2) button:hover {
  background: rgba(0,0,0,.95);
  box-shadow: 0 0 14px rgba(255,255,255,.35);
}


.master-lock-btn {
  background: rgba(255, 60, 160, .18);
  border: 1px solid rgba(255, 90, 180, .65);
  color: #ff9bd6;
  padding: 6px 14px;
  border-radius: 14px;
  font-size: .7rem;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 80, 170, .45);
  transition: all .2s ease;
}

.master-lock-btn:hover {
  background: rgba(255, 80, 180, .35);
  box-shadow: 0 0 18px rgba(255, 90, 200, .75);
}

.master-lock-btn.unlocked {
  color: #9dffcc;
  border-color: rgba(120,255,190,.7);
  box-shadow: 0 0 14px rgba(120,255,190,.6);
}


.topic-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.topic-delete {
  background: transparent;
  border: none;
  color: #c33;
  cursor: pointer;
  font-size: 14px;
}

.topic-delete:hover {
  transform: scale(1.2);
}

/* NEW CONTRACTOR PAGE CSS, SOME OF THE NEW CONTRACTOR PAGE USES OLD CSS THOUGH.   */
/* ===============================
   CONTRACTOR CRM
================================ */

.operator-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.operator-form input,
.operator-form select,
.operator-form textarea {
  background: #000;
  border: 1px solid #444;
  color: gold;
  padding: 10px;
  font-size: 13px;
}

.operator-form textarea {
  grid-column: span 3;
  min-height: 90px;
}

.operator-form button {
  grid-column: span 3;
  background: gold;
  color: black;
  border: none;
  padding: 12px;
  cursor: pointer;
  font-weight: bold;
}

.operator-form button:hover {
  opacity: 0.9;
}

/* Colour accents */
.focus-green { border-left-color: #00ff88; }
.focus-red { border-left-color: #ff5555; }
.focus-purple { border-left-color: #b277ff; }
.focus-blue { border-left-color: #5da9ff; }
.focus-gold { border-left-color: gold; }

/* ===============================
   CONTRACTOR PAGE/ CONTRACTOR CARDS
================================ */

.contractor-card {
  background: #000;
  border: 1px solid #333;
  padding: 12px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.contractor-card strong {
  color: gold;
}

.contractor-meta {
  opacity: 0.85;
}

.contractor-actions {
  display: flex;
  gap: 6px;
}

.contractor-actions button {
  background: none;
  border: 1px solid gold;
  color: gold;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 11px;
}

.contractor-actions button:hover {
  background: gold;
  color: black;
}

/* ===============================
   GENERAL DATABASE
================================ */

#general-contractor-list .contractor-card {
  opacity: 0.85;
}

/* ===============================
   STATUS COLORS
================================ */

.status-Cold { color: #aaa; }
.status-Warm { color: #00ff88; }
.status-Negotiating { color: #ffd966; }
.status-Partner { color: #5da9ff; }


/* ===============================
   CONTRACTOR PAGE FOCUS CAMPAIGNS – ENHANCED LUXURY
================================ */

.focus-campaign {
  background: #111;
  border: 1px solid #333;
  padding: 16px;
  margin-bottom: 20px;
  border-left: 6px solid gold;
  border-radius: 6px;
  transition: all 0.3s ease;
}

/* Focus header styling */
.focus-header h4 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.5px;
  font-weight: bold;
  color: gold;
  text-shadow: 0 0 4px rgba(255, 215, 0, 0.6);
}

/* Luxury contractor card inside focus campaigns */
.focus-campaign .contractor-card {
  background: #111;
  border: 1px solid #222;
  padding: 14px;
  margin-bottom: 12px;
  border-left: 4px solid;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

/* Hover effect for contractor card inside focus */
.focus-campaign .contractor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Individual colour dominance per slot */
[data-focus="1"] {
  border-left-color: #00ff88;
}
[data-focus="1"] .contractor-card {
  border-left-color: #00ff88;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

[data-focus="2"] {
  border-left-color: #ff5555;
}
[data-focus="2"] .contractor-card {
  border-left-color: #ff5555;
  box-shadow: 0 0 20px rgba(255, 85, 85, 0.4);
}

[data-focus="3"] {
  border-left-color: #b277ff;
}
[data-focus="3"] .contractor-card {
  border-left-color: #b277ff;
  box-shadow: 0 0 20px rgba(178, 119, 255, 0.4);
}

[data-focus="4"] {
  border-left-color: #5da9ff;
}
[data-focus="4"] .contractor-card {
  border-left-color: #5da9ff;
  box-shadow: 0 0 20px rgba(93, 169, 255, 0.4);
}

[data-focus="5"] {
  border-left-color: gold;
}
[data-focus="5"] .contractor-card {
  border-left-color: gold;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* Text styling inside contractor cards for focus campaigns */
.focus-campaign .contractor-card strong {
  color: gold;
  text-shadow: 0 0 3px rgba(255, 215, 0, 0.6);
}

/* Optional: subtle background tint per focus slot */
[data-focus="1"] { background: rgba(0, 255, 136, 0.05); }
[data-focus="2"] { background: rgba(255, 85, 85, 0.05); }
[data-focus="3"] { background: rgba(178, 119, 255, 0.05); }
[data-focus="4"] { background: rgba(93, 169, 255, 0.05); }
[data-focus="5"] { background: rgba(255, 215, 0, 0.05); }


/* HOMEPAGE CSS ELEVATED STYLING */
/* ============================= */
/* GLOBAL RESET */
/* ============================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0b0b0b;
  color: #f5f5f5;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================= */
/* HEADERS */
/* ============================= */

.h1-head {
  padding: 40px 60px 10px 60px;
}

.h1-head h1 {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 1px;
}

.system-tagline {
  margin-top: 6px;
  font-size: 14px;
  opacity: 0.6;
}

.h2-head {
  padding: 0 60px 30px 60px;
}

.h2-head h2 {
  font-weight: 500;
  font-size: 20px;
  color: #d4af37; /* gold */
}

/* ============================= */
/* LAYOUT */
/* ============================= */

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ============================= */
/* SIDEBAR */
/* ============================= */

.sidebar-navigation {
  width: 240px;
  background: #111;
  padding: 40px 20px;
  border-right: 1px solid rgba(212, 175, 55, 0.1);
}

.sidebar-navigation ul {
  list-style: none;
}

.sidebar-navigation li {
  margin-bottom: 18px;
}

.sidebar-navigation a {
  text-decoration: none;
  color: #ccc;
  font-size: 14px;
  transition: 0.2s ease;
}

.sidebar-navigation a:hover {
  color: #d4af37;
}

/* ============================= */
/* MAIN CONTENT */
/* ============================= */

.main-content {
  flex: 1;
  padding: 40px 60px;
}

/* ============================= */
/* PANELS */
/* ============================= */

section {
  background: #141414;
  padding: 28px;
  margin-bottom: 32px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.08);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  transition: 0.2s ease;
}

section:hover {
  border-color: rgba(212, 175, 55, 0.25);
}

/* ============================= */
/* SNAPSHOT GRID */
/* ============================= */

.snapshot-grid {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.snapshot-grid div {
  display: flex;
  flex-direction: column;
}

.snapshot-grid input {
  background: #0e0e0e;
  border: 1px solid rgba(212,175,55,0.2);
  padding: 10px 12px;
  border-radius: 8px;
  color: white;
  width: 120px;
}

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

button {
  background: #d4af37;
  color: black;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
}

button:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ============================= */
/* GROUP GRID */
/* ============================= */

#groups-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.group-card {
  background: #0f0f0f;
  padding: 22px;
  border-radius: 12px;
  border: 1px solid rgba(212,175,55,0.1);
}

.group-card h3 {
  margin-bottom: 10px;
  color: #d4af37;
}

.group-sites-wrapper {
  margin: 15px 0;
}

.group-site {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a1a;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 13px;
}

.group-site button {
  background: transparent;
  color: #d4af37;
  font-weight: bold;
  padding: 4px 8px;
}

/* ============================= */
/* ADD SITE */
/* ============================= */

.add-site-section input,
.add-site-section select {
  background: #0e0e0e;
  border: 1px solid rgba(212,175,55,0.2);
  padding: 10px;
  border-radius: 8px;
  color: white;
  margin-right: 12px;
}

/* ============================= */
/* NOTES */
/* ============================= */

.notes-section textarea {
  width: 100%;
  background: #0e0e0e;
  border: 1px solid rgba(212,175,55,0.2);
  padding: 14px;
  border-radius: 10px;
  color: white;
  min-height: 90px;
  margin-bottom: 14px;
}

.note-item {
  background: #1a1a1a;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

@media (max-width: 900px) {

  .app-shell {
    flex-direction: column;
  }

  .sidebar-navigation {
    width: 100%;
    display: flex;
    overflow-x: auto;
    padding: 15px;
  }

  .sidebar-navigation ul {
    display: flex;
    gap: 20px;
  }

  .sidebar-navigation li {
    margin-bottom: 0;
  }

  .main-content {
    padding: 20px;
  }

  .h1-head,
  .h2-head {
    padding: 20px;
  }

  section {
    padding: 18px;
  }

  button {
    width: 100%;
    margin-top: 10px;
  }

  .snapshot-grid {
    flex-direction: column;
    align-items: stretch;
  }

}

/* HOMEPAGE ASSET SECTION "WOW FACTOR .. DAMN I MADE THIS STYLING" */
/* ============================= */
/* HIGH-PERFORMANCE ASSET VAULT */
/* ============================= */

.group-sites-wrapper {
  margin-top: 20px;
  padding: 18px;
  border-radius: 12px;
  background: radial-gradient(
    circle at top left,
    rgba(0, 153, 255, 0.15),
    rgba(212,175,55,0.05),
    rgba(0,0,0,0.4)
  );
  border: 1px solid rgba(0,153,255,0.35);
  box-shadow:
    0 0 20px rgba(0,153,255,0.25),
    inset 0 0 30px rgba(0,153,255,0.08);
}

/* Individual asset row */
.group-site {
  position: relative;
  background: linear-gradient(
    135deg,
    #0f0f0f,
    #121212
  );
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: 0.6px;
  border: 1px solid rgba(0,153,255,0.3);
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Animated glow strip */
.group-site::before {
  content: "";
  position: absolute;
  left: -50%;
  top: 0;
  height: 100%;
  width: 50%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(0,153,255,0.6),
    transparent
  );
  transform: skewX(-20deg);
  transition: 0.6s;
}

/* Hover glow sweep */
.group-site:hover::before {
  left: 120%;
}

/* Hover lift + glow */
.group-site:hover {
  transform: translateY(-3px);
  border-color: rgba(0,153,255,0.9);
  box-shadow:
    0 0 15px rgba(0,153,255,0.6),
    0 0 35px rgba(0,153,255,0.4);
}

/* Site name glow */
.group-site {
  color: #e6f4ff;
  font-weight: 500;
  text-shadow: 0 0 6px rgba(0,153,255,0.6);
}

/* Delete button upgraded */
.group-site button {
  background: transparent;
  color: #00bfff;
  border: 1px solid rgba(0,191,255,0.5);
  border-radius: 6px;
  padding: 5px 10px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.group-site button:hover {
  background: rgba(0,153,255,0.2);
  box-shadow: 0 0 12px rgba(0,153,255,0.8);
  border-color: #00bfff;
}

/* ============================= */
/* LUXURY DATE INPUT MINIMAL */
/* ============================= */

.group-card input[type="date"] {
  background: #0f0f0f;
  color: #e6f4ff;
  border: 1px solid rgba(0,153,255,0.4);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.group-card input[type="date"]:focus {
  outline: none;
  border-color: #00bfff;
  box-shadow: 0 0 8px rgba(0,153,255,0.6);
}

 /* =========================
   GLOBAL RESET / BASE
========================= */

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #1a1a1a 0%, #0d0d0d 100%);
  color: #e6d3a3;
  letter-spacing: 0.2px;
}

/* =========================
   APP LAYOUT
========================= */

.app-shell {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

/* =========================
   HEADER (PREMIUM HERO)
========================= */

.factory-header {
  text-align: center;
  margin-bottom: 40px;
}

.factory-header h1 {
  font-size: 42px;
  margin: 0;
  background: linear-gradient(90deg, #f5d78e, #caa95c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.factory-header p {
  opacity: 0.6;
  margin-top: 10px;
  font-size: 14px;
}

/* =========================
   SECTION PANEL (GLASS CARD)
========================= */

.factory-form-section {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 16px;
  padding: 30px;
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.05),
    0 20px 40px rgba(0, 0, 0, 0.6);
}

/* =========================
   HEADINGS
========================= */

h2, h3 {
  margin-top: 0;
  color: #f5d78e;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* =========================
   FORM GRID
========================= */

.factory-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 25px;
}

/* =========================
   INPUT GROUP
========================= */

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-size: 11px;
  margin-bottom: 6px;
  text-transform: uppercase;
  opacity: 0.6;
}

/* =========================
   PREMIUM INPUTS
========================= */

.input-group input {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.15);
  padding: 12px;
  color: #f5d78e;
  border-radius: 10px;
  outline: none;
  transition: all 0.25s ease;
}

/* HOVER = subtle lift */
.input-group input:hover {
  border-color: rgba(255, 215, 0, 0.35);
}

/* FOCUS = glow */
.input-group input:focus {
  border-color: #f5d78e;
  box-shadow: 0 0 0 2px rgba(245, 215, 142, 0.15);
  background: rgba(0, 0, 0, 0.8);
}

/* =========================
   BUTTON (HIGH-END CTA)
========================= */

#generate-site-btn {
  margin-top: 20px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #f5d78e, #caa95c);
  color: black;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* hover lift */
#generate-site-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245, 215, 142, 0.2);
}

/* click press */
#generate-site-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* =========================
   STATUS TEXT
========================= */

#factory-status {
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.6;
}

/* =========================
   SECTION SPACING
========================= */

.factory-form-section h3 {
  margin-top: 30px;
}

/* LOFT INSULATION CONTENT ADD LIBRARY SETION UI */

/* ========================= */
/* LIBRARY COMPACT UI */
/* ========================= */

/* Each library section tighter */
.notes-section ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Individual items become "pills" */
.notes-section ul li {
  list-style: none;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Hover effect */
.notes-section ul li:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: translateY(-2px);
}

/* Optional: make delete button cleaner */
.topic-delete {
  float: right;
  background: none;
  border: none;
  color: gold;
  cursor: pointer;
  font-size: 12px;
}

/* ========================= */
/* CONCRETE MODE IDENTITY */
/* ========================= */

.concrete-mode {
  background: linear-gradient(135deg, #2b2b2b, #1a1a1a);
  color: gold;
  box-shadow: inset 0 -2px 0 rgba(255,215,0,0.2);
}

/* SECTION STYLE */
.concrete-section {
  border: 1px solid rgba(255,215,0,0.15);
  padding: 20px;
  margin-bottom: 30px;
  background: rgba(0,0,0,0.6);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

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

/* TEXTAREAS */
.concrete-section textarea {
  width: 100%;
  background: #111;
  color: gold;
  border: 1px solid #333;
  padding: 12px;
  font-family: monospace;
  margin-bottom: 10px;
}

.concrete-section textarea:focus {
  outline: none;
  border-color: gold;
  box-shadow: 0 0 10px rgba(255,215,0,0.3);
}

/* BUTTONS */
.vault-actions button,
.lock-btn {
  background: black;
  color: gold;
  border: 1px solid gold;
  padding: 6px 10px;
  cursor: pointer;
}

.vault-actions button:hover,
.lock-btn:hover {
  background: gold;
  color: black;
}

/* SERVICE LIBRARY (Concrete Theme - Black & Gold) */
.service-library {
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

/* GRID LAYOUT */
.library-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* INDIVIDUAL BLOCKS */
.library-block {
  background: #151515;
  border: 1px solid #2f2f2f;
  border-radius: 6px;
  padding: 16px;
  transition: border 0.2s ease, transform 0.15s ease;
}

/* SUBTLE HOVER (FEELS PREMIUM, NOT FLASHY) */
.library-block:hover {
  border-color: #c9a24a;
  transform: translateY(-2px);
}

/* HEADINGS INSIDE BLOCK */
.library-block h3 {
  color: #e6c36a;
}

/* LIST ITEMS */
.topic-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  padding: 6px 10px;
  margin-bottom: 6px;
  border-radius: 4px;
  color: #eaeaea;
  font-size: 13px;
}

/* DELETE BUTTON */
.topic-delete {
  background: transparent;
  border: none;
  color: #c9a24a;
  cursor: pointer;
  font-size: 12px;
}

.topic-delete:hover {
  color: #ffd700;
}

/* ADD BUTTON */
.add-topic {
  margin-top: 8px;
  background: #c9a24a;
  color: #111;
  border: none;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.add-topic:hover {
  background: #e6c36a;
}

/* MOBILE */
@media (max-width: 768px) {
  .library-grid {
    grid-template-columns: 1fr;
  }
}

.page-url-textarea {
  font-family: monospace;
  line-height: 2;
  white-space: pre-wrap;
  tab-size: 2;
}