﻿/* Home Page Styles */
:root {
    --orange: #FF7043;
    --orange-light: #FFF3EF;
    --orange-mid: #FFCCBC;
    --teal: #26A69A;
    --teal-light: #E0F2F1;
    --yellow: #FFD54F;
    --yellow-light: #FFFDE7;
    --cream: #FFFAF5;
    --green: #66BB6A;
    --green-light: #E8F5E9;
    --red: #EF5350;
    --text: #3E2723;
    --text-muted: #8D6E63;
    --border: #F3E5DE;
    --shadow: 0 8px 32px rgba(255,112,67,0.10);
    --shadow-hover: 0 16px 48px rgba(255,112,67,0.18);
  }
  * { margin:0; padding:0; box-sizing:border-box; }
  html { scroll-behavior:smooth; }
  body { font-family:'Nunito',sans-serif; background:var(--cream); color:var(--text); overflow-x:hidden; }
  h1,h2,h3,h4,h5 { font-family:'Baloo 2',cursive; }

  /* FLOATING PAWS */
  .paw-bg { position:fixed; top:0; left:0; width:100%; height:100%; pointer-events:none; z-index:0; overflow:hidden; }
  .paw-float { position:absolute; opacity:0; animation:floatPaw linear infinite; }
  @keyframes floatPaw {
    0%   { transform:translateY(110vh) rotate(0deg); opacity:0; }
    10%  { opacity:0.06; }
    90%  { opacity:0.06; }
    100% { transform:translateY(-10vh) rotate(360deg); opacity:0; }
  }

  /* NAVBAR */
  #navbar { position:fixed; top:0; width:100%; z-index:1000; padding:0 48px; height:82px; display:flex; align-items:center; justify-content:space-between; background:rgba(255,250,245,0.92); backdrop-filter:blur(12px); border-bottom:1.5px solid var(--border); transition:box-shadow 0.3s; }
  #navbar.scrolled { box-shadow:0 4px 24px rgba(255,112,67,0.10); }
  .nav-logo { display:flex; align-items:center; text-decoration:none; }
  .site-logo { width:210px; max-width:210px; height:auto; display:block; object-fit:contain; }
  .nav-links { display:flex; align-items:center; gap:8px; list-style:none; }
  .nav-links a { font-family:'Nunito',sans-serif; font-weight:600; font-size:14px; color:var(--text-muted); text-decoration:none; padding:6px 14px; border-radius:20px; transition:all 0.2s; }
  .nav-links a:hover { color:var(--orange); background:var(--orange-light); }
  .nav-auth { display:flex; gap:10px; align-items:center; }
  .btn-login { font-family:'Nunito',sans-serif; font-weight:700; font-size:14px; padding:8px 20px; border-radius:24px; border:2px solid var(--orange); background:transparent; color:var(--orange); cursor:pointer; transition:all 0.2s; text-decoration:none; }
  .btn-login:hover { background:var(--orange-light); }
  .btn-register { font-family:'Nunito',sans-serif; font-weight:700; font-size:14px; padding:8px 20px; border-radius:24px; border:none; background:var(--orange); color:white; cursor:pointer; transition:all 0.2s; text-decoration:none; box-shadow:0 4px 16px rgba(255,112,67,0.3); }
  .btn-register:hover { background:#E64A19; box-shadow:0 8px 24px rgba(255,112,67,0.4); }

  /* HERO */
  .hero { padding:120px 48px 80px; position:relative; z-index:1; text-align:center; }
  .hero-badge { display:inline-flex; align-items:center; gap:6px; background:var(--orange-light); border:1.5px solid var(--orange-mid); border-radius:20px; padding:6px 16px; font-size:13px; font-weight:700; color:var(--orange); margin-bottom:24px; animation:bounceIn 0.6s ease; }
  .hero-badge .dot { width:8px; height:8px; background:var(--orange); border-radius:50%; animation:pulse 1.5s ease-in-out infinite; }
  @keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.4);opacity:0.6} }
  .hero h1 { font-size:clamp(42px,6vw,72px); font-weight:800; line-height:1.15; color:var(--text); margin-bottom:20px; animation:slideUp 0.7s ease 0.1s both; }
  .hero h1 span { color:var(--orange); }
  .hero-sub { font-size:18px; color:var(--text-muted); max-width:560px; margin:0 auto 40px; line-height:1.7; animation:slideUp 0.7s ease 0.2s both; }
  @keyframes slideUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
  @keyframes bounceIn { from{opacity:0;transform:scale(0.8)} to{opacity:1;transform:scale(1)} }

  .hero-cta { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-bottom:64px; animation:slideUp 0.7s ease 0.3s both; }
  .btn-primary { font-family:'Baloo 2',cursive; font-weight:700; font-size:16px; padding:14px 32px; border-radius:32px; border:none; background:var(--orange); color:white; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; gap:8px; transition:all 0.25s; box-shadow:0 6px 24px rgba(255,112,67,0.35); }
  .btn-primary:hover { box-shadow:0 12px 32px rgba(255,112,67,0.45); background:#E64A19; }
  .btn-secondary { font-family:'Baloo 2',cursive; font-weight:700; font-size:16px; padding:14px 32px; border-radius:32px; border:2px solid var(--border); background:white; color:var(--text); cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; gap:8px; transition:all 0.25s; }
  .btn-secondary:hover { border-color:var(--orange); color:var(--orange); }

  /* WELFARE CARDS */
  .welfare-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:20px; max-width:1200px; margin:0 auto; animation:slideUp 0.7s ease 0.4s both; }
  .welfare-card { background:white; border-radius:24px; padding:28px 24px; border:1.5px solid var(--border); transition:all 0.3s; position:relative; overflow:hidden; }
  .welfare-card::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; border-radius:24px 24px 0 0; background:var(--orange); transform:scaleX(0); transition:transform 0.3s; transform-origin:left; }
  .welfare-card:hover::before { transform:scaleX(1); }
  .welfare-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-hover); border-color:var(--orange-mid); }
  .wc-icon { width:56px; height:56px; border-radius:16px; display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
  .wc-icon.orange { background:var(--orange-light); color:var(--orange); }
  .wc-icon.teal   { background:var(--teal-light); color:var(--teal); }
  .wc-icon.yellow { background:var(--yellow-light); color:#F9A825; }
  .wc-icon.green  { background:var(--green-light); color:var(--green); }
  .welfare-card h3 { font-size:18px; font-weight:700; margin-bottom:8px; color:var(--text); }
  .welfare-card p  { font-size:14px; color:var(--text-muted); line-height:1.6; }
  .welfare-card .wc-count { display:inline-block; background:var(--orange-light); color:var(--orange); font-weight:700; font-size:12px; padding:3px 10px; border-radius:12px; margin-top:12px; }

  /* SECTIONS */
  section { position:relative; z-index:1; padding:80px 48px; }
  .section-label { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:2px; color:var(--orange); margin-bottom:10px; }
  .section-title { font-size:clamp(28px,3.5vw,42px); font-weight:800; color:var(--text); margin-bottom:12px; }
  .section-sub   { font-size:16px; color:var(--text-muted); max-width:520px; line-height:1.6; margin-bottom:48px; }
  .section-inner { max-width:1200px; margin:0 auto; }
  .wave-divider  { width:100%; height:64px; overflow:hidden; position:relative; z-index:1; }
  .wave-divider svg { width:100%; height:100%; }

  /* DOG CARDS */
  .dog-section { background:white; }
  .dog-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }
  .dog-card { border:1.5px solid var(--border); border-radius:20px; padding:20px; text-align:center; transition:all 0.3s; cursor:pointer; background:var(--cream); position:relative; overflow:hidden; }
  .dog-card:hover { transform:translateY(-4px) scale(1.02); border-color:var(--orange-mid); box-shadow:0 12px 32px rgba(255,112,67,0.12); }
  .dog-avatar { width:72px; height:72px; border-radius:50%; margin:0 auto 12px; display:flex; align-items:center; justify-content:center; border:3px solid white; box-shadow:0 4px 12px rgba(0,0,0,0.08); background:var(--orange-light); color:var(--orange); transition:transform 0.3s; }
  .dog-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
  .dog-card:hover .dog-avatar { transform:rotate(10deg) scale(1.1); }
  .dog-card.steril .dog-avatar { background:var(--yellow-light); color:#F9A825; }
  .dog-card h4   { font-size:15px; font-weight:700; margin-bottom:4px; }
  .dog-card .breed { font-size:12px; color:var(--text-muted); margin-bottom:10px; }
  .dog-badge { display:inline-block; font-size:11px; font-weight:700; padding:3px 12px; border-radius:12px; }
  .badge-vacc { background:var(--teal-light); color:#00695C; }
  .badge-ster { background:var(--yellow-light); color:#F57F17; }
  .dog-date  { font-size:11px; color:var(--text-muted); margin-top:6px; display:flex; align-items:center; justify-content:center; gap:4px; }
  .new-tag   { position:absolute; top:12px; right:12px; background:var(--orange); color:white; font-size:10px; font-weight:800; padding:2px 8px; border-radius:8px; animation:popIn 0.5s ease; }
  .new-tag.teal { background:var(--teal); }
  @keyframes popIn { from{transform:scale(0)} to{transform:scale(1)} }

  /* STATS */
  .stats-section { background:var(--orange); }
  .stats-grid    { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:24px; }
  .stat-card     { background:rgba(255,255,255,0.15); border:1.5px solid rgba(255,255,255,0.25); border-radius:24px; padding:32px 24px; text-align:center; backdrop-filter:blur(8px); transition:all 0.3s; }
  .stat-card:hover { background:rgba(255,255,255,0.25); transform:translateY(-4px); }
  .stat-icon   { display:flex; align-items:center; justify-content:center; margin-bottom:12px; color:white; }
  .stat-number { font-family:'Baloo 2',cursive; font-size:52px; font-weight:800; color:white; line-height:1; margin-bottom:8px; }
  .stat-label  { font-size:14px; font-weight:600; color:rgba(255,255,255,0.85); }

  /* DONATE */
  .donate-section { background:var(--green-light); }
  .donate-inner   { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; max-width:1100px; margin:0 auto; }
  .donate-amounts { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin:24px 0; }
  .amount-btn { font-family:'Baloo 2',cursive; font-size:20px; font-weight:700; padding:16px; border-radius:16px; border:2px solid var(--border); background:white; color:var(--text); cursor:pointer; transition:all 0.2s; text-align:center; }
  .amount-btn:hover, .amount-btn.active { border-color:var(--green); background:var(--green); color:white; transform:scale(1.04); box-shadow:0 6px 20px rgba(102,187,106,0.3); }
  .donate-input  { display:flex; align-items:center; gap:10px; background:white; border:2px solid var(--border); border-radius:16px; padding:12px 16px; margin-bottom:20px; transition:border-color 0.2s; }
  .donate-input:focus-within { border-color:var(--green); }
  .donate-input span { font-family:'Baloo 2',cursive; font-size:20px; font-weight:700; color:var(--text-muted); }
  .donate-input input { flex:1; font-family:'Baloo 2',cursive; font-size:20px; font-weight:700; border:none; outline:none; color:var(--text); background:transparent; }
  .donate-visual { position:relative; display:flex; flex-direction:column; gap:16px; }
  .donate-impact-card { background:white; border-radius:20px; padding:20px 24px; display:flex; align-items:center; gap:16px; border:1.5px solid rgba(102,187,106,0.2); box-shadow:0 4px 16px rgba(102,187,106,0.1); transition:transform 0.2s; }
  .donate-impact-card:hover { transform:translateX(6px); }
  .dic-icon { width:48px; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:var(--orange); }
  .dic-text strong { display:block; font-weight:700; font-size:15px; color:var(--text); }
  .dic-text span   { font-size:13px; color:var(--text-muted); }

  /* FEEDING */
  .feeding-section { background:var(--cream); }
  .feeding-grid    { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:20px; }
  .feeding-card    { background:white; border-radius:20px; border:1.5px solid var(--border); overflow:hidden; transition:all 0.3s; }
  .feeding-card:hover { transform:translateY(-5px); box-shadow:var(--shadow); border-color:var(--teal); }
  .feeding-map-thumb { height:130px; background:linear-gradient(135deg,var(--teal-light) 0%,#B2DFDB 100%); display:flex; align-items:center; justify-content:center; color:var(--teal); position:relative; overflow:hidden; }
  .feeding-map-thumb::after { content:''; position:absolute; inset:0; background:repeating-linear-gradient(45deg,transparent,transparent 20px,rgba(38,166,154,0.06) 20px,rgba(38,166,154,0.06) 40px); }
  .feeding-info    { padding:18px 20px; }
  .feeding-info h4 { font-size:16px; font-weight:700; margin-bottom:4px; }
  .feeding-info .address { font-size:13px; color:var(--text-muted); display:flex; align-items:center; gap:4px; margin-bottom:12px; }
  .feeding-info .address svg { color:var(--orange); flex-shrink:0; }
  .feeding-meta { display:flex; gap:8px; flex-wrap:wrap; }
  .feeding-tag  { font-size:11px; font-weight:700; padding:3px 10px; border-radius:10px; display:inline-flex; align-items:center; gap:4px; }
  .tag-morning { background:var(--yellow-light); color:#E65100; }
  .tag-evening { background:#EDE7F6; color:#6A1B9A; }
  .tag-dogs    { background:var(--orange-light); color:var(--orange); }

  /* TIPS */
  .tips-section { background:white; }
  .tips-grid    { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:20px; }
  .tip-card     { background:var(--cream); border-radius:20px; padding:24px; border:1.5px solid var(--border); display:flex; gap:16px; transition:all 0.3s; align-items:flex-start; }
  .tip-card:hover { transform:translateY(-4px); border-color:var(--orange-mid); box-shadow:0 8px 24px rgba(255,112,67,0.1); }
  .tip-num { font-family:'Baloo 2',cursive; font-size:36px; font-weight:800; color:var(--orange-mid); line-height:1; min-width:44px; }
  .tip-card h4 { font-size:16px; font-weight:700; margin-bottom:6px; color:var(--text); }
  .tip-card p  { font-size:14px; color:var(--text-muted); line-height:1.6; }

  /* FACTS */
  .facts-section { background:#FFF8E1; }
  .facts-marquee-wrapper { overflow:hidden; position:relative; }
  .facts-marquee-wrapper::before,.facts-marquee-wrapper::after { content:''; position:absolute; top:0; bottom:0; width:80px; z-index:2; }
  .facts-marquee-wrapper::before { left:0; background:linear-gradient(90deg,#FFF8E1 0%,transparent 100%); }
  .facts-marquee-wrapper::after  { right:0; background:linear-gradient(-90deg,#FFF8E1 0%,transparent 100%); }
  .facts-marquee { display:flex; gap:20px; animation:marquee 30s linear infinite; width:max-content; }
  .facts-marquee:hover { animation-play-state:paused; }
  @keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
  .fact-chip { background:white; border:1.5px solid var(--yellow); border-radius:16px; padding:14px 20px; white-space:nowrap; display:flex; align-items:center; gap:10px; flex-shrink:0; font-size:14px; font-weight:600; color:var(--text); transition:transform 0.2s; }
  .fact-chip:hover { transform:scale(1.03); }
  .fact-chip .fc-icon { color:var(--orange); display:flex; align-items:center; }
  .facts-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; margin-top:40px; }
  .fact-card  { background:white; border-radius:20px; padding:24px; border:1.5px solid rgba(255,213,79,0.4); transition:all 0.3s; display:flex; gap:14px; align-items:flex-start; }
  .fact-card:hover { transform:translateY(-3px); box-shadow:0 8px 24px rgba(255,213,79,0.2); }
  .fact-icon  { flex-shrink:0; color:var(--orange); display:flex; align-items:center; }
  .fact-card h4 { font-size:15px; font-weight:700; margin-bottom:4px; }
  .fact-card p  { font-size:13px; color:var(--text-muted); line-height:1.6; }

  /* FAQ */
  .faq-section { background:white; }
  .faq-inner   { max-width:760px; margin:0 auto; }
  .faq-item    { border:1.5px solid var(--border); border-radius:16px; margin-bottom:12px; overflow:hidden; transition:all 0.3s; }
  .faq-item:hover { border-color:var(--orange-mid); }
  .faq-item.open  { border-color:var(--orange); box-shadow:0 4px 16px rgba(255,112,67,0.1); }
  .faq-q { width:100%; display:flex; align-items:center; justify-content:space-between; padding:20px 24px; background:none; border:none; cursor:pointer; text-align:left; gap:16px; font-family:'Nunito',sans-serif; }
  .faq-q-text { font-size:16px; font-weight:700; color:var(--text); }
  .faq-icon-wrap { width:32px; height:32px; border-radius:50%; background:var(--orange-light); display:flex; align-items:center; justify-content:center; transition:all 0.3s; flex-shrink:0; color:var(--orange); font-size:20px; font-weight:700; line-height:1; }
  .faq-item.open .faq-icon-wrap { background:var(--orange); color:white; transform:rotate(45deg); }
  .faq-a { padding:0 24px; max-height:0; overflow:hidden; transition:max-height 0.4s ease,padding 0.3s; font-size:15px; color:var(--text-muted); line-height:1.7; }
  .faq-item.open .faq-a { max-height:200px; padding:0 24px 20px; }

  /* FOOTER */
  footer { background:var(--text); color:rgba(255,255,255,0.7); padding:48px; position:relative; z-index:1; }
  .footer-inner { max-width:1200px; margin:0 auto; display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,0.1); }
  .footer-brand p  { font-size:14px; line-height:1.7; margin-top:12px; max-width:280px; }
  .footer-col h5   { font-size:14px; font-weight:700; color:white; margin-bottom:16px; }
  .footer-col a    { display:flex; align-items:center; gap:8px; font-size:13px; color:rgba(255,255,255,0.6); text-decoration:none; margin-bottom:8px; transition:color 0.2s; }
  .footer-col a:hover { color:var(--orange); }
  .footer-col a svg { flex-shrink:0; }
  .footer-bottom { max-width:1200px; margin:24px auto 0; display:flex; justify-content:space-between; align-items:center; font-size:13px; }
  .footer-logo { display:flex; align-items:center; gap:8px; margin-bottom:12px; }
  .footer-logo-icon { width:36px; height:36px; background:var(--orange); border-radius:10px; display:flex; align-items:center; justify-content:center; color:white; }
  .footer-logo span { font-family:'Baloo 2',cursive; font-weight:800; font-size:20px; color:white; }
  .footer-made { display:flex; align-items:center; gap:6px; color:rgba(255,255,255,0.5); }
  .footer-made svg { color:var(--orange); }

  /* REVEAL */
  .reveal { opacity:0; transform:translateY(30px); transition:all 0.6s ease; }
  .reveal.visible { opacity:1; transform:translateY(0); }
  .section-divider { height:3px; background:repeating-linear-gradient(90deg,var(--orange) 0px,var(--orange) 16px,transparent 16px,transparent 24px); opacity:0.3; }

  @media (max-width:768px) {
    #navbar { padding:0 20px; }
    .nav-links { display:none; }
    section { padding:60px 20px; }
    .hero { padding:100px 20px 60px; }
    .donate-inner { grid-template-columns:1fr; gap:32px; }
    .footer-inner { grid-template-columns:1fr 1fr; gap:24px; }
  }

/* Auth Page Styles */
:root {
    --orange:       #FF7043;
    --orange-dark:  #E64A19;
    --orange-light: #FFF3EF;
    --orange-mid:   #FFCCBC;
    --cream:        #FFFAF5;
    --text:         #3E2723;
    --text-muted:   #8D6E63;
    --border:       #F3E5DE;
    --green:        #66BB6A;
    --error:        #EF5350;
  }
  * { margin:0; padding:0; box-sizing:border-box; }
  body { font-family:'Nunito',sans-serif; background:var(--cream); color:var(--text); min-height:100vh; overflow-x:hidden; }

  .bg-layer { position:fixed; inset:0; z-index:0; overflow:hidden; pointer-events:none; }
  .bg-blob  { position:absolute; border-radius:50%; filter:blur(90px); opacity:.15; animation:blobDrift ease-in-out infinite alternate; }
  .blob1 { width:520px; height:520px; background:#FF7043; top:-160px; left:-120px; animation-duration:9s; }
  .blob2 { width:380px; height:380px; background:#FFD54F; bottom:-100px; right:-100px; animation-duration:11s; }
  .blob3 { width:300px; height:300px; background:#26A69A; top:38%; left:52%; animation-duration:13s; }
  @keyframes blobDrift { from{transform:translate(0,0) scale(1)} to{transform:translate(28px,18px) scale(1.06)} }

  .paw-float { position:fixed; opacity:0; animation:floatUp linear infinite; pointer-events:none; z-index:0; }
  @keyframes floatUp {
    0%  {transform:translateY(108vh) rotate(0deg); opacity:0}
    8%  {opacity:.07}
    92% {opacity:.07}
    100%{transform:translateY(-12vh) rotate(360deg); opacity:0}
  }

  .page { position:relative; z-index:1; min-height:100vh; display:flex; align-items:stretch; }

  /* LEFT */
  .left-panel {
    width:42%; background:var(--orange);
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    padding:60px 48px; position:relative; overflow:hidden;
  }
  .left-panel::before {
    content:''; position:absolute; inset:0;
    background:repeating-linear-gradient(45deg,transparent 0,transparent 28px,rgba(255,255,255,.035) 28px,rgba(255,255,255,.035) 56px);
  }
  .ldc { position:absolute; border-radius:50%; background:rgba(255,255,255,.07); }
  .ldc1{width:340px;height:340px;bottom:-110px;right:-90px}
  .ldc2{width:200px;height:200px;top:30px;right:30px}
  .ldc3{width:110px;height:110px;top:150px;left:24px}

  .brand { display:flex; align-items:center; gap:12px; margin-bottom:44px; position:relative; z-index:1; animation:fsd .5s ease both; }
  .auth-brand-logo {
    width:230px;
    max-width:100%;
    height:auto;
    display:block;
    object-fit:contain;
    filter: brightness(0) invert(1);
  }

  .panel-headline{font-family:'Baloo 2',cursive;font-weight:800;font-size:34px;color:white;line-height:1.22;text-align:center;margin-bottom:14px;position:relative;z-index:1;animation:fsd .55s ease .1s both}
  .panel-sub{font-size:15px;color:rgba(255,255,255,.82);text-align:center;line-height:1.7;max-width:290px;margin-bottom:44px;position:relative;z-index:1;animation:fsd .55s ease .18s both}

  .panel-stats{display:flex;gap:16px;position:relative;z-index:1;animation:fsd .55s ease .26s both}
  .pstat{background:rgba(255,255,255,.15);border:1.5px solid rgba(255,255,255,.22);border-radius:18px;padding:16px 20px;text-align:center;backdrop-filter:blur(6px);transition:transform .25s}
  .pstat:hover{transform:translateY(-3px)}
  .pstat-num{font-family:'Baloo 2',cursive;font-size:30px;font-weight:800;color:white;display:block;line-height:1}
  .pstat-lbl{font-size:11px;font-weight:700;color:rgba(255,255,255,.76);white-space:nowrap}

  .panel-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:32px;position:relative;z-index:1;animation:fsd .55s ease .34s both}
  .pchip{background:rgba(255,255,255,.18);border:1.5px solid rgba(255,255,255,.25);border-radius:20px;padding:7px 14px;font-size:13px;font-weight:700;color:white;display:inline-flex;align-items:center;gap:7px;backdrop-filter:blur(4px);transition:all .2s}
  .pchip:hover{background:rgba(255,255,255,.3);transform:scale(1.04)}
  .pchip svg{color:white}

  @keyframes fsd{from{opacity:0;transform:translateY(-18px)}to{opacity:1;transform:translateY(0)}}

  /* RIGHT */
  .right-panel{flex:1;display:flex;align-items:center;justify-content:center;padding:60px 48px;position:relative;z-index:2}
  .auth-card  {
    width:100%;
    max-width:760px;
    opacity:1;
    transform:translateY(0);
    animation:cardIn .5s ease .1s;
    background:rgba(255,252,249,0.94);
    border:1px solid rgba(238,222,214,0.9);
    border-radius:32px;
    box-shadow:0 30px 80px rgba(110,71,56,0.12);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    padding:30px 32px 28px;
  }
  @keyframes cardIn{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:translateY(0)}}

  /* TABS */
  .auth-tabs{display:flex;gap:4px;background:var(--border);border-radius:16px;padding:4px;margin-bottom:28px}
  .tab-btn{flex:1;font-family:'Baloo 2',cursive;font-weight:700;font-size:15px;padding:10px;border:none;border-radius:12px;background:transparent;color:var(--text-muted);cursor:pointer;transition:all .25s}
  .tab-btn.active{background:white;color:var(--orange);box-shadow:0 4px 14px rgba(255,112,67,.14)}

  .form-screen{display:none}
  .form-screen.active{display:block}
  .auth-form-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:14px;
    align-items:start;
  }
  .auth-form-grid + .sub-btn,
  .auth-form-grid + .switch-txt{
    margin-top:18px;
  }
  .auth-form-grid-login{
    margin-bottom:0;
  }
  .auth-span-1{grid-column:span 1}
  .auth-span-2{grid-column:span 2}
  .auth-span-3{grid-column:1 / -1}

  /* GOOGLE BTN */
  .google-btn{
    width:100%;display:flex;align-items:center;justify-content:center;gap:11px;
    padding:13px 20px;background:white;border:1.5px solid var(--border);border-radius:14px;
    font-family:'Nunito',sans-serif;font-size:15px;font-weight:700;color:var(--text);
    cursor:pointer;transition:all .25s;box-shadow:0 2px 8px rgba(0,0,0,.045);
  }
  .google-btn:hover{border-color:#4285F4;box-shadow:0 6px 22px rgba(66,133,244,.14);transform:translateY(-2px)}
  .google-btn:active{transform:translateY(0)}
  .google-btn:disabled{opacity:.72;cursor:not-allowed;transform:none}
  .g-ico{width:20px;height:20px;flex-shrink:0}
  .google-auth-slot{width:100%;display:flex;justify-content:center}
  .google-btn-host{width:100%;min-height:46px;display:flex;justify-content:center}
  .google-btn-host > div,
  .google-btn-host iframe{max-width:100% !important;display:block !important}
  .google-btn-fallback.is-hidden,
  .google-btn-host.is-hidden,
  .google-onboarding-banner.is-hidden,
  .field.is-hidden{display:none !important}
  .google-btn-fallback{display:none}
  .google-btn-fallback.is-ready{display:flex}
  .google-onboarding-banner{
    display:none;
    align-items:flex-start;
    gap:12px;
    margin:0 0 18px;
    padding:14px 16px;
    border-radius:18px;
    background:rgba(255,112,67,.08);
    border:1px solid rgba(255,112,67,.18);
    color:var(--text);
  }
  .google-onboarding-banner.show{display:flex}
  .google-onboarding-banner strong{display:block;font-size:14px;font-weight:800;margin-bottom:2px}
  .google-onboarding-banner p{margin:0;font-size:13px;line-height:1.55;color:var(--text-muted)}
  .google-onboarding-icon{
    width:36px;
    height:36px;
    border-radius:12px;
    background:rgba(255,112,67,.14);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--orange);
    flex-shrink:0;
  }

  /* OR */
  .or-div{display:flex;align-items:center;gap:12px;margin:20px 0;color:var(--text-muted);font-size:12px;font-weight:700;letter-spacing:.5px;text-transform:uppercase}
  .or-div::before,.or-div::after{content:'';flex:1;height:1px;background:var(--border)}

  /* FIELDS */
  .field{margin-bottom:0}
  .field > label{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--text);margin-bottom:6px}
  .field > label svg{color:var(--text-muted)}

  .iw{position:relative}
  .iw .ico{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#C4A99E;pointer-events:none;display:flex;align-items:center;transition:color .2s}
  .iw:focus-within .ico{color:var(--orange)}
  .iw input{
    width:100%;padding:11px 40px 11px 40px;
    font-family:'Nunito',sans-serif;font-size:14px;font-weight:600;
    border:1.5px solid var(--border);border-radius:12px;
    background:white;color:var(--text);outline:none;
    transition:border-color .2s,box-shadow .2s;
  }
  .iw input::placeholder{color:#D7BDB5;font-weight:500}
  .iw input:focus{border-color:var(--orange);box-shadow:0 0 0 3px rgba(255,112,67,.11)}
.iw input.err{border-color:var(--error)}
.iw input.err:focus{box-shadow:0 0 0 3px rgba(239,83,80,.11)}
.iw .custom-select{width:100%}
.iw .custom-select-trigger{
  min-height:46px;
  padding:11px 40px 11px 40px;
  border-radius:12px;
  font-size:14px;
  font-weight:600;
}
.iw .custom-select.is-open .custom-select-trigger{
  border-color:var(--orange);
  box-shadow:0 0 0 3px rgba(255,112,67,.11);
}
.iw .custom-select-menu{z-index:70}

  .eye-btn{position:absolute;right:11px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--text-muted);padding:4px;display:flex;align-items:center;transition:color .2s}
  .eye-btn:hover{color:var(--orange)}

  .ferr{display:none;font-size:11.5px;font-weight:700;color:var(--error);margin-top:5px;align-items:center;gap:4px}
  .ferr.show{display:flex}
  .ferr svg{flex-shrink:0}

  .frow{display:grid;grid-template-columns:1fr 1fr;gap:12px}

  /* ROLE */
  .role-lbl{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--text);margin-bottom:8px}
  .role-lbl svg{color:var(--text-muted)}
  .role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:0}
  .auth-role-block{margin-bottom:0}
  .role-card{border:1.5px solid var(--border);border-radius:14px;padding:13px 10px;text-align:center;cursor:pointer;background:white;position:relative;transition:all .2s}
  .role-card:hover{border-color:var(--orange-mid);background:var(--orange-light)}
  .role-card.selected{border-color:var(--orange);background:var(--orange-light);box-shadow:0 4px 14px rgba(255,112,67,.13)}
  .chk{position:absolute;top:7px;right:8px;width:16px;height:16px;border-radius:50%;background:var(--orange);display:none;align-items:center;justify-content:center;color:white}
  .role-card.selected .chk{display:flex}
  .rc-ico{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;margin:0 auto 8px;background:var(--orange-light);transition:background .2s;color:var(--orange)}
  .role-card.selected .rc-ico{background:rgba(255,112,67,.18)}
  .rc-lbl{font-size:13px;font-weight:700;color:var(--text);display:block}
  .rc-sub{font-size:11px;color:var(--text-muted);display:block;margin-top:2px}

  /* STRENGTH */
  .str-bar {height:4px;border-radius:4px;background:var(--border);margin-top:7px;overflow:hidden}
  .str-fill{height:100%;border-radius:4px;width:0%;transition:width .35s,background .35s}
  .str-lbl {font-size:11px;font-weight:700;margin-top:4px;color:var(--text-muted)}

  /* FORGOT */
  .forgot{display:flex;align-items:center;gap:5px;justify-content:flex-end;font-size:12px;font-weight:700;color:var(--orange);text-decoration:none;margin-top:-6px;margin-bottom:18px;transition:opacity .2s}
  .forgot:hover{opacity:.72}
  .forgot svg{color:var(--orange)}

  /* CHECKBOX */
  .cb-row{display:flex;align-items:flex-start;gap:10px;margin-bottom:18px}
  .cb-row input[type="checkbox"]{width:17px;height:17px;accent-color:var(--orange);cursor:pointer;flex-shrink:0;margin-top:2px}
  .cb-row label{font-size:13px;color:var(--text-muted);line-height:1.5;cursor:pointer}
  .cb-row a{color:var(--orange);text-decoration:none;font-weight:700}
  .cb-row a:hover{text-decoration:underline}

  /* SUBMIT */
  .sub-btn{
    width:100%;padding:13px;background:var(--orange);color:white;
    border:none;border-radius:14px;font-family:'Baloo 2',cursive;
    font-size:16px;font-weight:700;cursor:pointer;
    display:flex;align-items:center;justify-content:center;gap:8px;
    transition:all .25s;box-shadow:0 6px 22px rgba(255,112,67,.28);
    position:relative;overflow:hidden;
  }
  .sub-btn:hover{background:var(--orange-dark);transform:translateY(-2px);box-shadow:0 10px 28px rgba(255,112,67,.38)}
  .sub-btn:active{transform:translateY(0)}
  .sub-btn.loading{pointer-events:none;opacity:.82}
  .sub-btn.loading .btn-text{opacity:0}
  .sub-btn.loading::before{
    content:'';position:absolute;width:20px;height:20px;
    border:2.5px solid rgba(255,255,255,.35);border-top-color:white;
    border-radius:50%;animation:spin .75s linear infinite;
  }
  @keyframes spin{to{transform:rotate(360deg)}}

  .switch-txt{text-align:center;font-size:13px;color:var(--text-muted);margin-top:18px;font-weight:600}
  .switch-txt a{color:var(--orange);text-decoration:none;font-weight:800;cursor:pointer}
  .switch-txt a:hover{text-decoration:underline}

  .form-title   {font-family:'Baloo 2',cursive;font-size:26px;font-weight:800;color:var(--text);margin-bottom:4px}
  .form-sub     {font-size:14px;color:var(--text-muted);margin-bottom:22px;line-height:1.5}

  /* SUCCESS */
  .suc-screen{display:none;text-align:center;padding:24px 0}
  .suc-screen.show{display:block;animation:popIn .4s ease}
  @keyframes popIn{from{opacity:0;transform:scale(.88)}to{opacity:1;transform:scale(1)}}
  .suc-ico{width:80px;height:80px;background:var(--green);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 20px;box-shadow:0 8px 28px rgba(102,187,106,.32);animation:bounceIn .5s ease;color:white}
  @keyframes bounceIn{0%{transform:scale(0)}60%{transform:scale(1.15)}100%{transform:scale(1)}}
  .suc-screen h3{font-family:'Baloo 2',cursive;font-size:24px;font-weight:800;margin-bottom:8px}
  .suc-screen p {font-size:14px;color:var(--text-muted);line-height:1.65;max-width:290px;margin:0 auto 28px}
  .suc-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 28px;background:var(--orange);color:white;border:none;border-radius:14px;cursor:pointer;font-family:'Baloo 2',cursive;font-size:15px;font-weight:700;box-shadow:0 6px 20px rgba(255,112,67,.28);transition:all .22s}
  .suc-btn:hover{background:var(--orange-dark);transform:translateY(-2px)}
  .suc-btn svg{color:white}

  @media(max-width:1024px){
    .auth-span-2,
    .auth-span-3{
      grid-column:1 / -1;
    }
  }

  @media(max-width:820px){
    .left-panel{display:none}
    .right-panel{padding:40px 20px}
    .auth-card{max-width:640px;padding:24px 22px}
    .auth-form-grid{
      grid-template-columns:1fr;
    }
    .auth-span-1,
    .auth-span-2,
    .auth-span-3{
      grid-column:1 / -1;
    }
    .role-grid{
      grid-template-columns:1fr 1fr;
    }
  }


/* ADMIN DASHBOARD */
.admin-body {
  background: #fff8f2;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}
.admin-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.admin-topbar {
  background: #fffdfb;
  backdrop-filter: none;
  border: 0;
  border-bottom: 1px solid rgba(243,229,222,0.95);
  border-radius: 0;
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  box-shadow: none;
}
.admin-topbar-brand {
  display: flex;
  align-items: center;
}
.admin-header-logo {
  width: 220px;
  max-width: 220px;
  height: auto;
  display: block;
  object-fit: contain;
}
.admin-topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0;
}
.admin-avatar {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--orange) 0%, #F28C28 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(255,112,67,0.22);
}
.admin-user-meta strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  line-height: 1.1;
}
.admin-user-meta span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}
.admin-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.admin-sidebar {
  position: relative;
  min-height: 0;
  background: linear-gradient(180deg, #2d211d 0%, #1f1715 100%);
  border-radius: 0;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  overflow-y: auto;
}
.admin-sidebar-inner {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.admin-sidebar-label {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
  font-weight: 800;
  margin-bottom: 14px;
}
.admin-nav {
  display: grid;
  gap: 8px;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration: none;
  color: rgba(255,255,255,0.72);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.22s;
}
.admin-nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.admin-nav-item:hover {
  color: white;
  background: rgba(255,255,255,0.08);
}
.admin-nav-item.active {
  color: white;
  background: linear-gradient(135deg, var(--orange) 0%, #F28C28 100%);
  box-shadow: 0 12px 22px rgba(255,112,67,0.24);
}
.admin-logout-wrap {
  margin-top: auto;
  padding-top: 14px;
}
.admin-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: white;
  border-radius: 16px;
  padding: 13px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s;
}
.admin-logout-btn:hover {
  background: rgba(255,255,255,0.12);
}
.admin-main {
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 28px;
  box-shadow: none;
  overflow-y: auto;
  min-height: 0;
}
.admin-main section,
.admin-main article,
.admin-main header {
  max-width: 100%;
}
.admin-main section {
  padding: 0;
}
.admin-main > section + section,
.admin-main > div + section,
.admin-main > section + div {
  margin-top: 18px;
}
.admin-header {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 0 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.admin-kicker {
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 800;
  margin-bottom: 8px;
}
.admin-header h1 {
  font-family: 'Baloo 2', cursive;
  font-size: 38px;
  line-height: 1.05;
  color: var(--text);
  margin: 0 0 8px;
}
.admin-sub {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 620px;
  line-height: 1.6;
}
.admin-header-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--orange-light);
  color: var(--orange);
  font-weight: 800;
  flex-shrink: 0;
}
.admin-chip-icon {
  width: 16px;
  height: 16px;
}
.admin-overview-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.admin-card,
.admin-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 22px;
  box-shadow: none;
}
.admin-form-section {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--border);
}
.admin-form-card-head {
  margin-bottom: 16px;
}
.admin-form-card-head h3 {
  margin: 0 0 6px;
}
.admin-form-card-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}
.admin-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--orange-light);
  color: var(--orange);
}
.admin-card-icon.teal {
  background: #e5f7f5;
  color: var(--teal);
}
.admin-card-icon.gold {
  background: #fff7df;
  color: #d48a00;
}
.admin-card-icon.green {
  background: #edf8ee;
  color: var(--green);
}
.admin-card h3,
.admin-panel h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--text);
}
.admin-stat {
  font-family: 'Baloo 2', cursive;
  font-size: 42px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin: 0 0 8px;
}
.admin-card span,
.admin-panel span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.admin-split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-top: 16px;
}
.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.admin-panel-kicker {
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 800;
  margin-bottom: 6px;
}
.admin-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.admin-shortcut-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 18px;
  color: var(--text);
  background: #fffdfb;
  transition: all 0.22s;
}
.admin-shortcut-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange-mid);
  box-shadow: 0 14px 26px rgba(255,112,67,0.10);
}
.admin-shortcut-card i {
  width: 20px;
  height: 20px;
  color: var(--orange);
  margin-bottom: 12px;
}
.admin-shortcut-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}
.admin-note-list {
  list-style: none;
  display: grid;
  gap: 12px;
}
.admin-note-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  line-height: 1.6;
}
.admin-note-list i {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 1080px) {
  .admin-overview-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-split-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .admin-body,
  .admin-shell {
    height: auto;
    overflow: auto;
  }
  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
  }
  .admin-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    flex: none;
    overflow: visible;
  }
  .admin-sidebar {
    position: static;
    min-height: auto;
    padding: 18px;
    overflow: visible;
  }
  .admin-main {
    padding: 18px;
    overflow: visible;
  }
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-overview-grid,
  .admin-grid,
  .admin-shortcut-grid {
    grid-template-columns: 1fr;
  }
}

