:root{--ink:#182230;--muted:#6f7a89;--navy:#172b4d;--navy2:#234a76;--gold:#c9a35a;--gold-soft:#f7f0e2;--cream:#faf8f4;--line:#e8e3da;--white:#fff;--success:#198754;--danger:#c0392b;--shadow:0 18px 55px rgba(23,43,77,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--cream)}a{color:var(--navy2);text-decoration:none}a:hover{color:#152e50}.site-shell{min-height:100vh}.site-nav{height:76px;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 6%;position:sticky;top:0;z-index:1000}.brand{display:flex;align-items:center;gap:12px;font-weight:800;color:var(--navy)}.brand img{width:43px;height:43px;object-fit:contain}.brand small{display:block;font-size:10px;color:var(--muted);font-weight:600;margin-top:2px}.nav-links{margin-left:auto;display:flex;align-items:center;gap:25px;font-size:13px;font-weight:700}.nav-cta{background:var(--navy);color:#fff;padding:11px 18px;border-radius:10px}.nav-cta:hover{background:var(--navy2);color:#fff}.hero{position:relative;overflow:hidden;background:linear-gradient(125deg,#102642,#234a75 65%,#315d86);color:#fff}.hero:after{content:"";position:absolute;width:520px;height:520px;border-radius:50%;right:-180px;top:-180px;border:1px solid rgba(255,255,255,.14);box-shadow:0 0 0 80px rgba(255,255,255,.025),0 0 0 160px rgba(255,255,255,.018)}.hero-inner{max-width:1180px;margin:auto;padding:86px 24px 94px;position:relative;z-index:1;display:grid;grid-template-columns:1.15fr .85fr;gap:60px;align-items:center}.eyebrow{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:#e7d4a7;font-weight:800}.hero h1{font-family:Georgia,serif;font-size:clamp(38px,5vw,64px);line-height:1.05;margin:16px 0}.hero p{max-width:650px;color:#dbe6f2;font-size:17px;line-height:1.75}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.btn-main,.btn-outline-light{padding:13px 20px;border-radius:11px;font-weight:800;font-size:13px}.btn-main{background:var(--gold);color:#172b4d}.btn-main:hover{background:#d6b56f;color:#172b4d}.btn-outline-light{border:1px solid rgba(255,255,255,.35);color:#fff}.btn-outline-light:hover{background:#fff;color:var(--navy)}.hero-card{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.18);border-radius:24px;padding:28px;box-shadow:0 25px 60px rgba(0,0,0,.15);backdrop-filter:blur(10px)}.hero-card .seal{width:70px;height:70px;border-radius:20px;background:#fff;display:grid;place-items:center;margin-bottom:20px}.hero-card img{width:52px;height:52px}.hero-card h3{font-family:Georgia,serif;margin:0 0 8px;font-size:23px}.hero-card p{font-size:13px;margin:0;color:#dbe6f2}.feature-section{max-width:1180px;margin:auto;padding:70px 24px}.section-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.15em;color:#9b7a39;font-weight:800}.section-title{font-family:Georgia,serif;font-size:34px;margin:8px 0 12px}.section-copy{color:var(--muted);max-width:650px;line-height:1.7}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:30px}.feature-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:25px;box-shadow:var(--shadow)}.feature-icon{width:44px;height:44px;border-radius:13px;background:var(--gold-soft);color:#92702e;display:grid;place-items:center;font-size:18px;margin-bottom:17px}.feature-card h3{font-size:16px;margin:0 0 7px}.feature-card p{font-size:12px;color:var(--muted);line-height:1.65;margin:0}.site-footer{background:#13243c;color:#b9c7d7;padding:42px 6%;font-size:12px}.footer-inner{max-width:1180px;margin:auto;display:flex;justify-content:space-between;gap:25px}.auth-page{min-height:100vh;background:linear-gradient(135deg,#f7f4ed,#eef3f8);display:grid;grid-template-columns:1fr 1fr}.auth-visual{background:linear-gradient(150deg,rgba(15,38,66,.94),rgba(35,74,117,.86)),url('images/ogin-bg.jpg') center/cover;display:flex;align-items:center;justify-content:center;padding:50px;color:#fff}.auth-visual-inner{max-width:520px}.auth-visual h1{font-family:Georgia,serif;font-size:46px;line-height:1.08;margin:16px 0}.auth-visual p{color:#dbe6f2;line-height:1.8}.auth-content{display:flex;align-items:center;justify-content:center;padding:35px 24px}.auth-card{width:min(480px,100%);background:#fff;border:1px solid var(--line);border-radius:24px;padding:35px;box-shadow:var(--shadow)}.auth-logo{text-align:center;margin-bottom:20px}.auth-logo img{width:62px;height:62px;object-fit:contain}.auth-card h2{font-family:Georgia,serif;text-align:center;margin:0;font-size:28px}.auth-subtitle{text-align:center;color:var(--muted);font-size:12px;margin:8px 0 25px;line-height:1.6}.modern-label{font-size:11px;font-weight:800;color:#465160;margin-bottom:7px}.modern-input,.modern-select,.modern-textarea{width:100%;border:1px solid #dfe3e8;border-radius:11px;padding:12px 13px;font-size:13px;background:#fff;outline:0;transition:.15s}.modern-input:focus,.modern-select:focus,.modern-textarea:focus{border-color:#6e91b6;box-shadow:0 0 0 4px rgba(35,74,117,.08)}.form-group{margin-bottom:17px}.primary-btn{border:0;width:100%;padding:13px 18px;border-radius:11px;background:var(--navy);color:#fff;font-weight:800;font-size:13px}.primary-btn:hover{background:var(--navy2)}.auth-links{display:flex;justify-content:space-between;gap:10px;margin-top:18px;font-size:11px;font-weight:700}.notice{border-radius:11px;padding:12px 14px;font-size:12px;margin-bottom:17px}.notice-danger{background:#fff0ef;color:#a93226}.notice-success{background:#edf9f2;color:#16764b}.notice-info{background:#edf4fb;color:#28587f}.member-shell{min-height:100vh;background:#f6f7f9}.member-top{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 5%;position:sticky;top:0;z-index:900}.member-brand{display:flex;align-items:center;gap:10px;font-weight:800;color:var(--navy)}.member-brand img{width:38px;height:38px}.member-nav{margin-left:auto;display:flex;gap:10px}.member-nav a{padding:9px 13px;border-radius:9px;font-size:11px;font-weight:800}.member-nav .active{background:#eef3f8;color:var(--navy)}.member-main{max-width:1180px;margin:auto;padding:30px 24px 60px}.member-hero{background:linear-gradient(120deg,#172b4d,#2d5a84);border-radius:22px;color:#fff;padding:28px 30px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px;box-shadow:0 18px 40px rgba(23,43,77,.16)}.member-hero h1{font-family:Georgia,serif;font-size:27px;margin:4px 0}.member-hero p{font-size:12px;color:#d9e5f1;margin:0}.id-badge{display:inline-flex;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.13);font-size:10px;font-weight:800}.member-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}.member-stat{background:#fff;border:1px solid var(--line);border-radius:15px;padding:17px}.member-stat small{display:block;color:var(--muted);font-size:10px;font-weight:700}.member-stat strong{display:block;font-size:20px;margin-top:4px}.member-card{background:#fff;border:1px solid var(--line);border-radius:17px;margin-bottom:18px;overflow:hidden}.member-card-head{padding:17px 20px;border-bottom:1px solid #eeeae3;display:flex;justify-content:space-between;align-items:center}.member-card-head h3{font-size:14px;margin:0;font-weight:800}.member-card-body{padding:20px}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.detail{padding:13px;background:#fafaf9;border-radius:11px}.detail small{display:block;color:#8b929d;font-size:9px;text-transform:uppercase;letter-spacing:.06em;font-weight:800}.detail strong{display:block;font-size:12px;margin-top:4px;word-break:break-word}.family-list{display:grid;gap:10px}.family-row{padding:14px;border:1px solid #eeeae3;border-radius:12px;display:flex;justify-content:space-between;gap:15px}.family-row strong{font-size:12px}.family-row small{color:var(--muted);font-size:10px}.action-row{display:flex;gap:10px;flex-wrap:wrap}.action-btn{display:inline-flex;align-items:center;justify-content:center;padding:11px 16px;border-radius:10px;font-size:11px;font-weight:800;border:1px solid #dfe3e8;background:#fff;color:var(--navy)}.action-btn.primary{background:var(--navy);border-color:var(--navy);color:#fff}.action-btn.danger{color:#b53228;border-color:#efc9c5;background:#fff8f7}.profile-page{background:#f6f7f9;min-height:100vh}.profile-wrap{max-width:1100px;margin:auto;padding:35px 24px 60px}.profile-header{margin-bottom:20px}.profile-header h1{font-family:Georgia,serif;font-size:30px;margin:0 0 5px}.profile-header p{font-size:12px;color:var(--muted);margin:0}.profile-section{background:#fff;border:1px solid var(--line);border-radius:17px;padding:22px;margin-bottom:16px;box-shadow:0 8px 30px rgba(23,43,77,.05)}.profile-section h2{font-size:15px;margin:0 0 18px;color:var(--navy)}.profile-section .form-control,.profile-section .form-select{border:1px solid #dfe3e8;border-radius:10px;padding:11px 12px;font-size:12px}.profile-section .form-label{font-size:10px;font-weight:800;color:#53606f}.family-member{background:#fafaf9!important;border:1px solid #e9e4dc!important;border-radius:13px!important}.family-member h6{font-weight:800;color:var(--navy);font-size:12px}.footer-note{font-size:10px;color:#9299a3;text-align:center;margin-top:20px}@media(max-width:900px){.hero-inner{grid-template-columns:1fr}.feature-grid{grid-template-columns:1fr}.auth-page{grid-template-columns:1fr}.auth-visual{display:none}.detail-grid{grid-template-columns:repeat(2,1fr)}.member-stat-grid{grid-template-columns:repeat(2,1fr)}.nav-links{gap:10px}.nav-links a:not(.nav-cta){display:none}}@media(max-width:600px){.site-nav{padding:0 18px}.hero-inner{padding:60px 20px 70px}.hero h1{font-size:40px}.feature-section{padding:50px 20px}.footer-inner{flex-direction:column}.auth-card{padding:25px;border-radius:18px}.member-top{padding:0 15px}.member-nav a:not(.active){display:none}.member-main{padding:18px 14px 40px}.member-hero{padding:22px;align-items:flex-start;flex-direction:column}.member-stat-grid{gap:9px}.member-stat{padding:13px}.member-stat strong{font-size:17px}.detail-grid{grid-template-columns:1fr}.profile-wrap{padding:25px 14px}.profile-section{padding:17px}.auth-content{padding:20px 14px}}

/* Profile form alignment correction */
.profile-page .profile-wrap{width:100%;max-width:1100px;margin:0 auto;padding:32px 24px 56px;box-sizing:border-box;overflow-x:hidden}
.profile-page form{width:100%;margin:0}
.profile-page .profile-section{width:100%;box-sizing:border-box;margin:0 0 18px;padding:22px 22px 24px}
.profile-page .profile-section h2{margin:0 0 20px;line-height:1.3}
.profile-page .profile-section .row{margin-left:0;margin-right:0;margin-top:0!important}
.profile-page .profile-section [class*="col-"]{box-sizing:border-box}
.profile-page .profile-section .form-control,.profile-page .profile-section .form-select{width:100%;box-sizing:border-box;min-height:42px}
.profile-page .profile-section textarea.form-control{min-height:76px;resize:vertical}
.profile-page .family-members-list{width:100%;margin:0 0 18px}
.profile-page .family-member{width:100%;box-sizing:border-box;background:#fff!important;border:1px solid var(--line)!important;border-radius:15px!important;padding:20px!important;margin-bottom:14px!important;box-shadow:0 8px 24px rgba(23,43,77,.045)}
.profile-page .family-member h6{margin:0 0 16px;font-size:13px}
.profile-page .family-member .row{margin-left:0;margin-right:0}
.profile-page .profile-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:8px!important}
.profile-page .profile-actions .btn{min-width:125px;border-radius:10px;font-weight:700;padding:10px 18px}
@media(max-width:767px){
  .profile-page .profile-wrap{padding:22px 14px 45px}
  .profile-page .profile-section{padding:18px 16px 20px;border-radius:15px}
  .profile-page .profile-section .row{--bs-gutter-x:1rem;--bs-gutter-y:.85rem}
}

/* PWA welcome / first-open experience */
.pwa-welcome-backdrop{position:fixed;inset:0;background:rgba(13,28,48,.58);backdrop-filter:blur(5px);z-index:9999;display:grid;place-items:center;padding:20px;animation:pwaFade .2s ease}
.pwa-welcome{width:min(470px,100%);background:#fff;border:1px solid rgba(255,255,255,.5);border-radius:24px;padding:30px;box-shadow:0 30px 80px rgba(0,0,0,.28);position:relative;text-align:center}
.pwa-close{position:absolute;right:15px;top:12px;border:0;background:#f3f5f7;color:#526070;width:34px;height:34px;border-radius:50%;font-size:22px;line-height:1;cursor:pointer}
.pwa-logo{width:72px;height:72px;margin:0 auto 15px;border-radius:20px;background:#f7f3e9;display:grid;place-items:center}.pwa-logo img{width:55px;height:55px;object-fit:contain}
.pwa-kicker{font-size:9px;letter-spacing:.16em;font-weight:900;color:#9b7a39;margin-bottom:8px}.pwa-welcome h2{font-family:Georgia,serif;color:#172b4d;font-size:27px;margin:0 0 10px}.pwa-welcome p{font-size:12px;line-height:1.7;color:#697483;margin:0 auto 20px;max-width:380px}
.pwa-actions{display:grid;gap:9px}.pwa-actions button{border-radius:11px;padding:12px 15px;font-size:12px;font-weight:800;cursor:pointer}.pwa-primary{border:1px solid #172b4d;background:#172b4d;color:#fff}.pwa-secondary{border:1px solid #dfe3e8;background:#fff;color:#172b4d}.pwa-secondary:disabled{opacity:.7;cursor:default}.pwa-later{border:0;background:none;color:#7b8490;font-size:11px;font-weight:700;margin-top:13px;cursor:pointer}
@keyframes pwaFade{from{opacity:0}to{opacity:1}}
@media(max-width:520px){.pwa-welcome{padding:26px 20px;border-radius:20px}.pwa-welcome h2{font-size:24px}}

/* PWA app navigation */
.pwa-mobile-nav{display:none}
.pwa-install-help{margin:12px 0 0;padding:12px 14px;background:#faf8f2;border:1px solid #eadfca;border-radius:10px;text-align:left;font-size:11px;line-height:1.6;color:#596574}
@media(max-width:700px){
  body{padding-bottom:70px}
  .pwa-mobile-nav{position:fixed;left:10px;right:10px;bottom:10px;height:58px;background:rgba(255,255,255,.97);border:1px solid #e6e1d9;border-radius:18px;box-shadow:0 15px 35px rgba(20,38,62,.16);display:grid;grid-template-columns:repeat(4,1fr);z-index:9000;backdrop-filter:blur(12px)}
  .pwa-mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#788291;font-size:9px;font-weight:800}
  .pwa-mobile-nav a i{font-size:16px}
  .pwa-mobile-nav a.active{color:#172b4d}
  .pwa-mobile-nav a.active i{color:#b38a3d}
  .member-top .member-nav{display:none}
  .member-top{padding:0 15px}
}
