/* agency-details.css - Agency Details page (/details?id=), component styles only.
   Tokens/resets/buttons/header/footer come from redesign-core.css + profile-header-footer.css. */

h1, h2, h3, h4 { font-weight: 800; color: var(--ink); }
.material-icons { vertical-align: middle; }

/* ---------- Layout ---------- */
.dt-page { padding: 55px 0 60px; flex: 1 0 auto; }
.breadcrumb { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.85rem; font-weight: 600; margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb .material-icons { font-size: 18px; color: var(--orange); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .crumb-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.dt-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 26px; }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.card-title .material-icons { color: var(--orange); font-size: 22px; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.badge-pro { background: var(--ink); color: #fff; }
.badge-free { background: var(--green-soft); color: var(--green); }

/* ---------- Agency hero ---------- */
.agency-hero { position: relative; overflow: hidden; }
.agency-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(26px) saturate(1.2); transform: scale(1.25); opacity: 0.25; }
.agency-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.55), var(--bg) 92%); }
.agency-hero-inner { position: relative; z-index: 1; display: flex; gap: 26px; padding: 28px; align-items: flex-start; }
.agency-logo { width: 168px; height: 168px; border-radius: 18px; object-fit: cover; border: 4px solid var(--bg); box-shadow: var(--shadow); flex-shrink: 0; background: var(--bg-soft); }
.agency-id { flex: 1; min-width: 0; }
.agency-name { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.12; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.genres { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.genre-chip { font-size: 0.78rem; font-weight: 600; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.contact-lines { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.contact-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.contact-line .material-icons { font-size: 18px; color: var(--orange); }
.contact-line a { font-weight: 700; color: var(--ink-2); }
.contact-line a:hover { color: var(--orange); }
.hero-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.icon-action { width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--bg); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.icon-action:hover { border-color: var(--orange); color: var(--orange); }
.icon-action.active { background: var(--orange-soft); border-color: var(--orange); color: var(--orange); }
.icon-action svg { width: 20px; height: 20px; fill: currentColor; }
.hero-btn { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 20px; border-radius: 11px; background: var(--orange); color: #fff; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s; box-shadow: 0 8px 20px rgba(255,102,0,0.25); }
.hero-btn:hover { background: var(--orange-2); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(255,102,0,0.32); }
.hero-btn .material-icons { font-size: 20px; }

/* stat row */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.stat-cell { background: var(--bg); padding: 18px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stat-cell .v { font-size: 1.35rem; font-weight: 900; letter-spacing: -0.02em; }
.stat-cell .v.next { font-size: 0.92rem; font-weight: 800; line-height: 1.25; }
.stat-cell .v.next .nx-city { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 600; margin-top: 2px; }
.stat-cell .l { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; margin-top: 3px; }

/* map */
.map-card iframe { display: block; width: 100%; height: 300px; border: 0; border-radius: 0 0 var(--radius) var(--radius); }
.map-card .card-title { padding: 20px 26px 14px; margin: 0; }

/* bio */
.bio { color: var(--muted); font-size: 0.97rem; }
.bio-collapsed { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bio-toggle { margin-top: 10px; color: var(--orange); font-weight: 700; cursor: pointer; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Side modules ---------- */
.module-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 22px; cursor: pointer; transition: background .15s; }
.module-head:hover { background: var(--bg-soft); }
.module-head .lhs { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.96rem; }
.module-head .lhs .material-icons { color: var(--orange); }
.module-head .chev { color: var(--muted-2); transition: transform .25s; }
.module.open .chev { transform: rotate(180deg); }
.module-body { display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows .32s cubic-bezier(.2,.9,.25,1); }
.module.open .module-body { grid-template-rows: 1fr; }
.module-body-inner { overflow: hidden; min-height: 0; padding: 0 22px; }
.module.open .module-body-inner { padding-bottom: 22px; }

.section-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 800; margin: 0 0 8px; }
.section-label small { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted-2); }
.section-label + .section-label, .staff-list + .section-label { margin-top: 16px; }

.staff-person { display: flex; align-items: center; gap: 11px; padding: 7px 0; border-top: 1px solid var(--line); }
.staff-person:first-child { border-top: none; }
.staff-pic { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: var(--bg-soft); border: 1px solid var(--line); flex-shrink: 0; }
.staff-name { font-weight: 700; font-size: 0.9rem; }
.staff-name a:hover { color: var(--orange); }
.staff-name a { cursor: pointer; }
.staff-pos { color: var(--muted); font-size: 0.8rem; line-height: 1.3; }
.staff-mail { margin-left: auto; color: var(--muted-2); }
.staff-mail:hover { color: var(--orange); }

.menu-link { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-top: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.menu-link:hover { background: var(--bg-soft); }
.menu-link .lhs { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.96rem; }
.menu-link .lhs .material-icons { color: var(--orange); }

/* news */
.news-item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.news-item:first-child { border-top: none; }
.news-pic { width: 64px; height: 48px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: var(--bg-soft); }
.news-title { font-weight: 700; font-size: 0.88rem; line-height: 1.35; }
.news-item:hover .news-title { color: var(--orange); }
.news-date { color: var(--muted-2); font-size: 0.78rem; margin-top: 3px; }

/* ---------- Generic vb-modal ---------- */
.vb-modal { position: fixed; inset: 0; z-index: 1200; background: rgba(20,22,30,0.7); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .28s ease, visibility 0s linear .3s; }
.vb-modal.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .28s ease, visibility 0s linear 0s; }
.vb-modal-card { background: var(--bg); border-radius: var(--radius); width: 100%; max-width: 980px; box-shadow: var(--shadow-lg); position: relative; opacity: 0; transform: translateY(16px) scale(.985); transition: opacity .3s ease, transform .34s cubic-bezier(.2,.9,.25,1); }
.vb-modal.open .vb-modal-card { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .vb-modal, .vb-modal-card, .te-overlay { transition: none !important; } }
.vb-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.vb-modal-head h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 9px; }
.vb-modal-close { cursor: pointer; color: var(--muted); width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.vb-modal-close:hover { background: var(--bg-soft); color: var(--ink); }
.vb-modal-body { padding: 24px; }
.vb-modal-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 60px 20px; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.vb-spinner { width: 40px; height: 40px; border: 3px solid var(--orange-soft); border-top-color: var(--orange); border-radius: 50%; animation: agSpin 0.8s linear infinite; }
@keyframes agSpin { to { transform: rotate(360deg); } }

/* roster modal - ranking banner */
.rank-banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px; background: linear-gradient(135deg, #16161a, #2a2d36); border-radius: 14px; padding: 18px 22px; margin-bottom: 20px; color: #fff; }
.rank-banner::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(255,102,0,0.35), transparent 65%); }
.rank-num { position: relative; z-index: 1; text-align: center; flex-shrink: 0; }
.rank-num .n { font-size: 2.6rem; font-weight: 900; letter-spacing: -0.04em; color: var(--orange-2); line-height: 1; }
.rank-num small { display: block; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 5px; }
.rank-detail { position: relative; z-index: 1; flex: 1; min-width: 0; }
.rank-title { font-weight: 800; font-size: 0.98rem; letter-spacing: -0.01em; }
.rank-sub { font-size: 0.8rem; color: rgba(255,255,255,0.65); margin-top: 2px; line-height: 1.45; }
.rank-meter { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.14); overflow: hidden; margin-top: 11px; }
.rank-meter span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--orange), var(--orange-2)); transition: width 1s cubic-bezier(.2,.8,.2,1); }
.rank-figures { font-size: 0.78rem; color: rgba(255,255,255,0.72); margin-top: 8px; }
.rank-figures b { color: #fff; font-weight: 800; }
@media (max-width: 560px) { .rank-banner { flex-direction: column; gap: 12px; text-align: center; } }
.roster-search { width: 100%; font-family: inherit; font-size: 0.95rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 11px; padding: 11px 14px; outline: none; margin-bottom: 18px; transition: border-color .2s, box-shadow .2s; }
.roster-search:focus { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.roster-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.roster-item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; position: relative; transition: transform .2s cubic-bezier(.2,.9,.25,1), box-shadow .2s cubic-bezier(.2,.9,.25,1), border-color .2s; }
.roster-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--orange); }
.roster-photo { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-soft); }
.roster-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2,.9,.25,1); }
.roster-item:hover .roster-photo img { transform: scale(1.06); }
.roster-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(8,9,14,.8)); }
.roster-ontour { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; background: var(--orange); color: #fff; padding: 5px 10px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.roster-ontour .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: agPulse 1.4s infinite; }
@keyframes agPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.roster-name { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; color: #fff; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.roster-body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 11px; flex: 1; justify-content: space-between; }
.roster-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.roster-chip { font-size: .68rem; font-weight: 700; color: var(--muted); background: var(--bg-soft); padding: 4px 9px; border-radius: 7px; }
.roster-chip.primary { color: var(--orange); background: var(--orange-soft); }
.roster-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 11px; border-top: 1px solid var(--line); }
.roster-foot .f-up { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.roster-foot .f-up .material-icons { font-size: 15px; color: var(--muted-2); }
.roster-foot .f-up b { color: var(--ink); font-weight: 800; }
.roster-foot .f-spotify { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 800; color: #1DB954; }
.roster-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.roster-toolbar .roster-search { flex: 1; min-width: 200px; margin-bottom: 0; }
.roster-sort-bar { display: flex; flex-wrap: wrap; gap: 7px; }
.ci-sort-pill { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink-2); font-family: inherit; font-weight: 600; font-size: 0.8rem; cursor: pointer; transition: all .16s; }
.ci-sort-pill:hover { border-color: var(--orange); color: var(--orange); }
.ci-sort-pill.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.ci-sort-pill .material-icons { font-size: 15px; }
@media (max-width: 760px) { .roster-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .roster-name { font-size: 0.95rem; } }
@media (max-width: 480px) { .roster-grid { grid-template-columns: 1fr; } .roster-name { font-size: 1.05rem; } }

/* admin modal */
.admin-list { display: flex; flex-direction: column; }
.admin-list a { display: flex; align-items: center; gap: 10px; padding: 13px 6px; border-top: 1px solid var(--line); font-weight: 700; font-size: 0.94rem; transition: color .15s; }
.admin-list a:first-child { border-top: none; }
.admin-list a:hover { color: var(--orange); }
.admin-list a .material-icons { font-size: 19px; color: var(--orange); }
.admin-meta { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-meta .m-cell { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.admin-meta .m-l { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 700; }
.admin-meta .m-v { font-weight: 800; font-size: 0.88rem; margin-top: 2px; }
@media (max-width: 560px) { .admin-meta { grid-template-columns: 1fr; } }

/* maillist modal */
.ml-company { display: flex; align-items: center; gap: 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; }
.ml-company img { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; background: var(--bg); border: 1px solid var(--line); padding: 5px; flex-shrink: 0; }
.ml-co-name { font-weight: 800; font-size: 0.95rem; line-height: 1.3; }
.ml-co-mail { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 0.78rem; font-weight: 700; color: var(--orange); background: var(--orange-soft); border-radius: 999px; padding: 3px 11px; }
.ml-co-mail .material-icons { font-size: 14px; }
.ml-tabs { display: flex; gap: 6px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 5px; margin-bottom: 18px; }
.ml-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: none; background: transparent; font-family: inherit; font-weight: 700; font-size: 0.88rem; color: var(--muted); padding: 9px 12px; border-radius: 9px; cursor: pointer; transition: .16s; }
.ml-tab .material-icons { font-size: 17px; }
.ml-tab.active { background: var(--bg); color: var(--ink); box-shadow: var(--shadow-sm); }
.ml-tab.active .material-icons { color: var(--orange); }
.ml-tab:hover:not(.active) { color: var(--orange); }
.ml-input { width: 100%; font-family: inherit; font-size: 0.95rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 11px; padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.ml-input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.ml-note { margin-top: 16px; font-size: 0.78rem; color: var(--muted-2); display: flex; gap: 7px; align-items: flex-start; line-height: 1.5; }
.ml-note .material-icons { font-size: 15px; color: var(--orange); margin-top: 1px; }
.ml-field label { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 7px; }
.ml-field select { width: 100%; font-family: inherit; font-size: 0.95rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 11px; padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.ml-field select:focus { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.ml-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.ml-btn { font-family: inherit; font-size: 0.92rem; font-weight: 700; border: none; border-radius: 11px; padding: 12px 22px; cursor: pointer; transition: background .2s, transform .15s, border-color .2s, color .2s; display: inline-flex; align-items: center; gap: 7px; }
.ml-btn .material-icons { font-size: 18px; }
.ml-btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(255,102,0,0.26); }
.ml-btn-primary:hover { background: var(--orange-2); transform: translateY(-1px); }
.ml-btn-ghost { background: var(--bg); color: var(--muted); border: 1px solid var(--line-2); }
.ml-btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.ml-success { display: none; background: var(--green-soft); border: 1px solid #b7e4c7; color: var(--green); border-radius: 11px; padding: 12px 16px; margin-top: 16px; font-weight: 700; font-size: 0.9rem; }
.ml-success.show { display: block; }

/* ---------- Free plan / PRO upsell (not logged in) ---------- */
.free-banner { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #16161a, #2a2d36); color: #fff; border-radius: 14px; padding: 13px 18px; margin-bottom: 18px; flex-wrap: wrap; }
.free-banner .material-icons { color: var(--orange-2); }
.free-banner span { flex: 1; font-size: 0.88rem; color: rgba(255,255,255,0.8); min-width: 220px; }
.free-banner b { color: #fff; }
.free-banner .fb-cta { display: inline-flex; align-items: center; gap: 6px; background: var(--orange); color: #fff; font-weight: 700; font-size: 0.84rem; padding: 9px 18px; border-radius: 10px; cursor: pointer; transition: background .2s; }
.free-banner .fb-cta:hover { background: var(--orange-2); }
.upsell-desc { color: var(--muted); font-size: 0.95rem; margin: 0 0 16px; line-height: 1.6; }
.upsell-preview { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 18px; background: var(--bg-soft); }
.upx-blur { filter: blur(5px) saturate(1.05); pointer-events: none; user-select: none; }
.upx-lock { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,0.22); }
.upx-lock .chip { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.upx-lock .chip .material-icons { font-size: 15px; color: var(--orange-2); }
.upx-lock small { font-size: 0.76rem; font-weight: 700; color: var(--ink-2); background: rgba(255,255,255,0.85); padding: 3px 10px; border-radius: 999px; }
.upx-rows { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.upx-row { display: flex; align-items: center; gap: 11px; background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; }
.upx-row .avatar-ph { width: 40px; height: 40px; border-radius: 9px; background: var(--line-2); flex: none; }
.upx-row .bars { flex: 1; }
.upx-row .bars .l1 { height: 9px; width: 45%; border-radius: 999px; background: var(--line-2); margin-bottom: 6px; }
.upx-row .bars .l2 { height: 8px; width: 70%; border-radius: 999px; background: var(--line); }
.upx-map { position: relative; height: 190px; background: linear-gradient(135deg, #dfe8ef 0%, #eef2f5 45%, #dbe7de 100%); }
.upx-map .pin { position: absolute; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: var(--orange); transform: rotate(-45deg); box-shadow: 0 4px 10px rgba(0,0,0,0.25); }
.upsell-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; margin-bottom: 18px; }
.upsell-benefits span { display: inline-flex; align-items: center; gap: 7px; font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.upsell-benefits .material-icons { font-size: 16px; color: var(--green); }
.upsell-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.plan { position: relative; border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; text-align: center; }
.plan.featured { border-color: var(--orange); background: var(--bg-tint); }
.plan .p-badge { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.plan .p-name { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.plan .p-price { font-size: 1.7rem; font-weight: 900; letter-spacing: -0.03em; margin: 4px 0 10px; }
.plan .p-price small { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.upsell-foot { text-align: center; font-size: 0.84rem; }
.upsell-foot a { color: var(--muted); text-decoration: underline; }
.upsell-foot a:hover { color: var(--orange); }
@media (max-width: 560px) { .upsell-plans, .upsell-benefits { grid-template-columns: 1fr; } }

/* full-screen iframe overlay (map tools) */
.te-overlay { position: fixed; inset: 0; z-index: 1250; display: block; background: #0c0d11; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility 0s linear .32s; }
.te-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s ease, visibility 0s linear 0s; }
.te-frame { width: 100%; height: 100%; border: 0; display: block; }
.te-close { position: fixed; top: 14px; right: 14px; z-index: 1310; width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,0.92); color: #16161a; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,0.35); transition: background .15s, color .15s, transform .15s; }
.te-close:hover { background: #fff; color: var(--orange); transform: translateY(-1px); }
/* the map tools' own in-page header (theme toggle, etc.) sits at the top - push the overlay's close button below it */
@media (min-width: 901px) { #modal-shows .te-close, #modal-nearby .te-close, #modal-tour .te-close { top: 76px; } }
.te-loading { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #c7cad1; font-size: 0.9rem; font-weight: 600; }
.te-spinner { width: 42px; height: 42px; border: 3px solid rgba(255,255,255,0.18); border-top-color: var(--orange); border-radius: 50%; animation: agSpin 0.8s linear infinite; }
@media (max-width: 900px) { .te-close { top: auto; bottom: 20px; right: 20px; box-shadow: 0 6px 20px rgba(0,0,0,0.5); } }

/* ---------- Agent contact layover (reused pattern from artist page) ---------- */
.ci-overlay { background: rgba(20,22,30,0.7); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.ci-overlay .te-frame-wrap { width: 100%; max-width: 520px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg); position: relative; opacity: 0; transform: translateY(16px) scale(.985); transition: opacity .3s ease, transform .34s cubic-bezier(.2,.9,.25,1); }
.ci-overlay.open .te-frame-wrap { opacity: 1; transform: none; }
.ci-overlay .te-frame { height: 640px; max-height: 86vh; }
.ci-overlay .te-close { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.06); color: var(--ink); box-shadow: none; }
.ci-overlay .te-loading { color: var(--muted); background: var(--bg); }
.ci-overlay .te-spinner { border-color: var(--orange-soft); border-top-color: var(--orange); }

@media (max-width: 940px) {
    .dt-grid { grid-template-columns: 1fr; }
    .agency-hero-inner { flex-direction: column; align-items: center; text-align: center; }
    .genres, .hero-actions, .contact-lines { justify-content: center; }
    .contact-line { justify-content: center; }
    .agency-name { justify-content: center; }
    .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .agency-hero-inner { padding: 22px; }
    .agency-logo { width: 132px; height: 132px; }
    .hero-btn { width: 100%; justify-content: center; }
    .breadcrumb { flex-wrap: wrap; }
    .vb-modal-head h3 { font-size: 1rem; }
    .ml-tabs { flex-direction: column; }
    .card-pad { padding: 20px; }
    .vb-modal { padding: 0; }
    .vb-modal-card { border-radius: 0; min-height: 100%; }
    .vb-modal-body { padding: 18px; }
}
