:root{
  --bg:#ffffff;
  --card:#ffffff;
  --card2:#fafafa;
  --text:#141414;
  --muted:#5f5f5f;

  --gold:#B89B5B;
  --gold2:#D6C08A;

  --border:rgba(0,0,0,.10);
  --shadow: 0 12px 30px rgba(0,0,0,.08);
  --radius:18px;
}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: #ffffff;
  color: var(--text);
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px 50px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.badge{
  width:38px;height:38px;border-radius:12px;
  border:1px solid var(--border);
  background: linear-gradient(145deg, rgba(184,155,91,.30), rgba(18,18,20,.2));
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.brand h1{
  font-size:16px;margin:0;letter-spacing:.6px;
}
.brand small{
  display:block;color:var(--muted);margin-top:2px;font-size:12px;
}
.nav{
  display:flex; gap:10px; flex-wrap:wrap;
}
.nav a{
  padding:10px 14px;
  border:1px solid rgba(184,155,91,.35);
  background:#fff;
  border-radius:999px;
  font-size:13px;
  color:#6a4f18;
}
.nav a.active{
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color:#fff;
  border-color:transparent;
}

.nav a:hover{ text-decoration:none; border-color: rgba(184,155,91,.55); }

.grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
}
@media (max-width: 900px){
  .grid{ grid-template-columns:1fr; }
}

.card{
  background: linear-gradient(180deg, rgba(18,18,20,.78), rgba(18,18,20,.55));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card h2{
  margin:0 0 10px 0;
  font-size: 16px;
  letter-spacing:.4px;
}
.card p{
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13.5px;
}
.hr{
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(184,155,91,.35), transparent);
  margin: 12px 0;
}

.row{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.spread{ justify-content:space-between; }
.muted{ color:var(--muted); }
.kpi{
  background:#fff;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
}
.kpi b{ color:#141414; }
.kpi span{ color:var(--muted); }


button, .btn{
  appearance:none;
  border:none;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  cursor:pointer;
  transition: transform .06s ease, box-shadow .2s ease, opacity .2s ease;
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  font-size: 13px;
}
button:active, .btn:active{ transform: translateY(1px); }
.btn-primary{
  background: linear-gradient(135deg, rgba(184,155,91,1), rgba(210,189,122,1));
  color:#1a1a1a;
  box-shadow: 0 10px 24px rgba(184,155,91,.18);
}
.btn-ghost{
  background: rgba(18,18,20,.55);
  border:1px solid var(--border);
  color: var(--text);
}
.btn-danger{
  background: rgba(255,85,85,.12);
  border:1px solid rgba(255,85,85,.26);
  color: #ffd3d3;
}
.btn-small{ padding:10px 12px; border-radius: 12px; font-size: 12.5px; }

input, select, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(10,10,12,.55);
  color: var(--text);
  outline:none;
  font-size: 13.5px;
}
textarea{ min-height: 110px; resize: vertical; }

label{
  font-size: 12px;
  color: var(--muted);
  display:block;
  margin: 10px 0 6px;
}

.notice{
  background: rgba(184,155,91,.12);
  color:#6a4f18;
}


.subtle{
  font-size: 12px;
  color: var(--muted);
}

.footer{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(184,155,91,.18);
  color: var(--muted);
  font-size: 12px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(22,22,26,.55);
  font-size: 12px;
  color: var(--text);
}

.fakeimg{
  width:100%;
  height: 120px;
  border-radius: 16px;
  border: 1px dashed rgba(184,155,91,.45);
  background: rgba(184,155,91,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(210,189,122,.9);
  font-weight:700;
  font-size: 12px;
}

.ok{ color:#b8f7c4; }
.warn{ color:#ffd7a3; }



/* ============================
   PSOT THEME: WHITE + GOLD
   Drop-in override
   ============================ */

:root{
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #121212;
  --muted: #5a5a5a;

  /* Your Aeterna gold */
  --gold: #B89B5B;
  --gold-2: #D6C08A;

  --border: rgba(0,0,0,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

html, body{
  background: var(--bg) !important;
  color: var(--text) !important;
}

/* kill any forced dark themes */
body, .app, .wrap, .container, .page, main{
  background: var(--bg) !important;
  color: var(--text) !important;
}

header{
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.card, .panel, .box, .section{
  background: var(--panel) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow);
  border-radius: 16px;
}

/* links */
a{
  color: var(--gold) !important;
}
a:hover{
  opacity: .85;
}

/* inputs */
input, select, textarea{
  background: #fff !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px;
}
input::placeholder, textarea::placeholder{
  color: rgba(0,0,0,.45) !important;
}

/* buttons */
button, .btn{
  background: var(--gold) !important;
  color: #fff !important;
  border: 1px solid rgba(0,0,0,.05) !important;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(184,155,91,.25);
}
button:hover, .btn:hover{
  filter: brightness(.97);
}
button.secondary, .btn.secondary{
  background: #fff !important;
  color: var(--gold) !important;
  border: 1px solid rgba(184,155,91,.45) !important;
  box-shadow: none;
}

/* tables / rows (if you have the unpaid list) */
table{
  width: 100%;
  border-collapse: collapse;
  background: #fff !important;
}
th{
  text-align: left;
  color: rgba(0,0,0,.65) !important;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
}
td{
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 10px 12px;
}
tr:hover td{
  background: rgba(184,155,91,.08);
}

/* badges */
.badge{
  width:45px;
  height:45px;
  border-radius:50%;
  background: url("/assets/images/logo.png") center/contain no-repeat,
              #fff;
  border:1px solid rgba(184,155,91,.45);
}


/* if you had dark footer */
footer{
  background: #fff !important;
  color: rgba(0,0,0,.7) !important;
  border-top: 1px solid var(--border);
}