/* Public website (index, about, contacts, portals). Loaded after style.css. */
:root {
  --site-navy: #0b1f44;
  --site-blue: #1456c0;
  --site-cyan: #0ea5c6;
  --site-ink: #142033;
  --site-muted: #5b6880;
  --site-line: #e3e9f3;
  --site-soft: #f3f7fc;
  --site-radius: 20px;
  --site-shadow: 0 18px 45px rgba(11, 31, 68, .10);
}

body.site { margin: 0; background: #fff; color: var(--site-ink); font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
.site a { color: inherit; }
.site .container { width: min(1180px, 92vw); margin: 0 auto; padding: 0; }
.site h1, .site h2, .site h3 { color: var(--site-navy); line-height: 1.2; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .6rem; padding: .3rem .8rem; border-radius: 999px; background: #e6f1ff; color: var(--site-blue); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.section-head { max-width: 680px; margin: 0 auto 2.2rem; text-align: center; }
.section-head h2 { margin: 0 0 .6rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { margin: 0; color: var(--site-muted); font-size: 1.05rem; }
.site-section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.site-section.is-soft { background: var(--site-soft); }
.button-ghost { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .45); box-shadow: none; backdrop-filter: blur(4px); }
.button-light { background: #fff; color: var(--site-navy) !important; box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }

/* Header */
.nav-bar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .2s ease, border-color .2s ease; }
.nav-bar.is-scrolled { border-color: var(--site-line); box-shadow: 0 8px 24px rgba(11, 31, 68, .08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.nav-brand img { display: block; height: 48px; width: auto; }
.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links a { padding: .55rem .9rem; border-radius: 999px; color: var(--site-ink); font-weight: 600; text-decoration: none; transition: background .15s ease, color .15s ease; }
.nav-links a:hover { background: var(--site-soft); color: var(--site-blue); }
.nav-links a.is-current { background: #e6f1ff; color: var(--site-blue); }
.nav-links .button { margin-left: .4rem; color: #fff; }
.nav-links .button:hover { color: #fff; background: linear-gradient(135deg, #1456c0, #0ea5c6); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--site-line); border-radius: 12px; background: #fff; color: var(--site-navy); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }

/* Hero */
.hero { position: relative; color: #fff; background: radial-gradient(circle at 80% 20%, #1e6cc2 0, transparent 45%), linear-gradient(135deg, #0b1f44 0%, #123a7a 60%, #0e7490 100%); overflow: hidden; }
.hero .slideshow { height: clamp(460px, 78vh, 680px); background: transparent; }
.hero .slide img { filter: saturate(1.05); }
.hero .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 31, 68, .88) 0%, rgba(11, 31, 68, .55) 50%, rgba(11, 31, 68, .15) 100%); }
.hero .slide-fallback { background: transparent; }
.hero .slide-fallback::after { display: none; }
.hero .slide-caption { z-index: 1; top: 50%; bottom: auto; left: 0; right: 0; transform: translateY(-50%); width: min(1180px, 92vw); margin: 0 auto; padding: 0; background: none; }
.hero .slide-caption h1 { max-width: 640px; color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.02em; }
.hero .slide-caption p { max-width: 560px; font-size: clamp(1rem, 1.6vw, 1.2rem); opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.hero .slide-control { background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px); }
.hero .slide-dots { left: 50%; right: auto; transform: translateX(-50%); bottom: 6.5rem; }
.hero .slide-dots button { width: 26px; height: 6px; border-radius: 999px; }
.hero-strip { position: relative; z-index: 3; margin-top: -4.5rem; }
.hero-strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 1.2rem; border-radius: var(--site-radius); background: #fff; box-shadow: var(--site-shadow); }
.strip-item { display: flex; gap: .8rem; align-items: center; padding: .4rem .6rem; color: var(--site-ink); }
.strip-item i { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 14px; background: #e6f1ff; color: var(--site-blue); font-size: 1.1rem; }
.strip-item strong { display: block; color: var(--site-navy); }
.strip-item span { color: var(--site-muted); font-size: .88rem; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.service-card { position: relative; padding: 1.8rem 1.5rem; border: 1px solid var(--site-line); border-radius: var(--site-radius); background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--site-shadow); }
.service-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 1.1rem; border-radius: 18px; background: linear-gradient(135deg, var(--site-blue), var(--site-cyan)); color: #fff; font-size: 1.35rem; box-shadow: 0 10px 22px rgba(20, 86, 192, .28); }
.service-card h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.service-card p { margin: 0; color: var(--site-muted); line-height: 1.6; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding: 1.8rem 1.5rem 1.5rem; border-radius: var(--site-radius); background: #fff; box-shadow: 0 6px 20px rgba(11, 31, 68, .06); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1rem; border-radius: 50%; background: var(--site-navy); color: #fff; font-weight: 800; }
.step h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.step p { margin: 0; color: var(--site-muted); line-height: 1.6; }

/* Packages */
.site .package-grid { gap: 1.5rem; }
.site .package-card { border-radius: var(--site-radius); padding: 1.8rem; transition: transform .2s ease, box-shadow .2s ease; }
.site .package-card:hover { transform: translateY(-6px); box-shadow: var(--site-shadow); }
.site .package-card.is-featured { border: 0; background: linear-gradient(160deg, #0b1f44, #1456c0); color: #fff; box-shadow: 0 22px 45px rgba(20, 86, 192, .35); }
.site .package-card.is-featured h3, .site .package-card.is-featured .package-price strong { color: #fff; }
.site .package-card.is-featured .package-speed, .site .package-card.is-featured .package-price, .site .package-card.is-featured .package-features { color: #d8e6ff; }
.site .package-card.is-featured .package-badge { background: #fff; color: var(--site-blue); }

/* Split / about */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split h2 { margin: 0 0 1rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.split p { color: var(--site-muted); line-height: 1.75; font-size: 1.05rem; }
.feature-list { display: grid; gap: .8rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; }
.feature-list li::before { content: "\2713"; display: grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: .85rem; }
.visual-card { position: relative; padding: 2rem; border-radius: 28px; color: #fff; background: radial-gradient(circle at 85% 15%, rgba(14, 165, 198, .55), transparent 45%), linear-gradient(150deg, #0b1f44, #1456c0); box-shadow: var(--site-shadow); overflow: hidden; }
.visual-card img { display: block; width: 120px; height: 120px; object-fit: contain; padding: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .2); }
.visual-card h3 { margin: 1.2rem 0 .5rem; color: #fff; font-size: 1.4rem; }
.visual-card p { margin: 0; color: #d8e6ff; line-height: 1.7; }

.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(5rem, 9vw, 7rem); color: #fff; text-align: center; background: radial-gradient(circle at 15% 20%, rgba(14, 165, 198, .5), transparent 40%), linear-gradient(135deg, #0b1f44, #1456c0); }
.page-hero h1 { margin: 0 0 .8rem; color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p { max-width: 720px; margin: 0 auto; color: #d8e6ff; font-size: 1.1rem; line-height: 1.7; }
.page-body-lift { margin-top: -3.5rem; position: relative; z-index: 2; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.info-card { padding: 1.8rem; border-radius: var(--site-radius); background: #fff; box-shadow: var(--site-shadow); }
.info-card h2 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .7rem; font-size: 1.3rem; }
.info-card h2 i { color: var(--site-blue); }
.info-card p { margin: 0; color: var(--site-muted); line-height: 1.75; white-space: pre-line; }

/* Contacts */
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.contact-card { display: flex; flex-direction: column; gap: .4rem; padding: 1.6rem; border-radius: var(--site-radius); background: #fff; box-shadow: var(--site-shadow); text-decoration: none; transition: transform .2s ease; }
a.contact-card:hover { transform: translateY(-5px); }
.contact-card i { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: .5rem; border-radius: 16px; background: #e6f1ff; color: var(--site-blue); font-size: 1.2rem; }
.contact-card.is-whatsapp i { background: #dcfce7; color: #15803d; }
.contact-card strong { color: var(--site-navy); }
.contact-card span { color: var(--site-muted); overflow-wrap: anywhere; }
.map-frame { width: 100%; height: 380px; margin-top: 1.5rem; border: 0; border-radius: var(--site-radius); box-shadow: var(--site-shadow); }

/* CTA */
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: clamp(1.8rem, 4vw, 3rem); border-radius: 28px; color: #fff; background: radial-gradient(circle at 90% 10%, rgba(14, 165, 198, .6), transparent 45%), linear-gradient(135deg, #0b1f44, #1456c0); box-shadow: var(--site-shadow); }
.cta-band h2 { margin: 0 0 .4rem; color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band p { margin: 0; color: #d8e6ff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* Footer */
.site-foot { margin-top: 0; padding: 3.5rem 0 1.5rem; background: #071631; color: #c6d3ea; }
.site-foot .foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.site-foot img { display: block; width: 72px; height: 72px; object-fit: contain; padding: 8px; border-radius: 50%; background: #fff; margin-bottom: 1rem; }
.site-foot h3 { margin: 0 0 .9rem; color: #fff; font-size: 1rem; }
.site-foot p, .site-foot li { margin: 0 0 .5rem; color: #c6d3ea; line-height: 1.6; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot a { color: #c6d3ea; text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-note { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; font-size: .9rem; color: #8ea1c4; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 980px) {
  .service-grid, .contact-grid, .hero-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .card-grid { grid-template-columns: 1fr; }
  .site-foot .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links { position: absolute; top: 74px; left: 4vw; right: 4vw; display: none; flex-direction: column; align-items: stretch; padding: .8rem; border-radius: 18px; background: #fff; box-shadow: var(--site-shadow); }
  .nav-bar.is-open .nav-links { display: flex; }
  .nav-links .button { margin: .3rem 0 0; }
  .steps { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .hero .slide-dots { bottom: 5.5rem; }
}
@media (max-width: 560px) {
  .service-grid, .contact-grid, .hero-strip-grid, .site-foot .foot-grid { grid-template-columns: 1fr; }
  .hero .slide-control { display: none; }
  .hero-strip { margin-top: -3rem; }
}

/* Agent Portal link and pages */
.nav-links a.nav-agent { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid #cfe0f7; color: var(--site-blue); }
.nav-links a.nav-agent:hover, .nav-links a.nav-agent.is-current { background: #e6f1ff; border-color: var(--site-blue); }
.nav-links a:focus-visible, .button:focus-visible, .agent-back:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

/* Round logo in the navbar and footer */
.nav-brand img, .site-foot > .container > div:first-child > img { border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 3px #e6f1ff; }
.nav-brand img { width: 56px; height: 56px; }
.site-foot > .container > div:first-child > img { width: 72px; height: 72px; }

/* Homepage fills the screen width instead of sitting in a centred column */
body.is-home .container { width: 100%; max-width: none; margin: 0 auto; box-sizing: border-box; padding-left: clamp(1rem, 4vw, 3.5rem); padding-right: clamp(1rem, 4vw, 3.5rem); }
body.is-home .package-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); justify-content: center; max-width: 1000px; margin-left: auto; margin-right: auto; }
body.is-home .package-choose { margin-top: auto; width: 100%; }

/* PPPoE signup form */
.signup-wrap { max-width: 760px; }
.signup-card { background: #fff; border: 1px solid #e0e6ef; border-radius: var(--site-radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--site-shadow); }
.signup-card .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.signup-card .form-field { display: flex; flex-direction: column; gap: .35rem; }
.signup-card .form-field.is-wide { grid-column: 1 / -1; }
.signup-card .form-hint { color: #5b6470; font-size: .85rem; }
.signup-card label { font-weight: 600; color: var(--site-ink); }
.signup-card input, .signup-card select, .signup-card textarea { width: 100%; box-sizing: border-box; padding: .65rem .8rem; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; }
.signup-card input:focus-visible, .signup-card select:focus-visible, .signup-card textarea:focus-visible { outline: 3px solid #93c5fd; outline-offset: 1px; }
.signup-card .gps-status { font-size: .9rem; color: var(--site-ink); margin: 0; }
.signup-card .form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.25rem; }
.signup-card .form-message { margin-top: 1rem; }
.signup-card .form-message.is-error { color: #b91c1c; }
.signup-card .form-message.is-success { color: #166534; }
.portal-facts { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: .5rem 1rem; margin: 1rem 0; }
.portal-facts dt { font-weight: 600; color: #475569; }
.portal-facts dd { margin: 0; overflow-wrap: anywhere; }
.portal-login { display: flex; justify-content: center; align-items: flex-start; min-height: calc(100vh - 160px); padding: clamp(2rem, 6vw, 4rem) 1rem; box-sizing: border-box; background: radial-gradient(900px 420px at 80% -10%, #dce9ff 0%, transparent 60%), #f1f5fb; }
.portal-login-card { width: min(460px, 100%); box-sizing: border-box; background: #fff; border: 1px solid #e3eaf5; border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: 0 18px 40px rgba(11, 31, 68, .10); }
.portal-login-head { text-align: center; margin-bottom: 1.25rem; }
.portal-login-head h1 { margin: .75rem 0 .4rem; font-size: clamp(1.5rem, 4vw, 1.85rem); color: var(--site-navy); }
.portal-login-head p { margin: 0; }
.portal-login-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(135deg, #0b1f44, #1456c0); color: #fff; font-size: 1.5rem; box-shadow: 0 10px 22px rgba(20, 86, 192, .3); }
.portal-login-card .form-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.portal-login-card .form-field input { font-size: 1.05rem; padding: .8rem .95rem; border-radius: 14px; }
.portal-wide-button { width: 100%; justify-content: center; }
.portal-support-line { text-align: center; margin: 0 0 1rem; }
.otp-boxes { display: flex; justify-content: center; gap: .55rem; margin: 1.25rem 0 .5rem; }
.otp-box { width: 2.9rem; height: 3.5rem; padding: 0; box-sizing: border-box; text-align: center; font-size: 1.5rem; font-weight: 700; color: var(--site-navy); background: #f8fafc; border: 1.5px solid #cbd5e1; border-radius: 14px; }
.otp-box:focus { outline: none; background: #fff; border-color: var(--site-blue); box-shadow: 0 0 0 3px rgba(20, 86, 192, .18); }
.otp-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; align-items: center; margin-top: 1rem; }
.otp-actions .button:disabled { opacity: .55; cursor: not-allowed; }
.button-ghost-dark { background: #eef4ff; color: var(--site-blue); border: 1px solid #cfe0ff; }
#login-form .form-message, #code-form .form-message { margin-top: 1rem; }
.form-message.is-error { color: #b91c1c; }
.form-message.is-success { color: #166534; }
@media (max-width: 380px) { .otp-box { width: 2.3rem; height: 3rem; font-size: 1.2rem; } .otp-boxes { gap: .4rem; } }

.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th, .data-table td { padding: .6rem .5rem; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
@media (max-width: 560px) {
  .portal-facts { grid-template-columns: 1fr; }
}

.portal-page-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.2rem; }
.portal-page-head h2 { margin: 0 0 .15rem; font-size: 1.2rem; color: var(--site-navy); }
.portal-page-head p { margin: 0; font-size: .92rem; color: var(--site-muted); white-space: normal; }
.portal-page-icon { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #1456c0, #0b1f44); color: #fff; font-size: 1.1rem; }
.portal-muted { margin: 0 0 1rem; font-size: .92rem; color: var(--site-muted); line-height: 1.6; }
.portal-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem; }
.portal-tile { padding: 1.1rem 1.15rem; border-radius: 16px; background: #f5f9ff; border: 1px solid #e3eaf5; min-width: 0; }
.portal-tile span { display: block; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--site-muted); }
.portal-tile strong { display: block; margin-top: .35rem; font-size: 1.1rem; color: var(--site-navy); overflow-wrap: anywhere; }
.portal-pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.portal-card { padding: 1.3rem; border-radius: 18px; border: 1px solid #e3eaf5; background: #fff; min-width: 0; }
.portal-card h3 { margin: 0 0 .35rem; font-size: 1.05rem; color: var(--site-navy); }
.portal-control { margin-top: 1.1rem; padding: 1.1rem; border-radius: 16px; background: #0b1f44; color: #fff; text-align: center; }
.portal-control-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.portal-control-number { display: block; margin: .45rem 0; font-family: Consolas, "Courier New", monospace; font-size: clamp(1.5rem, 6vw, 2.1rem); letter-spacing: .12em; word-break: break-all; }
.portal-control-amount { margin: 0 0 .8rem; color: #dbe7ff; }
.portal-control .button-ghost-dark { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); }
.portal-steps { margin: 1rem 0 0; padding-left: 1.2rem; text-align: left; font-size: .9rem; line-height: 1.6; color: #dbe7ff; }
.portal-steps-title { margin: 1rem 0 0; font-size: .95rem; color: #fff; text-align: left; }
.portal-field { display: grid; gap: .35rem; margin: 0 0 .9rem; text-align: left; }
.portal-field span { font-size: .85rem; font-weight: 600; color: #475569; }
.portal-control .portal-field span { color: #dbe7ff; }
.portal-field select { width: 100%; box-sizing: border-box; padding: .65rem .8rem; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; background: #fff; color: #0f172a; }
.portal-field select:focus-visible { outline: 3px solid #93c5fd; outline-offset: 1px; }
.portal-table table { min-width: 560px; }
@media (max-width: 560px) {
  .portal-pay-grid, .portal-tiles { grid-template-columns: 1fr; }
  .portal-page-head { align-items: flex-start; }
}
@media (max-width: 640px) {
  .nav-brand img { width: 46px; height: 46px; }
  .signup-card .form-grid { grid-template-columns: 1fr; }
}

.agent-band { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 1.5rem; align-items: center; padding: clamp(1.6rem, 3.5vw, 2.4rem); border-radius: 28px; background: #fff; border: 1px solid var(--site-line); box-shadow: var(--site-shadow); }
.agent-band h2 { margin: 0 0 .5rem; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.agent-band p { margin: 0; color: var(--site-muted); line-height: 1.7; }
.agent-band .agent-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: .9rem; border-radius: 18px; background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; font-size: 1.3rem; box-shadow: 0 10px 22px rgba(249, 115, 22, .3); }
.button-agent { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 8px 20px rgba(249, 115, 22, .28); color: #fff !important; white-space: nowrap; }
.button-agent:hover { box-shadow: 0 12px 26px rgba(249, 115, 22, .36); }

.phone-input { display: flex; border: 1px solid #cbd5e1; border-radius: 12px; overflow: hidden; background: #fff; }
.phone-input:focus-within { border-color: var(--site-blue); box-shadow: 0 0 0 3px rgba(20, 86, 192, .15); }
.phone-input span { display: flex; align-items: center; padding: 0 .85rem; background: #f1f5f9; font-weight: 700; border-right: 1px solid #e2e8f0; }
.phone-input input { flex: 1; min-width: 0; border: 0; outline: 0; box-shadow: none; font-size: 1.05rem; letter-spacing: .04em; }

.agent-app { background: #f1f5fb; min-height: 100vh; }
.agent-shell { display: flex; min-height: 100vh; width: 100%; }
.agent-sidebar { position: sticky; top: 0; flex: 0 0 272px; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem 1.1rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; overflow-y: auto; color: #fff; background: linear-gradient(185deg, #0b1f44 0%, #0d2a5c 60%, #123a78 100%); box-shadow: 4px 0 24px rgba(11, 31, 68, .18); }
.agent-brand { display: flex; align-items: center; gap: .8rem; padding: .4rem .5rem; text-decoration: none; color: #fff; }
.agent-brand-logo { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.agent-brand-logo img { width: 36px; height: 36px; object-fit: contain; }
.agent-brand-text { display: grid; line-height: 1.2; }
.agent-brand-text strong { font-size: 1.1rem; letter-spacing: .04em; }
.agent-brand-text small { color: rgba(255, 255, 255, .7); font-weight: 600; }
.agent-nav-label { margin: .5rem .6rem 0; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.agent-nav { display: grid; gap: .35rem; }
.agent-nav a { position: relative; display: flex; align-items: center; gap: .85rem; padding: .7rem .8rem; border-radius: 14px; color: rgba(255, 255, 255, .82); font-weight: 600; text-decoration: none; transition: background .15s ease, color .15s ease; }
.agent-nav a i { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .08); font-size: .95rem; transition: background .15s ease; }
.agent-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.agent-nav a.is-active { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.agent-nav a.is-active::before { content: ""; position: absolute; left: -1.1rem; top: 22%; bottom: 22%; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, #f59e0b, #f97316); }
.agent-nav a.is-active i { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 6px 14px rgba(249, 115, 22, .35); color: #fff; }
.agent-sidebar-foot { margin-top: auto; display: grid; gap: .9rem; padding: 1rem; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.agent-user { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.agent-user > span:last-child { display: grid; min-width: 0; }
.agent-user strong { display: block; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-user small { color: rgba(255, 255, 255, .7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-avatar { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #38bdf8, #1456c0); color: #fff; font-size: 1rem; box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }
.agent-logout { display: flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; padding: .65rem; border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background .15s ease; }
.agent-logout:hover { background: rgba(255, 255, 255, .12); }
.agent-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.agent-topbar { display: none; align-items: center; gap: .9rem; padding: .8rem 1rem; background: linear-gradient(90deg, #0b1f44, #0d2a5c); color: #fff; box-shadow: 0 2px 10px rgba(11, 31, 68, .18); position: sticky; top: 0; z-index: 20; }
.agent-topbar strong { color: #fff; }
.agent-menu-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.1rem; cursor: pointer; }
.agent-scrim { display: none; }
.agent-nav-toggle { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.agent-main { flex: 1; width: 100%; max-width: none; box-sizing: border-box; padding: 2rem clamp(1rem, 2.5vw, 2.75rem) 3rem; }
.agent-main [hidden] { display: none !important; }
.agent-main .info-card { background: #fff; border: 1px solid #e3eaf5; border-radius: 22px; box-shadow: 0 8px 24px rgba(11, 31, 68, .06); padding: 1.35rem 1.4rem; }
.agent-main .info-card h2 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .4rem; font-size: 1.15rem; color: var(--site-navy); }
.agent-main .info-card h2 i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e6f1ff; color: var(--site-blue); font-size: .95rem; }
.agent-main .info-card { min-width: 0; }
.agent-main input, .agent-main select { max-width: 100%; }
@media (max-width: 900px) {
  .agent-shell { display: block; }
  .agent-topbar { display: flex; }
  .agent-sidebar { position: fixed; left: 0; top: 0; z-index: 30; width: min(290px, 82vw); flex: none; transform: translateX(-100%); transition: transform .25s ease; }
  .agent-nav-toggle:checked ~ .agent-sidebar { transform: none; box-shadow: 8px 0 30px rgba(0, 0, 0, .25); }
  .agent-nav-toggle:checked ~ .agent-scrim { display: block; position: fixed; inset: 0; z-index: 29; background: rgba(11, 31, 68, .45); }
  .agent-main { padding: 1.25rem 1rem 2.5rem; }
}
.agent-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.agent-stat { display: flex; gap: 1rem; align-items: center; padding: 1.3rem; border-radius: 22px; background: #fff; border: 1px solid #e3eaf5; box-shadow: 0 8px 24px rgba(11, 31, 68, .06); }
.agent-stat i { display: grid; place-items: center; flex: 0 0 52px; height: 52px; border-radius: 16px; background: #e6f1ff; color: var(--site-blue); font-size: 1.25rem; }
.agent-stat span { display: block; color: var(--site-muted); font-size: .9rem; }
.agent-stat strong { display: block; color: var(--site-navy); font-size: 1.6rem; }
.agent-stat small { color: var(--site-muted); }
.agent-stat.is-float { color: #fff; background: linear-gradient(135deg, #0b1f44, #1456c0); }
.agent-stat.is-float i { background: rgba(255, 255, 255, .15); color: #fff; }
.agent-stat.is-float span, .agent-stat.is-float strong { color: #fff; }
.agent-grid { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: 1.25rem; align-items: start; }
.agent-grid form { display: grid; gap: .6rem; }
.agent-wide { margin-top: 1.25rem; }
.agent-two { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.agent-two > div { display: grid; gap: .4rem; }
.agent-inline { display: flex; align-items: flex-end; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.agent-inline .grow { flex: 1 1 220px; display: grid; gap: .4rem; }
.agent-inline .grow input { width: 100%; box-sizing: border-box; }
.agent-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; margin: 1rem 0; }
.agent-details div { padding: .85rem 1rem; border-radius: 14px; background: var(--site-soft); }
.agent-details dt { color: var(--site-muted); font-size: .85rem; }
.agent-details dd { margin: .2rem 0 0; color: var(--site-navy); font-weight: 700; overflow-wrap: anywhere; }
.agent-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.agent-actions .button { flex: 1 1 200px; }
.agent-result { margin-top: .9rem; padding: .9rem 1rem; border-radius: 14px; background: var(--site-soft); color: var(--site-navy); overflow-wrap: anywhere; }
.agent-avatar-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.agent-avatar-row img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #e6f1ff; }
.agent-main .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.agent-main details summary { cursor: pointer; font-weight: 700; color: var(--site-blue); margin: .4rem 0; }

@media (max-width: 900px) {
  .agent-grid, .agent-band { grid-template-columns: 1fr; }
  .agent-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .agent-cards { grid-template-columns: 1fr; }
  .agent-two { grid-template-columns: 1fr; }
}

/* Phones: each table row becomes a card with "Label: value" lines, so no column is hidden off-screen.
   The labels come from the table header (responsive-tables.js sets data-label on every cell). */
@media (max-width: 640px) {
  .agent-main .table-wrap { overflow: visible; }
  .agent-main .table-wrap table,
  .agent-main .portal-table table { min-width: 0; width: 100%; }
  .agent-main .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .agent-main .table-wrap table, .agent-main .table-wrap tbody, .agent-main .table-wrap tr, .agent-main .table-wrap td { display: block; }
  .agent-main .table-wrap tr { margin: 0 0 .75rem; padding: .6rem .85rem; border: 1px solid #e3eaf5; border-radius: 14px; background: #f8fbff; }
  .agent-main .table-wrap td { display: grid; grid-template-columns: minmax(96px, 40%) 1fr; gap: .6rem; padding: .35rem 0; border: 0; border-bottom: 1px dashed #e2e8f0; text-align: left; overflow-wrap: anywhere; }
  .agent-main .table-wrap td:last-child { border-bottom: 0; }
  .agent-main .table-wrap td::before { content: attr(data-label); font-size: .8rem; font-weight: 600; color: var(--site-muted); }
  .agent-main .table-wrap td:not([data-label])::before { content: none; }
  .agent-main .table-wrap td:not([data-label]) { grid-template-columns: 1fr; }
}