/* USERS PAGE */
.admin-alert {
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid transparent;
}
.admin-alert.is-success {
  background: #e8f5e9;
  color: #1b5e20;
  border-color: #a5d6a7;
}
.admin-alert.is-error {
  background: #ffebee;
  color: #b71c1c;
  border-color: #ef9a9a;
}
.users-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.users-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: white;
}
.custom-select {
  position: relative;
  width: 100%;
}
.custom-select-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  text-align: left;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.custom-select-trigger:hover {
  border-color: var(--orange-mid);
  background: #fffaf6;
}
.custom-select-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.custom-select.is-open .custom-select-trigger {
  border-color: var(--orange-mid);
  box-shadow: 0 0 0 4px rgba(255, 112, 67, 0.08);
}
.custom-select-label {
  min-width: 0;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-select-caret {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.24s ease;
}
.custom-select-caret span {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-1px);
}
.custom-select.is-open .custom-select-caret {
  transform: rotate(180deg);
}
.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fffdfb;
  box-shadow: 0 18px 34px rgba(62,39,35,0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transform-origin: top;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.custom-select.is-open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.custom-select-option {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 10px 12px;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.custom-select-option:hover {
  background: var(--orange-light);
  color: var(--orange);
}
.custom-select-option.is-selected {
  background: #fff1ea;
  color: var(--orange);
}
.custom-select-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.rfield .custom-select-trigger,
.resident-ref-field .custom-select-trigger,
.welfare-ref-rfield .custom-select-trigger,
.users-input.custom-select-trigger {
  width: 100%;
}
.rfield .custom-select-trigger,
.users-input.custom-select-trigger {
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}
.resident-ref-field .custom-select-trigger {
  font-size: 14px;
  font-weight: 600;
}
.welfare-ref-rfield .custom-select-trigger {
  min-height: 44px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
}
.users-submit {
  justify-content: center;
  text-align: center;
}
.users-table-wrap { overflow-x: auto; overflow-y: visible; }
.users-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
}
.users-table th,
.users-table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}
.users-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
}
.users-inline-form { display: inline; }
.users-actions {
  display: grid;
  gap: 6px;
  min-width: 170px;
}
.users-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.users-btn.danger {
  background: #e53935;
  border-color: #e53935;
}
.users-btn.danger:hover {
  background: #c62828;
}
.society-form-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr auto;
  gap: 14px;
  align-items: end;
}
.societies-list {
  display: grid;
  gap: 14px;
}
.society-list-item {
  padding: 18px 20px;
}
.society-list-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}
.society-list-media {
  width: 88px;
}
.society-list-image,
.society-list-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff8f2;
  object-fit: cover;
}
.society-list-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.society-list-content h3 {
  margin: 0 0 6px;
}
.society-list-content p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}
.society-list-actions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.society-list-actions .admin-icon-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 11px;
  padding: 0;
}
.society-list-actions .admin-icon-btn i,
.society-list-actions .admin-icon-btn svg {
  width: 15px;
  height: 15px;
}
.admin-icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--orange-mid);
  color: var(--orange);
  background: var(--orange-light);
}
.admin-icon-btn i {
  width: 18px;
  height: 18px;
}
.admin-icon-btn.danger {
  color: #d63b3b;
}
.admin-icon-btn.danger:hover {
  border-color: #ef9a9a;
  background: #fff1f1;
  color: #c62828;
}
.modal-open {
  overflow: hidden;
}
.admin-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.admin-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 26, 23, 0.58);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.admin-modal-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, #fffdfb 0%, #fff7f1 100%);
  box-shadow: 0 24px 60px rgba(37, 28, 24, 0.24);
  padding: 22px;
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.admin-modal-dialog.admin-modal-dialog-wide {
  width: min(1040px, calc(100vw - 32px));
}
.admin-modal.is-open .admin-modal-backdrop {
  opacity: 1;
}
.admin-modal.is-open .admin-modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.admin-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.admin-modal-title {
  margin: 0;
  font-family: 'Baloo 2', cursive;
  font-size: 28px;
  line-height: 1.05;
  color: var(--text);
}
.admin-modal-subtitle {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}
.admin-modal-close {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.admin-modal-close:hover {
  transform: translateY(-1px);
  border-color: var(--orange-mid);
  background: var(--orange-light);
  color: var(--orange);
}
.society-modal-preview {
  display: flex;
  justify-content: center;
}
.society-modal-image,
.society-modal-placeholder {
  width: 124px;
  height: 124px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: #fff8f2;
  object-fit: cover;
}
.society-modal-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.society-edit-form {
  width: 340px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fffdfb;
  box-shadow: 0 12px 28px rgba(62,39,35,0.08);
  display: grid;
  gap: 10px;
}
.society-edit-form-modal {
  width: 100%;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 14px;
}
.society-form-grid input[type="file"],
.society-edit-form-modal input[type="file"] {
  padding: 10px;
  border: 1.5px dashed var(--orange-mid);
  background: #fffaf6;
  color: var(--text-muted);
  cursor: pointer;
}
.society-form-grid input[type="file"]::file-selector-button,
.society-edit-form-modal input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--orange);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease;
}
.society-form-grid input[type="file"]::file-selector-button:hover,
.society-edit-form-modal input[type="file"]::file-selector-button:hover {
  background: #E64A19;
}
.society-form-grid input[type="file"]::-webkit-file-upload-button,
.society-edit-form-modal input[type="file"]::-webkit-file-upload-button {
  margin-right: 12px;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--orange);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease;
}
.society-form-grid input[type="file"]::-webkit-file-upload-button:hover,
.society-edit-form-modal input[type="file"]::-webkit-file-upload-button:hover {
  background: #E64A19;
}
.society-address-input {
  resize: vertical;
  min-height: 88px;
}

