@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Inter+Tight:wght@400;500;600;700;800;900&display=swap');

:root{
  --civati-black:#000000;
  --civati-ink:#1e1e1e;
  --civati-muted:#777777;
  --civati-soft:#f6f4ef;
  --civati-card:#ffffff;
  --civati-line:rgba(30,30,30,.10);
  --civati-red:#ff4a4b;
  --civati-yellow:#ffb500;
  --civati-blue:#8ccbff;
  --radius-xl:34px;
  --radius-lg:24px;
  --shadow-soft:0 22px 90px rgba(0,0,0,.08);
  --shadow-card:0 18px 50px rgba(0,0,0,.07);
}

*{box-sizing:border-box}

html,body{
  margin:0;
  min-height:100%;
  font-family:'Inter Tight','Inter',ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:#fff;
  color:var(--civati-ink);
  letter-spacing:-.025em;
}

body{
  overflow-x:hidden;
}

.hidden{display:none!important}

button,input,select,textarea{
  font:inherit;
}

button{
  cursor:pointer;
  border:0;
}

a{
  color:inherit;
}

.grain{
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.025;
  background-image:
    radial-gradient(circle at 1px 1px,#000 1px,transparent 0);
  background-size:6px 6px;
  z-index:0;
}

/* LOGIN */

.auth-screen{
  min-height:100vh;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
  background:
    radial-gradient(circle at 14% 12%, rgba(255,181,0,.25), transparent 25%),
    radial-gradient(circle at 82% 80%, rgba(140,203,255,.30), transparent 26%),
    #ffffff;
  overflow:hidden;
}

.auth-orb{
  position:absolute;
  border-radius:999px;
  filter:blur(4px);
  opacity:.9;
}

.auth-orb-a{
  width:230px;
  height:230px;
  background:var(--civati-red);
  top:8%;
  left:8%;
  transform:rotate(-12deg);
  border-radius:45% 55% 60% 40%;
}

.auth-orb-b{
  width:330px;
  height:330px;
  background:#000;
  right:-90px;
  bottom:-130px;
  opacity:.08;
}

.login-shell{
  position:relative;
  z-index:2;
  width:min(1180px,100%);
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:34px;
  align-items:stretch;
}

.login-copy{
  min-height:620px;
  border-radius:var(--radius-xl);
  padding:56px;
  background:#000;
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  position:relative;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}

.login-copy:before{
  content:"";
  position:absolute;
  width:560px;
  height:560px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,74,75,.52), transparent 62%);
  right:-160px;
  top:-170px;
}

.login-copy:after{
  content:"";
  position:absolute;
  width:300px;
  height:300px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,181,0,.45), transparent 62%);
  left:-100px;
  bottom:-90px;
}

.kicker{
  margin:0 0 12px;
  color:var(--civati-red);
  text-transform:uppercase;
  letter-spacing:.22em;
  font-size:12px;
  font-weight:900;
}

.login-copy .kicker{
  color:var(--civati-yellow);
}

.login-copy h1{
  position:relative;
  z-index:1;
  margin:0;
  max-width:770px;
  font-size:clamp(56px,7vw,116px);
  line-height:.85;
  letter-spacing:-.085em;
  font-weight:900;
}

.login-sub{
  position:relative;
  z-index:1;
  margin:28px 0 0;
  max-width:560px;
  color:rgba(255,255,255,.72);
  font-family:'Inter',sans-serif;
  font-size:18px;
  line-height:1.6;
  letter-spacing:-.02em;
}

.auth-card{
  border:1px solid var(--civati-line);
  background:rgba(255,255,255,.84);
  backdrop-filter:blur(22px);
  border-radius:var(--radius-xl);
  padding:38px;
  box-shadow:var(--shadow-soft);
  align-self:center;
}

.brand-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:34px;
}

.brand-word{
  font-size:34px;
  font-weight:900;
  letter-spacing:-.095em;
  line-height:.8;
}

.brand-word.mini{
  font-size:28px;
  color:#fff;
}

.brand-row span{
  color:var(--civati-muted);
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.16em;
  font-weight:800;
}

.reset-intro h2{
  margin:0;
  font-size:34px;
  line-height:.95;
  letter-spacing:-.075em;
  font-weight:900;
}

.reset-intro p:not(.kicker){
  color:var(--civati-muted);
  font-family:'Inter',sans-serif;
  line-height:1.5;
  margin:10px 0 22px;
}

