:root{
  /* ============================
     NUDGE BRAND COLOR SYSTEM
     ============================ */
  --bg:#0f1115;          /* charcoal background */
  --panel:#161a22;       /* dark card */
  --panel2:#1c2230;      /* darker card */
  --line:rgba(255,255,255,.08);

  --text:rgba(229,231,235,.96);
  --muted:rgba(156,163,175,.78);

  --brand:#22c55e;       /* soft green */
  --brand2:#16a34a;      /* deeper green */

  --good:#22c55e;
  --warn:#fbbf24;
  --bad:#fb7185;

  --shadow:0 18px 60px rgba(0,0,0,.55);
  --radius:18px;
}

/* ============================
   GLOBAL
   ============================ */
*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 20% -10%, rgba(34,197,94,.14), transparent 60%),
    radial-gradient(800px 500px at 80% 0%, rgba(22,163,74,.10), transparent 55%),
    linear-gradient(180deg, #070a0d, var(--bg));
}

a{color:inherit;text-decoration:none;}
.wrap{max-width:1100px;margin:0 auto;padding:22px 16px 60px}

/* ============================
   NAVIGATION
   ============================ */
.nav{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:14px 14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(15,17,21,.72);
  backdrop-filter:blur(10px);
  box-shadow:0 8px 30px rgba(0,0,0,.35);
}

.brand{display:flex;align-items:center;gap:12px}

.logo{
  width:42px;height:42px;border-radius:14px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:#03120a;
  font-weight:900;
  box-shadow:0 14px 40px rgba(34,197,94,.35);
}

.brandName{
  font-weight:900;
  letter-spacing:-.3px;
}

.navlinks{
  display:flex;gap:10px;flex-wrap:wrap;align-items:center;
}
.navlinks a{
  font-size:13px;
  padding:6px 9px;
  border-radius:999px;
  border:1px solid transparent;
  text-decoration:none;
  opacity:.85;
}
.navlinks a:hover{
  border-color:rgba(255,255,255,.14);
  background:rgba(255,255,255,.03);
}
.navlinks .primaryLink .btn{font-size:13px}

.password-field{
    position:relative;
    width:100%;
}

.password-field input{
    width:100%;
    padding-right:50px;
}

.toggle-password{
    position:absolute;
    right:14px;
    top:50%;
    transform:translateY(-50%);
    cursor:pointer;
    color:var(--brand);
    font-size:18px;
    line-height:1;
}

.toggle-password:hover{
  color:var(--brand);
}

/* ============================
   GRID & CARDS (base)
   ============================ */
.grid{
  display:grid;
  grid-template-columns:1.35fr .95fr;
  gap:16px;
  margin-top:16px;
}
@media(max-width:920px){.grid{grid-template-columns:1fr}}

.card{
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(22,26,34,.78), rgba(18,22,30,.78));
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}

.card h2,.card h3{margin:0 0 10px}
.card h2{font-size:26px}
.card h3{font-size:16px;color:rgba(229,231,235,.90)}

.muted{color:var(--muted)}
.hr{height:1px;background:var(--line);margin:14px 0}

.iconBtn i{
  font-size:18px;
  transition: color .15s ease, transform .15s ease;
}

.iconBtn:hover i{
  color: var(--brand);
  transform: scale(1.05);
}

/* ============================
   FORM FIELDS
   ============================ */
.field{margin:10px 0}

label{display:block;font-size:13px;margin-bottom:4px;color:var(--muted)}

input,textarea{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(6,10,20,.55);
  color:var(--text);
  padding:12px 12px;
  outline:none;
}
input, select, textarea {
  font-size: 16px; /* prevents iOS zoom */
}
textarea{min-height:120px;resize:vertical}

input:focus,textarea:focus{
  border-color:rgba(34,197,94,.55);
  box-shadow:0 0 0 4px rgba(34,197,94,.18);
}

/* ============================
   BUTTONS
   ============================ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:var(--text);
  text-decoration:none;
  cursor:pointer;
  transition:transform .08s ease, background .15s ease, border-color .15s ease;
  user-select:none;
  font-size:14px;
}

.btn:hover{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.18);
}

.btn:active{transform:translateY(1px)}

.btn.primary{
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  border-color:transparent;
  color:#03120a;
  font-weight:900;
}

.btn.ghost{background:transparent}

/* ============================
   KPIs
   ============================ */