.nav-society-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.nsc-logo {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  font-family: 'Baloo 2', cursive;
  font-size: 10px;
  font-weight: 800;
}
.nsc-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.society-band {
  position: fixed;
  top: 82px;
  left: 0;
  width: 100%;
  height: 52px;
  z-index: 999;
  background: var(--sb-bg, rgba(255,112,67,.07));
  border-bottom: 1px solid var(--sb-border, rgba(255,112,67,.15));
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.society-band.has-banner {
  border-bottom-color: rgba(255,255,255,.15);
}
.sb-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.58);
}
.sb-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
}
.sb-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sb-logo-circle {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  font-family: 'Baloo 2', cursive;
  font-size: 12px;
  font-weight: 800;
}
.sb-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sb-name {
  font-family: 'Baloo 2', cursive;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
.sb-tagline {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  margin-top: 4px;
  opacity: 0.78;
}
.sb-sep {
  width: 1px;
  height: 20px;
  background: currentColor;
  opacity: 0.18;
  margin: 0 18px;
  flex-shrink: 0;
}
.sb-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.sb-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.sb-stat span {
  font-family: 'Baloo 2', cursive;
  font-size: 14px;
  font-weight: 800;
}
.sb-stat-sep {
  width: 1px;
  height: 14px;
  background: currentColor;
  opacity: 0.18;
}
.sb-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sb-domain {
  font-family: 'Baloo 2', cursive;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  opacity: 0.88;
}
.sb-powered {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.45;
}
.home-body .hero {
  padding-top: 170px;
}
.society-subdomain-chip {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--orange-light);
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
}
.society-branding-btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  background: #fff;
  transition: all 0.2s ease;
}
.society-branding-btn:hover {
  border-color: var(--orange-mid);
  color: var(--orange);
  background: var(--orange-light);
  transform: translateY(-1px);
}
.society-branding-btn svg,
.society-branding-btn i {
  width: 14px;
  height: 14px;
}
.society-branding-page {
  padding-bottom: 32px;
}
.society-branding-back {
  width: auto;
}
.society-branding-layout {
  display: grid;
  grid-template-columns: minmax(340px, 440px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.society-branding-panel,
.society-branding-preview {
  border: 1px solid var(--border);
  background: #fffdfb;
  box-shadow: 0 12px 28px rgba(62,39,35,0.08);
  border-radius: 24px;
  overflow: hidden;
}
.society-branding-panel-head,
.society-branding-preview-head {
  padding: 22px 24px 0;
}
.society-branding-panel-head h3,
.society-branding-preview-head h3 {
  margin: 0 0 6px;
}
.society-branding-panel-head p,
.society-branding-preview-head p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}
.society-branding-switcher {
  padding: 18px 24px;
  display: grid;
  gap: 10px;
}
.society-branding-pill {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 16px;
  color: var(--text);
  background: #fff;
  transition: all 0.2s ease;
}
.society-branding-pill.active,
.society-branding-pill:hover {
  border-color: var(--orange-mid);
  background: var(--orange-light);
}
.society-branding-pill-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
}
.society-branding-pill strong,
.society-branding-pill small {
  display: block;
}
.society-branding-pill small {
  color: var(--text-muted);
  margin-top: 2px;
}
.society-branding-form {
  padding: 0 24px 24px;
}
.society-branding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.society-branding-grid label,
.society-branding-color-row label,
.society-branding-upload label {
  display: grid;
  gap: 7px;
}
.society-branding-grid-full {
  grid-column: 1 / -1;
}
.society-branding-grid span,
.society-branding-color-row span,
.society-branding-upload span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}
.society-branding-color-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.society-branding-color {
  min-height: 48px;
  padding: 6px;
}
.society-branding-upload-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.society-branding-upload {
  position: relative;
}
.society-branding-file-input {
  position: absolute;
  inset: 22px 0 auto 0;
  width: 100%;
  height: 58px;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.society-branding-file-trigger {
  min-height: 58px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffaf5 0%, #fff3e8 100%);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.society-branding-file-trigger strong,
.society-branding-file-trigger small {
  display: block;
}
.society-branding-file-trigger strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}
.society-branding-file-trigger small {
  margin-left: auto;
  min-width: 0;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
.society-branding-upload:hover .society-branding-file-trigger,
.society-branding-file-input:focus + .society-branding-file-trigger {
  border-color: var(--orange-mid);
  box-shadow: 0 10px 24px rgba(255,112,67,0.14);
  transform: translateY(-1px);
}
.society-branding-upload-preview,
.society-branding-upload-empty {
  width: 100%;
  height: 110px;
  margin-top: 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff8f2;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  padding: 12px;
}
.society-branding-upload-preview.is-banner,
.society-branding-upload-empty.is-banner {
  object-fit: cover;
}
.society-branding-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}
.society-preview-browser {
  padding: 24px;
}
.society-preview-browser-top {
  height: 38px;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: #f7f3ef;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}
.society-preview-browser-top > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d9cfc7;
}
.society-preview-url {
  margin-left: 10px;
  flex: 1;
  min-width: 0;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 11px;
  color: var(--text-muted);
}
.society-preview-stage {
  border: 1px solid var(--border);
  border-radius: 0 0 18px 18px;
  overflow: hidden;
  background: #fff;
}
.society-preview-nav {
  padding: 14px 18px;
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid var(--border);
}
.society-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}
.society-preview-chip-logo {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  overflow: hidden;
}
.society-preview-chip-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.society-preview-band {
  position: relative;
  min-height: 72px;
  border-bottom: 1px solid var(--border);
}
.society-preview-band-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
  display: none;
}
.society-preview-band-content {
  position: relative;
  z-index: 1;
  min-height: 72px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.society-preview-band-content strong,
.society-preview-band-content span {
  display: block;
}
.society-preview-band-content strong {
  font-family: 'Baloo 2', cursive;
  font-size: 18px;
}
.society-preview-band-content > div:first-child span {
  opacity: 0.8;
  font-size: 12px;
}
.society-preview-stats {
  display: flex;
  gap: 12px;
  font-size: 11px;
  font-weight: 800;
}
.society-preview-hero {
  padding: 22px 18px 24px;
}
.society-preview-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--orange-light);
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
}
.society-preview-hero h2 {
  margin: 14px 0 8px;
  font-size: 34px;
  line-height: 1.05;
}
.society-preview-hero p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}
.society-preview-buttons {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.society-preview-button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  font-size: 12px;
  font-weight: 800;
  background: #fff;
}
.society-preview-button.primary {
  color: #fff;
  border-color: transparent;
}