.legal-micro{
  margin:26px 0 0;
  color:rgba(0,0,0,.28);
  font-size:10px;
  text-align:center;
  line-height:1.35;
  letter-spacing:0;
}

/* FORM BASE */

.field{
  margin-bottom:18px;
}

label{
  display:block;
  margin-bottom:9px;
  color:rgba(30,30,30,.62);
  font-size:11px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.15em;
  font-weight:900;
}

input,select,textarea{
  width:100%;
  min-height:52px;
  border:1px solid rgba(30,30,30,.12);
  border-radius:18px;
  padding:14px 16px;
  background:#fff;
  color:var(--civati-ink);
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

textarea{
  resize:vertical;
  line-height:1.5;
}

input:focus,select:focus,textarea:focus{
  border-color:rgba(255,74,75,.55);
  box-shadow:0 0 0 5px rgba(255,74,75,.10);
}

.field-note{
  margin:8px 0 0;
  color:rgba(30,30,30,.45);
  font-family:'Inter',sans-serif;
  font-size:12px;
  letter-spacing:0;
}

.helper{
  margin:12px 0 0;
  font-family:'Inter',sans-serif;
  font-size:13px;
  letter-spacing:0;
}

/* BUTTONS */

.primary-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  min-height:54px;
  border-radius:999px;
  padding:14px 22px;
  color:#fff;
  background:#000;
  font-weight:900;
  letter-spacing:-.02em;
  box-shadow:0 14px 35px rgba(0,0,0,.18);
  transition:transform .2s ease, background .2s ease;
}

.primary-btn:hover{
  transform:translateY(-1px);
  background:#202020;
}

.ghost-btn,.danger-btn,.mini-btn{
  min-height:44px;
  border-radius:999px;
  padding:10px 18px;
  border:1px solid var(--civati-line);
  background:#fff;
  color:var(--civati-ink);
  font-weight:900;
}

.danger-btn{
  color:var(--civati-red);
  border-color:rgba(255,74,75,.22);
}

.mini-btn{
  min-height:38px;
  padding:8px 14px;
  font-size:13px;
}

/* DASHBOARD */

.dashboard{
  min-height:100vh;
  display:grid;
  grid-template-columns:292px 1fr;
  background:#fff;
}

.sidebar{
  position:sticky;
  top:0;
  height:100vh;
  padding:28px;
  background:#000;
  color:#fff;
  display:flex;
  flex-direction:column;
  overflow:auto;
}

.side-brand{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:38px;
}

.side-brand span{
  color:rgba(255,255,255,.56);
  text-transform:uppercase;
  letter-spacing:.18em;
  font-size:11px;
  font-weight:800;
}

#sideNav{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.nav-btn{
  width:100%;
  padding:15px 16px;
  border-radius:18px;
  background:transparent;
  color:rgba(255,255,255,.62);
  text-align:left;
  font-size:18px;
  font-weight:850;
  letter-spacing:-.04em;
  transition:background .2s ease, color .2s ease, transform .2s ease;
}

.nav-btn:hover{
  background:rgba(255,255,255,.08);
  color:#fff;
}

.nav-btn.active{
  background:#fff;
  color:#000;
}

.help-float{
  position:fixed;
  left:28px;
  bottom:26px;
  z-index:80;
  min-width:58px;
  height:58px;
  border-radius:999px;
  padding:0 18px;
  background:#fff;
  color:#000;
  box-shadow:0 18px 50px rgba(0,0,0,.28);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:900;
}

.help-float span{
  width:30px;
  height:30px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#000;
  color:#fff;
}

.help-float em{
  font-style:normal;
  max-width:0;
  opacity:0;
  overflow:hidden;
  white-space:nowrap;
  transition:max-width .22s ease, opacity .22s ease;
}

.help-float:hover em{
  max-width:120px;
  opacity:1;
}

.main-shell{
  position:relative;
  min-width:0;
  padding:34px 40px 88px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0,0,0,.025) 1px, transparent 1px),
    #fff;
  background-size:72px 72px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:22px;
  margin-bottom:28px;
}

.topbar h2{
  margin:0;
  font-size:clamp(42px,5vw,76px);
  line-height:.82;
  letter-spacing:-.09em;
  font-weight:900;
}

#dashboardSub{
  margin:14px 0 0;
  color:var(--civati-muted);
  font-family:'Inter',sans-serif;
  letter-spacing:0;
}

.topbar-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