.kpis{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
@media(max-width:520px){.kpis{grid-template-columns:1fr}}

.kpi{
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:12px;
  background:rgba(0,0,0,.12);
}

.kpi .num{font-size:22px;font-weight:900}
.kpi .lbl{font-size:12px;color:var(--muted);margin-top:2px}

/* ============================
   NOTICES
   ============================ */
.notice{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
  border-radius:16px;
  padding:12px;
  font-size:13px;
}
.notice.locked{
  border-color:rgba(251,113,133,.35);
  background:rgba(251,113,133,.10);
}

/* ============================
   LISTS & ROW ITEMS
   ============================ */
.list{display:flex;flex-direction:column;gap:10px}

.rowitem{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.16);
  border-radius:16px;
  padding:12px;
  text-decoration:none;
  transition:.2s;
}
.rowitem:hover{
  border-color:rgba(34,197,94,.35);
  background:rgba(34,197,94,.10);
}

.rowitem .title{font-weight:900}
.rowitem .sub{font-size:12px;color:var(--muted);margin-top:4px}

.badges{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}

.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
}
.badge.good{
  border-color:rgba(34,197,94,.35);
  background:rgba(34,197,94,.12);
}
.badge.warn{
  border-color:rgba(251,191,36,.35);
  background:rgba(251,191,36,.12);
}

/* Error shake + red flash */
.input-error{
  border-color: rgba(251,113,133,.95) !important;
  box-shadow: 0 0 0 4px rgba(251,113,133,.18) !important;
  animation: nudgeShake .28s ease-in-out;
}

@keyframes nudgeShake{
  0%{transform:translateX(0)}
  25%{transform:translateX(-6px)}
  50%{transform:translateX(6px)}
  75%{transform:translateX(-4px)}
  100%{transform:translateX(0)}
}

/* Button spinner */
.btn.primary{position:relative}
.btnSpin{
  display:none;
  width:14px;height:14px;
  border-radius:999px;
  border:2px solid rgba(3,18,10,.35);
  border-top-color: rgba(3,18,10,.95);
  margin-left:10px;
  animation: spin .8s linear infinite;
}

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

.btn.is-loading{
  opacity:.9;
  cursor:not-allowed;
}
.btn.is-loading .btnSpin{display:inline-block}

/* ============================================================
   NUDGE LIFE THEME EXTENSION
   ============================================================ */

:root{
  --lifePanel: rgba(22,26,34,.62);
  --lifePanel2: rgba(28,34,48,.62);
  --lifeGlass: rgba(15,17,21,.55);
  --lifeSoftLine: rgba(255,255,255,.06);
  --lifeShadow: 0 16px 44px rgba(0,0,0,.45);
}

/* Wrap spacing tweaks (Life feels airier) */
.wrap{padding:18px 14px 70px}

/* Hero */
.hero{
  margin-top:16px;
  border:1px solid var(--lifeSoftLine);
  border-radius:22px;
  padding:18px;
  background: linear-gradient(180deg, var(--lifePanel), rgba(0,0,0,.22));
  box-shadow: var(--lifeShadow);
}
.hero h1{
  margin:0 0 8px;
  font-size:30px;
  letter-spacing:-.3px;
}
.hero p{margin:0;color:var(--muted);line-height:1.55}
.hero .trust{
  display:flex;flex-wrap:wrap;gap:8px;
  margin-top:12px;
}
.pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--lifeSoftLine);
  background: rgba(255,255,255,.04);
  color: rgba(229,231,235,.92);
  font-size:12px;
  font-weight:800;
}
.pill .dot{
  width:7px;height:7px;border-radius:99px;
  background: rgba(34,197,94,.9);
  box-shadow: 0 0 0 6px rgba(34,197,94,.12);
}

/* Services grid (homepage + dashboard) */
.services{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
}
@media(max-width:720px){ .services{grid-template-columns:1fr} }

.serviceCard{
  border:1px solid var(--lifeSoftLine);
  border-radius:20px;
  padding:14px;
  text-decoration:none;
  background: linear-gradient(180deg, var(--lifePanel2), rgba(0,0,0,.22));
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  cursor:pointer;
  transition: transform .10s ease, border-color .15s ease, background .15s ease;
}
.serviceCard:hover{
  transform: translateY(-1px);
  border-color: rgba(34,197,94,.26);
  background: linear-gradient(180deg, rgba(34,197,94,.10), rgba(0,0,0,.20));
}
.serviceTop{
  display:flex;align-items:flex-start;text-decoration:none;justify-content:space-between;gap:10px;
}
.serviceName{
  font-weight:950;
  font-size:16px;
}
.serviceTag{
  margin-top:6px;
  font-size:12px;
  color: var(--muted);
  line-height:1.4;
}
.serviceIcon{
  width:40px;height:40px;border-radius:14px;
  display:grid;place-items:center;
  background: rgba(34,197,94,.12);
  border:1px solid rgba(34,197,94,.20);
}