@media (max-width: 980px) {
  .users-form-grid { grid-template-columns: 1fr; }
  .society-form-grid { grid-template-columns: 1fr; }
  .society-list-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .society-list-actions {
    justify-content: flex-start;
  }
  .society-edit-form {
    width: min(100%, 340px);
  }
  .admin-modal {
    padding: 14px;
  }
  .admin-modal-dialog {
    width: 100%;
    max-height: calc(100vh - 28px);
    padding: 18px;
    border-radius: 22px;
  }
  .nav-society-chip {
    display: none;
  }
  .society-band {
    height: auto;
    min-height: 52px;
  }
  .sb-inner {
    padding: 10px 20px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .sb-sep {
    display: none;
  }
  .home-body .hero {
    padding-top: 188px;
  }
  .society-branding-layout {
    grid-template-columns: 1fr;
  }
  .society-branding-grid,
  .society-branding-color-row,
  .society-branding-upload-row {
    grid-template-columns: 1fr;
  }
}

/* RESIDENT DASHBOARD */
.resident-body {
  background: #fff8f2;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}
.welfare-body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  overflow: hidden;
}
.welfare-ref-sidebar {
  width: 252px;
  height: 100vh;
  background: #16213E;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
}
.welfare-ref-brand {
  padding: 18px 18px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.welfare-ref-brand-logo {
  width: 168px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}
.welfare-ref-mobile-notif-wrap {
  display: none;
  position: relative;
  flex-shrink: 0;
}
.welfare-ref-mobile-bell-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.welfare-ref-mobile-bell-btn:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.24);
  transform: translateY(-1px);
}
.welfare-ref-brand-copy {
  min-width: 0;
}
.welfare-ref-brand-name {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  display: block;
}
.welfare-ref-brand-role {
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.welfare-ref-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
  padding: 14px 18px 5px;
}
.welfare-ref-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px;
}
.welfare-ref-nav::-webkit-scrollbar {
  width: 0;
}
.welfare-ref-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 11px;
  cursor: pointer;
  color: rgba(255,255,255,.45);
  font-size: 13px;
  font-weight: 600;
  transition: all .2s ease;
  margin-bottom: 2px;
  position: relative;
  text-decoration: none;
}
.welfare-ref-nav-item:hover {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.8);
}
.welfare-ref-nav-item.active {
  background: rgba(255,112,67,.18);
  color: var(--orange);
}
.welfare-ref-nav-item.active svg {
  color: var(--orange);
}
.welfare-ref-badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.welfare-ref-badge.red {
  background: var(--red);
}
.welfare-ref-badge.blue {
  background: #42A5F5;
}
.welfare-ref-user {
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 10px;
}
.welfare-ref-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #FF8A65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.welfare-ref-user-copy {
  flex: 1;
  min-width: 0;
}
.welfare-ref-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.welfare-ref-user-role {
  font-size: 10px;
  color: rgba(255,255,255,.38);
}
.welfare-ref-logout {
  color: rgba(255,255,255,.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.welfare-ref-main {
  margin-left: 252px;
  flex: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.welfare-ref-topbar {
  height: 64px;
  background: rgba(255,250,245,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  flex-shrink: 0;
}
.welfare-ref-topbar-copy {
  min-width: 0;
}
.welfare-ref-topbar-left {
  min-width: 0;
}
.welfare-ref-topbar-left h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.welfare-ref-topbar-left p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 1px;
}
.welfare-ref-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.welfare-ref-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255,112,67,.3);
  background: rgba(255,112,67,.1);
  color: #E64A19;
}
.welfare-ref-icon-btn {
  min-width: 156px;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  cursor: pointer;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 10px 24px rgba(255,112,67,.12);
  transition: all .2s ease;
  position: relative;
}
.welfare-ref-icon-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 16px 30px rgba(255,112,67,.18);
  transform: translateY(-1px);
}
.welfare-ref-bell-label {
  white-space: nowrap;
}
.welfare-ref-notif-wrap {
  position: relative;
}
.welfare-ref-bell-badge {
  position: static;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: auto;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(255,112,67,.28);
}
.welfare-ref-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--cream);
}
.welfare-ref-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}
.welfare-ref-tab-page {
  display: none;
}
.welfare-ref-tab-page.active {
  display: block;
  animation: residentRefFadeIn .25s ease;
}
.welfare-ref-stat-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.welfare-ref-stat-card,
.welfare-ref-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}
.welfare-ref-stat-card {
  transition: all .22s ease;
}
.welfare-ref-stat-card:hover,
.welfare-ref-card:hover {
  border-color: var(--orange-mid);
  box-shadow: 0 8px 24px rgba(255,112,67,.08);
}
.welfare-ref-stat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}
.welfare-ref-stat-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.welfare-ref-stat-ico.orange { background: var(--orange-light); color: var(--orange); }
.welfare-ref-stat-ico.teal { background: var(--teal-light); color: var(--teal); }
.welfare-ref-stat-ico.purple { background: var(--purple-light); color: var(--purple); }
.welfare-ref-stat-ico.red { background: #FFEBEE; color: var(--red); }
.welfare-ref-stat-ico.green { background: var(--green-light); color: var(--green-dark); }
.welfare-ref-stat-ico.blue { background: #E3F2FD; color: #1565C0; }
.welfare-ref-stat-delta {
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.welfare-ref-stat-delta.up { color: var(--green-dark); }
.welfare-ref-stat-delta.down { color: var(--red); }
.welfare-ref-stat-num {
  font-family: 'Baloo 2', cursive;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  color: var(--text);
}
.welfare-ref-stat-num.money {
  font-size: 22px;
}
.welfare-ref-stat-label {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
.welfare-ref-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  margin-bottom: 20px;
}
.welfare-ref-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.welfare-ref-three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.welfare-ref-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.welfare-ref-card-title {
  font-family: 'Baloo 2', cursive;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.welfare-ref-card-title svg {
  color: var(--orange);
}
.welfare-ref-card-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.welfare-ref-list-item,
.welfare-ref-team-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.welfare-ref-list-item:last-child,
.welfare-ref-team-item:last-child {
  border-bottom: 0;
}
.welfare-ref-list-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.welfare-ref-list-ico.red { background: #FFEBEE; color: var(--red); }
.welfare-ref-list-ico.orange { background: var(--orange-light); color: var(--orange); }
.welfare-ref-list-ico.purple { background: var(--purple-light); color: var(--purple); }
.welfare-ref-list-body,
.welfare-ref-team-body {
  flex: 1;
}
.welfare-ref-list-title,
.welfare-ref-team-name,
.welfare-ref-alert-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.welfare-ref-list-sub,
.welfare-ref-team-sub,
.welfare-ref-alert-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.welfare-ref-list-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.welfare-ref-pending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.welfare-ref-pending-item:last-child {
  border-bottom: 0;
}
.welfare-ref-pending-main {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.welfare-ref-pending-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.welfare-ref-pending-mark.red { background: #FFEBEE; color: var(--red); }
.welfare-ref-pending-mark.orange { background: var(--orange-light); color: var(--orange); }
.welfare-ref-pending-mark.blue { background: #E3F2FD; color: #1565C0; }
.welfare-ref-mini-btn {
  border: 0;
  background: var(--orange);
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.welfare-ref-team-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #FF8A65);
  color: #fff;
  font-family: 'Baloo 2', cursive;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.welfare-ref-team-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--green-light);
  color: var(--green-dark);
  white-space: nowrap;
}
.welfare-ref-center-card {
  text-align: center;
  padding: 24px 20px;
}
.welfare-ref-prog-circle {
  width: 122px;
  height: 122px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Baloo 2', cursive;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}
.welfare-ref-prog-circle.orange { background: conic-gradient(var(--orange) 0 73%, var(--orange-light) 73% 100%); }
.welfare-ref-prog-circle.teal { background: conic-gradient(var(--teal) 0 56%, var(--teal-light) 56% 100%); }
.welfare-ref-prog-circle span {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.welfare-ref-prog-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-top: 12px;
}
.welfare-ref-prog-copy {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}
.welfare-ref-alert-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.welfare-ref-alert-item:last-child {
  border-bottom: 0;
}
.welfare-ref-alert-bar {
  width: 4px;
  border-radius: 999px;
  flex-shrink: 0;
}
.welfare-ref-alert-bar.red { background: var(--red); }
.welfare-ref-alert-bar.orange { background: var(--orange); }
.welfare-ref-alert-bar.blue { background: #42A5F5; }
.welfare-ref-page-head {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.welfare-ref-page-head h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.welfare-ref-page-head p {
  font-size: 13px;
  color: var(--text-muted);
}
.welfare-ref-page-actions {
  display: flex;
  gap: 8px;
}
.welfare-ref-btn-primary,
.welfare-ref-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 11px;
  font-family: 'Baloo 2', cursive;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  min-height: 38px;
  cursor: pointer;
  transition: all .22s ease;
  box-sizing: border-box;
  vertical-align: middle;
}
.welfare-ref-btn-primary {
  padding: 9px 18px;
  background: var(--orange);
  color: #fff;
  border: 0;
  box-shadow: 0 4px 12px rgba(255,112,67,.25);
}
.welfare-ref-btn-primary:hover {
  background: var(--orange-dark);
}
.welfare-ref-btn-outline {
  padding: 9px 18px;
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.welfare-ref-btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.welfare-ref-btn-teal {
  padding: 9px 18px;
  background: var(--teal);
  color: #fff;
  border: 0;
  box-shadow: 0 4px 12px rgba(38,166,154,.22);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 11px;
  font-family: 'Baloo 2', cursive;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .22s ease;
}
.welfare-ref-btn-teal:hover {
  background: var(--teal-dark);
}
.welfare-ref-btn-sm {
  padding: 6px 13px;
  font-size: 12px;
  border-radius: 9px;
  min-height: 34px;
}
.welfare-ref-gap-16 {
  margin-bottom: 16px;
}
.welfare-ref-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.welfare-ref-search-inp {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 9px 14px;
  flex: 1;
  min-width: 200px;
  transition: border-color .2s;
}
.welfare-ref-search-inp:focus-within {
  border-color: var(--orange);
}
.welfare-ref-search-inp svg {
  color: var(--text-muted);
  flex-shrink: 0;
}
.welfare-ref-search-inp input {
  border: 0;
  outline: none;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  width: 100%;
  background: transparent;
}
.welfare-ref-search-inp input::placeholder {
  color: #C4A99E;
}
.welfare-ref-file-input {
  width: 100%;
  border: 1.5px dashed rgba(255, 112, 67, 0.24);
  border-radius: 16px;
  background: #fff;
  padding: 10px 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.welfare-ref-file-input:hover {
  border-color: rgba(255, 112, 67, 0.52);
  background: #fff8f2;
}
.welfare-ref-file-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 112, 67, 0.14);
}
.welfare-ref-file-input::file-selector-button {
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  padding: 10px 14px;
  margin-right: 12px;
  font-family: 'Baloo 2', cursive;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 112, 67, 0.22);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.welfare-ref-file-input::file-selector-button:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 112, 67, 0.24);
}
.welfare-ref-file-input::-webkit-file-upload-button {
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  padding: 10px 14px;
  margin-right: 12px;
  font-family: 'Baloo 2', cursive;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 112, 67, 0.22);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.welfare-ref-file-input::-webkit-file-upload-button:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 112, 67, 0.24);
}
.welfare-dog-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.welfare-dog-image-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.welfare-dog-image-card img {
  width: 100%;
  height: 74px;
  object-fit: cover;
  display: block;
}
.welfare-dog-image-card label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}
.welfare-dog-image-card input[type="checkbox"] {
  accent-color: var(--orange);
}
.welfare-dog-image-empty {
  margin-top: 10px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}
.welfare-ref-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.welfare-ref-filter-btn {
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.welfare-ref-filter-btn.active,
.welfare-ref-filter-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-light);
}
.welfare-ref-table-wrap {
  overflow-x: auto;
}
.welfare-ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.welfare-ref-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}
.welfare-ref-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.welfare-ref-table tr:last-child td {
  border-bottom: 0;
}
.welfare-ref-table tr:hover td {
  background: var(--cream);
}
.welfare-ref-table-name {
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.welfare-ref-table-ava {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange-light);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.welfare-ref-table-muted {
  color: var(--text-muted);
  font-weight: 700;
}
.welfare-ref-table-muted.small {
  font-size: 12px;
  font-weight: 600;
}
.welfare-ref-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
}
.welfare-ref-tag.block {
  background: #E3F2FD;
  color: #1565C0;
}
.welfare-ref-tag.vacc,
.welfare-ref-tag.ok {
  background: var(--green-light);
  color: var(--green-dark);
}
.welfare-ref-tag.care {
  background: #FFEBEE;
  color: var(--red);
}
.welfare-ref-tag.new {
  background: var(--orange-light);
  color: var(--orange);
}
.welfare-ref-table-actions {
  display: flex;
  gap: 6px;
}
.welfare-ref-ia {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.welfare-ref-ia.del {
  color: var(--red);
}
.welfare-ref-health-item,
.welfare-ref-due-item,
.welfare-ref-vet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.welfare-ref-health-item:last-child,
.welfare-ref-due-item:last-child,
.welfare-ref-vet-item:last-child {
  border-bottom: 0;
}
.welfare-ref-health-date {
  text-align: center;
  min-width: 44px;
}
.welfare-ref-health-day {
  font-family: 'Baloo 2', cursive;
  font-size: 20px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.welfare-ref-health-mon {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}
.welfare-ref-health-body {
  flex: 1;
}
.welfare-ref-health-title,
.welfare-ref-due-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.welfare-ref-health-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  margin-top: 2px;
  flex-wrap: wrap;
}
.welfare-ref-health-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.welfare-ref-health-side {
  text-align: right;
}
.welfare-ref-health-status,
.welfare-ref-due-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.welfare-ref-health-status.done {
  background: var(--green-light);
  color: var(--green-dark);
}
.welfare-ref-health-status.upcoming {
  background: var(--orange-light);
  color: var(--orange);
}
.welfare-ref-health-status.care {
  background: var(--red-light);
  color: var(--red);
}
.welfare-ref-health-count {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.welfare-ref-due-ava {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange-light);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.welfare-ref-due-title span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.welfare-ref-due-sub {
  font-size: 11px;
  color: var(--text-muted);
}
.welfare-ref-due-pill.overdue {
  background: var(--red-light);
  color: var(--red);
}
.welfare-ref-due-pill.scheduled,
.welfare-ref-due-pill.postop-recovering {
  background: var(--yellow-light);
  color: #E65100;
}
.welfare-ref-due-pill.postop-good {
  background: var(--teal-light);
  color: var(--teal-dark);
}
.welfare-ref-due-pill.postop-observation {
  background: #E8F2FF;
  color: #2B6CB0;
}
.welfare-ref-due-pill.postop-cleared,
.welfare-ref-due-pill.available {
  background: var(--green-light);
  color: var(--green-dark);
}
.welfare-ref-due-pill.unavailable {
  background: var(--red-light);
  color: var(--red);
}
.welfare-ref-vet-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #4DB6AC);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
.welfare-ref-placeholder {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}
.welfare-ref-placeholder h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.welfare-ref-placeholder p {
  color: var(--text-muted);
  line-height: 1.6;
}
}
.resident-reference-body {
  display: flex;
  overflow: hidden;
}
.resident-ref-sidebar {
  width: 240px;
  height: 100vh;
  background: #2C1810;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
}
.resident-ref-brand {
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.resident-ref-brand-logo {
  width: 168px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.resident-ref-mobile-notif-wrap {
  display: none;
  position: relative;
  flex-shrink: 0;
}
.resident-ref-mobile-bell-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.resident-ref-mobile-bell-btn:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.24);
  transform: translateY(-1px);
}
.resident-ref-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: 18px 20px 6px;
}
.resident-ref-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px;
}
.resident-ref-nav::-webkit-scrollbar {
  width: 0;
}
.resident-ref-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,.55);
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
  margin-bottom: 2px;
  position: relative;
  text-decoration: none;
}
.resident-ref-nav-item:hover {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.85);
}
.resident-ref-nav-item.active {
  background: rgba(255,112,67,.18);
  color: var(--orange);
}
.resident-ref-nav-item.active svg {
  color: var(--orange);
}
.resident-ref-nav-badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--orange);
  color: white;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.resident-ref-user {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  gap: 10px;
}
.resident-ref-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #FF8A65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.resident-ref-user-info {
  flex: 1;
  min-width: 0;
}
.resident-ref-user-name {
  font-size: 13px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.resident-ref-user-flat {
  font-size: 11px;
  color: rgba(255,255,255,.45);
}
.resident-ref-logout {
  color: rgba(255,255,255,.3);
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.resident-ref-logout:hover {
  color: var(--orange);
}
.resident-ref-main {
  margin-left: 240px;
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #fff8f2;
}
.resident-ref-topbar {
  min-height: 72px;
  background: rgba(255,250,245,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 40;
}
.resident-ref-topbar-left h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.resident-ref-topbar-left p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.resident-ref-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.resident-ref-notif-wrap {
  position: relative;
}
.resident-ref-greeting {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.resident-ref-greeting strong {
  color: var(--orange);
}
.resident-ref-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all .2s ease;
  position: relative;
}
.resident-ref-icon-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.resident-ref-bell-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(255,112,67,.28);
}
.resident-ref-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 28px;
}
.resident-ref-content::-webkit-scrollbar {
  width: 6px;
}
.resident-ref-content::-webkit-scrollbar-track {
  background: transparent;
}
.resident-ref-content::-webkit-scrollbar-thumb {
  background: var(--orange-mid);
  border-radius: 999px;
}
.resident-ref-tab-page {
  display: none;
}
.resident-ref-tab-page.active {
  display: block;
  animation: residentRefFadeIn .3s ease;
}
@keyframes residentRefFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.resident-ref-alert-banner {
  background: linear-gradient(135deg, var(--orange), #FF8A65);
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  color: #fff;
}
.resident-ref-alert-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.resident-ref-alert-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.2);
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.resident-ref-alert-title {
  font-family: 'Baloo 2', cursive;
  font-size: 15px;
  font-weight: 700;
}
.resident-ref-alert-sub {
  font-size: 12px;
  opacity: .88;
  margin-top: 1px;
}
.resident-ref-alert-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
}
.resident-ref-alert-close:hover {
  background: rgba(255,255,255,.35);
}
.resident-ref-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.resident-ref-stat-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .25s ease;
}
.resident-ref-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255,112,67,.1);
  border-color: var(--orange-mid);
}
.resident-ref-stat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.resident-ref-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.resident-ref-stat-icon.orange {
  background: var(--orange-light);
  color: var(--orange);
}
.resident-ref-stat-icon.teal {
  background: var(--teal-light);
  color: var(--teal);
}
.resident-ref-stat-icon.yellow {
  background: var(--yellow-light);
  color: #E65100;
}
.resident-ref-stat-icon.green {
  background: var(--green-light);
  color: var(--green-dark);
}
.resident-ref-stat-trend {
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.resident-ref-stat-trend.up {
  color: var(--green-dark);
}
.resident-ref-stat-trend.warn {
  color: var(--error);
}
.resident-ref-stat-num {
  font-family: 'Baloo 2', cursive;
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
  color: var(--text);
}
.resident-ref-money {
  font-size: 28px;
}
.resident-ref-stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.resident-ref-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  margin-bottom: 20px;
}
.resident-ref-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}
.resident-ref-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.resident-ref-card-title {
  font-family: 'Baloo 2', cursive;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.resident-ref-card-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: opacity .2s ease;
}
.resident-ref-card-link:hover {
  opacity: .7;
}
.resident-ref-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.resident-ref-activity-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.resident-ref-act-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.resident-ref-act-ico.orange {
  background: var(--orange-light);
  color: var(--orange);
}
.resident-ref-act-ico.teal {
  background: var(--teal-light);
  color: var(--teal);
}
.resident-ref-act-ico.yellow {
  background: var(--yellow-light);
  color: #E65100;
}
.resident-ref-act-ico.green {
  background: var(--green-light);
  color: var(--green-dark);
}
.resident-ref-act-ico.red {
  background: #FFEBEE;
  color: var(--error);
}
.resident-ref-act-body {
  flex: 1;
}
.resident-ref-act-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.resident-ref-act-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.resident-ref-act-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.resident-ref-side-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.resident-ref-qa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.resident-ref-qa-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  text-decoration: none;
  transition: all .2s ease;
}
.resident-ref-qa-btn:hover {
  border-color: var(--orange-mid);
  box-shadow: 0 4px 14px rgba(255,112,67,.1);
  transform: translateY(-2px);
}
.resident-ref-qa-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.resident-ref-qa-ico.orange {
  background: var(--orange-light);
  color: var(--orange);
}
.resident-ref-qa-ico.teal {
  background: var(--teal-light);
  color: var(--teal);
}
.resident-ref-qa-ico.green {
  background: var(--green-light);
  color: var(--green-dark);
}
.resident-ref-qa-ico.purple {
  background: var(--purple-light);
  color: var(--purple);
}
.resident-ref-qa-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.resident-ref-qa-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: -4px;
}
.resident-ref-event-list {
  display: flex;
  flex-direction: column;
}
.resident-ref-event-item {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.resident-ref-event-item:last-child {
  border-bottom: 0;
}
.resident-ref-event-date-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
  gap: 4px;
}
.resident-ref-event-date-day {
  font-family: 'Baloo 2', cursive;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  color: var(--orange);
}
.resident-ref-event-date-mon {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.resident-ref-event-divider {
  width: 2px;
  background: var(--border);
  border-radius: 2px;
  flex: 1;
  margin: 2px 0;
}
.resident-ref-event-body {
  flex: 1;
}
.resident-ref-event-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.resident-ref-event-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.resident-ref-event-chip {
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
}
.resident-ref-event-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 8px;
  align-self: center;
}
.resident-ref-event-badge.upcoming {
  background: var(--orange-light);
  color: var(--orange);
}
.resident-ref-event-badge.today {
  background: var(--orange);
  color: #fff;
}
.resident-ref-dog-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.resident-ref-dog-mini {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: var(--cream);
  transition: all .25s ease;
}
.resident-ref-dog-mini:hover {
  transform: translateY(-3px);
  border-color: var(--orange-mid);
  box-shadow: 0 6px 18px rgba(255,112,67,.1);
}
.resident-ref-dog-mini-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.resident-ref-dog-mini-ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-light);
  color: var(--orange);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  flex-shrink: 0;
}
.resident-ref-dog-mini-ava.yellow {
  background: var(--yellow-light);
  color: #E65100;
}
.resident-ref-dog-mini-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.resident-ref-dog-mini-loc {
  font-size: 11px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 1px;
}
.resident-ref-dog-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.resident-ref-d-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
}
.resident-ref-d-tag.vacc {
  background: var(--teal-light);
  color: var(--teal-dark);
}
.resident-ref-d-tag.ster {
  background: var(--yellow-light);
  color: #F57F17;
}
.resident-ref-d-tag.care {
  background: #FFEBEE;
  color: var(--error);
}
.resident-ref-d-tag.male {
  background: var(--purple-light);
  color: var(--purple);
}
.resident-ref-d-tag.female {
  background: #FCE4EC;
  color: #C2185B;
}
.resident-ref-d-tag.behavior {
  background: #EDE7F6;
  color: #6A1B9A;
}
.resident-ref-page-header {
  margin-bottom: 18px;
}
.resident-ref-page-header h2 {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--text);
}
.resident-ref-page-header p {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}
.search-bar {
  width: 100%;
}
.search-inp {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.search-inp:focus-within {
  border-color: var(--orange-mid);
  box-shadow: 0 0 0 4px rgba(255, 112, 67, 0.08);
  background: #fffdfb;
}
.search-inp span,
.search-inp svg {
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-inp input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.search-inp input::placeholder {
  color: #C7A89A;
  font-weight: 600;
}
.resident-ref-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.resident-ref-filter-btn {
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 11px 18px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s ease;
}
.resident-ref-filter-btn:hover {
  border-color: var(--orange-mid);
  color: var(--orange);
}
.resident-ref-filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255,112,67,.18);
}
.resident-ref-empty {
  background: #fff;
  border: 1.5px dashed var(--border);
  border-radius: 16px;
  padding: 24px;
  color: var(--text-muted);
  font-weight: 700;
}
.resident-ref-fp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.resident-ref-fp-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all .25s ease;
}
.resident-ref-fp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--teal);
}
.resident-ref-fp-thumb {
  height: 126px;
  background: linear-gradient(135deg, var(--teal-light) 0%, #B2DFDB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  position: relative;
  overflow: hidden;
}
.resident-ref-fp-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(38,166,154,.06) 20px, rgba(38,166,154,.06) 40px);
}
.resident-ref-fp-body {
  padding: 18px 20px;
}
.resident-ref-fp-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.resident-ref-fp-loc {
  font-size: 13px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}