.page-view{
  animation:pageIn .28s ease both;
}

@keyframes pageIn{
  from{opacity:0; transform:translateY(10px)}
  to{opacity:1; transform:translateY(0)}
}

.hero-card{
  position:relative;
  min-height:360px;
  border-radius:42px;
  padding:54px;
  background:#000;
  color:#fff;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  box-shadow:var(--shadow-soft);
  margin-bottom:22px;
}

.hero-card:before{
  content:"";
  position:absolute;
  width:520px;
  height:520px;
  right:-140px;
  top:-190px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,74,75,.50), transparent 62%);
}

.hero-card:after{
  content:"";
  position:absolute;
  width:330px;
  height:330px;
  left:-110px;
  bottom:-140px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,181,0,.44), transparent 62%);
}

.hero-noise{
  position:absolute;
  inset:0;
  opacity:.08;
  background-image:radial-gradient(circle at 1px 1px,#fff 1px,transparent 0);
  background-size:7px 7px;
}

.hero-card > *:not(.hero-noise){
  position:relative;
  z-index:1;
}

.hero-card h1{
  margin:0;
  max-width:980px;
  font-size:clamp(58px,8vw,120px);
  line-height:.82;
  letter-spacing:-.1em;
  font-weight:900;
}

.hero-card p:not(.kicker){
  margin:24px 0 0;
  max-width:680px;
  color:rgba(255,255,255,.72);
  font-family:'Inter',sans-serif;
  font-size:18px;
  line-height:1.55;
  letter-spacing:-.02em;
}

.hero-card.admin-hero{
  background:#000;
}

/* PANELS */

.grid{
  display:grid;
  gap:20px;
  margin-bottom:20px;
}

.grid.two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}

.panel{
  border-radius:34px;
  padding:28px;
  background:rgba(255,255,255,.92);
  border:1px solid var(--civati-line);
  box-shadow:var(--shadow-card);
  backdrop-filter:blur(18px);
}

.panel-head{
  margin-bottom:24px;
}

.panel-head h3{
  margin:0;
  font-size:clamp(30px,3vw,48px);
  line-height:.9;
  letter-spacing:-.08em;
  font-weight:900;
}

.panel-head p:not(.kicker){
  margin:10px 0 0;
  color:var(--civati-muted);
  font-family:'Inter',sans-serif;
  line-height:1.5;
  letter-spacing:0;
}

.row-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:22px;
}

.compact-form{
  max-width:1080px;
  margin:0 auto;
}

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

.form-actions .primary-btn{
  width:auto;
  min-width:210px;
}

.pretty-date{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:8px;
  border:1px solid rgba(30,30,30,.12);
  border-radius:18px;
  background:#fff;
  padding:7px;
}

.pretty-date input{
  border:0;
  min-height:40px;
  box-shadow:none;
  padding:8px 10px;
}

.pretty-date input:focus{
  box-shadow:none;
}

.pretty-date span{
  grid-column:1/-1;
  padding:0 10px 7px;
  color:rgba(30,30,30,.45);
  font-family:'Inter',sans-serif;
  font-size:12px;
  letter-spacing:0;
}

.upload-callout{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin:8px 0 22px;
  padding:24px;
  border-radius:28px;
  background:#000;
  color:#fff;
  position:relative;
  overflow:hidden;
}

.upload-callout:after{
  content:"";
  position:absolute;
  width:190px;
  height:190px;
  right:-70px;
  top:-80px;
  border-radius:50%;
  background:rgba(255,181,0,.34);
}

.upload-callout > *{
  position:relative;
  z-index:1;
}

.upload-callout strong{
  font-size:20px;
  letter-spacing:-.05em;
}

.upload-callout p{
  margin:7px 0 0;
  max-width:680px;
  color:rgba(255,255,255,.68);
  font-family:'Inter',sans-serif;
  line-height:1.5;
  letter-spacing:0;
}

.pill-link{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:12px 18px;
  border-radius:999px;
  background:#fff;
  color:#000;
  text-decoration:none;
  font-weight:900;
}

/* STATS */

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

.big-stats{
  margin-bottom:22px;
}