/* Expandable detail panel */
.serviceDetails{
  display:none;
  margin-top:12px;
  border-top:1px solid var(--lifeSoftLine);
  padding-top:12px;
  color: rgba(229,231,235,.92);
}
.serviceDetails ul{margin:10px 0 0;padding-left:18px;color:var(--muted)}
.serviceCard.is-open .serviceDetails{display:block}

/* CTA block */
.cta{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px;
  border-radius:20px;
  border:1px solid var(--lifeSoftLine);
  background: rgba(255,255,255,.03);
}
@media(max-width:720px){ .cta{flex-direction:column;align-items:stretch} }
.cta .txt{color:var(--muted);line-height:1.5}
.cta .txt b{color:rgba(229,231,235,.96)}
.cta .btn{width:auto}
@media(max-width:720px){ .cta .btn{width:100%} }

/* Dashboard status bar */
.statusBar{
  margin-top:14px;
  border:1px solid var(--lifeSoftLine);
  border-radius:20px;
  background: rgba(0,0,0,.16);
  padding:12px;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.statusLeft{display:flex;flex-direction:column;gap:4px}
.statusTitle{font-weight:950}
.statusSub{font-size:12px;color:var(--muted)}
.statusRight{display:flex;gap:8px;align-items:center;flex-wrap:wrap}

/* Notification icon button (goes to settings) */
.iconBtn{
  width:42px;height:42px;
  border-radius:14px;
  border:1px solid var(--lifeSoftLine);
  background: rgba(255,255,255,.04);
  display:grid;place-items:center;
  cursor:pointer;
  transition:.15s;
}
.iconBtn:hover{
  border-color: rgba(34,197,94,.25);
  background: rgba(34,197,94,.10);
}

/* Settings page rows */
.settings{
  margin-top:14px;
  display:flex;flex-direction:column;gap:10px;
}
.setRow{
  border:1px solid var(--lifeSoftLine);
  background: rgba(0,0,0,.14);
  border-radius:18px;
  padding:12px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.setRow .left{display:flex;flex-direction:column;gap:4px}
.setRow .t{font-weight:950}
.setRow .d{font-size:12px;color:var(--muted);line-height:1.4}

/* Small toggle switch */
.switch{
  position:relative;
  width:44px;height:24px;
}
.switch input{
  position:absolute;
  opacity:0;
}
.switch span{
  position:absolute;inset:0;
  background:rgba(255,255,255,.08);
  border-radius:999px;
  transition:.18s;
}
.switch span::before{
  content:"";
  position:absolute;
  top:3px;left:4px;
  width:18px;height:18px;border-radius:999px;
  background:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,.35);
  transition:.18s;
}
.switch input:checked + span{
  background:linear-gradient(135deg,var(--brand),var(--brand2));
}
.switch input:checked + span::before{
  transform:translateX(18px);
}

/* Reviews */
.reviews{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:12px;
}
@media(max-width:920px){.reviews{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.reviews{grid-template-columns:1fr}}
.review{
  border-radius:18px;
  border:1px solid var(--lifeSoftLine);
  background: rgba(0,0,0,.18);
  padding:12px;
  font-size:13px;
}
.review .name{font-weight:900;margin-bottom:4px}
.review .stars{font-size:11px;color:#facc15;margin-bottom:6px}

/* Subscribe form */
.subscribe{
  margin-top:18px;
  border-radius:20px;
  border:1px solid var(--lifeSoftLine);
  background: rgba(0,0,0,.16);
  padding:14px;
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;
}
.subscribe p{margin:0;font-size:13px;color:var(--muted)}
.subscribe form{display:flex;gap:8px;flex:1;min-width:200px;justify-content:flex-end}
.subscribe input[type=email]{max-width:260px;font-size:13px}

/* Footer */
.footer{
  margin-top:26px;
  padding-top:18px;
  border-top:1px solid var(--lifeSoftLine);
  color: var(--muted);
  font-size:12px;
}
.footer a{opacity:.92;text-decoration:none}
.footer a:hover{text-decoration:underline}
.footerLinks{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px}