.resident-ref-fp-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.resident-ref-fp-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.resident-ref-fp-tag.morning {
  background: var(--yellow-light);
  color: #E65100;
}
.resident-ref-fp-tag.evening {
  background: #EDE7F6;
  color: #6A1B9A;
}
.resident-ref-fp-tag.dogs {
  background: var(--orange-light);
  color: var(--orange);
}
.resident-ref-stack-gap {
  margin-bottom: 20px;
}
.resident-ref-page-header-split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.resident-ref-page-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}
.resident-ref-primary-btn {
  border: 0;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  padding: 12px 20px;
  font-family: 'Baloo 2', cursive;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255,112,67,.22);
}
.resident-ref-secondary-btn {
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all .2s ease;
}
.resident-ref-secondary-btn:hover {
  border-color: var(--orange-mid);
  color: var(--orange);
  background: var(--orange-light);
}
.resident-ref-report-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.resident-ref-report-item:last-child {
  border-bottom: 0;
}
.resident-ref-report-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.resident-ref-report-ico.open {
  background: #FFEBEE;
  color: var(--error);
}
.resident-ref-report-ico.progress {
  background: var(--yellow-light);
  color: #E65100;
}
.resident-ref-report-ico.resolved {
  background: var(--green-light);
  color: var(--green-dark);
}
.resident-ref-report-body {
  flex: 1;
}
.resident-ref-report-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.resident-ref-report-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.resident-ref-report-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #9A7F73;
}
.resident-ref-report-status {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.resident-ref-report-status.open {
  background: #FFEBEE;
  color: var(--error);
}
.resident-ref-report-status.progress {
  background: var(--yellow-light);
  color: #E65100;
}
.resident-ref-report-status.resolved {
  background: var(--green-light);
  color: var(--green-dark);
}
.resident-ref-donate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.resident-ref-form-copy {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.resident-ref-donate-amounts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 4px;
}
.resident-ref-da-btn {
  font-family: 'Baloo 2', cursive;
  font-size: 15px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: all .2s ease;
}
.resident-ref-da-btn:hover,
.resident-ref-da-btn.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.resident-ref-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.resident-ref-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.resident-ref-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  outline: none;
}
.resident-ref-field input:focus {
  border-color: var(--orange-mid);
}
.resident-ref-field select,
.resident-ref-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  outline: none;
}
.resident-ref-field select:focus,
.resident-ref-field textarea:focus {
  border-color: var(--orange-mid);
}
.resident-ref-field textarea {
  resize: vertical;
  min-height: 120px;
}
.resident-ref-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--orange) 50%),
    linear-gradient(135deg, var(--orange) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
.resident-report-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}
.resident-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.resident-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}
.resident-ref-amount-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 10px 14px;
}
.resident-ref-amount-input:focus-within {
  border-color: var(--orange-mid);
}
.resident-ref-amount-currency {
  font-family: 'Baloo 2', cursive;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
}
.resident-ref-amount-input input {
  border: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-family: 'Baloo 2', cursive;
  font-size: 16px;
  font-weight: 700;
}
.resident-ref-donate-submit {
  width: 100%;
  padding: 12px;
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 12px;
  font-family: 'Baloo 2', cursive;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(255,112,67,.2);
}
.resident-ref-donate-submit:hover {
  background: #E85D36;
  transform: translateY(-2px);
}
.resident-ref-donation-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.resident-ref-donation-item:last-child {
  border-bottom: 0;
}
.resident-ref-donation-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--orange-light);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.resident-ref-donation-body {
  flex: 1;
}
.resident-ref-donation-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.resident-ref-donation-date {
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.resident-ref-donation-amt {
  font-family: 'Baloo 2', cursive;
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
}
.resident-ref-donate-summary {
  background: var(--green-light);
  border-color: rgba(102,187,106,.3);
}
.resident-ref-donate-summary-inner {
  text-align: center;
  padding: 8px 0;
}
.resident-ref-donate-total {
  font-family: 'Baloo 2', cursive;
  font-size: 28px;
  font-weight: 800;
  color: var(--green-dark);
}
.resident-ref-donate-total-label {
  font-size: 13px;
  color: var(--green-dark);
  font-weight: 700;
  margin-top: 2px;
}
.resident-ref-donate-total-copy {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.6;
}
.resident-ref-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 8px;
  transition: background .2s ease;
  border: 1.5px solid transparent;
  position: relative;
}
.resident-ref-notif-item.unread {
  background: var(--orange-light);
  border-color: var(--orange-mid);
}
.resident-ref-notif-item:hover {
  background: var(--orange-light);
}
.resident-ref-notif-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.resident-ref-notif-ico.orange {
  background: var(--orange-mid);
  color: #D85A34;
}
.resident-ref-notif-ico.teal {
  background: var(--teal-light);
  color: #0D8B80;
}
.resident-ref-notif-ico.green {
  background: var(--green-light);
  color: var(--green-dark);
}
.resident-ref-notif-ico.yellow {
  background: var(--yellow-light);
  color: #E65100;
}
.resident-ref-notif-body {
  flex: 1;
}
.resident-ref-notif-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.resident-ref-notif-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.resident-ref-notif-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.resident-ref-notif-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  align-self: center;
  flex-shrink: 0;
}
.resident-ref-settings-section {
  margin-bottom: 28px;
}
.resident-ref-settings-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.resident-ref-settings-section h3 svg {
  color: var(--orange);
}
.resident-ref-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  margin-bottom: 8px;
}
.resident-ref-settings-row:hover {
  border-color: var(--orange-mid);
}
.resident-ref-settings-row.danger {
  border-color: #FFCDD2;
}
.resident-ref-settings-static {
  align-items: center;
}
.resident-ref-settings-note {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.resident-ref-settings-left strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.resident-ref-settings-left span {
  font-size: 12px;
  color: var(--text-muted);
}
.resident-ref-small-btn {
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  transition: all .2s ease;
  flex-shrink: 0;
}
.resident-ref-small-btn:hover {
  border-color: var(--orange-mid);
  color: var(--orange);
}
.resident-settings-form-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.resident-settings-modal-form {
  margin-top: 0;
}
.resident-ref-settings-submit {
  align-self: flex-start;
}
.resident-ref-toggle {
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
  border: none;
  display: inline-flex;
}
.resident-ref-toggle.on {
  background: var(--orange);
}
.resident-ref-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.resident-ref-toggle::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.resident-ref-toggle.on::after {
  transform: translateX(20px);
}
.resident-ref-account-card {
  margin-bottom: 12px;
}
.resident-ref-account-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.resident-ref-account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #FF8A65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Baloo 2', cursive;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}
.resident-ref-account-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.resident-ref-account-sub {
  font-size: 13px;
  color: var(--text-muted);
}
.resident-ref-account-pill-wrap {
  margin-top: 6px;
}
.resident-ref-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
}
.resident-ref-danger-btn {
  font-size: 12px;
  padding: 7px 14px;
  background: #FFEBEE;
  color: var(--error);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  flex-shrink: 0;
}
.resident-ref-danger-submit {
  border: 1px solid #ffcdd2;
}
.danger-text {
  color: var(--error) !important;
}
.resident-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px 26px 30px;
}
.resident-top {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 0 0 22px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.resident-overview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.resident-stat-card {
  background: linear-gradient(180deg, #fffdfb 0%, #fff7f1 100%);
  border: 1px solid var(--border);
  padding: 18px 18px 16px;
}
.resident-stat-card strong {
  display: block;
  font-family: 'Baloo 2', cursive;
  font-size: 30px;
  line-height: 1;
  color: var(--orange);
}
.resident-stat-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.resident-gallery-section,
.resident-support-section {
  margin-top: 20px;
}
.resident-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}
.resident-section-head h2 {
  font-size: 30px;
  line-height: 1;
}
.resident-section-head-stack {
  display: block;
}
.resident-section-note {
  max-width: 320px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}
.resident-dog-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.resident-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 18px;
  align-items: start;
}
.resident-dog-card {
  background: #fffdfb;
  border: 1px solid var(--border);
  overflow: hidden;
}
.resident-dog-media {
  position: relative;
  aspect-ratio: 1.18 / 1;
  background: #f7ede6;
}
.resident-dog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.resident-dog-media-overlay {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.resident-dog-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.resident-dog-chip.is-vaccinated {
  color: #00695C;
}
.resident-dog-chip.is-sterilized {
  color: #9a6200;
}
.resident-dog-chip.is-neutral {
  color: #8D6E63;
}
.resident-dog-body {
  padding: 16px 16px 18px;
}
.resident-dog-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}
.resident-dog-header h3 {
  margin: 0 0 4px;
  font-size: 22px;
}
.resident-dog-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}
.resident-dog-health {
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  background: #fff0e9;
  color: var(--orange);
}
.resident-dog-health.is-good {
  background: #e8f5e9;
  color: #2e7d32;
}
.resident-dog-health.is-watch {
  background: #fff4e8;
  color: #d16c00;
}
.resident-dog-meta {
  display: grid;
  gap: 12px;
}
.resident-dog-meta-item {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.resident-dog-meta-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}
.resident-dog-meta-item strong {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.resident-donate-panel,
.resident-info-panel,
.resident-empty-state {
  background: #fffdfb;
  border: 1px solid var(--border);
  padding: 20px;
}
.resident-info-panel {
  margin-top: 16px;
}
.resident-empty-state h3 {
  margin: 0 0 8px;
}
.resident-empty-state p {
  margin: 0;
  color: var(--text-muted);
}
.resident-info-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  display: grid;
  gap: 8px;
  line-height: 1.6;
}
.resident-donate-form {
  display: grid;
  gap: 12px;
}
.welfare-ref-vol-ava {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Baloo 2", cursive;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.welfare-ref-vol-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.welfare-ref-vol-status.is-on {
  background: #e8f5e9;
  color: #2e7d32;
}
.welfare-ref-vol-status.is-off {
  background: #f4f1ea;
  color: var(--text-muted);
}
.welfare-ref-table-strong {
  font-family: "Baloo 2", cursive;
  font-weight: 700;
  color: var(--text);
}
.welfare-ref-table-accent {
  font-family: "Baloo 2", cursive;
  font-weight: 700;
  color: var(--teal);
}
.welfare-ref-vol-pending-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.welfare-ref-vol-pending-row:last-child {
  border-bottom: 0;
}
.welfare-ref-vol-pending-ava {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Baloo 2", cursive;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
}
.welfare-ref-vol-pending-body {
  min-width: 0;
  flex: 1;
}
.welfare-ref-vol-pending-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.welfare-ref-btn-approve,
.welfare-ref-btn-reject {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: Nunito, sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.welfare-ref-btn-approve {
  background: var(--green);
  color: #fff;
}
.welfare-ref-btn-reject {
  background: var(--red-light);
  color: var(--red);
  border-color: #ffcdd2;
}
.welfare-ref-kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.welfare-ref-kb-col {
  background: var(--cream);
  border: 1.5px solid var(--border);
  padding: 16px;
}
.welfare-ref-kb-col-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.welfare-ref-kb-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Baloo 2", cursive;
  font-size: 14px;
  font-weight: 700;
}
.welfare-ref-kb-count {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}
.welfare-ref-kb-card {
  background: #fff;
  border: 1.5px solid var(--border);
  padding: 14px;
  margin-bottom: 10px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.welfare-ref-kb-card:last-child {
  margin-bottom: 0;
}
.welfare-ref-kb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 112, 67, 0.1);
}
.welfare-ref-kb-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.welfare-ref-kb-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.welfare-ref-kb-urgent {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  background: var(--red);
  color: #fff;
  border-radius: 7px;
}
.welfare-ref-kb-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}
.welfare-ref-kb-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.welfare-ref-kb-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}
.welfare-ref-kb-assign {
  margin-top: 10px;
}
.welfare-ref-kb-vol {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.welfare-ref-kb-mini-ava {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Baloo 2", cursive;
  font-size: 10px;
  font-weight: 800;
}
.welfare-ref-assign-sel {
  width: 100%;
  min-height: 38px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 0 12px;
  font-family: Nunito, sans-serif;
  font-size: 12px;
  font-weight: 700;
}
.welfare-ref-donation-goal {
  margin-bottom: 20px;
}
.welfare-ref-dg-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.welfare-ref-dg-pct {
  color: var(--orange);
  font-weight: 800;
}
.welfare-ref-dg-bar {
  height: 12px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.welfare-ref-dg-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #ff8a65);
  border-radius: 6px;
  transition: width .8s ease;
}
.welfare-ref-dg-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 11px;
  color: var(--text-muted);
}
.welfare-ref-expense-stack {
  margin-top: 16px;
}
.welfare-ref-expense-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.welfare-ref-expense-row:last-child {
  border-bottom: 0;
}
.welfare-ref-expense-label {
  width: 120px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
.welfare-ref-exp-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.welfare-ref-exp-bar-fill {
  height: 100%;
  border-radius: 3px;
}
.welfare-ref-expense-amt {
  width: 50px;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}
.welfare-ref-donor-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.welfare-ref-donor-row:last-child {
  border-bottom: 0;
}
.welfare-ref-donor-ava {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Baloo 2", cursive;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.welfare-ref-donor-body {
  min-width: 0;
  flex: 1;
}
.welfare-ref-donor-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.welfare-ref-donor-name span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.welfare-ref-donor-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.welfare-ref-donor-amt {
  font-family: "Baloo 2", cursive;
  font-size: 16px;
  font-weight: 800;
  color: var(--green-dark);
}
.welfare-ref-table-spent {
  color: var(--orange);
  font-weight: 700;
}
.welfare-ref-table-rem {
  color: var(--green-dark);
  font-weight: 700;
}
.welfare-ref-usage-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.welfare-ref-usage-row span {
  font-size: 11px;
  color: var(--text-muted);
}
.welfare-ref-usage-bar {
  width: 80px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.welfare-ref-usage-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 3px;
}
.welfare-ref-ann-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: Nunito, sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  outline: none;
  resize: none;
  transition: border-color .2s ease;
}
.welfare-ref-ann-form textarea:focus {
  border-color: var(--orange);
}
.welfare-ref-audience-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.welfare-ref-aud-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  cursor: pointer;
  transition: all .2s ease;
}
.welfare-ref-aud-chip.sel {
  background: var(--orange-light);
  border-color: var(--orange);
  color: var(--orange);
}
.welfare-ref-rfield {
  margin-bottom: 14px;
}
.welfare-ref-rfield:last-child {
  margin-bottom: 0;
}
.welfare-ref-rfield label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.welfare-ref-rfield input,
.welfare-ref-rfield select,
.welfare-ref-rfield textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  font-family: Nunito, sans-serif;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
}
.welfare-ref-rfield input:focus,
.welfare-ref-rfield select:focus,
.welfare-ref-rfield textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 112, 67, 0.09);
}
.welfare-ref-rfield select {
  appearance: none;
  cursor: pointer;
}
.welfare-ref-rfield textarea {
  min-height: 108px;
  line-height: 1.55;
  resize: vertical;
}
.welfare-ref-rfield textarea::placeholder {
  color: var(--text-muted);
}
.welfare-ref-rfield-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.welfare-ref-rfield-row.is-three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.welfare-ref-ann-send {
  width: 100%;
  justify-content: center;
}
.welfare-ref-ann-history-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.welfare-ref-ann-history-item:last-child {
  border-bottom: 0;
}
.welfare-ref-ann-ico {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-light);
  color: var(--orange);
  flex-shrink: 0;
}
.welfare-ref-ann-body {
  flex: 1;
  min-width: 0;
}
.welfare-ref-ann-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.welfare-ref-ann-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.welfare-ref-ann-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.welfare-ref-ann-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  background: var(--cream);
  color: var(--text-muted);
}
.welfare-ref-chart-wrap {
  overflow: hidden;
}
.welfare-ref-block-row {
  margin-bottom: 14px;
}
.welfare-ref-block-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.welfare-ref-block-head span:first-child {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.welfare-ref-block-head span:last-child {
  font-size: 11px;
  color: var(--text-muted);
}
.welfare-ref-block-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 3px;
}
.welfare-ref-block-fill {
  height: 100%;
  border-radius: 4px;
}
.welfare-ref-block-fill.vacc {
  background: var(--teal);
}
.welfare-ref-block-fill.ster {
  background: var(--purple);
}
.welfare-ref-chart-legend {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.welfare-ref-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
}
.welfare-ref-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}
.welfare-ref-chart-legend i.vacc {
  background: var(--teal);
}
.welfare-ref-chart-legend i.ster {
  background: var(--purple);
}
.welfare-ref-vert-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 140px;
  padding-top: 10px;
}
.welfare-ref-vert-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.welfare-ref-vert-val {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}
.welfare-ref-vert-val.is-active {
  color: var(--orange);
}
.welfare-ref-vert-val.is-green {
  color: var(--green-dark);
}
.welfare-ref-vert-bar,
.welfare-ref-don-bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
}
.welfare-ref-vert-bar {
  background: var(--teal-light);
  border: 1.5px solid var(--teal);
}
.welfare-ref-vert-bar.is-active {
  background: var(--orange);
  border-color: var(--orange);
}
.welfare-ref-don-bar {
  background: var(--green-light);
  border: 1.5px solid var(--green);
}
.welfare-ref-don-bar.is-active {
  background: var(--green);
}
.welfare-ref-vert-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}
.welfare-ref-chart-note {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.welfare-ref-kpi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.welfare-ref-kpi-row:last-child {
  border-bottom: 0;
}
.welfare-ref-kpi-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.welfare-ref-kpi-note {
  font-size: 11px;
  color: var(--text-muted);
}
.welfare-ref-kpi-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.welfare-ref-kpi-val {
  font-family: "Baloo 2", cursive;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.welfare-ref-danger-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.welfare-ref-danger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: var(--red-light);
  border: 1px solid #ffcdd2;
}
.welfare-ref-danger-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.welfare-ref-danger-title.is-red {
  color: var(--red);
}
.welfare-ref-danger-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.welfare-ref-danger-btn {
  padding: 6px 13px;
  background: var(--red);
  color: #fff;
  border: 0;
  font-family: Nunito, sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.welfare-ref-setting-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.welfare-ref-setting-line:last-child {
  border-bottom: 0;
}
.welfare-ref-setting-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.welfare-ref-setting-text span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
@media (max-width: 980px) {
  .welfare-body {
    display: block;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .welfare-ref-sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    z-index: 140;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.18);
  }
  .welfare-ref-brand {
    padding: 14px 16px 12px;
  }
  .welfare-ref-brand-logo {
    width: 142px;
  }
  .welfare-ref-mobile-notif-wrap {
    display: block;
  }
  .welfare-ref-section-label {
    display: none;
  }
  .welfare-ref-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 12px 12px;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .welfare-ref-nav-item {
    flex: 0 0 auto;
    min-height: 42px;
    margin-bottom: 0;
    border-radius: 999px;
    padding: 10px 14px;
  }
  .welfare-ref-badge {
    position: static;
    transform: none;
    margin-left: 6px;
  }
  .welfare-ref-user {
    display: none;
  }
  .welfare-ref-main {
    margin-left: 0;
    min-height: calc(100vh - 122px);
    height: auto;
    overflow: visible;
  }
  .welfare-ref-topbar,
  .welfare-ref-content {
    padding-left: 18px;
    padding-right: 18px;
  }
  .welfare-ref-topbar-right {
    display: none;
  }
  .welfare-ref-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .welfare-ref-two-col,
  .welfare-ref-three-col,
  .welfare-ref-kanban {
    grid-template-columns: 1fr;
  }
  .welfare-ref-rfield-row {
    grid-template-columns: 1fr;
  }
  .welfare-ref-rfield-row.is-three-col {
    grid-template-columns: 1fr;
  }
  .welfare-ref-block-head,
  .welfare-ref-kpi-row,
  .welfare-ref-danger-row,
  .welfare-ref-setting-line {
    flex-direction: column;
    align-items: flex-start;
  }
  .welfare-ref-page-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .welfare-ref-page-actions {
    margin-top: 0;
    width: 100%;
    flex-wrap: wrap;
  }
  .welfare-ref-page-actions > * {
    flex: 1 1 220px;
  }
  .welfare-ref-dg-meta {
    gap: 12px;
  }
  .welfare-ref-search-bar,
  .welfare-ref-filter-row {
    flex-wrap: wrap;
  }
  .welfare-ref-search-bar > *,
  .welfare-ref-filter-row > * {
    flex: 1 1 220px;
  }
  .welfare-ref-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .welfare-ref-table {
    min-width: 720px;
  }
  .welfare-ref-card,
  .welfare-ref-stat-card {
    padding: 18px;
  }
  .welfare-ref-rfield input,
  .welfare-ref-rfield select,
  .welfare-ref-rfield textarea {
    min-height: 48px;
  }
  .welfare-ref-rfield textarea {
    min-height: 120px;
  }
  .welfare-ref-notif-wrap .notif-panel {
    right: 0;
    left: auto;
    width: min(420px, calc(100vw - 36px));
  }
  .notif-panel-mobile {
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    width: min(420px, calc(100vw - 32px));
  }
  .resident-reference-body {
    display: block;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .resident-ref-sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    z-index: 140;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.18);
  }
  .resident-ref-brand {
    padding: 14px 16px 12px;
  }
  .resident-ref-brand-logo {
    width: 142px;
  }
  .resident-ref-mobile-notif-wrap {
    display: block;
  }
  .resident-ref-section-label {
    display: none;
  }
  .resident-ref-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 12px 12px;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .resident-ref-nav-item {
    flex: 0 0 auto;
    min-height: 42px;
    margin-bottom: 0;
    border-radius: 999px;
    padding: 10px 14px;
  }
  .resident-ref-nav-badge {
    position: static;
    transform: none;
    margin-left: 6px;
  }
  .resident-ref-user {
    display: none;
  }
  .resident-ref-main {
    margin-left: 0;
    min-height: calc(100vh - 122px);
    height: auto;
    overflow: visible;
  }
  .resident-ref-topbar,
  .resident-ref-content {
    padding-left: 18px;
    padding-right: 18px;
  }
  .resident-ref-topbar-right {
    display: none;
  }
  .resident-ref-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .resident-ref-two-col,
  .resident-ref-qa-grid {
    grid-template-columns: 1fr;
  }
  .resident-ref-page-header h2 {
    font-size: 24px;
  }
  .resident-ref-page-header-split {
    flex-direction: column;
    align-items: stretch;
  }
  .resident-report-grid {
    grid-template-columns: 1fr;
  }
  .resident-report-actions {
    flex-direction: column-reverse;
  }
  .resident-report-actions .resident-ref-primary-btn,
  .resident-report-actions .resident-ref-secondary-btn {
    width: 100%;
    justify-content: center;
  }
  .resident-ref-settings-row {
    align-items: flex-start;
  }
  .resident-ref-side-stack {
    gap: 16px;
  }
  .resident-top {
    padding-bottom: 18px;
  }
  .resident-overview-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .resident-section-head {
    display: block;
  }
  .resident-section-note {
    max-width: none;
    margin-top: 8px;
  }
  .resident-dog-gallery {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  .resident-support-grid {
    grid-template-columns: 1fr;
  }
  .resident-ref-notif-wrap .notif-panel {
    right: 0;
    left: auto;
    width: min(420px, calc(100vw - 36px));
  }
}
@media (max-width: 640px) {
  .welfare-ref-sidebar {
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.16);
  }
  .welfare-ref-brand {
    justify-content: space-between;
    padding: 14px 16px 10px;
  }
  .welfare-ref-brand-logo {
    width: 152px;
  }
  .welfare-ref-nav {
    padding: 10px 12px 14px;
    gap: 7px;
  }
  .welfare-ref-nav-item {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 12px;
  }
  .welfare-ref-topbar {
    height: auto;
    padding: 14px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .welfare-ref-topbar-right {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .welfare-ref-content {
    padding: 18px;
  }
  .welfare-ref-topbar-left h2 {
    font-size: 24px;
  }
  .welfare-ref-topbar-left p {
    font-size: 12px;
  }
  .welfare-ref-stat-row {
    grid-template-columns: 1fr;
  }
  .welfare-ref-pending-item,
  .welfare-ref-team-item,
  .welfare-ref-health-item,
  .welfare-ref-due-item,
  .welfare-ref-vet-item,
  .welfare-ref-vol-pending-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .welfare-ref-health-side {
    text-align: left;
  }
  .welfare-ref-page-actions {
    flex-direction: column;
  }
  .welfare-ref-page-actions > *,
  .welfare-ref-search-bar > *,
  .welfare-ref-filter-row > * {
    width: 100%;
    flex-basis: 100%;
  }
  .welfare-ref-btn-primary,
  .welfare-ref-btn-outline,
  .welfare-ref-btn-teal {
    width: 100%;
    justify-content: center;
  }
  .welfare-ref-dg-label,
  .welfare-ref-dg-meta,
  .welfare-ref-expense-row,
  .welfare-ref-donor-row,
  .welfare-ref-ann-history-item,
  .welfare-ref-kpi-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .welfare-ref-expense-label,
  .welfare-ref-expense-amt {
    width: auto;
    text-align: left;
  }
  .welfare-ref-card,
  .welfare-ref-stat-card {
    padding: 16px;
  }
  .welfare-ref-table {
    min-width: 640px;
  }
  .welfare-ref-notif-wrap {
    width: 100%;
  }
  .welfare-ref-icon-btn {
    width: 100%;
    min-width: 0;
  }
  .welfare-ref-notif-wrap .notif-panel {
    left: 0;
    right: auto;
    width: 100%;
  }
  .notif-panel-mobile {
    left: auto;
    right: 0;
    width: min(360px, calc(100vw - 24px));
  }
  .welfare-ref-vol-pending-actions {
    width: 100%;
  }
  .resident-shell {
    padding: 18px;
  }
  .resident-ref-topbar {
    min-height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .resident-ref-topbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .resident-ref-brand {
    justify-content: space-between;
    padding: 14px 16px 10px;
  }
  .resident-ref-brand-logo {
    width: 152px;
  }
  .resident-ref-nav {
    padding: 10px 12px 14px;
    gap: 7px;
  }
  .resident-ref-nav-item {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 12px;
  }
  .resident-ref-settings-row {
    flex-direction: column;
  }
  .resident-ref-stat-row {
    grid-template-columns: 1fr;
  }
  .notif-panel-mobile {
    left: auto;
    right: 0;
    width: min(360px, calc(100vw - 24px));
  }
  .resident-overview-strip {
    grid-template-columns: 1fr;
  }
  .resident-dog-header {
    display: block;
  }
  .resident-dog-health {
    display: inline-flex;
    margin-top: 10px;
  }
}


.is-hidden {
  display: none !important;
}
.notif-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(440px, calc(100vw - 40px));
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 26px 60px rgba(44,62,80,.18);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  z-index: 1000;
}
.notif-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.notif-panel-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,247,243,.95), rgba(255,255,255,.98));
}
.notif-panel-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.notif-panel-copy p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}
.notif-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.notif-list {
  max-height: min(420px, 60vh);
  overflow-y: auto;
}
.notif-empty {
  padding: 28px 24px 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.notif-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item.unread {
  background: linear-gradient(90deg, rgba(255,112,67,.08), rgba(255,112,67,0));
}
.notif-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notif-body {
  flex: 1;
  min-width: 0;
}
.notif-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.notif-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}
.notif-meta {
  font-size: 11px;
  color: var(--text-muted);
}
.notif-message {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-muted);
}
.notif-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.notif-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--orange);
  text-decoration: none;
}
.notif-open:hover {
  color: var(--orange-dark);
}
.notif-read-form {
  margin: 0;
}
.notif-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s;
}
.notif-read-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-light);
}