.stat{
  min-height:142px;
  border-radius:30px;
  padding:24px;
  background:#fff;
  border:1px solid var(--civati-line);
  box-shadow:var(--shadow-card);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.stat strong{
  display:block;
  font-size:clamp(42px,5vw,72px);
  line-height:.82;
  letter-spacing:-.09em;
  font-weight:900;
}

.stat span{
  color:var(--civati-muted);
  font-family:'Inter',sans-serif;
  font-size:13px;
  font-weight:700;
  letter-spacing:0;
}

/* TABLES */

.table-panel{
  padding:0;
  overflow:hidden;
}

.table-panel .panel-head{
  padding:28px 28px 0;
}

.table-wrap{
  overflow:auto;
  max-height:66vh;
}

.table-wrap.short{
  max-height:440px;
}

table{
  width:100%;
  border-collapse:collapse;
  min-width:1120px;
}

th,td{
  padding:15px 16px;
  border-bottom:1px solid rgba(30,30,30,.08);
  text-align:left;
  vertical-align:top;
  font-size:13px;
}

th{
  position:sticky;
  top:0;
  z-index:3;
  background:#fff;
  color:rgba(30,30,30,.48);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:10px;
  font-weight:900;
}

td{
  font-family:'Inter',sans-serif;
  letter-spacing:-.01em;
}

td input,td select,td textarea{
  min-width:130px;
  min-height:42px;
  padding:9px 11px;
  border-radius:14px;
  font-size:13px;
}

.filters{
  display:flex;
  align-items:center;
  gap:10px;
}

.filters input,.filters select{
  min-width:210px;
  min-height:46px;
}

/* BADGES / ACCORDION / NOTIFS */

.badge{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:6px 11px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
}

.badge.Submitted{background:rgba(255,181,0,.18); color:#815900}
.badge.Approved{background:rgba(16,160,102,.13); color:#0d7a50}
.badge.Paid{background:rgba(140,203,255,.28); color:#236184}
.badge.Rejected{background:rgba(255,74,75,.13); color:#cf3032}
.badge.On-Hold{background:rgba(0,0,0,.08); color:#555}

.small-btn{
  min-height:38px;
  border-radius:999px;
  padding:8px 13px;
  color:#fff;
  background:#000;
  font-weight:900;
}

.accordion{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.accordion-item{
  border:1px solid var(--civati-line);
  border-radius:26px;
  overflow:hidden;
  background:#fff;
}

.accordion-head{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:20px 22px;
  background:#fff;
  color:#000;
  font-size:24px;
  font-weight:900;
  letter-spacing:-.06em;
}

.accordion-head small{
  color:var(--civati-muted);
  font-size:13px;
  font-weight:800;
  letter-spacing:-.01em;
}

.accordion-content{
  display:none;
  border-top:1px solid var(--civati-line);
}

.accordion-item.open .accordion-content{
  display:block;
}

.notification-card{
  padding:22px;
  border-radius:26px;
  border:1px solid var(--civati-line);
  background:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,.04);
  margin-bottom:14px;
}

.notification-card h4{
  margin:0 0 8px;
  font-size:24px;
  line-height:1;
  letter-spacing:-.065em;
  font-weight:900;
}

.notification-card p{
  margin:0 0 14px;
  color:var(--civati-muted);
  font-family:'Inter',sans-serif;
  line-height:1.5;
  letter-spacing:0;
}

.inline-response{
  padding:14px;
  margin:14px 0;
  border-radius:20px;
  background:rgba(0,0,0,.035);
}

.notification-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* SUBTLE MANUAL FOOTER */

.manual-footer-note{
  position:fixed;
  left:322px;
  right:36px;
  bottom:10px;
  z-index:1;
  pointer-events:none;
  margin:0;
  text-align:center;
  color:rgba(0,0,0,.22);
  font-family:'Inter',sans-serif;
  font-size:10px;
  letter-spacing:0;
}

/* RESPONSIVE */

@media(max-width:1100px){
  .login-shell{
    grid-template-columns:1fr;
  }

  .login-copy{
    min-height:420px;
  }

  .dashboard{
    grid-template-columns:1fr;
  }

  .sidebar{
    position:relative;
    width:100%;
    height:auto;
    min-height:auto;
    flex-direction:row;
    align-items:center;
    gap:18px;
    overflow:auto;
  }

  .side-brand{
    min-width:180px;
    margin:0;
  }

  #sideNav{
    flex-direction:row;
    gap:8px;
  }

  .nav-btn{
    white-space:nowrap;
    font-size:15px;
  }

  .help-float{
    left:auto;
    right:20px;
    bottom:20px;
  }

  .manual-footer-note{
    left:16px;
    right:16px;
  }

  .grid.two,.grid.three{
    grid-template-columns:1fr;
  }
}

@media(max-width:720px){
  .auth-screen{
    padding:14px;
  }

  .login-copy{
    padding:32px;
    min-height:360px;
  }

  .login-copy h1{
    font-size:58px;
  }

  .auth-card{
    padding:26px;
  }

  .main-shell{
    padding:20px 16px 84px;
  }

  .topbar,.row-head,.upload-callout{
    flex-direction:column;
    align-items:stretch;
  }

  .topbar-actions,.filters,.form-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .form-actions .primary-btn{
    width:100%;
  }

  .hero-card{
    min-height:300px;
    padding:34px;
  }

  .hero-card h1{
    font-size:58px;
  }

  .panel{
    padding:20px;
    border-radius:26px;
  }
}



/* ===== v4.1 CLEAN LOGIN OVERRIDE ===== */

.auth-screen{
  align-items:center;
  justify-content:center;
  padding:40px 32px;
  min-height:100vh;
}

.login-shell{
  width:min(1080px,100%);
  grid-template-columns:minmax(0,1fr) 430px;
  gap:28px;
  align-items:center;
}

.login-copy{
  min-height:560px;
  padding:56px;
  justify-content:center;
  border-radius:34px;
}

.login-copy h1{
  max-width:720px;
  font-size:clamp(54px,5.4vw,82px);
  line-height:.92;
  letter-spacing:-.075em;
  word-spacing:-0.05em;
}

.login-sub{
  max-width:560px;
  margin-top:24px;
  font-size:17px;
  line-height:1.55;
}

.auth-card{
  width:100%;
  padding:34px;
  border-radius:30px;
}

.brand-row{
  align-items:flex-start;
  margin-bottom:28px;
}

.brand-word{
  font-size:34px;
  line-height:.9;
}

.brand-row span{
  margin-top:5px;
  font-size:11px;
}

.auth-card .field{
  margin-bottom:15px;
}

.auth-card input{
  min-height:50px;
}

.auth-card .primary-btn{
  min-height:52px;
  margin-top:4px;
}

@media(max-width:1040px){
  .login-shell{
    grid-template-columns:1fr;
    max-width:720px;
  }

  .login-copy{
    min-height:430px;
    padding:44px;
  }

  .login-copy h1{
    font-size:clamp(48px,9vw,72px);
  }

  .auth-card{
    width:100%;
  }
}

@media(max-width:720px){
  .auth-screen{
    padding:18px;
  }

  .login-copy{
    min-height:auto;
    padding:34px 28px;
    border-radius:28px;
  }

  .login-copy h1{
    font-size:48px;
    line-height:.95;
  }

  .login-sub{
    font-size:15px;
  }

  .auth-card{
    padding:26px;
    border-radius:26px;
  }
}


/* ===== v4.2 NOTIFICATION READABILITY + ACTION FIX ===== */
.notification-card h4{
  font-size:22px!important;
  line-height:1.08!important;
  letter-spacing:-.055em!important;
  margin-bottom:10px!important;
  word-break:normal;
}

.notification-card p{
  font-size:15px!important;
  line-height:1.55!important;
  margin-bottom:14px!important;
}

.notification-actions button:disabled{
  cursor:not-allowed;
}

.panel-head h3{
  line-height:.98!important;
}

@media(max-width:720px){
  .notification-card h4{
    font-size:20px!important;
  }
}




/* ===== v4.3 FONT READABILITY FIX ===== */

/* Keep Civati bold feel, but stop the heavy text from merging */
body{
  font-family:'Inter','Inter Tight',ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  letter-spacing:-0.01em!important;
}

/* Use Inter Tight only for big display text, with safer spacing */
.login-copy h1,
.hero-card h1,
.topbar h2,
.panel-head h3,
.accordion-head,
.notification-card h4,
.stat strong{
  font-family:'Inter Tight','Inter',ui-sans-serif,system-ui,sans-serif!important;
  font-weight:800!important;
  letter-spacing:-0.045em!important;
  text-rendering:geometricPrecision;
  -webkit-font-smoothing:antialiased;
}

/* Dashboard title */
.topbar h2{
  font-size:clamp(38px,4.2vw,58px)!important;
  line-height:.96!important;
  letter-spacing:-.045em!important;
}

/* Big greeting black card */
.hero-card{
  min-height:300px!important;
  padding:46px!important;
}

.hero-card h1{
  font-size:clamp(42px,5.8vw,82px)!important;
  line-height:.94!important;
  letter-spacing:-.05em!important;
  max-width:850px!important;
}

/* Login hero */
.login-copy h1{
  font-size:clamp(46px,4.9vw,76px)!important;
  line-height:.95!important;
  letter-spacing:-.05em!important;
}

/* Section headings */
.panel-head h3{
  font-size:clamp(28px,2.5vw,40px)!important;
  line-height:1.02!important;
  letter-spacing:-.04em!important;
}

/* Notification headings specifically */
.notification-card h4{
  font-family:'Inter','Inter Tight',ui-sans-serif,system-ui,sans-serif!important;
  font-size:20px!important;
  line-height:1.22!important;
  letter-spacing:-.025em!important;
  font-weight:800!important;
  word-spacing:0!important;
  word-break:normal!important;
}

.notification-card p{
  font-family:'Inter',ui-sans-serif,system-ui,sans-serif!important;
  font-size:15px!important;
  line-height:1.55!important;
  letter-spacing:-.005em!important;
}

/* Buttons: readable, not blobby */
.primary-btn,
.ghost-btn,
.danger-btn,
.mini-btn,
.small-btn,
.nav-btn{
  font-family:'Inter',ui-sans-serif,system-ui,sans-serif!important;
  font-weight:800!important;
  letter-spacing:-.015em!important;
}

/* Stats */
.stat strong{
  font-size:clamp(38px,4vw,58px)!important;
  line-height:.95!important;
}

/* Tables and forms */
td, th, input, select, textarea, label, .helper, .field-note{
  font-family:'Inter',ui-sans-serif,system-ui,sans-serif!important;
  letter-spacing:0!important;
}

/* Kicker labels */
.kicker{
  letter-spacing:.16em!important;
  font-weight:850!important;
}

/* Reduce notification panel visual heaviness */
.notif-panel .panel-head h3{
  font-size:36px!important;
}

@media(max-width:720px){
  .hero-card{
    padding:32px!important;
    min-height:260px!important;
  }

  .hero-card h1{
    font-size:44px!important;
    line-height:.98!important;
  }

  .topbar h2{
    font-size:38px!important;
  }

  .panel-head h3{
    font-size:30px!important;
  }
}




/* ===== v4.4 MOBILE MENU + CIVATI PURPLE THEME ===== */

:root{
  --civati-purple:#7c3cff;
  --civati-purple-dark:#4c1db8;
  --civati-purple-soft:rgba(124,60,255,.14);
  --civati-lilac:#ede7ff;
  --civati-red:#7c3cff;
  --civati-yellow:#b99cff;
}

/* Purple accents replacing red/yellow accents */
.kicker,
.login-copy .kicker{
  color:var(--civati-purple)!important;
}

.login-copy:before,
.hero-card:before{
  background:radial-gradient(circle, rgba(124,60,255,.48), transparent 62%)!important;
}

.login-copy:after,
.hero-card:after{
  background:radial-gradient(circle, rgba(185,156,255,.38), transparent 62%)!important;
}

.auth-screen{
  background:
    radial-gradient(circle at 14% 12%, rgba(124,60,255,.16), transparent 26%),
    radial-gradient(circle at 82% 80%, rgba(185,156,255,.23), transparent 28%),
    #ffffff!important;
}

.auth-orb-a{
  background:var(--civati-purple)!important;
}

input:focus,
select:focus,
textarea:focus{
  border-color:rgba(124,60,255,.55)!important;
  box-shadow:0 0 0 5px rgba(124,60,255,.10)!important;
}

.badge.Submitted{
  background:rgba(124,60,255,.12)!important;
  color:var(--civati-purple-dark)!important;
}

.nav-btn.active{
  background:linear-gradient(135deg,#ffffff,#ede7ff)!important;
  color:#000!important;
}

.primary-btn:hover{
  background:linear-gradient(135deg,#000,#2b164f)!important;
}

.side-brand .brand-word.mini{
  background:linear-gradient(90deg,#ffffff,#cdbbff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* Mobile-first nav fix */
.mobile-menu-toggle{
  display:none;
}

/* Better tablet/mobile sidebar behavior */
@media(max-width:1100px){
  .dashboard{
    display:block!important;
    padding-top:82px;
  }

  .sidebar{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    padding:12px 14px!important;
    display:grid!important;
    grid-template-columns:auto 1fr!important;
    align-items:center!important;
    gap:12px!important;
    overflow:visible!important;
    z-index:100!important;
    box-shadow:0 12px 40px rgba(0,0,0,.18);
  }

  .side-brand{
    min-width:auto!important;
    margin:0!important;
    align-items:center!important;
  }

  .side-brand .brand-word.mini{
    font-size:24px!important;
    line-height:1!important;
  }

  .side-brand span{
    display:none!important;
  }

  #sideNav{
    display:flex!important;
    flex-direction:row!important;
    gap:6px!important;
    justify-content:flex-end!important;
    overflow-x:auto!important;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    padding:2px 0!important;
  }

  #sideNav::-webkit-scrollbar{
    display:none;
  }

  .nav-btn{
    width:auto!important;
    flex:0 0 auto!important;
    white-space:nowrap!important;
    font-size:13px!important;
    padding:10px 12px!important;
    border-radius:999px!important;
  }

  .main-shell{
    padding:22px 16px 86px!important;
  }

  .topbar{
    margin-top:0!important;
  }

  .help-float{
    left:auto!important;
    right:18px!important;
    bottom:18px!important;
    height:52px!important;
    min-width:52px!important;
  }

  .help-float:hover em{
    max-width:0!important;
    opacity:0!important;
  }

  .manual-footer-note{
    left:16px!important;
    right:16px!important;
    bottom:8px!important;
  }
}

/* Phone-specific layout */
@media(max-width:720px){
  body{
    background:#fff!important;
  }

  .dashboard{
    padding-top:76px!important;
  }

  .sidebar{
    padding:10px 10px!important;
    grid-template-columns:auto minmax(0,1fr)!important;
  }

  #sideNav{
    justify-content:flex-start!important;
  }

  .nav-btn{
    font-size:12px!important;
    padding:9px 11px!important;
  }

  .topbar{
    gap:12px!important;
    margin-bottom:18px!important;
  }

  .topbar h2{
    font-size:34px!important;
    line-height:.95!important;
  }

  .topbar-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    width:100%!important;
  }

  .topbar-actions button{
    width:100%!important;
  }

  .hero-card{
    min-height:250px!important;
    padding:28px!important;
    border-radius:28px!important;
  }

  .hero-card h1{
    font-size:38px!important;
    line-height:1!important;
    max-width:100%!important;
  }

  .hero-card p:not(.kicker){
    font-size:14px!important;
    margin-top:14px!important;
  }

  .stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }

  .stat{
    min-height:110px!important;
    border-radius:22px!important;
    padding:16px!important;
  }

  .stat strong{
    font-size:34px!important;
  }

  .stat span{
    font-size:12px!important;
  }

  .panel{
    border-radius:24px!important;
    padding:18px!important;
  }

  .panel-head{
    margin-bottom:18px!important;
  }

  .panel-head h3{
    font-size:28px!important;
    line-height:1.02!important;
  }

  .table-panel{
    padding:0!important;
  }

  .table-panel .panel-head{
    padding:18px 18px 0!important;
  }

  .filters{
    width:100%!important;
  }

  .filters input,
  .filters select{
    min-width:0!important;
    width:100%!important;
  }

  .upload-callout{
    padding:18px!important;
    border-radius:22px!important;
  }

  .pill-link{
    width:100%!important;
  }

  .form-actions{
    width:100%!important;
  }

  .form-actions button{
    width:100%!important;
  }

  .auth-screen{
    padding:14px!important;
  }

  .login-shell{
    gap:14px!important;
  }

  .login-copy{
    padding:28px!important;
    border-radius:26px!important;
  }

  .login-copy h1{
    font-size:42px!important;
    line-height:1!important;
  }

  .login-sub{
    font-size:14px!important;
    margin-top:14px!important;
  }

  .auth-card{
    padding:22px!important;
    border-radius:24px!important;
  }

  .brand-row{
    margin-bottom:22px!important;
  }

  .brand-word{
    font-size:30px!important;
  }

  .brand-row span{
    display:none!important;
  }
}

/* Very narrow phones */
@media(max-width:420px){
  .side-brand .brand-word.mini{
    font-size:21px!important;
  }

  .nav-btn{
    font-size:11px!important;
    padding:8px 10px!important;
  }

  .topbar h2{
    font-size:30px!important;
  }

  .hero-card h1{
    font-size:34px!important;
  }

  .stats{
    grid-template-columns:1fr 1fr!important;
  }
}
