/* SAH Lifestyle — Design System v2
   Navy + Gold + Cream | Playfair Display + Inter
   Updated with logos, animations, improved hero
*/
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --navy:    #0C1E4A;
  --navy2:   #162B6E;
  --gold:    #C9A84C;
  --gold2:   #E8C96A;
  --cream:   #FAF7F2;
  --white:   #FFFFFF;
  --mist:    #EEE9E0;
  --text:    #1A2540;
  --sub:     #5A6478;
  --border:  #DDD8CF;
  --sage:    #4A7A65;
  --radius:  10px;
  --shadow:  0 4px 24px rgba(12,30,74,0.10);
  --max:     1140px;
  --trans:   0.25s ease;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{font-family:'Inter',sans-serif;font-size:16px;line-height:1.7;color:var(--text);background:var(--white);overflow-x:hidden;}

/* ── Typography ── */
h1,h2,h3,h4{font-family:'Playfair Display',serif;line-height:1.2;color:var(--navy);}
h1{font-size:clamp(2.2rem,5vw,3.5rem);font-weight:700;}
h2{font-size:clamp(1.7rem,3.5vw,2.6rem);font-weight:600;}
h3{font-size:1.3rem;font-weight:600;}
h4{font-size:0.8rem;font-weight:700;font-family:'Inter',sans-serif;text-transform:uppercase;letter-spacing:0.12em;color:var(--gold);}
p{color:var(--sub);margin-bottom:1rem;}
p:last-child{margin-bottom:0;}
a{color:var(--sage);text-decoration:none;transition:color var(--trans);}
a:hover{color:var(--gold);}

/* ── Layout ── */
.container{max-width:var(--max);margin:0 auto;padding:0 1.5rem;}
.section{padding:5rem 0;}
.section-sm{padding:2.5rem 0;}
.section-alt{background:var(--cream);}

/* ── NAV ── */
nav{position:sticky;top:0;z-index:100;background:rgba(255,255,255,0.97);backdrop-filter:blur(8px);border-bottom:1px solid var(--border);box-shadow:0 2px 12px rgba(12,30,74,0.06);}
.nav-inner{display:flex;align-items:center;justify-content:space-between;max-width:var(--max);margin:0 auto;padding:0 1.5rem;height:70px;}
.nav-logo{font-family:'Playfair Display',serif;font-size:1.35rem;font-weight:700;color:var(--navy);text-decoration:none;display:flex;align-items:center;gap:0.6rem;}
.nav-logo-img{height:42px;width:auto;}
.nav-logo span{color:var(--gold);}
.nav-links{display:flex;align-items:center;gap:0.15rem;list-style:none;}
.nav-links a{font-size:0.82rem;font-weight:500;color:var(--sub);padding:0.4rem 0.7rem;border-radius:6px;transition:all var(--trans);}
.nav-links a:hover,.nav-links a.active{color:var(--navy);background:var(--mist);}
.nav-cta{background:var(--navy)!important;color:var(--white)!important;padding:0.5rem 1.1rem!important;border-radius:6px!important;}
.nav-cta:hover{background:var(--gold)!important;color:var(--navy)!important;}
.nav-login{border:1.5px solid var(--border)!important;color:var(--navy)!important;}
.nav-login:hover{border-color:var(--gold)!important;color:var(--gold)!important;background:transparent!important;}
.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:0.5rem;}
.nav-toggle span{display:block;width:22px;height:2px;background:var(--navy);margin:5px 0;border-radius:2px;transition:0.3s;}

/* ── Buttons ── */
.btn{display:inline-flex;align-items:center;gap:0.5rem;font-family:'Inter',sans-serif;font-size:0.9rem;font-weight:600;padding:0.8rem 1.8rem;border-radius:var(--radius);cursor:pointer;border:none;transition:all var(--trans);text-decoration:none;white-space:nowrap;}
.btn-primary{background:var(--navy);color:var(--white);}
.btn-primary:hover{background:var(--navy2);color:var(--white);transform:translateY(-1px);box-shadow:0 6px 20px rgba(12,30,74,0.25);}
.btn-gold{background:var(--gold);color:var(--navy);}
.btn-gold:hover{background:var(--gold2);color:var(--navy);transform:translateY(-1px);box-shadow:0 6px 20px rgba(201,168,76,0.35);}
.btn-outline{background:transparent;color:var(--navy);border:2px solid var(--navy);}
.btn-outline:hover{background:var(--navy);color:var(--white);}
.btn-outline-gold{background:transparent;color:var(--gold);border:2px solid var(--gold);}
.btn-outline-gold:hover{background:var(--gold);color:var(--navy);}