.dog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.dog-detail-body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(180deg, #fffaf5 0%, #fffdf9 100%);
  color: var(--text);
  min-height: 100vh;
}

.dog-detail-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.dog-detail-header__brand,
.dog-detail-header__actions,
.dog-detail-header__crumbs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dog-detail-header__logo img {
  width: 184px;
  max-width: 184px;
  height: auto;
  display: block;
}

.dog-detail-header__crumbs {
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.dog-detail-header__crumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.dog-detail-header__crumbs strong {
  color: var(--text);
}

.dog-detail-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.dog-detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(62,39,35,.06);
}

.dog-detail-hero__media {
  min-height: 300px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--orange-light), var(--teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.dog-detail-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}

.dog-detail-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Baloo 2', cursive;
  font-size: 46px;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

.dog-detail-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dog-detail-hero__title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.dog-detail-hero__title-row h1,
.dog-detail-card h2 {
  font-family: 'Baloo 2', cursive;
}

.dog-detail-hero__title-row h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
}

.dog-detail-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--orange-light);
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
}

.dog-detail-subtitle {
  margin: 10px 0 18px;
  font-size: 16px;
  color: var(--text-muted);
}

.dog-detail-badges,
.dog-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dog-detail-badge,
.dog-detail-tags span {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

.dog-detail-badge--health {
  background: #fff4df;
  color: #d16b00;
}

.dog-detail-badge--vacc {
  background: var(--teal-light);
  color: var(--teal);
}

.dog-detail-badge--ster {
  background: #efe8ff;
  color: #6e45c4;
}

.dog-detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.dog-detail-facts div,
.dog-detail-stat-grid div {
  padding: 14px 16px;
  border-radius: 18px;
  background: #fffaf4;
  border: 1px solid var(--border);
}

.dog-detail-facts span,
.dog-detail-stat-grid span,
.dog-detail-related__card span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.dog-detail-facts strong,
.dog-detail-stat-grid strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.dog-detail-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.dog-detail-sidebar,
.dog-detail-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dog-detail-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(62,39,35,.05);
}

