:root{--bg:#f5f7fb;--card:#fff;--text:#172033;--muted:#667085;--line:#e6e9f2;--primary:#2457d6;--primary2:#173ea5;--soft:#eef4ff;--danger:#c83232;--success:#16875f;--warn:#b7791f;--radius:20px;--shadow:0 18px 50px rgba(16,24,40,.09)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;line-height:1.55}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}.wrap{width:min(1120px,calc(100% - 32px));margin:auto}.top{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.88);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.nav{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0}.brand{display:flex;align-items:center;gap:10px;color:var(--text);font-weight:900}.brand-badge{width:var(--logo-w,39px);height:var(--logo-h,39px);border-radius:14px;background:linear-gradient(135deg,var(--primary),#7db9ff);display:grid;place-items:center;color:#fff}.menu{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.menu a,.menu button{border:0;background:transparent;padding:9px 12px;border-radius:12px;color:var(--text);font-weight:750;cursor:pointer;font-size:14px}.menu a.active,.menu a:hover,.menu button:hover{background:var(--soft);color:var(--primary);text-decoration:none}.inline-form{display:inline;margin:0}.mobile-menu-btn{display:none}.section{padding:28px 0}.section-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.section-title.center{display:grid;place-items:center;text-align:center}.section-title h2{margin:.3rem 0}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px}.muted{color:var(--muted)}.pill{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 12px;color:#344054;font-size:13px;font-weight:800}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:14px;padding:11px 15px;background:var(--primary);color:#fff;font-weight:850;cursor:pointer}.btn:hover{background:var(--primary2);text-decoration:none}.btn.light{background:var(--soft);color:var(--primary)}.btn.danger{background:var(--danger)}.btn.small{padding:7px 10px;font-size:13px}.btn-block{width:100%}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}label{font-weight:850;font-size:14px}.input,select,textarea{width:100%;border:1px solid #d2d7e4;border-radius:14px;padding:12px 13px;background:#fff;color:var(--text);font:inherit;outline:none}.input:focus,select:focus,textarea:focus{border-color:#8eb3ff;box-shadow:0 0 0 4px rgba(36,87,214,.10)}textarea{min-height:120px;resize:vertical}.help{font-size:12px;color:var(--muted)}.alert{width:min(1120px,calc(100% - 32px));margin:14px auto 0;padding:12px 14px;border-radius:14px;background:#fff;border:1px solid var(--line)}.alert.success{border-color:#b7e4c7;background:#f0fff4;color:#146c43}.alert.danger{border-color:#ffb4b4;background:#fff5f5;color:#9b1c1c}.alert.warning{border-color:#ffe2a8;background:#fffbeb;color:#92400e}.hidden{display:none!important}.landing-hero{padding:54px 0 28px;background:radial-gradient(circle at 10% 10%,#dfe9ff 0,transparent 35%),radial-gradient(circle at 90% 20%,#eaf7ff 0,transparent 32%)}.landing-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:26px;align-items:center}.landing-copy h1{font-size:clamp(34px,5vw,60px);line-height:1.03;margin:14px 0}.landing-copy p{font-size:18px;color:var(--muted);max-width:650px}.hero-slider{position:relative;min-height:370px;border-radius:30px;overflow:hidden;background:linear-gradient(135deg,#173ea5,#2457d6 48%,#76b7ff);box-shadow:0 25px 80px rgba(36,87,214,.22);padding:34px;color:#fff}.hero-slider:before{content:'';position:absolute;inset:auto -90px -90px auto;width:230px;height:230px;background:rgba(255,255,255,.15);border-radius:50%}.slide{position:absolute;inset:34px;opacity:0;transform:translateX(30px);transition:.45s ease}.slide.active{opacity:1;transform:translateX(0)}.slide-badge{display:inline-flex;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:7px 12px;font-weight:850}.slide h2{font-size:36px;line-height:1.1;margin:18px 0 12px}.slide p{color:rgba(255,255,255,.85);font-size:17px}.slider-dots{position:absolute;left:34px;bottom:28px;display:flex;gap:8px}.slider-dots button{width:10px;height:10px;border:0;border-radius:50%;background:rgba(255,255,255,.42);cursor:pointer}.slider-dots button.active{width:28px;border-radius:999px;background:#fff}.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:var(--shadow)}.stat-card b{display:block;font-size:36px}.stat-card span{color:var(--muted)}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.feature-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:var(--shadow)}.feature-icon{width:48px;height:48px;display:grid;place-items:center;background:var(--soft);border-radius:16px;font-size:24px}.feature-card h3{margin:14px 0 6px}.feature-card p{color:var(--muted)}.cta-card{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#101828,#2457d6);color:#fff;border-radius:28px;padding:28px;box-shadow:var(--shadow)}.cta-card p{color:rgba(255,255,255,.8)}.cta-card .pill{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.18)}.auth-bg{padding:42px 0;background:radial-gradient(circle at 12% 15%,#dfe9ff 0,transparent 35%),radial-gradient(circle at 90% 10%,#ecfaff 0,transparent 30%)}.auth-wrap{display:grid;grid-template-columns:.9fr 1.1fr;gap:22px;align-items:center}.auth-info{padding:26px}.auth-info h1{font-size:clamp(32px,4vw,52px);line-height:1.05;margin:12px 0}.auth-info p{color:var(--muted);font-size:17px}.auth-mini-list{display:grid;gap:10px;margin-top:22px}.auth-mini-list span{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;font-weight:800}.auth-card{background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:0 25px 80px rgba(16,24,40,.10);padding:24px}.auth-tabs,.mini-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#f3f6fb;border-radius:16px;padding:6px;margin-bottom:18px}.auth-tabs button,.mini-tabs button{border:0;background:transparent;border-radius:12px;padding:11px;font-weight:850;color:#344054;cursor:pointer}.auth-tabs button.active,.mini-tabs button.active{background:#fff;color:var(--primary);box-shadow:0 4px 14px rgba(36,87,214,.12)}.auth-card h2{margin:0 0 4px}.narrow{max-width:560px;margin:auto}.otp-input{font-size:28px;letter-spacing:10px;text-align:center;font-weight:900}.dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#fff,#eef4ff)}.alumni-card{display:flex;gap:14px;align-items:flex-start}.avatar{width:66px;height:66px;border-radius:18px;object-fit:cover;background:#edf2ff;border:1px solid var(--line)}.avatar.big{width:96px;height:96px}.avatar-edit{display:flex;gap:14px;align-items:center;margin-bottom:14px}.card-body-flex{min-width:0;flex:1}.card h3{margin:0 0 8px}.badge{display:inline-flex;border-radius:999px;background:#f2f4f7;color:#344054;padding:4px 9px;font-size:12px;font-weight:850;margin:2px}.badge.green{background:#e8fff3;color:#087443}.badge.blue{background:#eef3ff;color:#2457d6}.badge.orange{background:#fff7e6;color:#b7791f}.contact-line{font-size:13px;color:var(--muted);word-break:break-word}.small-m{margin:8px 0 4px}.post-meta{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0}.filters{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:14px;margin-bottom:16px}.filters form{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:10px;align-items:end}.filters form.filters-posts{grid-template-columns:2fr 1fr auto}.pager{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.pager a{padding:8px 12px;border:1px solid var(--line);background:#fff;border-radius:10px}.pager a.active{background:var(--primary);color:#fff}.empty{padding:30px;text-align:center;color:var(--muted);background:#fff;border:1px dashed #cbd5e1;border-radius:18px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:16px;background:#fff}.table{width:100%;border-collapse:collapse;min-width:760px}.table th,.table td{padding:12px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}.table th{background:#f9fafb;font-size:13px}.footer{padding:30px 0;color:var(--muted);font-size:13px}.footer-grid{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:16px}.footer-copy{text-align:right}.mt{margin-top:14px}.mb{margin-bottom:16px}code{background:#f2f4f7;border-radius:6px;padding:2px 5px}
@media(max-width:980px){.landing-grid,.auth-wrap{grid-template-columns:1fr}.feature-grid{grid-template-columns:repeat(2,1fr)}.hero-slider{min-height:310px}.slide h2{font-size:30px}.auth-info{padding:0}}
@media(max-width:860px){.grid,.grid2,.stats-row,.feature-grid{grid-template-columns:1fr}.row,.filters form,.filters form.filters-posts{grid-template-columns:1fr}.mobile-menu-btn{display:inline-flex}.menu{display:none;width:100%;padding-bottom:10px}.menu.open{display:flex}.nav{flex-wrap:wrap}.wrap{width:min(100% - 20px,1120px)}.dashboard-hero,.cta-card{flex-direction:column;align-items:flex-start}.footer-copy{text-align:left}.alumni-card,.avatar-edit{flex-direction:column}.landing-hero{padding-top:32px}.auth-bg{padding:24px 0}.auth-card{padding:18px;border-radius:22px}}
.logo-img{width:var(--logo-w,42px);height:var(--logo-h,42px);border-radius:13px;object-fit:contain;background:#fff;border:1px solid var(--line);padding:4px}.auth-logo{margin-bottom:14px}.auth-logo .logo-img,.auth-logo .brand-badge{width:var(--logo-w,66px);height:var(--logo-h,66px);border-radius:20px;font-size:20px}.soft-card{background:linear-gradient(135deg,#ffffff,#eef5ff);border:1px solid #dce8ff}.attractive-auth{align-items:stretch}.attractive-auth .auth-info{display:flex;flex-direction:column;justify-content:center}.auth-card textarea{min-height:92px}.auth-card .field{margin-bottom:11px}.auth-card .row{gap:10px}.auth-card{position:relative;overflow:hidden}.auth-card:before{content:'';position:absolute;right:-70px;top:-70px;width:160px;height:160px;border-radius:50%;background:rgba(36,87,214,.07);pointer-events:none}.auth-card>*{position:relative;z-index:1}@media(max-width:860px){.auth-card textarea{min-height:80px}}

/* Header centered: logo/title above, menu below */
.nav-centered{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:14px 0 12px;text-align:center}
.brand-centered{justify-content:center;font-size:18px;gap:10px}
.brand-centered span:last-child{display:block;font-size:clamp(18px,2.2vw,24px);line-height:1.15}
.menu-centered{justify-content:center;width:100%}
.welcome-line{font-size:14px;color:var(--muted);background:#fff;border:1px solid var(--line);padding:6px 12px;border-radius:999px;box-shadow:0 8px 24px rgba(16,24,40,.05)}
.logo-preview-card{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;min-height:260px}
.preview-brand{display:flex;flex-direction:column;align-items:center;gap:10px;margin:14px 0 10px}
.preview-brand strong{font-size:22px}.preview-brand .logo-img,.preview-brand .brand-badge{width:var(--logo-w,72px);height:var(--logo-h,72px)}
@media(max-width:860px){.nav-centered{align-items:center}.mobile-menu-btn{margin-top:4px}.menu-centered{display:none}.menu-centered.open{display:flex;justify-content:center}.welcome-line{max-width:100%;white-space:normal}.brand-centered{flex-direction:column}}

/* ===== Header center fix ===== */
.top .nav-centered{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  gap:8px!important;
  padding:16px 0 12px!important;
}
.top .brand-centered{
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  margin:0 auto!important;
}
.top .brand-centered span:last-child{
  text-align:center!important;
}
.top .welcome-line{
  margin:0 auto!important;
  text-align:center!important;
}
.top .menu-centered{
  width:100%!important;
  justify-content:center!important;
  align-items:center!important;
  text-align:center!important;
  margin:0 auto!important;
}
.top .mobile-menu-btn{
  display:none!important;
}
@media(min-width:861px){
  .top .menu-centered{display:flex!important;}
  .top .mobile-menu-btn{display:none!important;}
}
@media(max-width:860px){
  .top .mobile-menu-btn{display:inline-flex!important;}
  .top .menu-centered{display:none!important;}
  .top .menu-centered.open{
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:stretch!important;
    gap:7px!important;
    padding:8px 0 12px!important;
  }
  .top .menu-centered a,
  .top .menu-centered button{
    width:100%!important;
    justify-content:center!important;
  }
  .top .inline-form{width:100%!important;}
}

/* =========================================================
   FINAL MODERN HEADER + AUTH/HOMEPAGE REFRESH
   Cache-busted via app.php asset() so perubahan langsung terlihat.
   ========================================================= */
body{background:linear-gradient(180deg,#f7fbff 0%,#f3f6fb 46%,#eef3fb 100%)!important}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(18px);border-bottom:1px solid rgba(226,232,240,.95);box-shadow:0 10px 32px rgba(15,23,42,.06)}
.site-brandbar{padding:16px 0 12px;background:radial-gradient(circle at 50% -40%,rgba(36,87,214,.14),transparent 42%),linear-gradient(180deg,#fff 0%,#f8fbff 100%)}
.site-brand-inner{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:8px!important}
.site-brand{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:9px!important;color:var(--text)!important;text-decoration:none!important;margin:0 auto!important;max-width:100%!important}
.site-logo{display:flex;align-items:center;justify-content:center}.site-logo .logo-img{display:block;width:var(--logo-w,62px)!important;height:var(--logo-h,62px)!important;object-fit:contain!important;border-radius:18px!important;background:#fff!important;padding:5px!important;border:1px solid rgba(203,213,225,.9)!important;box-shadow:0 14px 34px rgba(36,87,214,.14)!important}.site-logo .brand-badge{width:var(--logo-w,62px)!important;height:var(--logo-h,62px)!important;border-radius:18px!important;font-size:18px!important;box-shadow:0 14px 34px rgba(36,87,214,.20)!important}
.site-title{display:block!important;text-align:center!important;font-size:clamp(22px,2.6vw,34px)!important;font-weight:950!important;letter-spacing:-.04em!important;line-height:1.05!important;background:linear-gradient(135deg,#14213d 0%,#2457d6 72%);-webkit-background-clip:text;background-clip:text;color:transparent!important}
.site-welcome{display:inline-flex;align-items:center;justify-content:center;gap:5px;text-align:center;margin:2px auto 0;padding:7px 14px;border-radius:999px;background:#fff;border:1px solid rgba(203,213,225,.95);color:#475569;font-size:14px;box-shadow:0 8px 26px rgba(15,23,42,.06)}
.site-menubar{padding:9px 0 11px;background:rgba(255,255,255,.82);border-top:1px solid rgba(226,232,240,.75)}
.site-menu-inner{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:8px!important}.site-menu{display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important;gap:8px!important;width:100%!important;text-align:center!important}.site-menu a,.site-menu button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:40px;padding:9px 14px!important;border-radius:999px!important;border:1px solid transparent!important;background:transparent!important;color:#334155!important;font-weight:850!important;font-size:14px!important;line-height:1!important;text-decoration:none!important;cursor:pointer!important}.site-menu a:hover,.site-menu button:hover,.site-menu a.active{background:#eef4ff!important;border-color:#dbe7ff!important;color:#2457d6!important;text-decoration:none!important}.site-menu .site-login-link{background:linear-gradient(135deg,#2457d6,#4f8cff)!important;color:#fff!important;border-color:transparent!important;box-shadow:0 10px 24px rgba(36,87,214,.22)!important}.site-menu .site-login-link:hover{color:#fff!important;background:linear-gradient(135deg,#173ea5,#2457d6)!important}.site-menu .inline-form{display:inline-flex!important;margin:0!important}.site-menu .inline-form button{background:#fff5f5!important;color:#b42318!important;border-color:#ffd0d0!important}.site-menu .inline-form button:hover{background:#ffe8e8!important;color:#981b1b!important}.site-header .mobile-menu-btn{display:none!important;margin:0 auto!important}
.flash-wrap{padding-top:12px}.top,.nav-centered,.brand-centered,.menu-centered{all:unset}.top{display:contents!important}

/* Landing refresh */
.landing-hero{position:relative;overflow:hidden;padding:54px 0 42px!important;background:radial-gradient(circle at 12% 12%,rgba(36,87,214,.16),transparent 28%),radial-gradient(circle at 88% 18%,rgba(23,161,146,.12),transparent 28%)}.landing-hero:after{content:'';position:absolute;inset:auto -20% -42% -20%;height:220px;background:linear-gradient(90deg,rgba(36,87,214,.07),rgba(111,160,255,.10));transform:rotate(-3deg)}.landing-grid{position:relative;z-index:1}.landing-copy h1{font-size:clamp(34px,5vw,62px)!important;letter-spacing:-.055em!important;line-height:1.02!important;margin:12px 0 16px!important}.landing-copy p{font-size:17px!important;color:#475569!important;max-width:680px!important}.hero-slider{border:0!important;border-radius:32px!important;background:linear-gradient(135deg,#173ea5 0%,#2457d6 46%,#76adff 100%)!important;box-shadow:0 28px 70px rgba(36,87,214,.22)!important;min-height:360px!important;overflow:hidden!important}.hero-slider:before{content:'';position:absolute;inset:-90px -90px auto auto;width:240px;height:240px;border-radius:50%;background:rgba(255,255,255,.15)}.slide{padding:34px!important}.slide-badge{display:inline-flex!important;border-radius:999px!important;background:rgba(255,255,255,.16)!important;color:#fff!important;padding:8px 12px!important;font-weight:900!important;font-size:12px!important;letter-spacing:.02em!important}.slide h2{font-size:clamp(28px,3.5vw,44px)!important;line-height:1.05!important;letter-spacing:-.04em!important}.slide p{font-size:16px!important;color:rgba(255,255,255,.86)!important}.stats-row{margin-top:-8px!important}.stat-card{border:0!important;border-radius:24px!important;background:rgba(255,255,255,.88)!important;box-shadow:0 18px 45px rgba(15,23,42,.08)!important}.stat-card b{background:linear-gradient(135deg,#2457d6,#17a192);-webkit-background-clip:text;background-clip:text;color:transparent!important}.feature-card{border:0!important;border-radius:26px!important;background:rgba(255,255,255,.92)!important;box-shadow:0 16px 42px rgba(15,23,42,.08)!important}.feature-icon{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:#eef4ff;margin-bottom:12px}.cta-card{border:0!important;border-radius:30px!important;background:linear-gradient(135deg,#12264e,#2457d6)!important;color:#fff!important;box-shadow:0 28px 70px rgba(36,87,214,.22)!important}.cta-card p,.cta-card .pill{color:rgba(255,255,255,.86)!important}.cta-card .pill{background:rgba(255,255,255,.14)!important;border-color:rgba(255,255,255,.20)!important}.cta-card .btn{background:#fff!important;color:#2457d6!important}

/* Auth refresh */
.auth-bg{padding:42px 0 54px!important;background:radial-gradient(circle at 16% 8%,rgba(36,87,214,.13),transparent 30%),radial-gradient(circle at 86% 40%,rgba(23,161,146,.11),transparent 30%)}.attractive-auth{grid-template-columns:.88fr 1.12fr!important;align-items:stretch!important}.auth-info.card{border:0!important;border-radius:32px!important;background:linear-gradient(145deg,#12264e 0%,#2457d6 58%,#6aa8ff 100%)!important;color:#fff!important;box-shadow:0 28px 70px rgba(36,87,214,.20)!important;padding:32px!important;overflow:hidden!important;position:relative!important}.auth-info.card:after{content:'';position:absolute;right:-80px;bottom:-90px;width:240px;height:240px;border-radius:50%;background:rgba(255,255,255,.12)}.auth-info h1{font-size:clamp(28px,3.3vw,44px)!important;letter-spacing:-.045em!important;line-height:1.06!important}.auth-info p,.auth-info .muted{color:rgba(255,255,255,.86)!important}.auth-info .pill{background:rgba(255,255,255,.14)!important;border-color:rgba(255,255,255,.22)!important;color:#fff!important}.auth-mini-list span{display:block!important;background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.16)!important;color:#fff!important;border-radius:16px!important;padding:10px 12px!important;margin-top:8px!important}.auth-card{border:0!important;border-radius:32px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 28px 70px rgba(15,23,42,.10)!important;padding:24px!important}.auth-tabs,.mini-tabs{border-radius:18px!important;background:#f1f5fb!important;padding:6px!important;gap:6px!important}.auth-tabs button,.mini-tabs button{border:0!important;border-radius:14px!important;font-weight:900!important;color:#475569!important;background:transparent!important}.auth-tabs button.active,.mini-tabs button.active{background:#fff!important;color:#2457d6!important;box-shadow:0 10px 24px rgba(36,87,214,.12)!important}.input,select,textarea{border-color:#d8e1ef!important;border-radius:15px!important;background:#fbfdff!important}.input:focus,select:focus,textarea:focus{outline:none!important;border-color:#7aa5ff!important;box-shadow:0 0 0 4px rgba(36,87,214,.12)!important}.btn{border-radius:15px!important}.auth-logo .logo-img,.auth-logo .brand-badge{box-shadow:0 18px 38px rgba(255,255,255,.16)!important}

@media(max-width:860px){.site-brandbar{padding:13px 0 9px}.site-title{font-size:22px!important}.site-logo .logo-img,.site-logo .brand-badge{width:var(--logo-w,52px)!important;height:var(--logo-h,52px)!important}.site-header .mobile-menu-btn{display:inline-flex!important}.site-menu{display:none!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;padding-top:8px!important}.site-menu.open{display:flex!important}.site-menu a,.site-menu button,.site-menu .inline-form{width:100%!important}.site-menu button{width:100%!important}.site-menubar{padding:8px 0}.attractive-auth{grid-template-columns:1fr!important}.auth-info.card{padding:24px!important;border-radius:26px!important}.auth-card{padding:18px!important;border-radius:26px!important}.landing-hero{padding:34px 0 28px!important}.hero-slider{min-height:310px!important}.slide{padding:26px!important}}

/* Dynamic post form + Summernote */
.post-field.hidden{display:none!important}
.note-editor.note-frame{border:1px solid #d2d7e4!important;border-radius:14px!important;overflow:hidden;background:#fff}
.note-toolbar{background:#f8fafc!important;border-bottom:1px solid #e6e9f2!important}
.note-editable{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;font-size:15px;line-height:1.6;color:var(--text);min-height:180px}
.note-btn{border-radius:8px!important}

/* Admin alumni server-side table actions */
.admin-row-actions{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.admin-row-actions .actions{align-items:center}
.admin-filters form{grid-template-columns:2fr 1fr 1fr 1fr 1fr auto}
@media(max-width:860px){.admin-filters form{grid-template-columns:1fr}.admin-row-actions{align-items:stretch}.admin-row-actions .actions{flex-direction:column;align-items:stretch}.admin-row-actions .btn,.admin-row-actions select{width:100%}}

/* Domisili bertahap */
.geo-box{border:1px solid var(--line);background:#fbfdff;border-radius:18px;padding:14px;margin:8px 0 14px}
.geo-box .help{margin-top:4px}
.geo-box select:disabled{background:#f3f6fb;color:#98a2b3;cursor:not-allowed}
.geo-box textarea{min-height:96px}
.mail-settings-card{margin:14px 0;background:#f8fbff;border-style:dashed}.mail-settings-card h4{margin:0 0 6px}.test-email-row{display:grid;grid-template-columns:1fr auto;gap:8px}.test-email-row .btn{white-space:nowrap}@media(max-width:700px){.test-email-row{grid-template-columns:1fr}}

/* ===== Kartu anggota alumni ===== */
.member-card-section .section-title{align-items:flex-start}
.member-card-stage{display:grid;grid-template-columns:1fr;gap:24px;align-items:stretch;margin:18px auto;max-width:680px;padding:18px;background:#f5f7fb;border-radius:28px}
.member-card-stage-double{max-width:680px}
.member-id-card{
  --mc-photo-left:5.95%;
  --mc-photo-top:35.9%;
  --mc-photo-width:31.2%;
  --mc-photo-height:32.5%;
  --mc-photo-radius:24px;
  --mc-name-left:43.0%;
  --mc-name-right:8.6%;
  --mc-name-top:42.6%;
  --mc-name-size:clamp(18px,1.65vw,25px);
  --mc-prodi-left:54.7%;
  --mc-prodi-right:9.1%;
  --mc-prodi-top:54.7%;
  --mc-prodi-size:clamp(14px,1.25vw,18px);
  --mc-angkatan-left:54.7%;
  --mc-angkatan-right:9.1%;
  --mc-angkatan-top:64.25%;
  --mc-angkatan-size:clamp(14px,1.25vw,18px);
  position:relative;overflow:hidden;width:100%;aspect-ratio:768/1088;min-height:auto;border-radius:28px;box-shadow:0 24px 70px rgba(15,23,42,.18);border:1px solid rgba(255,255,255,.65);background-repeat:no-repeat;background-position:center;background-size:var(--member-card-bg-size,contain);background-color:#ffffff
}
.member-id-front{color:#fff}
.member-id-front-template,.member-id-back-template{isolation:isolate}
.member-photo-box{position:absolute;z-index:3;overflow:hidden;box-shadow:0 10px 24px rgba(0,0,0,.16);background:#fff}
.member-photo-box img{width:100%;height:100%;object-fit:cover;display:block}
.member-photo-box-image-overlay{left:var(--mc-photo-left);top:var(--mc-photo-top);width:var(--mc-photo-width);height:var(--mc-photo-height);border-radius:var(--mc-photo-radius)}
.member-card-data-image-overlay{position:absolute;z-index:3;inset:0;color:#fff;text-shadow:0 2px 6px rgba(0,0,0,.28)}
.member-name-image-overlay,.member-prodi-image-overlay,.member-angkatan-image-overlay{position:absolute;font-weight:800;letter-spacing:.2px}
.member-name-image-overlay{left:var(--mc-name-left);right:var(--mc-name-right);top:var(--mc-name-top);font-size:var(--mc-name-size);line-height:1.15;text-transform:uppercase}
.member-prodi-image-overlay{left:var(--mc-prodi-left);right:var(--mc-prodi-right);top:var(--mc-prodi-top);font-size:var(--mc-prodi-size);line-height:1.2}
.member-angkatan-image-overlay{left:var(--mc-angkatan-left);right:var(--mc-angkatan-right);top:var(--mc-angkatan-top);font-size:var(--mc-angkatan-size);line-height:1.2}
.member-id-back{background-color:#082b63}
.member-card-help{text-align:center;margin-top:8px}
.member-id-card{max-width:620px;margin:0 auto}
@media(max-width:980px){.member-card-stage{grid-template-columns:1fr;max-width:680px}.member-id-card{max-width:620px;margin:0 auto}}
@media(max-width:620px){
  .member-card-stage{padding:10px;border-radius:20px}
  .member-id-card{
    --mc-photo-left:7.0%;
    --mc-photo-top:36.0%;
    --mc-photo-width:31.2%;
    --mc-photo-height:32.4%;
    --mc-photo-radius:16px;
    --mc-name-left:43.1%;
    --mc-name-right:9.0%;
    --mc-name-top:42.8%;
    --mc-name-size:clamp(16px,3.2vw,22px);
    --mc-prodi-left:54.9%;
    --mc-prodi-right:9.5%;
    --mc-prodi-top:54.8%;
    --mc-prodi-size:clamp(12px,2.6vw,16px);
    --mc-angkatan-left:54.9%;
    --mc-angkatan-right:9.5%;
    --mc-angkatan-top:64.35%;
    --mc-angkatan-size:clamp(12px,2.6vw,16px);
    border-radius:20px
  }
}

/* Landing page settings in admin */
.landing-settings-card textarea{min-height:86px}
.mini-setting-card{margin:12px 0;padding:14px;background:#fff;border-style:solid;box-shadow:none}
.mini-setting-card strong{display:block;margin-bottom:10px}
.setting-image-preview{margin:10px 0 8px;border:1px solid var(--line);border-radius:18px;background:#fff;padding:10px;display:flex;justify-content:center;align-items:center;min-height:120px}.setting-image-preview img{display:block;max-width:100%;max-height:180px;object-fit:cover;border-radius:12px}
.setting-logo-preview{justify-content:flex-start;min-height:96px}.setting-logo-preview img{max-width:130px;max-height:130px;object-fit:contain;background:#fff}
.compact-row{margin-top:10px}.compact-row .field{margin-bottom:8px}

/* Bulk action + export admin */
.admin-title-row{align-items:center!important}
.admin-title-row>div:first-child{display:flex;flex-direction:column;gap:6px}
.admin-bulkbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:18px;padding:12px 14px;margin:12px 0;box-shadow:0 12px 35px rgba(16,24,40,.05)}
.bulk-action-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0}
.bulk-action-form select{min-width:190px;padding:9px 12px;border-radius:12px}
.admin-table .check-col{width:44px;text-align:center!important;vertical-align:middle!important}
.admin-table input[type="checkbox"]{width:17px;height:17px;accent-color:var(--primary);cursor:pointer}
.admin-post-filters form{grid-template-columns:2fr 1fr 1fr auto}
@media(max-width:860px){.admin-bulkbar{align-items:stretch}.bulk-action-form,.admin-bulkbar .help{width:100%}.bulk-action-form select,.bulk-action-form button{width:100%}.admin-post-filters form{grid-template-columns:1fr}.admin-table .check-col{position:sticky;left:0;background:#fff;z-index:2}}


/* Hapus foto profil */
.avatar-field .danger-pill{margin-top:4px;border-color:#fecaca;background:#fff5f5;color:#9b1c1c}
.avatar-field .danger-pill input{accent-color:var(--danger)}

/* Password change/reset */
.profile-subsection{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}
.profile-subsection h2{margin:0 0 6px}
.password-reset-box{display:inline-block;position:relative}
.password-reset-box summary{list-style:none;cursor:pointer;user-select:none}
.password-reset-box summary::-webkit-details-marker{display:none}
.password-reset-panel{margin-top:8px;padding:10px;border:1px solid var(--line);border-radius:14px;background:#f9fafb;display:grid;gap:8px;min-width:230px;box-shadow:0 12px 28px rgba(16,24,40,.08)}
.password-reset-panel .input{padding:9px 10px;border-radius:10px;font-size:13px}
@media(max-width:860px){.password-reset-box,.password-reset-panel{width:100%}}

/* Icon mata lihat/tutup password */
.password-field{position:relative;display:block;width:100%}
.password-field .input{padding-right:48px!important}
.password-toggle-btn{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;border-radius:10px;background:var(--soft);color:var(--primary);display:grid;place-items:center;cursor:pointer;font-size:15px;line-height:1}
.password-toggle-btn:hover{background:#dfe9ff}
.password-reset-panel .password-toggle-btn{width:30px;height:30px;right:6px;border-radius:8px;font-size:13px}
.password-reset-panel .password-field .input{padding-right:42px!important}


/* Admin settings: one column, without logo preview panel */
.admin-settings-single{
  display:block;
  max-width:980px;
  margin:0 auto;
}
.admin-settings-single>.card{
  width:100%;
}
.logo-preview-card{
  display:none!important;
}


/* Email blast */
.blast-filter{
  background:#f8fbff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  margin:14px 0;
}
.blast-filter-action{
  justify-content:flex-end;
}
.blast-summary{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  background:#eef4ff;
  border:1px solid #d8e5ff;
  color:#173ea5;
  border-radius:18px;
  padding:14px 16px;
  margin:14px 0;
}
.blast-summary b{
  font-size:28px;
  line-height:1;
}
.blast-summary em{
  color:#92400e;
  font-style:normal;
  font-size:13px;
}
.blast-preview{
  margin:12px 0 18px;
}
.blast-preview summary{
  cursor:pointer;
  font-weight:850;
  color:var(--primary);
  margin-bottom:10px;
}
.blast-compose textarea{
  min-height:230px;
}
.blast-confirm{
  margin:6px 0 12px;
}
button[disabled]{
  opacity:.55;
  cursor:not-allowed;
}
@media(max-width:700px){
  .blast-summary{align-items:flex-start}
}


/* Blast report */
.blast-history-table .selected-row{background:#f8fbff}
.blast-detail-head{display:grid;gap:6px;background:#f8fbff;border:1px solid var(--line);border-radius:16px;padding:14px;margin-top:16px;color:#344054}
.blast-detail-head b{color:var(--text)}
@media(max-width:700px){.blast-detail-head{font-size:13px}}


/* Blast email Summernote */
.blast-compose .note-editor{
  border-radius:16px;
  overflow:hidden;
  border-color:#d8e1ef!important;
}
.blast-compose .note-editable{
  min-height:240px;
  background:#fff;
}


/* WhatsApp gateway settings */
.wa-settings-card{background:#f8fffb;border-color:#cdebdc}
.wa-settings-card h4{margin-top:0}
.wa-settings-card .actions{margin-top:4px}
.scanqr-page{min-height:100vh;background:#f5f7fb;padding:24px}.scanqr-shell{width:min(980px,calc(100% - 20px));margin:auto}.scanqr-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}.scanqr-box{min-height:300px;display:grid;place-items:center;background:#fff;border:1px dashed #cbd5e1;border-radius:18px;padding:16px}.scanqr-box img{max-width:100%;height:auto}.scanqr-logs{height:360px;overflow:auto;background:#0f172a;color:#e2e8f0;border-radius:18px;padding:14px;font-family:ui-monospace,Consolas,monospace;font-size:13px}.scanqr-logs div{border-bottom:1px solid rgba(255,255,255,.08);padding:6px 0}@media(max-width:760px){.scanqr-grid{grid-template-columns:1fr}.scanqr-page{padding:12px}.scanqr-logs{height:230px}}


/* WhatsApp blast */
#wa-blast-report .selected-row,
#blast-report .selected-row{
  background:#f8fbff;
}
.blast-compose textarea[name="wa_blast_body"]{
  min-height:180px;
}
.alert.warning{
  border-color:#ffe2a8;
  background:#fffbeb;
  color:#92400e;
}


/* WA Inbox */
.wa-webhook-url{
  flex-basis:100%;
  margin-top:8px;
  word-break:break-all;
}
.wa-inbox-list{
  display:grid;
  gap:14px;
}
.wa-message-card{
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  padding:16px;
  box-shadow:0 12px 28px rgba(15,23,42,.06);
}
.wa-message-card.incoming{
  border-left:5px solid #2457d6;
}
.wa-message-card.outgoing{
  border-left:5px solid #16875f;
  background:#fbfffd;
}
.wa-message-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:10px;
}
.wa-message-body{
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  margin:10px 0;
  white-space:normal;
}
.wa-reply-form{
  margin-top:12px;
  border-top:1px dashed var(--line);
  padding-top:12px;
}
.wa-reply-form textarea{
  min-height:92px;
}
.danger-pill{
  border-color:#ffb4b4!important;
  background:#fff5f5!important;
  color:#9b1c1c!important;
}
@media(max-width:700px){
  .wa-message-head{flex-direction:column}
}


/* WhatsApp-like admin chat */
.wa-chat-page{
  max-width:1180px;
  margin:0 auto;
}
.wa-chat-topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}
.wa-chat-topbar h3{
  margin:0 0 4px;
}
.wa-webhook-note{
  background:#fffbeb;
  border:1px solid #ffe2a8;
  color:#92400e;
  border-radius:16px;
  padding:10px 12px;
  margin:10px 0 14px;
  word-break:break-all;
  font-size:13px;
}
.wa-chat-app{
  display:grid;
  grid-template-columns:340px 1fr;
  min-height:680px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.wa-chat-sidebar{
  border-right:1px solid var(--line);
  background:#f8fafc;
  min-width:0;
}
.wa-chat-search{
  padding:14px;
  border-bottom:1px solid var(--line);
  background:#fff;
}
.wa-contact-list{
  height:620px;
  overflow:auto;
}
.wa-contact{
  display:flex;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid #eef2f7;
  color:var(--text);
  text-decoration:none!important;
}
.wa-contact:hover,.wa-contact.active{
  background:#eaf3ff;
}
.wa-avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  background:linear-gradient(135deg,#2457d6,#17a192);
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:900;
  flex:0 0 auto;
}
.wa-avatar.big{
  width:50px;
  height:50px;
  font-size:20px;
}
.wa-contact-main{
  flex:1;
  min-width:0;
}
.wa-contact-row{
  display:flex;
  justify-content:space-between;
  gap:8px;
  min-width:0;
}
.wa-contact-row strong,.wa-contact-row span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.wa-contact-row small{
  flex:0 0 auto;
}
.wa-failed-dot{
  background:#f97316;
  color:#fff;
  border-radius:999px;
  width:18px;
  height:18px;
  display:inline-grid;
  place-items:center;
  font-style:normal;
  font-size:12px;
}
.wa-chat-window{
  display:flex;
  flex-direction:column;
  min-width:0;
  background:#e5ddd5;
  background-image:
    radial-gradient(circle at 20px 20px, rgba(255,255,255,.22) 0 2px, transparent 3px),
    radial-gradient(circle at 80px 70px, rgba(255,255,255,.18) 0 2px, transparent 3px);
  background-size:120px 120px;
}
.wa-chat-header{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid rgba(0,0,0,.08);
  background:#f0f2f5;
}
.wa-chat-messages{
  flex:1;
  padding:18px;
  overflow:auto;
  max-height:560px;
}
.wa-date-separator{
  width:max-content;
  margin:8px auto 16px;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  color:#667085;
  font-size:12px;
  box-shadow:0 3px 10px rgba(0,0,0,.06);
}
.wa-bubble-row{
  display:flex;
  margin:6px 0;
}
.wa-bubble-row.incoming{
  justify-content:flex-start;
}
.wa-bubble-row.outgoing{
  justify-content:flex-end;
}
.wa-bubble{
  max-width:min(560px,78%);
  border-radius:16px;
  padding:9px 10px 6px;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
  position:relative;
}
.wa-bubble-row.incoming .wa-bubble{
  background:#fff;
  border-top-left-radius:4px;
}
.wa-bubble-row.outgoing .wa-bubble{
  background:#d9fdd3;
  border-top-right-radius:4px;
}
.wa-bubble.failed{
  background:#fff1f2!important;
  border:1px solid #fecdd3;
}
.wa-bubble-text{
  white-space:pre-wrap;
  word-break:break-word;
  font-size:14px;
  line-height:1.45;
}
.wa-bubble-meta{
  text-align:right;
  color:#667085;
  font-size:11px;
  margin-top:3px;
}
.wa-media-note,.wa-error-note{
  margin-top:6px;
  font-size:12px;
  color:#92400e;
}
.wa-chat-compose{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  padding:12px;
  background:#f0f2f5;
  border-top:1px solid rgba(0,0,0,.08);
}
.wa-chat-compose textarea{
  min-height:48px;
  max-height:140px;
  resize:vertical;
  border-radius:18px;
  background:#fff;
}
.wa-chat-compose .btn{
  align-self:end;
  border-radius:18px;
  min-height:48px;
}
.wa-chat-empty{
  margin:auto;
  text-align:center;
  padding:30px;
}
.wa-empty-icon{
  font-size:52px;
  margin-bottom:8px;
}
@media(max-width:900px){
  .wa-chat-topbar{flex-direction:column}
  .wa-chat-app{
    grid-template-columns:1fr;
  }
  .wa-chat-sidebar{
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .wa-contact-list{
    height:260px;
  }
  .wa-chat-messages{
    max-height:520px;
  }
  .wa-bubble{
    max-width:88%;
  }
}
@media(max-width:560px){
  .wa-chat-app{
    border-radius:18px;
  }
  .wa-chat-messages{
    padding:12px;
  }
  .wa-chat-compose{
    grid-template-columns:1fr;
  }
}


/* WA blast image upload */
.blast-compose input[type=file][name=wa_blast_image]{
  background:#fff;
}


/* WA chat image send/receive */
.wa-chat-image{
  display:block;
  max-width:min(340px,100%);
  max-height:320px;
  object-fit:contain;
  border-radius:12px;
  margin-bottom:6px;
  background:#f8fafc;
}
.wa-compose-inputs{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  align-items:end;
}
.wa-attach-btn{
  width:48px;
  height:48px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  font-size:20px;
}
.wa-attach-btn input{
  display:none;
}
.wa-chat-compose{
  grid-template-columns:1fr auto;
}
@media(max-width:560px){
  .wa-chat-compose{
    grid-template-columns:1fr;
  }
  .wa-chat-image{
    max-width:100%;
  }
}


.wa-attach-btn.has-file{
  background:#d9fdd3;
  border-color:#22c55e;
}
.wa-chat-image-link{
  display:block;
}

.wa-media-note{
  word-break:break-word;
}


/* WA reply status */
.wa-contact-status-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:3px;
}
.wa-reply-status,
.wa-chat-reply-head{
  display:inline-flex;
  align-items:center;
  width:max-content;
  border-radius:999px;
  padding:3px 8px;
  font-size:11px;
  font-weight:800;
}
.wa-reply-status.need,
.wa-chat-reply-head.need{
  background:#fff7ed;
  color:#c2410c;
  border:1px solid #fed7aa;
}
.wa-reply-status.done,
.wa-chat-reply-head.done{
  background:#ecfdf5;
  color:#047857;
  border:1px solid #bbf7d0;
}
.warning-pill{
  border-color:#fed7aa!important;
  background:#fff7ed!important;
  color:#c2410c!important;
}


/* WA manual reply marker */
.wa-mark-replied-form{
  display:flex;
  justify-content:flex-end;
  padding:8px 12px;
  background:#f0f2f5;
  border-top:1px solid rgba(0,0,0,.08);
}
.wa-mark-replied-form .btn{
  border-radius:999px;
}


/* Fundraising / Donation */
.donation-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
}
.donation-card{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.donation-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.donation-progress{
  height:12px;
  background:#eef2f7;
  border-radius:999px;
  overflow:hidden;
}
.donation-progress-bar{
  height:100%;
  background:linear-gradient(90deg,#2457d6,#17a192);
  border-radius:999px;
}
.donation-numbers{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.donation-numbers>div{
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
}
.donation-numbers small,
.donation-status-grid small{
  display:block;
  color:var(--muted);
  font-weight:700;
}
.donation-numbers b{
  display:block;
  font-size:16px;
  margin-top:3px;
}
.donation-numbers.big b{
  font-size:20px;
}
.donation-detail-grid{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);
  gap:20px;
  align-items:start;
}
.donation-desc{
  margin:18px 0;
}
.donor-list{
  display:grid;
  gap:8px;
}
.donor-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
}
.donation-form-card{
  position:sticky;
  top:16px;
}
.manual-payment-box{
  margin-top:16px;
  background:#f8fbff;
  border:1px solid #d8e5ff;
  border-radius:18px;
  padding:14px;
}
.donation-status-page .status-card{
  max-width:720px;
  margin:0 auto;
}
.donation-status-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:12px;
  margin:18px 0;
}
.donation-status-grid>div{
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
}
.donation-admin .table .actions{
  flex-wrap:wrap;
}
@media(max-width:900px){
  .donation-detail-grid{
    grid-template-columns:1fr;
  }
  .donation-form-card{
    position:static;
  }
}


/* Donation thumbnails, popup, and visible messages */
.donation-thumb,
.donation-detail-thumb,
.donation-dialog-thumb{
  width:100%;
  display:block;
  border-radius:18px;
  object-fit:cover;
  background:#f8fafc;
  border:1px solid var(--line);
}
.donation-thumb{
  height:170px;
  margin-bottom:10px;
}
.donation-detail-thumb{
  max-height:360px;
  margin-bottom:16px;
}
.donation-dialog-thumb{
  max-height:280px;
  margin:10px 0 16px;
}
.donation-thumb-preview{
  margin-top:10px;
  max-width:260px;
}
.donation-thumb-preview img{
  width:100%;
  border-radius:14px;
  border:1px solid var(--line);
}
.campaign-dialog{
  width:min(760px, calc(100% - 28px));
  border:0;
  border-radius:24px;
  padding:22px;
  box-shadow:0 28px 80px rgba(15,23,42,.28);
}
.campaign-dialog::backdrop{
  background:rgba(15,23,42,.55);
}
.campaign-dialog-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  border-bottom:1px solid var(--line);
  padding-bottom:12px;
  margin-bottom:12px;
}
.campaign-dialog-head h3{
  margin:0;
}
.donor-row-message{
  align-items:flex-start;
}
.donor-row-message>div{
  min-width:0;
}
.donor-message{
  margin:5px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}
.thank-you-box{
  background:#ecfdf5;
  border:1px solid #bbf7d0;
  color:#065f46;
  border-radius:18px;
  padding:14px;
  margin:14px 0;
}
.thank-you-box h3{
  margin:0 0 6px;
}
.thank-you-box p{
  margin:0;
}
@media(max-width:640px){
  .campaign-dialog{
    padding:16px;
  }
  .donation-thumb{
    height:150px;
  }
}


/* User donation transaction history */
.donation-history-list{
  display:grid;
  gap:16px;
}
.donation-history-card{
  display:grid;
  grid-template-columns:170px 1fr;
  gap:16px;
  align-items:start;
}
.donation-history-thumb{
  width:100%;
  height:140px;
  object-fit:cover;
  border-radius:16px;
  border:1px solid var(--line);
  background:#f8fafc;
}
.donation-history-body h3{
  margin-top:8px;
}
.donation-status-grid.compact{
  margin:12px 0;
}
.donation-status-grid.compact>div{
  padding:10px;
}
.donation-status-grid.compact b{
  font-size:13px;
  word-break:break-word;
}
@media(max-width:680px){
  .donation-history-card{
    grid-template-columns:1fr;
  }
  .donation-history-thumb{
    height:180px;
  }
}


/* Donation history compact grid fix */
.donation-history-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:16px;
  align-items:stretch;
}
.donation-history-card{
  display:grid;
  grid-template-columns:110px minmax(0,1fr);
  gap:14px;
  align-items:start;
  padding:14px!important;
}
.donation-history-thumb{
  width:110px;
  height:110px;
  object-fit:cover;
  border-radius:16px;
  border:1px solid var(--line);
  background:#f8fafc;
}
.donation-history-placeholder{
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:900;
  color:#2457d6;
  background:#eef4ff;
}
.donation-history-body{
  min-width:0;
}
.donation-history-body h3{
  margin:8px 0;
  font-size:16px;
  line-height:1.25;
}
.donation-history-meta{
  display:grid;
  gap:6px;
  margin-top:8px;
}
.donation-history-meta>div{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  border-bottom:1px dashed var(--line);
  padding-bottom:6px;
}
.donation-history-meta small{
  color:var(--muted);
  font-weight:700;
  flex:0 0 auto;
}
.donation-history-meta b{
  font-size:12px;
  text-align:right;
  word-break:break-word;
}
.history-message{
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:12px;
  padding:8px 10px;
  margin:10px 0 0;
  font-size:12px;
}
.donation-history-actions{
  gap:6px;
  flex-wrap:wrap;
}
.donation-history-actions .btn{
  padding:7px 10px;
}
@media(min-width:1180px){
  .donation-history-list{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:720px){
  .donation-history-list{
    grid-template-columns:1fr;
  }
  .donation-history-card{
    grid-template-columns:88px minmax(0,1fr);
  }
  .donation-history-thumb{
    width:88px;
    height:88px;
  }
}


/* Donation WhatsApp share buttons */
.donation-share-actions{
  flex-wrap:wrap;
  gap:8px;
}
.donation-share-actions .btn{
  white-space:nowrap;
}


/* Donation target/deadline/share preview fixes */
.donation-numbers.single{
  grid-template-columns:1fr;
}
.donation-deadline-note{
  margin-top:10px;
  padding:9px 11px;
  border-radius:14px;
  background:#f8fafc;
  border:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
.donation-deadline-note.big{
  margin:12px 0;
  font-size:14px;
}
.btn.disabled,
button:disabled{
  opacity:.55;
  cursor:not-allowed;
  pointer-events:none;
}


/* Donation page PC layout refinement */
.donation-page,
.donation-detail,
.donation-status-page,
.donation-history-page{
  max-width:1180px;
}
.donation-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:18px;
  align-items:stretch;
}
@media(min-width:1024px){
  .donation-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
  .donation-card{
    min-height:100%;
  }
}
.donation-detail-grid{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 380px;
  gap:20px;
  align-items:start;
}
.donation-detail-main{
  max-width:760px;
  justify-self:end;
  width:100%;
}
.donation-form-card{
  max-width:380px;
  width:100%;
}
.donation-detail-thumb{
  max-height:300px;
}
.donation-desc{
  max-width:720px;
}
@media(max-width:980px){
  .donation-detail-grid{
    grid-template-columns:1fr;
  }
  .donation-detail-main,
  .donation-form-card{
    max-width:100%;
    justify-self:stretch;
  }
}
@media(max-width:640px){
  .donation-grid{
    grid-template-columns:1fr;
  }
}


/* Custom dominant website color */
.color-input{
  min-height:46px;
  padding:5px!important;
}
.theme-settings-card .row{
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
}
.theme-preview{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding:14px;
  border:1px dashed var(--line);
  border-radius:18px;
  background:var(--soft);
}
.theme-preview-progress{
  width:180px;
  margin:0;
}
.btn{
  box-shadow:0 10px 24px rgba(var(--primary-rgb,36,87,214),.18);
}
.menu a.active,
.site-menu a.active{
  background:var(--soft);
  color:var(--primary);
}
.badge.blue{
  background:var(--soft);
  color:var(--primary);
}
input:focus,
textarea:focus,
select:focus{
  border-color:var(--primary)!important;
  box-shadow:0 0 0 3px rgba(var(--primary-rgb,36,87,214),.12)!important;
}


/* Full custom dominant color override */
body[style*="--primary"] .site-title,
body[style*="--primary"] .landing-copy h1,
body[style*="--primary"] .section-title h2,
body[style*="--primary"] .section-title h3,
body[style*="--primary"] h1.gradient-title,
body[style*="--primary"] .stat-card b{
  background:linear-gradient(135deg,var(--primary2),var(--primary))!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  color:transparent!important;
}
body[style*="--primary"] .btn:not(.light):not(.danger),
body[style*="--primary"] button.btn:not(.light):not(.danger),
body[style*="--primary"] a.btn:not(.light):not(.danger){
  background:linear-gradient(135deg,var(--primary),var(--primary2))!important;
  color:#fff!important;
  border:0!important;
}
body[style*="--primary"] .btn:not(.light):not(.danger):hover,
body[style*="--primary"] button.btn:not(.light):not(.danger):hover,
body[style*="--primary"] a.btn:not(.light):not(.danger):hover{
  background:linear-gradient(135deg,var(--primary2),var(--primary))!important;
}
body[style*="--primary"] .btn.light{
  background:var(--soft)!important;
  color:var(--primary)!important;
  border:1px solid rgba(var(--primary-rgb,36,87,214),.18)!important;
}
body[style*="--primary"] .brand-badge,
body[style*="--primary"] .wa-avatar{
  background:linear-gradient(135deg,var(--primary),var(--primary2))!important;
}
body[style*="--primary"] .hero-slider,
body[style*="--primary"] .cta-card{
  background:
    radial-gradient(circle at 80% 10%,rgba(255,255,255,.22),transparent 28%),
    linear-gradient(135deg,var(--primary2),var(--primary) 58%,var(--primary))!important;
  box-shadow:0 25px 80px rgba(var(--primary-rgb,36,87,214),.24)!important;
}
body[style*="--primary"] .landing-hero{
  background:
    radial-gradient(circle at 10% 10%,var(--soft) 0,transparent 36%),
    radial-gradient(circle at 90% 20%,rgba(var(--primary-rgb,36,87,214),.14) 0,transparent 34%)!important;
}
body[style*="--primary"] .feature-icon,
body[style*="--primary"] .menu a.active,
body[style*="--primary"] .site-menu a.active,
body[style*="--primary"] .badge.blue,
body[style*="--primary"] .pill.primary,
body[style*="--primary"] .wa-contact:hover,
body[style*="--primary"] .wa-contact.active{
  background:var(--soft)!important;
  color:var(--primary)!important;
}
body[style*="--primary"] .donation-progress-bar,
body[style*="--primary"] .slider-dots button.active{
  background:linear-gradient(90deg,var(--primary),var(--primary2))!important;
}
body[style*="--primary"] a{
  color:var(--primary);
}
body[style*="--primary"] .site-logo .brand-badge,
body[style*="--primary"] .site-logo .logo-img{
  box-shadow:0 14px 34px rgba(var(--primary-rgb,36,87,214),.20)!important;
}
body[style*="--primary"] .cta-card .btn.light{
  background:#fff!important;
  color:var(--primary)!important;
}


/* Full custom dominant color hover override */
body[style*="--primary"] .btn:hover,
body[style*="--primary"] button.btn:hover,
body[style*="--primary"] a.btn:hover,
body[style*="--primary"] .inline-form button:hover,
body[style*="--primary"] form button:hover,
body[style*="--primary"] input[type="submit"]:hover{
  background:linear-gradient(135deg,var(--primary2),var(--primary))!important;
  color:#fff!important;
  border-color:var(--primary2)!important;
  text-decoration:none!important;
  box-shadow:0 12px 28px rgba(var(--primary-rgb,36,87,214),.24)!important;
}
body[style*="--primary"] .btn.light:hover,
body[style*="--primary"] a.btn.light:hover,
body[style*="--primary"] button.btn.light:hover{
  background:var(--primary)!important;
  color:#fff!important;
  border-color:var(--primary)!important;
}
body[style*="--primary"] .btn.danger:hover,
body[style*="--primary"] button.btn.danger:hover,
body[style*="--primary"] a.btn.danger:hover{
  background:var(--danger)!important;
  color:#fff!important;
}
body[style*="--primary"] .menu a:hover,
body[style*="--primary"] .site-menu a:hover,
body[style*="--primary"] .menu button:hover,
body[style*="--primary"] .site-menu button:hover{
  background:var(--soft)!important;
  color:var(--primary)!important;
  text-decoration:none!important;
}
body[style*="--primary"] .site-login-link:hover,
body[style*="--primary"] .mobile-menu-btn:hover{
  background:var(--primary)!important;
  color:#fff!important;
}
body[style*="--primary"] .cta-card .btn:hover{
  background:#fff!important;
  color:var(--primary2)!important;
  box-shadow:0 14px 34px rgba(255,255,255,.24)!important;
}
body[style*="--primary"] .donation-share-actions .btn:hover,
body[style*="--primary"] .donation-history-actions .btn:hover,
body[style*="--primary"] .table .btn:hover,
body[style*="--primary"] .actions .btn:hover{
  transform:translateY(-1px);
}
body[style*="--primary"] .badge.blue:hover,
body[style*="--primary"] .pill:hover{
  border-color:rgba(var(--primary-rgb,36,87,214),.28)!important;
}


/* Login/auth custom dominant color override */
body[style*="--primary"] .auth-bg{
  background:
    radial-gradient(circle at 16% 8%,rgba(var(--primary-rgb,36,87,214),.16),transparent 30%),
    radial-gradient(circle at 86% 40%,rgba(var(--primary-rgb,36,87,214),.10),transparent 30%),
    linear-gradient(180deg,#fff,var(--soft))!important;
}
body[style*="--primary"] .auth-info h1,
body[style*="--primary"] .auth-card h2,
body[style*="--primary"] .auth-card h3{
  background:linear-gradient(135deg,var(--primary2),var(--primary))!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  color:transparent!important;
}
body[style*="--primary"] .auth-mini-list span{
  border-color:rgba(var(--primary-rgb,36,87,214),.18)!important;
  background:linear-gradient(135deg,#fff,var(--soft))!important;
}
body[style*="--primary"] .auth-card{
  border-color:rgba(var(--primary-rgb,36,87,214),.14)!important;
  box-shadow:0 25px 80px rgba(var(--primary-rgb,36,87,214),.12)!important;
}
body[style*="--primary"] .auth-card:before{
  background:rgba(var(--primary-rgb,36,87,214),.10)!important;
}
body[style*="--primary"] .auth-tabs,
body[style*="--primary"] .mini-tabs{
  background:var(--soft)!important;
}
body[style*="--primary"] .auth-tabs button.active,
body[style*="--primary"] .mini-tabs button.active{
  color:var(--primary)!important;
  box-shadow:0 4px 14px rgba(var(--primary-rgb,36,87,214),.16)!important;
}
body[style*="--primary"] .auth-tabs button:hover,
body[style*="--primary"] .mini-tabs button:hover{
  background:rgba(var(--primary-rgb,36,87,214),.10)!important;
  color:var(--primary)!important;
}
body[style*="--primary"] .auth-logo .brand-badge{
  background:linear-gradient(135deg,var(--primary),var(--primary2))!important;
  box-shadow:0 14px 34px rgba(var(--primary-rgb,36,87,214),.20)!important;
}
body[style*="--primary"] .soft-card{
  background:linear-gradient(135deg,#ffffff,var(--soft))!important;
  border-color:rgba(var(--primary-rgb,36,87,214),.16)!important;
}
body[style*="--primary"] .otp-input{
  color:var(--primary)!important;
  border-color:rgba(var(--primary-rgb,36,87,214),.24)!important;
}


/* Dark login/auth page + custom hover button fix */
body[style*="--primary"] .auth-bg{
  min-height:calc(100vh - 140px)!important;
  background:
    radial-gradient(circle at 14% 10%,rgba(var(--primary-rgb,36,87,214),.42),transparent 32%),
    radial-gradient(circle at 86% 20%,rgba(255,255,255,.12),transparent 26%),
    linear-gradient(135deg,#020617 0%,var(--primary2) 58%,#020617 100%)!important;
  color:#fff!important;
}
body[style*="--primary"] .auth-info,
body[style*="--primary"] .auth-info p,
body[style*="--primary"] .auth-info .muted{
  color:rgba(255,255,255,.82)!important;
}
body[style*="--primary"] .auth-info h1{
  background:linear-gradient(135deg,#ffffff,var(--soft))!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  color:transparent!important;
}
body[style*="--primary"] .auth-mini-list span{
  background:rgba(255,255,255,.10)!important;
  border-color:rgba(255,255,255,.18)!important;
  color:#fff!important;
  backdrop-filter:blur(10px);
}
body[style*="--primary"] .auth-card{
  background:rgba(15,23,42,.86)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.16)!important;
  box-shadow:0 30px 90px rgba(0,0,0,.30)!important;
  backdrop-filter:blur(18px)!important;
}
body[style*="--primary"] .auth-card:before{
  background:rgba(var(--primary-rgb,36,87,214),.22)!important;
}
body[style*="--primary"] .auth-card h2,
body[style*="--primary"] .auth-card h3,
body[style*="--primary"] .auth-card label{
  color:#fff!important;
  background:none!important;
  -webkit-background-clip:initial!important;
  background-clip:initial!important;
}
body[style*="--primary"] .auth-card p,
body[style*="--primary"] .auth-card .help,
body[style*="--primary"] .auth-card .muted{
  color:rgba(255,255,255,.70)!important;
}
body[style*="--primary"] .auth-card .input,
body[style*="--primary"] .auth-card input,
body[style*="--primary"] .auth-card select,
body[style*="--primary"] .auth-card textarea{
  background:rgba(255,255,255,.96)!important;
  color:#0f172a!important;
  border-color:rgba(255,255,255,.22)!important;
}
body[style*="--primary"] .auth-card .input:focus,
body[style*="--primary"] .auth-card input:focus,
body[style*="--primary"] .auth-card select:focus,
body[style*="--primary"] .auth-card textarea:focus{
  border-color:var(--primary)!important;
  box-shadow:0 0 0 4px rgba(var(--primary-rgb,36,87,214),.28)!important;
}
body[style*="--primary"] .auth-tabs,
body[style*="--primary"] .mini-tabs{
  background:rgba(255,255,255,.10)!important;
  border:1px solid rgba(255,255,255,.12)!important;
}
body[style*="--primary"] .auth-tabs button,
body[style*="--primary"] .mini-tabs button{
  color:rgba(255,255,255,.78)!important;
}
body[style*="--primary"] .auth-tabs button.active,
body[style*="--primary"] .mini-tabs button.active{
  background:linear-gradient(135deg,var(--primary),var(--primary2))!important;
  color:#fff!important;
  box-shadow:0 8px 22px rgba(var(--primary-rgb,36,87,214),.30)!important;
}
body[style*="--primary"] .auth-tabs button:hover,
body[style*="--primary"] .mini-tabs button:hover{
  background:rgba(var(--primary-rgb,36,87,214),.36)!important;
  color:#fff!important;
}
body[style*="--primary"] .auth-card .btn,
body[style*="--primary"] .auth-card button[type="submit"],
body[style*="--primary"] .auth-card form button:not(.light){
  background:linear-gradient(135deg,var(--primary),var(--primary2))!important;
  color:#fff!important;
  border:0!important;
}
body[style*="--primary"] .auth-card .btn:hover,
body[style*="--primary"] .auth-card button[type="submit"]:hover,
body[style*="--primary"] .auth-card form button:not(.light):hover{
  background:linear-gradient(135deg,var(--primary2),var(--primary))!important;
  color:#fff!important;
  box-shadow:0 14px 34px rgba(var(--primary-rgb,36,87,214),.38)!important;
  transform:translateY(-1px);
}
body[style*="--primary"] .auth-card .btn.light{
  background:rgba(255,255,255,.10)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.18)!important;
}
body[style*="--primary"] .auth-card .btn.light:hover{
  background:rgba(255,255,255,.20)!important;
  color:#fff!important;
}
body[style*="--primary"] .soft-card{
  background:rgba(255,255,255,.08)!important;
  border-color:rgba(255,255,255,.16)!important;
  color:#fff!important;
}


/* Profile/register job and institution stacked fields */
.profile-job-company-stack{
  display:grid;
  grid-template-columns:1fr;
  gap:0;
  margin-top:2px;
}
.profile-job-company-stack .field{
  width:100%;
}


/* Location form text visibility fix */
.location-grid label,
.location-grid .field label,
.auth-card .location-grid label,
.profile-card .location-grid label{
  color:inherit!important;
  opacity:1!important;
  visibility:visible!important;
}
body[style*="--primary"] .auth-card .location-grid label{
  color:#ffffff!important;
}
body[style*="--primary"] .auth-card .location-grid .help{
  color:rgba(255,255,255,.78)!important;
}
.location-grid select,
.location-grid input,
.location-grid textarea,
.auth-card .location-grid select,
.auth-card .location-grid input,
.auth-card .location-grid textarea{
  color:#0f172a!important;
  background:#ffffff!important;
  -webkit-text-fill-color:#0f172a!important;
}
.location-grid select:disabled,
.auth-card .location-grid select:disabled{
  color:#334155!important;
  background:#f1f5f9!important;
  -webkit-text-fill-color:#334155!important;
  opacity:1!important;
}
.location-grid option,
.auth-card .location-grid option{
  color:#0f172a!important;
  background:#ffffff!important;
}
.location-grid ::placeholder,
.auth-card .location-grid ::placeholder{
  color:#64748b!important;
  opacity:1!important;
}
body[style*="--primary"] .auth-card .field>label,
body[style*="--primary"] .auth-card label{
  color:#ffffff!important;
}
body[style*="--primary"] .auth-card .field select,
body[style*="--primary"] .auth-card .field input,
body[style*="--primary"] .auth-card .field textarea{
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
}


/* Location section: light card inside dark auth so text is readable */
body[style*="--primary"] .auth-card .location-grid{
  background:#ffffff!important;
  color:#0f172a!important;
  border:1px solid rgba(var(--primary-rgb,36,87,214),.16)!important;
  border-radius:18px!important;
  padding:14px!important;
  box-shadow:0 10px 28px rgba(0,0,0,.10)!important;
}
body[style*="--primary"] .auth-card .location-grid label,
body[style*="--primary"] .auth-card .location-grid .field>label{
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
}
body[style*="--primary"] .auth-card .location-grid .help,
body[style*="--primary"] .auth-card .location-grid .muted{
  color:#475569!important;
}
body[style*="--primary"] .auth-card .location-grid select,
body[style*="--primary"] .auth-card .location-grid input,
body[style*="--primary"] .auth-card .location-grid textarea{
  background:#ffffff!important;
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
  border:1px solid #cbd5e1!important;
}
body[style*="--primary"] .auth-card .location-grid select:disabled{
  background:#f1f5f9!important;
  color:#475569!important;
  -webkit-text-fill-color:#475569!important;
}
body[style*="--primary"] .auth-card .location-grid textarea::placeholder,
body[style*="--primary"] .auth-card .location-grid input::placeholder{
  color:#64748b!important;
  opacity:1!important;
}

/* Profile page location remains light and readable too */
.profile-card .location-grid,
.location-grid{
  color:#0f172a;
}
.location-grid label{
  color:#0f172a!important;
}
.location-grid .help{
  color:#475569!important;
}


/* FINAL FIX: geo-box actual location group must be light with dark text */
body[style*="--primary"] .auth-card .geo-box,
body[style*="--primary"] .auth-card .geo-light-card,
.auth-card .geo-box,
.auth-card .geo-light-card{
  background:#ffffff!important;
  color:#0f172a!important;
  border:1px solid rgba(var(--primary-rgb,36,87,214),.18)!important;
  border-radius:18px!important;
  padding:14px!important;
  box-shadow:0 10px 28px rgba(0,0,0,.10)!important;
}
body[style*="--primary"] .auth-card .geo-box *,
body[style*="--primary"] .auth-card .geo-light-card *,
.auth-card .geo-box *,
.auth-card .geo-light-card *{
  color:#0f172a!important;
}
body[style*="--primary"] .auth-card .geo-box label,
body[style*="--primary"] .auth-card .geo-light-card label,
.auth-card .geo-box label,
.auth-card .geo-light-card label{
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
  font-weight:900!important;
}
body[style*="--primary"] .auth-card .geo-box .help,
body[style*="--primary"] .auth-card .geo-light-card .help,
.auth-card .geo-box .help,
.auth-card .geo-light-card .help{
  color:#475569!important;
  -webkit-text-fill-color:#475569!important;
}
body[style*="--primary"] .auth-card .geo-box select,
body[style*="--primary"] .auth-card .geo-box input,
body[style*="--primary"] .auth-card .geo-box textarea,
.auth-card .geo-box select,
.auth-card .geo-box input,
.auth-card .geo-box textarea{
  background:#ffffff!important;
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
  border:1px solid #cbd5e1!important;
}
body[style*="--primary"] .auth-card .geo-box select:disabled,
.auth-card .geo-box select:disabled{
  background:#f1f5f9!important;
  color:#334155!important;
  -webkit-text-fill-color:#334155!important;
  opacity:1!important;
}
body[style*="--primary"] .auth-card .geo-box option,
.auth-card .geo-box option{
  background:#ffffff!important;
  color:#0f172a!important;
}
body[style*="--primary"] .auth-card .geo-box textarea::placeholder,
body[style*="--primary"] .auth-card .geo-box input::placeholder,
.auth-card .geo-box textarea::placeholder,
.auth-card .geo-box input::placeholder{
  color:#64748b!important;
  opacity:1!important;
}

/* Profile page geo-box also readable */
.profile-card .geo-box,
.geo-box.geo-light-card{
  background:#ffffff!important;
  color:#0f172a!important;
}
.profile-card .geo-box label,
.geo-box.geo-light-card label{
  color:#0f172a!important;
}
.profile-card .geo-box .help,
.geo-box.geo-light-card .help{
  color:#475569!important;
}



/* Fallback: any non-light submit button inside auth card is dark */
html body .auth-bg .auth-card form button.btn.btn-block:not(.light):not(.danger),
html body .auth-bg .auth-card form button[type="submit"]:not(.light):not(.danger){
  background:#020617!important;
  background-image:none!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  border:1px solid #020617!important;
}
html body .auth-bg .auth-card form button.btn.btn-block:not(.light):not(.danger):hover,
html body .auth-bg .auth-card form button[type="submit"]:not(.light):not(.danger):hover{
  background:#111827!important;
  background-image:none!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  border-color:#111827!important;
}




/* Restore login/register buttons: visible primary color, not dark */
html body[style*="--primary"] .site-menu a.site-login-link,
html body[style*="--primary"] .menu a.site-login-link,
html body[style*="--primary"] a.site-login-link{
  background:var(--primary)!important;
  background-image:linear-gradient(135deg,var(--primary),var(--primary2))!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  border:1px solid rgba(var(--primary-rgb,36,87,214),.20)!important;
  box-shadow:0 10px 24px rgba(var(--primary-rgb,36,87,214),.22)!important;
}
html body[style*="--primary"] .site-menu a.site-login-link:hover,
html body[style*="--primary"] .menu a.site-login-link:hover,
html body[style*="--primary"] a.site-login-link:hover{
  background:var(--primary2)!important;
  background-image:linear-gradient(135deg,var(--primary2),var(--primary))!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  border-color:rgba(var(--primary-rgb,36,87,214),.35)!important;
  text-decoration:none!important;
  box-shadow:0 14px 32px rgba(var(--primary-rgb,36,87,214),.28)!important;
}

/* Auth form submit buttons restored to primary color */
html body[style*="--primary"] .auth-bg .auth-card form button.btn.btn-block:not(.light):not(.danger),
html body[style*="--primary"] .auth-bg .auth-card form button[type="submit"]:not(.light):not(.danger),
html body[style*="--primary"] .auth-bg .auth-card .btn.btn-block:not(.light):not(.danger){
  background:var(--primary)!important;
  background-image:linear-gradient(135deg,var(--primary),var(--primary2))!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  border:1px solid rgba(var(--primary-rgb,36,87,214),.20)!important;
  box-shadow:0 12px 30px rgba(var(--primary-rgb,36,87,214),.28)!important;
}
html body[style*="--primary"] .auth-bg .auth-card form button.btn.btn-block:not(.light):not(.danger):hover,
html body[style*="--primary"] .auth-bg .auth-card form button[type="submit"]:not(.light):not(.danger):hover,
html body[style*="--primary"] .auth-bg .auth-card .btn.btn-block:not(.light):not(.danger):hover{
  background:var(--primary2)!important;
  background-image:linear-gradient(135deg,var(--primary2),var(--primary))!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  border-color:rgba(var(--primary-rgb,36,87,214),.35)!important;
  box-shadow:0 16px 38px rgba(var(--primary-rgb,36,87,214),.34)!important;
}
html body[style*="--primary"] .auth-bg .auth-card form button.btn.light,
html body[style*="--primary"] .auth-bg .auth-card .btn.light.btn-block{
  background:rgba(255,255,255,.12)!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  border:1px solid rgba(255,255,255,.22)!important;
}
html body[style*="--primary"] .auth-bg .auth-card form button.btn.light:hover,
html body[style*="--primary"] .auth-bg .auth-card .btn.light.btn-block:hover{
  background:var(--primary)!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  border-color:var(--primary)!important;
}


/* Floating admin chat */
.floating-admin-chat{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:9999;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}
.floating-admin-chat-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:0;
  border-radius:999px;
  padding:12px 16px;
  background:linear-gradient(135deg,var(--primary,#2457d6),var(--primary2,#173ea5));
  color:#fff;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 18px 45px rgba(var(--primary-rgb,36,87,214),.30);
}
.floating-admin-chat-toggle:hover{
  background:linear-gradient(135deg,var(--primary2,#173ea5),var(--primary,#2457d6));
  transform:translateY(-1px);
}
.floating-admin-chat-icon{
  font-size:18px;
}
.floating-admin-chat-count{
  min-width:22px;
  height:22px;
  border-radius:999px;
  background:#fff;
  color:var(--primary,#2457d6);
  display:inline-grid;
  place-items:center;
  font-size:12px;
  padding:0 6px;
}
.floating-admin-chat-panel{
  width:min(340px,calc(100vw - 32px));
  background:#fff;
  color:#0f172a;
  border:1px solid rgba(203,213,225,.95);
  border-radius:22px;
  box-shadow:0 24px 70px rgba(15,23,42,.22);
  overflow:hidden;
  transform:translateY(8px);
  opacity:0;
  pointer-events:none;
  transition:.18s ease;
}
.floating-admin-chat.open .floating-admin-chat-panel{
  transform:translateY(0);
  opacity:1;
  pointer-events:auto;
}
.floating-admin-chat-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  background:linear-gradient(135deg,var(--primary,#2457d6),var(--primary2,#173ea5));
  color:#fff;
}
.floating-admin-chat-head button{
  width:32px;
  height:32px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  color:#fff;
  cursor:pointer;
  font-size:22px;
  line-height:1;
}
.floating-admin-chat-panel p{
  margin:0;
  padding:13px 16px 2px;
  color:#475569;
  font-size:13px;
}
.floating-admin-chat-list{
  display:grid;
  gap:8px;
  padding:12px;
}
.floating-admin-chat-list a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#0f172a;
}
.floating-admin-chat-list a:hover{
  text-decoration:none;
  background:var(--soft,#eef4ff);
  border-color:rgba(var(--primary-rgb,36,87,214),.20);
}
.floating-admin-chat-avatar{
  width:40px;
  height:40px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--primary,#2457d6),var(--primary2,#173ea5));
  color:#fff;
  font-weight:900;
  flex:0 0 auto;
}
.floating-admin-chat-list strong,
.floating-admin-chat-list small{
  display:block;
}
.floating-admin-chat-list small{
  color:#64748b;
  font-size:12px;
}
.floating-chat-settings-card textarea{
  min-height:92px;
}
@media(max-width:560px){
  .floating-admin-chat{
    right:14px;
    bottom:14px;
  }
  .floating-admin-chat-text{
    display:none;
  }
  .floating-admin-chat-toggle{
    width:56px;
    height:56px;
    padding:0;
    justify-content:center;
  }
  .floating-admin-chat-count{
    position:absolute;
    top:-4px;
    right:-4px;
  }
}


/* Floating admin chat lower position */
.floating-admin-chat{
  bottom:8px!important;
}
@media(max-width:560px){
  .floating-admin-chat{
    bottom:8px!important;
  }
}


/* TRUE bottom floating chat fix: hidden panel must not push button upward */
.floating-admin-chat{
  position:fixed!important;
  right:16px!important;
  bottom:10px!important;
  top:auto!important;
  left:auto!important;
  width:auto!important;
  height:auto!important;
  display:block!important;
  transform:none!important;
}
.floating-admin-chat-toggle{
  position:relative!important;
  z-index:2!important;
}
.floating-admin-chat-panel{
  position:absolute!important;
  right:0!important;
  bottom:calc(100% + 10px)!important;
  top:auto!important;
  width:min(340px,calc(100vw - 32px))!important;
  max-height:min(70vh,520px)!important;
  overflow:auto!important;
  z-index:1!important;
}
.floating-admin-chat:not(.open) .floating-admin-chat-panel{
  display:none!important;
}
.floating-admin-chat.open .floating-admin-chat-panel{
  display:block!important;
}
@media(max-width:560px){
  .floating-admin-chat{
    right:10px!important;
    bottom:10px!important;
  }
  .floating-admin-chat-panel{
    right:0!important;
    bottom:calc(100% + 10px)!important;
    width:min(330px,calc(100vw - 20px))!important;
    max-height:68vh!important;
  }
}


/* INLINE BACKUP: force floating admin chat to viewport bottom-right */
html body .floating-admin-chat[data-floating-admin-chat]{
  position:fixed!important;
  right:12px!important;
  bottom:12px!important;
  top:auto!important;
  left:auto!important;
  width:auto!important;
  height:auto!important;
  z-index:2147483647!important;
  display:block!important;
  transform:none!important;
  margin:0!important;
}
html body .floating-admin-chat[data-floating-admin-chat] .floating-admin-chat-toggle{
  position:relative!important;
  right:auto!important;
  bottom:auto!important;
  top:auto!important;
  left:auto!important;
  z-index:2!important;
}
html body .floating-admin-chat[data-floating-admin-chat] .floating-admin-chat-panel{
  position:absolute!important;
  right:0!important;
  bottom:calc(100% + 10px)!important;
  top:auto!important;
  left:auto!important;
  transform:none!important;
  z-index:1!important;
}
html body .floating-admin-chat[data-floating-admin-chat]:not(.open) .floating-admin-chat-panel{
  display:none!important;
}
html body .floating-admin-chat[data-floating-admin-chat].open .floating-admin-chat-panel{
  display:block!important;
}