/* ── HERO ── */
.hero{background:linear-gradient(135deg,var(--navy) 0%,#1a3070 60%,#0e2558 100%);color:var(--white);padding:7rem 0 6rem;position:relative;overflow:hidden;}
.hero::before{content:'';position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A84C' fill-opacity='0.04'%3E%3Cpath d='M40 0L80 40L40 80L0 40z'/%3E%3C/g%3E%3C/svg%3E");}
.hero-inner{position:relative;max-width:var(--max);margin:0 auto;padding:0 1.5rem;display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center;}
.hero-content h1{color:var(--white);margin-bottom:1.25rem;}
.hero-content h1 em{font-style:normal;color:var(--gold);}
.hero-content p{color:rgba(255,255,255,0.8);font-size:1.1rem;max-width:480px;margin-bottom:2rem;}
.hero-tag{display:inline-flex;align-items:center;gap:0.5rem;background:rgba(201,168,76,0.2);border:1px solid rgba(201,168,76,0.4);color:var(--gold);font-size:0.75rem;font-weight:700;letter-spacing:0.12em;text-transform:uppercase;padding:0.4rem 1rem;border-radius:20px;margin-bottom:1.5rem;}
.hero-btns{display:flex;gap:1rem;flex-wrap:wrap;}
.hero-logos{display:flex;flex-direction:column;gap:1.25rem;}
.hero-logo-card{background:rgba(255,255,255,0.07);border:1px solid rgba(255,255,255,0.12);border-radius:12px;padding:1rem 1.25rem;display:flex;align-items:center;gap:1rem;transition:all var(--trans);cursor:pointer;}
.hero-logo-card:hover{background:rgba(255,255,255,0.12);border-color:rgba(201,168,76,0.4);transform:translateX(4px);}
.hero-logo-card img{height:60px;width:auto;object-fit:contain;border-radius:6px;}
.hero-logo-card-text h5{font-size:0.85rem;font-weight:700;color:var(--white);font-family:'Inter',sans-serif;margin-bottom:0.15rem;}
.hero-logo-card-text p{font-size:0.75rem;color:rgba(255,255,255,0.6);margin:0;}

/* ── Trust bar ── */
.trust-bar{background:var(--navy);border-bottom:3px solid var(--gold);}
.trust-inner{max-width:var(--max);margin:0 auto;padding:1.5rem;display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;text-align:center;}
.trust-item strong{display:block;font-family:'Playfair Display',serif;font-size:1.8rem;font-weight:700;color:var(--gold);}
.trust-item span{font-size:0.8rem;color:rgba(255,255,255,0.65);font-weight:500;}

/* ── Section header ── */
.section-header{text-align:center;margin-bottom:3.5rem;}
.section-header h4{margin-bottom:0.6rem;}
.section-header h2{margin-bottom:1rem;}
.section-header p{max-width:580px;margin:0 auto;font-size:1.05rem;}
.divider{width:52px;height:3px;background:linear-gradient(90deg,var(--gold),var(--gold2));border-radius:2px;margin:1rem auto 0;}
.divider-left{margin:1rem 0 0;}

/* ── Cards ── */
.card{background:var(--white);border:1px solid var(--border);border-radius:14px;padding:2rem;box-shadow:var(--shadow);transition:transform var(--trans),box-shadow var(--trans);}
.card:hover{transform:translateY(-4px);box-shadow:0 12px 40px rgba(12,30,74,0.14);}
.card-icon{width:54px;height:54px;border-radius:12px;background:linear-gradient(135deg,var(--gold),var(--gold2));display:flex;align-items:center;justify-content:center;margin-bottom:1.25rem;font-size:1.5rem;}
.card-icon-navy{background:linear-gradient(135deg,var(--navy),var(--navy2));}

/* ── Logo showcase cards ── */
.logo-card{background:var(--white);border:1px solid var(--border);border-radius:14px;overflow:hidden;box-shadow:var(--shadow);transition:transform var(--trans),box-shadow var(--trans);text-align:center;}
.logo-card:hover{transform:translateY(-4px);box-shadow:0 12px 40px rgba(12,30,74,0.14);}
.logo-card img{width:100%;height:auto;display:block;}
.logo-card-body{padding:1.25rem;}
.logo-card-body p{font-size:0.875rem;margin:0;}

/* ── Grids ── */
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem;}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;}

/* ── Page Hero ── */
.page-hero{background:linear-gradient(135deg,var(--navy) 0%,#1a3070 100%);padding:4.5rem 0 4rem;text-align:center;}
.page-hero h1{color:var(--white);margin-bottom:0.75rem;}
.page-hero p{color:rgba(255,255,255,0.75);max-width:600px;margin:0 auto;font-size:1.05rem;}
.page-hero .hero-tag{margin-bottom:1rem;}

/* ── Steps ── */
.steps{counter-reset:step;}
.step{display:flex;gap:1.5rem;margin-bottom:2.5rem;}
.step-num{flex-shrink:0;width:50px;height:50px;border-radius:50%;background:linear-gradient(135deg,var(--gold),var(--gold2));color:var(--navy);font-family:'Playfair Display',serif;font-size:1.3rem;font-weight:700;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(201,168,76,0.3);}
.step-body h3{margin-bottom:0.4rem;}

/* ── Pricing ── */
.pricing-card{border:1px solid var(--border);border-radius:14px;overflow:hidden;box-shadow:var(--shadow);transition:transform var(--trans);}
.pricing-card:hover{transform:translateY(-4px);}
.pricing-card.featured{border-color:var(--gold);border-width:2px;}
.pricing-header{padding:1.75rem 2rem;background:var(--cream);border-bottom:1px solid var(--border);}
.pricing-card.featured .pricing-header{background:linear-gradient(135deg,var(--navy),var(--navy2));}
.pricing-card.featured .pricing-header h3,.pricing-card.featured .pricing-header .price,.pricing-card.featured .pricing-header p{color:var(--white);}
.price{font-family:'Playfair Display',serif;font-size:2.6rem;font-weight:700;color:var(--navy);line-height:1;margin:0.5rem 0 0.25rem;}
.pricing-body{padding:2rem;background:var(--white);}
.pricing-body ul{list-style:none;}
.pricing-body li{padding:0.55rem 0;border-bottom:1px solid var(--mist);font-size:0.875rem;color:var(--sub);display:flex;gap:0.6rem;align-items:flex-start;}
.pricing-body li:last-child{border-bottom:none;}
.pricing-body li::before{content:'✓';color:var(--gold);font-weight:700;flex-shrink:0;}
.pricing-footer{padding:1.5rem 2rem;background:var(--cream);border-top:1px solid var(--border);}

/* ── FAQ ── */
.faq-item{border-bottom:1px solid var(--border);}
.faq-q{width:100%;background:none;border:none;text-align:left;padding:1.25rem 0;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-family:'Inter',sans-serif;font-size:1rem;font-weight:500;color:var(--navy);transition:color var(--trans);}
.faq-q:hover{color:var(--gold);}
.faq-icon{font-size:1.2rem;transition:transform 0.3s;flex-shrink:0;color:var(--gold);}
.faq-item.open .faq-icon{transform:rotate(45deg);}
.faq-a{max-height:0;overflow:hidden;transition:max-height 0.35s ease;}
.faq-a-inner{padding-bottom:1.25rem;color:var(--sub);}

/* ── Forms ── */
.contact-form{background:var(--white);border:1px solid var(--border);border-radius:14px;padding:2.5rem;box-shadow:var(--shadow);}
.form-group{margin-bottom:1.25rem;}
.form-group label{display:block;font-size:0.875rem;font-weight:600;margin-bottom:0.4rem;color:var(--navy);}
.form-group input,.form-group select,.form-group textarea{width:100%;padding:0.8rem 1rem;border:1.5px solid var(--border);border-radius:var(--radius);font-family:'Inter',sans-serif;font-size:0.95rem;color:var(--text);background:var(--cream);transition:border-color var(--trans),background var(--trans);}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:var(--gold);background:var(--white);}
.form-group textarea{resize:vertical;min-height:120px;}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;}

/* ── Badges ── */
.badge{display:inline-block;font-size:0.75rem;font-weight:600;padding:0.25rem 0.75rem;border-radius:20px;background:var(--mist);color:var(--sage);}
.badge-gold{background:#fdf3d8;color:#8a5f10;}
.alert{background:#fdf3d8;border-left:4px solid var(--gold);padding:1rem 1.25rem;border-radius:0 var(--radius) var(--radius) 0;margin-bottom:1.5rem;}
.alert p{color:#7a5a10;margin:0;font-size:0.9rem;}

/* ── Testimonials ── */
.testimonial{background:var(--white);border:1px solid var(--border);border-radius:14px;padding:2rem;box-shadow:var(--shadow);position:relative;}
.testimonial::before{content:'"';font-family:'Playfair Display',serif;font-size:5rem;color:var(--gold);opacity:0.2;position:absolute;top:0.5rem;left:1.25rem;line-height:1;}
.testimonial p{font-style:italic;color:var(--text);font-size:1rem;margin-bottom:1.25rem;padding-top:1.5rem;}
.testimonial-author strong{display:block;color:var(--navy);font-weight:600;}
.testimonial-author span{font-size:0.8rem;color:var(--sub);}
.testimonial-stars{color:var(--gold);font-size:0.9rem;margin-bottom:0.75rem;}

/* ── Footer ── */
footer{background:var(--navy);color:rgba(255,255,255,0.75);padding:4.5rem 0 2rem;}
.footer-top{border-bottom:1px solid rgba(255,255,255,0.1);padding-bottom:3rem;margin-bottom:2.5rem;}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:2.5rem;}
.footer-brand .nav-logo{color:var(--white);}
.footer-brand .nav-logo span{color:var(--gold);}
.footer-brand p{margin-top:1rem;font-size:0.875rem;color:rgba(255,255,255,0.55);}
.footer-col h5{color:var(--white);font-size:0.75rem;font-weight:700;text-transform:uppercase;letter-spacing:0.1em;margin-bottom:1rem;}
.footer-col ul{list-style:none;}
.footer-col li{margin-bottom:0.5rem;}
.footer-col a{font-size:0.875rem;color:rgba(255,255,255,0.55);transition:color var(--trans);}
.footer-col a:hover{color:var(--gold);}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;}
.footer-bottom p{color:rgba(255,255,255,0.35);font-size:0.8rem;margin:0;}
.footer-logos{display:flex;gap:0.75rem;align-items:center;margin-top:1.25rem;}
.footer-logos img{height:38px;width:auto;border-radius:6px;opacity:0.8;transition:opacity var(--trans);}
.footer-logos img:hover{opacity:1;}

/* ── Animations ── */
@keyframes fadeUp{from{opacity:0;transform:translateY(24px);}to{opacity:1;transform:translateY(0);}}
@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}
.animate-up{animation:fadeUp 0.6s ease forwards;}
.animate-in{animation:fadeIn 0.6s ease forwards;}
.delay-1{animation-delay:0.1s;}
.delay-2{animation-delay:0.2s;}
.delay-3{animation-delay:0.3s;}

/* ── Responsive ── */
@media(max-width:960px){
  .hero-inner{grid-template-columns:1fr;gap:3rem;}
  .hero-logos{flex-direction:row;flex-wrap:wrap;}
  .hero-logo-card{flex:1;min-width:200px;}
  .grid-3,.grid-4{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .trust-inner{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:640px){
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  .form-row{grid-template-columns:1fr;}
  .nav-links{display:none;flex-direction:column;position:absolute;top:70px;left:0;right:0;background:var(--white);border-bottom:1px solid var(--border);padding:1rem;gap:0.25rem;box-shadow:var(--shadow);}
  .nav-links.open{display:flex;}
  .nav-toggle{display:block;}
  .hero-btns{flex-direction:column;}
  .section{padding:3.5rem 0;}
  .trust-inner{grid-template-columns:repeat(2,1fr);}
}

/* ── Scroll animations ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Phone in nav ── */
.nav-phone { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 600; color: var(--navy); padding: 0.4rem 0.7rem; border-radius: 6px; border: 1.5px solid var(--border); text-decoration: none; transition: all var(--trans); }
.nav-phone:hover { border-color: var(--gold); color: var(--gold); background: transparent; }

/* ── Trust badge on contact form ── */
.trust-badge { display: flex; align-items: center; gap: 0.5rem; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 0.65rem 1rem; margin-top: 0.75rem; }
.trust-badge span { font-size: 0.8rem; color: #166534; font-weight: 500; }

/* ── Sticky CTA bar on mobile ── */
@media (max-width: 640px) {
  .sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy); border-top: 3px solid var(--gold); padding: 0.75rem 1.25rem; display: flex; gap: 0.75rem; z-index: 99; }
  .sticky-cta a { flex: 1; text-align: center; font-size: 0.85rem; font-weight: 600; padding: 0.7rem; border-radius: 8px; text-decoration: none; }
  .sticky-cta .cta-call { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
  .sticky-cta .cta-book { background: var(--gold); color: var(--navy); }
  body { padding-bottom: 72px; }
}
@media (min-width: 641px) { .sticky-cta { display: none; } }

/* ── Nav toggle animation ── */
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Dropdown nav ── */
.nav-dropdown { position: relative; }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(12,30,74,0.12); min-width: 200px; padding: 0.5rem 0; z-index: 200; }
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li { list-style: none; }
.nav-dropdown-menu a { display: block; padding: 0.6rem 1.1rem; font-size: 0.875rem; color: var(--navy); text-decoration: none; font-weight: 500; transition: background 0.15s; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: var(--cream); color: var(--gold); }
.nav-dropdown-toggle { cursor: pointer; }
@media (max-width: 900px) {
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; border-left: 3px solid var(--gold); border-radius: 0; padding: 0; margin-left: 1rem; background: transparent; }
  .nav-dropdown-menu a { color: rgba(255,255,255,0.8); font-size: 0.85rem; padding: 0.5rem 1rem; }
  .nav-dropdown-menu a:hover { background: transparent; color: var(--gold); }
}

/* ── App shell (portal/admin pages) ── */
.app-shell { background: #F5F2ED; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 1.75rem; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem 1.25rem; box-shadow: 0 1px 4px rgba(12,30,74,0.06); border-top: 3px solid var(--gold); }
.stat-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 0.35rem; }
.stat-val { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat-sub { font-size: 0.75rem; color: var(--sub); margin-top: 0.2rem; }
.sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.sec-head h2 { font-size: 1.4rem; }
.sec-head-right { display: flex; align-items: center; gap: 0.75rem; }
.search-box { padding: 0.55rem 0.9rem; border: 1.5px solid var(--border); border-radius: 8px; font-size: 0.875rem; font-family: 'Inter',sans-serif; background: var(--cream); color: var(--text); }
.search-box:focus { outline: none; border-color: var(--gold); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th { background: var(--navy); color: #fff; padding: 0.75rem 1rem; text-align: left; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.data-table th:first-child { border-radius: 8px 0 0 0; }
.data-table th:last-child { border-radius: 0 8px 0 0; }
.data-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.data-table tr:hover td { background: var(--cream); }
.badge-active { background: #dcfce7; color: #166534; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 20px; display: inline-block; }
.badge-inactive { background: #f1f5f9; color: #64748b; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 20px; display: inline-block; }
.badge-pending { background: #fef9c3; color: #854d0e; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 20px; display: inline-block; }
.badge-unpaid { background: #fee2e2; color: #991b1b; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 20px; display: inline-block; }
.badge-paid { background: #dcfce7; color: #166534; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 20px; display: inline-block; }
.badge-admin { background: #ede9fe; color: #5b21b6; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 20px; display: inline-block; }
.badge-employee { background: #dbeafe; color: #1e40af; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 20px; display: inline-block; }
.modal-bg { display: none; position: fixed; inset: 0; background: rgba(12,30,74,0.55); z-index: 1000; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(3px); }
.modal-bg.open { display: flex; }
.modal { background: var(--white); border-radius: 14px; width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(12,30,74,0.25); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); background: var(--navy); border-radius: 14px 14px 0 0; }
.modal-header h3 { font-size: 1rem; color: #fff; margin: 0; }
.modal-close { background: rgba(255,255,255,0.15); border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 0.875rem; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: rgba(255,255,255,0.25); }
.modal form, .modal > div:not(.modal-header) { padding: 1.5rem; }
.items-table { width: 100%; border-collapse: collapse; margin-bottom: 0.5rem; }
.items-table th { font-size: 0.75rem; font-weight: 600; color: var(--sub); text-transform: uppercase; letter-spacing: 0.06em; padding: 0.5rem 0.5rem 0.35rem; border-bottom: 2px solid var(--border); text-align: left; }
.items-table td { padding: 0.35rem 0.5rem; }
.items-table input { width: 100%; padding: 0.5rem 0.6rem; border: 1.5px solid var(--border); border-radius: 6px; font-size: 0.875rem; font-family: 'Inter',sans-serif; background: var(--cream); }
.items-table input:focus { outline: none; border-color: var(--gold); background: #fff; }
.err-msg { color: #991b1b; font-size: 0.85rem; margin-bottom: 0.75rem; display: none; }
.ok-msg { color: #166534; font-size: 0.85rem; margin-bottom: 0.75rem; display: none; }