.dog-detail-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.dog-detail-stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.dog-detail-card--support {
  background: linear-gradient(135deg, var(--orange), var(--dog-detail-primary));
  color: white;
  border-color: transparent;
}

.dog-detail-card--support h2,
.dog-detail-card--support p {
  color: white;
}

.dog-detail-card--support p {
  margin: 0 0 18px;
  line-height: 1.6;
}

.dog-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-family: 'Baloo 2', cursive;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.dog-detail-btn--outline {
  background: white;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.dog-detail-btn--primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 12px 28px rgba(255,112,67,.24);
}

.dog-detail-btn--light {
  background: white;
  color: var(--orange);
}

.dog-detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dog-detail-gallery__item {
  border-radius: 18px;
  overflow: hidden;
  background: #fff6ef;
  min-height: 160px;
}

.dog-detail-gallery__item img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
}

.dog-detail-notes {
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff8f2;
  border: 1px solid var(--border);
  line-height: 1.8;
  color: var(--text-muted);
}

.dog-detail-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dog-detail-related__card {
  display: block;
  padding: 16px;
  border-radius: 18px;
  background: #fffaf5;
  border: 1.5px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dog-detail-related__card:hover {
  transform: translateY(-3px);
  border-color: var(--orange-mid);
  box-shadow: 0 14px 28px rgba(255,112,67,.1);
}

.dog-detail-related__avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--orange-light), var(--teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-family: 'Baloo 2', cursive;
  font-size: 24px;
  font-weight: 800;
  color: var(--orange);
}

.dog-detail-related__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dog-detail-related__card strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
}

@media (max-width: 980px) {
  .dog-detail-hero,
  .dog-detail-grid {
    grid-template-columns: 1fr;
  }

  .dog-detail-facts,
  .dog-detail-gallery,
  .dog-detail-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .dog-detail-header {
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .dog-detail-header__brand,
  .dog-detail-header__actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .dog-detail-header__logo img {
    width: 156px;
    max-width: 156px;
  }

  .dog-detail-wrap {
    padding: 20px 14px 44px;
  }

  .dog-detail-hero {
    padding: 20px;
  }

  .dog-detail-hero__title-row h1 {
    font-size: 32px;
  }

  .dog-detail-facts,
  .dog-detail-gallery,
  .dog-detail-related {
    grid-template-columns: 1fr;
  }
}
