:root {
  --ink: #10233f;
  --ink-soft: #52637a;
  --navy: #071a33;
  --blue: #1769e0;
  --blue-dark: #0d4fb5;
  --cyan: #26c6da;
  --surface: #ffffff;
  --surface-alt: #f4f7fb;
  --border: #dfe7f1;
  --success: #0d9b73;
  --shadow: 0 20px 50px rgba(16, 35, 63, .1);
  --shadow-soft: 0 10px 28px rgba(16, 35, 63, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-alt);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .navbar-brand { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

.site-nav {
  min-height: 76px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(223, 231, 241, .9);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(16, 35, 63, .04);
}
.navbar-brand { color: var(--ink); font-size: 1.25rem; font-weight: 800; letter-spacing: -.04em; }
.navbar-brand:hover { color: var(--ink); }
.navbar-brand > span:last-child span, .footer-brand span { color: var(--blue); }
.brand-mark {
  width: 34px; height: 34px; display: inline-grid; place-items: center;
  color: #fff; border-radius: 10px; font-weight: 800;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  box-shadow: 0 8px 20px rgba(23, 105, 224, .25);
}
.navbar-toggler { border: 0; box-shadow: none !important; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2310233f' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.nav-link { color: #43536a; font-weight: 600; padding: .65rem .75rem !important; }
.nav-link:hover, .nav-link:focus { color: var(--blue); }
.nav-login { border: 1px solid transparent; }

.site-main { overflow: hidden; }
.btn { font-weight: 700; border-radius: 10px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-brand { color: #fff; background: linear-gradient(135deg, var(--blue), #2a86f5); border: 0; box-shadow: 0 8px 20px rgba(23, 105, 224, .22); }
.btn-brand:hover, .btn-brand:focus { color: #fff; background: linear-gradient(135deg, var(--blue-dark), var(--blue)); box-shadow: 0 12px 24px rgba(23, 105, 224, .28); }
.btn-outline-brand { color: var(--blue); border: 1px solid #b9d2f5; background: #fff; }
.btn-outline-brand:hover { color: #fff; background: var(--blue); border-color: var(--blue); }

.hero-section {
  position: relative; overflow: hidden; margin-top: 2rem; padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.5rem, 5vw, 5rem);
  color: #fff; border-radius: 28px;
  background: linear-gradient(130deg, #071a33 0%, #0c3262 54%, #0c5bc4 100%);
  box-shadow: 0 28px 70px rgba(7, 26, 51, .24);
}
.hero-glow { position: absolute; border-radius: 999px; filter: blur(2px); pointer-events: none; }
.hero-glow-one { width: 380px; height: 380px; right: -80px; top: -170px; background: rgba(38, 198, 218, .18); }
.hero-glow-two { width: 270px; height: 270px; left: 35%; bottom: -220px; background: rgba(23, 105, 224, .35); }
.eyebrow { display: inline-block; color: var(--blue); font-size: .77rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-light { color: #83e9f1; }
.hero-title { max-width: 800px; font-size: clamp(2.65rem, 6vw, 5rem); line-height: 1.02; font-weight: 800; letter-spacing: -.055em; }
.hero-title span { color: #78e5ef; }
.hero-copy { max-width: 700px; margin-top: 1.5rem; color: #d6e2ef; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.7; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; color: #d4e6f6; font-size: .92rem; }

.feed-card { position: relative; max-width: 430px; margin-left: auto; padding: 1.5rem; border: 1px solid rgba(255,255,255,.15); border-radius: 20px; background: rgba(255,255,255,.09); box-shadow: 0 24px 60px rgba(0,0,0,.22); backdrop-filter: blur(16px); }
.feed-card-top { color: #dbe9f5; font-size: .86rem; font-weight: 700; }
.status-dot { display: inline-block; width: 9px; height: 9px; margin-right: .45rem; border-radius: 50%; background: #54e5a8; box-shadow: 0 0 0 5px rgba(84,229,168,.14); }
.feed-url { margin: 1.2rem 0; padding: 1rem; overflow: hidden; border-radius: 10px; color: #fff; background: rgba(1, 15, 30, .45); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(.86rem, 2vw, 1rem); white-space: nowrap; }
.feed-url span { color: #86a7c8; }
.feed-divider { height: 1px; margin: .6rem 0 1rem; background: rgba(255,255,255,.12); }
.feed-stat-row { display: flex; justify-content: space-between; padding: .55rem 0; color: #a9bdd1; font-size: .9rem; }
.feed-stat-row strong { color: #fff; font-weight: 600; }
.feed-pulse { display: flex; align-items: end; gap: 5px; height: 40px; margin-top: 1rem; }
.feed-pulse span { flex: 1; min-height: 8px; border-radius: 3px; background: linear-gradient(to top, #1b7aeb, #58e0eb); opacity: .8; }
.feed-pulse span:nth-child(1), .feed-pulse span:nth-child(7) { height: 35%; }.feed-pulse span:nth-child(2), .feed-pulse span:nth-child(6) { height: 65%; }.feed-pulse span:nth-child(3), .feed-pulse span:nth-child(8) { height: 48%; }.feed-pulse span:nth-child(4) { height: 92%; }.feed-pulse span:nth-child(5) { height: 75%; }

.section-space { padding: clamp(4rem, 8vw, 7rem) 0 1rem; }
.section-heading { max-width: 680px; }
.section-heading h2, .cta-panel h2 { margin-top: .7rem; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.04em; }
.section-heading p { color: var(--ink-soft); font-size: 1.05rem; }
.price-card { position: relative; padding: 1.6rem; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-soft); }
.price-card.featured { border-color: #84b8fb; transform: translateY(-6px); box-shadow: 0 20px 45px rgba(23,105,224,.15); }
.popular-tag { position: absolute; top: -12px; right: 18px; padding: .35rem .7rem; color: #fff; border-radius: 20px; background: var(--blue); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.plan-name { color: var(--ink-soft); font-weight: 700; }
.plan-price { margin-top: .6rem; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 2.25rem; font-weight: 800; letter-spacing: -.05em; }
.plan-price span { vertical-align: super; margin-right: 2px; font-size: 1rem; }
.plan-detail, .pricing-note { color: var(--ink-soft); font-size: .88rem; }
.benefit-section { padding-bottom: 5rem; }
.benefit-card { height: 100%; padding: 1.6rem; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.benefit-icon { display: grid; width: 42px; height: 42px; margin-bottom: 1.2rem; place-items: center; border-radius: 12px; color: var(--blue); background: #eaf3ff; font-weight: 800; }
.benefit-card h3 { font-size: 1.05rem; font-weight: 800; }
.benefit-card p { margin: 0; color: var(--ink-soft); line-height: 1.65; font-size: .92rem; }
.text-link { font-weight: 800; }
.cta-panel { margin-bottom: 2rem; padding: clamp(3rem, 7vw, 5rem); color: #fff; border-radius: 24px; background: linear-gradient(135deg, #0b3264, #1769e0); box-shadow: var(--shadow); }
.cta-panel p { max-width: 650px; margin: 0 auto 1.8rem; color: #dbe9f7; }

.auth-section { min-height: 70vh; }
.auth-intro { padding: 2rem 1rem 1rem 0; }
.auth-intro h1 { letter-spacing: -.05em; line-height: 1.05; }.auth-intro h1 span { color: var(--blue); }
.trust-list > div { display: flex; gap: .9rem; margin-bottom: 1.2rem; }
.trust-list strong, .trust-list small { display: block; }.trust-list small { color: var(--ink-soft); margin-top: .15rem; }
.check-icon { display: grid; flex: 0 0 30px; height: 30px; place-items: center; color: var(--success); border-radius: 50%; background: #e4f7f0; font-weight: 800; }
.auth-card { border: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow) !important; }
.secure-pill { flex: none; padding: .42rem .7rem; color: #087353; border-radius: 999px; background: #e6f8f2; font-size: .72rem; font-weight: 800; }
.verification-code-input { height: 62px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.8rem; font-weight: 800; letter-spacing: .45em; text-align: center; }
.verification-resend { border-top: 1px solid var(--border); }
.form-section-title { margin: 0 0 1rem; padding-bottom: .6rem; color: var(--ink); border-bottom: 1px solid var(--border); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .9rem; font-weight: 800; }
.form-label { color: #31445e; font-size: .84rem; font-weight: 700; }.form-label span { color: #8290a2; font-weight: 500; }
.form-control, .form-select { min-height: 46px; color: var(--ink); border: 1px solid #cad6e4; border-radius: 9px; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: #5b9df1; box-shadow: 0 0 0 .22rem rgba(23,105,224,.12); }
.card { border-color: var(--border); border-radius: 16px; }
.alert { border: 0; border-radius: 12px; }

.site-footer { color: #9db0c4; background: var(--navy); }
.footer-brand { color: #fff; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 1.25rem; font-weight: 800; }

.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 2.5rem; text-align: center; }
.page-hero h1 { max-width: 780px; margin: .75rem auto; font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; letter-spacing: -.05em; }
.page-hero p { max-width: 700px; margin: 0 auto; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7; }
.content-panel { padding: clamp(1.3rem, 4vw, 2.4rem); border: 1px solid var(--border); border-radius: 20px; background: #fff; box-shadow: var(--shadow-soft); }
.country-card { height: 100%; padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.country-card:hover { transform: translateY(-2px); border-color: #a9c9f4; box-shadow: var(--shadow-soft); }
.country-code { display: inline-grid; width: 36px; height: 28px; place-items: center; margin-bottom: .55rem; color: var(--blue); border-radius: 7px; background: #eaf3ff; font-size: .75rem; font-weight: 800; }
.feature-card { height: 100%; padding: 1.7rem; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.feature-card h2 { margin: 1rem 0 .6rem; font-size: 1.12rem; font-weight: 800; }.feature-card p { margin: 0; color: var(--ink-soft); line-height: 1.7; }
.feature-symbol { display: grid; width: 46px; height: 46px; place-items: center; color: #fff; border-radius: 13px; background: linear-gradient(135deg, var(--blue), var(--cyan)); font-weight: 800; }
.accordion-item { margin-bottom: .75rem; overflow: hidden; border: 1px solid var(--border) !important; border-radius: 12px !important; box-shadow: 0 5px 18px rgba(16,35,63,.04); }
.accordion-button { color: var(--ink); font-weight: 700; }.accordion-button:not(.collapsed) { color: var(--blue-dark); background: #edf5ff; box-shadow: none; }
.footer-heading { margin-bottom: .7rem; color: #fff; font-weight: 800; }
.site-footer a { display: block; margin: .35rem 0; color: #b9c8d7; }.site-footer a:hover { color: #fff; }
.footer-bottom { color: #71859a; border-top: 1px solid rgba(255,255,255,.09); font-size: .84rem; }

.portal-shell { display: grid; grid-template-columns: minmax(225px, 260px) minmax(0, 1fr); gap: 2rem; align-items: start; padding-top: 2.25rem; }
.portal-sidebar { position: sticky; top: 100px; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.portal-user { display: flex; align-items: center; gap: .75rem; padding: 1.25rem; border-bottom: 1px solid var(--border); background: linear-gradient(145deg, #f8fbff, #eef5ff); }
.portal-user > div { min-width: 0; }
.portal-user strong, .portal-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-user strong { color: var(--ink); font-size: .92rem; }
.portal-user small { margin-top: .1rem; color: var(--ink-soft); font-size: .72rem; }
.portal-avatar { display: grid; flex: 0 0 40px; height: 40px; place-items: center; color: #fff; border-radius: 12px; background: linear-gradient(145deg, var(--blue), var(--cyan)); font-weight: 800; box-shadow: 0 8px 18px rgba(23,105,224,.2); }
.portal-menu { padding: .75rem; }
.portal-menu a { display: flex; align-items: center; gap: .7rem; margin: .15rem 0; padding: .75rem .8rem; color: #465a72; border-radius: 10px; font-size: .86rem; font-weight: 700; transition: color .18s ease, background .18s ease, transform .18s ease; }
.portal-menu a:hover { color: var(--blue-dark); background: #f0f6ff; transform: translateX(2px); }
.portal-menu a.active { color: #fff; background: linear-gradient(135deg, var(--blue), #2a86f5); box-shadow: 0 8px 18px rgba(23,105,224,.2); }
.portal-menu a span { display: inline-grid; width: 22px; height: 22px; place-items: center; font-size: 1rem; }
.portal-content { min-width: 0; }
.portal-content > .card, .portal-card { border: 1px solid var(--border); box-shadow: var(--shadow-soft) !important; }
.portal-content h1 { color: var(--ink); font-weight: 800; letter-spacing: -.035em; }
.portal-content h2 { color: var(--ink); font-weight: 800; }
.current-email { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1rem; padding: 1rem 1.15rem; border: 1px solid #cfe0f6; border-radius: 12px; background: #f2f7ff; }
.current-email span { color: var(--ink-soft); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.current-email strong { overflow-wrap: anywhere; }
.package-picker { max-height: 250px; padding: 1rem; overflow-y: auto; border: 1px solid #cad6e4; border-radius: 10px; background: #fbfdff; }
.package-picker .form-check + .form-check { margin-top: .7rem; }
.checkout-summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: 12px; background: var(--navy); }
.checkout-summary span, .checkout-summary strong { display: block; }.checkout-summary span { color: #a9bdd1; font-size: .78rem; }.checkout-summary strong { color: #fff; font-size: 1.45rem; }
.order-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--border); font-size: .86rem; }
.order-list > div:last-child { border-bottom: 0; }.order-list span { min-width: 0; }.order-list small { display: block; margin-top: .2rem; color: var(--ink-soft); }
.ip-usage { padding: .55rem .85rem; color: var(--ink-soft); border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: .83rem; }.ip-usage strong { color: var(--blue); font-size: 1.05rem; }
.empty-state { padding: 2.4rem 1rem; text-align: center; }.empty-state > span { display: grid; width: 48px; height: 48px; margin: 0 auto 1rem; place-items: center; color: var(--blue); border-radius: 14px; background: #eaf3ff; font-size: 1.25rem; font-weight: 800; }
.ticket-message { margin-bottom: 1rem; padding: 1rem; border-left: 3px solid #7fb3f7; border-radius: 0 10px 10px 0; background: #f7faff; }.ticket-message > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-bottom: .45rem; }.ticket-message small { color: var(--ink-soft); }.ticket-message p { margin: 0; line-height: 1.6; }
.support-ticket-list .accordion-button { padding: 1rem 1.25rem; }
.ticket-accordion-title { display: flex; min-width: 0; flex-direction: column; gap: .25rem; }
.ticket-accordion-title > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-accordion-title small { color: var(--ink-soft); font-weight: 500; }
.customer-ticket-conversation { display: flex; max-height: 480px; padding: 1.25rem; overflow-y: auto; flex-direction: column; gap: .8rem; background: #f1f4f8; }
.customer-ticket-message { display: flex; width: 100%; }
.customer-ticket-message--customer { justify-content: flex-end; }
.customer-ticket-message--support { justify-content: flex-start; }
.customer-ticket-bubble { width: fit-content; max-width: min(78%, 620px); padding: .7rem .9rem .55rem; border-radius: 18px 18px 18px 5px; background: #fff; box-shadow: 0 1px 3px rgba(15, 36, 62, .12); }
.customer-ticket-message--customer .customer-ticket-bubble { color: #fff; border-radius: 18px 18px 5px 18px; background: var(--blue); }
.customer-ticket-bubble strong { display: block; margin-bottom: .2rem; font-size: .72rem; }
.customer-ticket-bubble p { margin: 0; line-height: 1.45; overflow-wrap: anywhere; }
.customer-ticket-bubble time { display: block; margin-top: .35rem; color: var(--ink-soft); font-size: .65rem; text-align: right; }
.customer-ticket-message--customer .customer-ticket-bubble time { color: rgba(255,255,255,.75); }
.customer-ticket-reply { display: flex; align-items: end; gap: .65rem; padding: 1rem 1.25rem; border-top: 1px solid var(--border); background: #fff; }
.customer-ticket-reply textarea { min-height: 48px; max-height: 140px; resize: vertical; border-radius: 18px; }
.customer-ticket-reply .btn { min-height: 48px; border-radius: 999px; }
.customer-ticket-closed { padding: 1rem; color: var(--ink-soft); border-top: 1px solid var(--border); background: #fff; text-align: center; font-size: .85rem; }
@media (max-width: 575.98px) { .customer-ticket-bubble { max-width: 90%; }.customer-ticket-reply { align-items: stretch; flex-direction: column; }.customer-ticket-reply .btn { min-height: 42px; } }
.result-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 1.25rem; place-items: center; color: #fff; border-radius: 18px; font-size: 1.6rem; font-weight: 800; }.result-icon.success { background: var(--success); }.result-icon.error { background: #dc3545; }

/* Administrator workspace */
.admin-body { min-height: 100vh; background: #f3f6fb; }
.admin-shell { display: grid; min-height: 100vh; grid-template-columns: 270px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; color: #dbe8f7; background: linear-gradient(180deg, #071a33 0%, #0a2445 100%); box-shadow: 10px 0 35px rgba(7, 26, 51, .12); z-index: 1020; }
.admin-brand { display: flex; align-items: center; gap: .8rem; min-height: 82px; padding: 1.1rem 1.25rem; color: #fff; border-bottom: 1px solid rgba(255,255,255,.09); }
.admin-brand:hover { color: #fff; }
.admin-brand > span:last-child { min-width: 0; }
.admin-brand strong, .admin-brand small { display: block; }
.admin-brand strong { font-size: 1rem; letter-spacing: -.02em; }
.admin-brand small { margin-top: .05rem; color: #8fa9c5; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.admin-menu { flex: 1; padding: 1rem .85rem; overflow-y: auto; }
.admin-menu-label { margin: .3rem .75rem .7rem; color: #6f89a7; font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.admin-menu a { display: flex; align-items: center; gap: .8rem; margin: .2rem 0; padding: .72rem .8rem; color: #b8c9db; border-radius: 10px; font-size: .86rem; font-weight: 700; transition: color .18s ease, background .18s ease, transform .18s ease; }
.admin-menu a:hover { color: #fff; background: rgba(255,255,255,.075); transform: translateX(2px); }
.admin-menu a.active { color: #fff; background: linear-gradient(135deg, #1769e0, #2685f3); box-shadow: 0 8px 22px rgba(23,105,224,.28); }
.admin-menu-icon { display: inline-grid; width: 28px; height: 28px; place-items: center; color: #93b6dc; border-radius: 8px; background: rgba(255,255,255,.06); font-size: .92rem; font-weight: 800; }
.admin-menu a.active .admin-menu-icon { color: #fff; background: rgba(255,255,255,.14); }
.admin-sidebar-footer { padding: .9rem; border-top: 1px solid rgba(255,255,255,.09); }
.admin-user-summary { display: flex; align-items: center; gap: .7rem; min-width: 0; padding: .65rem; }
.admin-user-summary > span:last-child { min-width: 0; }
.admin-user-summary strong, .admin-user-summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-summary strong { color: #fff; font-size: .8rem; }
.admin-user-summary small { color: #809ab7; font-size: .67rem; }
.admin-user-avatar { display: grid; flex: 0 0 34px; height: 34px; place-items: center; color: #fff; border-radius: 10px; background: #1769e0; font-weight: 800; }
.admin-logout { display: flex; width: 100%; align-items: center; gap: .65rem; padding: .65rem .75rem; color: #9eb3ca; border: 0; border-radius: 9px; background: transparent; font-size: .8rem; font-weight: 700; }
.admin-logout:hover { color: #fff; background: rgba(255,255,255,.07); }
.admin-workspace { min-width: 0; }
.admin-topbar { position: sticky; top: 0; display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 2rem; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.94); backdrop-filter: blur(15px); z-index: 1010; }
.admin-topbar > div { min-width: 0; }
.admin-topbar strong, .admin-topbar small { display: block; }
.admin-topbar strong { overflow: hidden; color: var(--ink); font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-topbar small { margin-top: .1rem; color: var(--ink-soft); font-size: .72rem; }
.admin-menu-toggle { display: none; width: 40px; height: 40px; color: var(--ink); border: 1px solid var(--border); border-radius: 10px; background: #fff; font-size: 1.1rem; }
.admin-main { min-width: 0; max-width: 1600px; padding: 2rem; }
.admin-main > .card { box-shadow: var(--shadow-soft); }
.admin-mobile-nav .admin-sidebar { position: static; width: 100%; height: 100%; box-shadow: none; }
.admin-page-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.5rem; }
.admin-page-heading h1 { margin: .35rem 0 .3rem; color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.045em; }
.admin-page-heading p { margin: 0; color: var(--ink-soft); }
.admin-filter-card, .admin-table-card { overflow: hidden; border: 1px solid var(--border); }
.admin-customer-table { min-width: 1120px; }
.admin-customer-table thead th { padding: .85rem 1rem; color: #5a6c82; border-bottom: 1px solid var(--border); background: #f7f9fc; font-size: .71rem; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; white-space: nowrap; }
.admin-customer-table tbody td { padding: 1rem; border-color: #e8eef5; font-size: .86rem; }
.admin-customer-table tbody tr:hover { background: #f9fbfe; }
.admin-ticket-table { min-width: 1050px; }
.admin-ticket-table thead th { padding: .85rem 1rem; color: #5a6c82; border-bottom: 1px solid var(--border); background: #f7f9fc; font-size: .71rem; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; white-space: nowrap; }
.admin-ticket-table thead th a { color: inherit; }
.admin-ticket-table thead th a:hover { color: var(--blue); }
.admin-ticket-table tbody td { padding: .9rem 1rem; border-color: #e8eef5; font-size: .84rem; }
.admin-ticket-table tbody tr:hover { background: #f9fbfe; }
.ticket-summary { display: flex; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--shadow-soft); }
.ticket-summary span { min-width: 82px; padding: .6rem .9rem; color: var(--ink-soft); border-right: 1px solid var(--border); text-align: center; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.ticket-summary span:last-child { border-right: 0; }
.ticket-summary strong { display: block; color: var(--ink); font-size: 1.05rem; }
.ticket-customer-name, .ticket-email, .ticket-subject { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-detail { height: 100%; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 10px; background: #f8fafd; }
.ticket-detail span, .ticket-detail strong { display: block; }
.ticket-detail span { margin-bottom: .2rem; color: var(--ink-soft); font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ticket-detail strong { font-size: .85rem; }
.ticket-original-message { padding: 1rem; color: #263a55; border-left: 3px solid var(--blue); border-radius: 0 10px 10px 0; background: #f5f9ff; line-height: 1.65; overflow-wrap: anywhere; }
.ticket-conversation { display: flex; flex-direction: column; gap: .85rem; max-height: 360px; padding: .25rem; overflow-y: auto; }
.ticket-thread-message { max-width: 85%; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: #f7f9fc; }
.ticket-thread-message--admin { align-self: flex-end; border-color: #bfd6f6; background: #edf5ff; }
.ticket-thread-message--customer { align-self: flex-start; }
.ticket-thread-message header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-bottom: .4rem; }
.ticket-thread-message header small { color: var(--ink-soft); }
.ticket-thread-message p { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.customer-email { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }
.online-indicator { display: inline-flex; align-items: center; gap: .35rem; margin-left: .55rem; color: #087353; font-size: .72rem; font-weight: 700; }
.online-indicator > span { width: 7px; height: 7px; border-radius: 50%; background: #19b77f; box-shadow: 0 0 0 3px rgba(25,183,127,.12); }
.customer-ip-cell { min-width: 195px; }
.customer-ip-pill { display: inline-flex; align-items: center; margin: .15rem .25rem .15rem 0; overflow: hidden; border: 1px solid #ccdaeb; border-radius: 999px; background: #f6f9fd; }
.customer-ip-pill span { padding: .32rem .2rem .32rem .65rem; color: #31445e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; }
.customer-ip-pill button { width: 28px; height: 28px; padding: 0; color: #a92d3a; border: 0; background: transparent; font-size: 1rem; font-weight: 800; line-height: 1; }
.customer-ip-pill button:hover { color: #fff; background: #dc3545; }
.admin-subscription-table { min-width: 980px; }
.admin-subscription-table thead th { padding: .85rem 1rem; color: #5a6c82; border-bottom: 1px solid var(--border); background: #f7f9fc; font-size: .71rem; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; white-space: nowrap; }
.admin-subscription-table tbody td { padding: .9rem 1rem; border-color: #e8eef5; font-size: .84rem; }
.admin-subscription-table tbody tr:hover { background: #f9fbfe; }
.customer-account-details { display: grid; grid-template-columns: minmax(90px, .7fr) 1.5fr; gap: .65rem 1rem; font-size: .86rem; }
.customer-account-details dt { color: var(--ink-soft); font-weight: 700; }
.customer-account-details dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.customer-active-packages > div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.customer-active-packages > div:first-child { padding-top: 0; }
.customer-active-packages > div:last-child { padding-bottom: 0; border-bottom: 0; }
.customer-active-packages span, .customer-active-packages small { display: block; }
.customer-active-packages small { margin-top: .2rem; color: var(--ink-soft); font-size: .72rem; }
.admin-table-card .pagination .page-link { color: var(--blue); border-color: var(--border); }
.admin-table-card .pagination .active > .page-link { color: #fff; background: var(--blue); border-color: var(--blue); }
.admin-table-card .modal .form-control[href] { overflow: hidden; color: var(--blue); text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { margin-top: .75rem; padding: .75rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--shadow-soft); }
  .site-nav .btn { display: block; margin-top: .4rem; padding: .65rem 1rem !important; }
  .feed-card { margin: 1rem auto 0; }
  .price-card.featured { transform: none; }
  .portal-shell { grid-template-columns: 1fr; gap: 1.25rem; padding-top: 1.5rem; }
  .portal-sidebar { position: static; }
  .portal-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
  .portal-menu a { margin: 0; }
  .admin-shell { display: block; }
  .admin-shell > .admin-sidebar { display: none; }
  .admin-topbar { min-height: 70px; padding: .8rem 1rem; }
  .admin-menu-toggle { display: inline-grid; flex: 0 0 40px; place-items: center; }
  .admin-main { padding: 1.25rem 1rem; }
  .admin-mobile-nav { width: min(310px, 88vw) !important; background: #071a33; }
  .admin-mobile-nav .offcanvas-header { color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); background: #071a33; }
  .admin-mobile-nav .btn-close { filter: invert(1); }
  .admin-page-heading { align-items: center; }
}
@media (max-width: 575.98px) {
  .hero-section { margin-top: 1rem; padding: 3rem 1.25rem; border-radius: 20px; }
  .hero-title { font-size: 2.55rem; }
  .hero-trust { flex-direction: column; gap: .55rem; }
  .section-space { padding-top: 3.5rem; }
  .auth-intro { padding-top: 0; }
  .auth-card .card-body { padding: 1.4rem !important; }
  .secure-pill { display: none; }
  .portal-menu { display: flex; padding: .65rem; overflow-x: auto; scroll-snap-type: x proximity; }
  .portal-menu a { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
  .portal-user { padding: 1rem; }
  .portal-content .card-body { padding: 1.25rem !important; }
  .portal-content .input-group { display: grid; grid-template-columns: 1fr 1fr; }
  .portal-content .input-group .form-control { grid-column: 1 / -1; width: 100%; border-radius: 9px 9px 0 0 !important; }
  .portal-content .input-group .btn { border-radius: 0 0 9px 9px !important; }
  .admin-page-heading { align-items: stretch; flex-direction: column; }
  .admin-page-heading .btn { width: 100%; }
  .ticket-summary { width: 100%; }
  .ticket-summary span { flex: 1; min-width: 0; }
  .admin-filter-card .col-md-auto { width: 100%; }
  .admin-filter-card .col-md-auto .btn { flex: 1; }
}
