/* RC2.9.0 — Premium discovery, localization and global UX */
.btn-lg { min-height: 52px; padding: 13px 21px; border-radius: 15px; }
.btn-light { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.1); backdrop-filter: blur(12px); }
.btn-light:hover { background: rgba(255,255,255,.18); }
.btn-gold { color: #071845; background: linear-gradient(135deg, #ffcb3d, var(--brand-secondary)); box-shadow: 0 16px 38px rgba(255,186,8,.24); }
.btn-whatsapp { color: #fff; background: linear-gradient(135deg, #159f60, #087b49); box-shadow: 0 12px 28px rgba(8,123,73,.2); }
.section-soft { background: linear-gradient(180deg, #f6f8fd, #eef2fb); }
.section-heading { max-width: 720px; margin-bottom: 26px; }
.section-heading h2 { margin-bottom: 8px; font-size: clamp(1.65rem, 3vw, 2.4rem); }
.section-heading p { margin: 0; color: var(--muted); }
.section-heading.split { display: flex; max-width: none; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-badge { display: inline-flex; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--brand-primary); background: #fff; font-size: .78rem; font-weight: 850; white-space: nowrap; }
.eyebrow.light { color: #ffdc77; }
.card-link { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-primary); font-size: .85rem; font-weight: 900; }
.card-link:hover { gap: 10px; }
.card-divider { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--line); }

/* Public discovery homepage */
.discovery-hero { position: relative; min-height: 640px; overflow: hidden; color: #fff; background: radial-gradient(circle at 78% 20%, rgba(255,186,8,.2), transparent 24%), radial-gradient(circle at 12% 90%, rgba(53,101,234,.28), transparent 32%), linear-gradient(135deg, #06164a 0%, #0a2472 58%, #0d318e 100%); }
.discovery-hero::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, black, transparent 90%); content: ""; }
.discovery-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); align-items: center; gap: clamp(34px, 7vw, 88px); min-height: 640px; padding-block: 78px; }
.discovery-copy h1 { max-width: 780px; margin: 20px 0; color: #fff; font-size: clamp(2.55rem, 6vw, 5.15rem); line-height: .98; letter-spacing: -.055em; }
.discovery-copy > p { max-width: 670px; color: #dce6ff; font-size: clamp(1rem, 1.8vw, 1.18rem); }
.premium-pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #f6f8ff; background: rgba(255,255,255,.08); font-size: .75rem; font-weight: 850; backdrop-filter: blur(10px); }
.premium-pill > span { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-secondary); box-shadow: 0 0 0 5px rgba(255,186,8,.13); }
.discovery-copy .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px 22px; margin-top: 30px; color: #d8e3ff; font-size: .76rem; font-weight: 760; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.hero-showcase { position: relative; min-height: 470px; }
.hero-orbit { position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.hero-orbit-one { inset: 38px 16px 30px 30px; animation: orbit-drift 9s ease-in-out infinite; }
.hero-orbit-two { inset: 90px 72px 86px 80px; border-style: dashed; animation: orbit-drift 7s ease-in-out infinite reverse; }
.showcase-main { position: absolute; z-index: 2; inset: 108px 78px auto 68px; display: flex; min-height: 190px; align-items: center; gap: 22px; padding: 28px; border: 1px solid rgba(255,255,255,.2); border-radius: 30px; background: linear-gradient(145deg, rgba(255,255,255,.2), rgba(255,255,255,.08)); box-shadow: 0 35px 85px rgba(0,0,0,.22); backdrop-filter: blur(20px); }
.showcase-main > div { display: grid; gap: 6px; }
.showcase-main small { color: #dce5fb; }
.showcase-main strong { color: #fff; font-size: 1.2rem; line-height: 1.2; }
.showcase-k { display: grid; width: 88px; height: 112px; place-items: center; border-radius: 24px; color: var(--brand-deep); background: linear-gradient(150deg, #ffd454, var(--brand-secondary)); font-size: 4.3rem; font-weight: 500; box-shadow: 0 20px 44px rgba(255,186,8,.23); }
.showcase-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; min-width: 205px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.19); border-radius: 18px; background: rgba(8,31,91,.84); box-shadow: 0 18px 45px rgba(0,0,0,.22); backdrop-filter: blur(16px); }
.showcase-card > div { display: grid; }
.showcase-card strong { color: #fff; font-size: .85rem; }
.showcase-card small { color: #bfcdf0; font-size: .7rem; }
.showcase-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; color: var(--brand-deep); background: var(--brand-secondary); }
.showcase-card-a { top: 44px; right: 4px; animation: float-card 5.5s ease-in-out infinite; }
.showcase-card-b { right: 4px; bottom: 30px; animation: float-card 6.2s ease-in-out infinite .5s; }
.showcase-card-c { bottom: 52px; left: 0; animation: float-card 5.8s ease-in-out infinite 1s; }
@keyframes float-card { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes orbit-drift { 0%,100% { transform: rotate(0) scale(1); } 50% { transform: rotate(3deg) scale(1.02); } }

.discovery-section { padding-top: 78px; }
.tenant-discovery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tenant-discovery-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.tenant-discovery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tenant-cover { position: relative; height: 150px; overflow: hidden; background: var(--brand-soft); }
.tenant-cover > img { width: 100%; height: 100%; object-fit: cover; }
.abstract-cover { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(circle at 80% 20%, rgba(255,186,8,.45), transparent 28%), linear-gradient(135deg, #0a2472, #456dd0); }
.abstract-cover i { position: absolute; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.abstract-cover i:nth-child(1) { width: 190px; height: 190px; top: -90px; right: -40px; }
.abstract-cover i:nth-child(2) { width: 130px; height: 130px; bottom: -70px; left: 20px; }
.abstract-cover i:nth-child(3) { width: 60px; height: 60px; top: 46px; left: 48%; background: rgba(255,255,255,.08); }
.featured-badge { position: absolute; top: 13px; right: 13px; padding: 6px 9px; border-radius: 999px; color: #463000; background: #ffdc75; font-size: .68rem; font-weight: 900; }
.tenant-discovery-body { display: grid; gap: 16px; padding: 20px; }
.tenant-identity { display: flex; align-items: center; gap: 12px; margin-top: -44px; }
.tenant-identity > img, .tenant-identity > span { display: grid; width: 58px; height: 58px; flex: 0 0 58px; place-items: center; border: 4px solid #fff; border-radius: 18px; background: #fff; object-fit: contain; box-shadow: 0 10px 28px rgba(6,22,74,.16); }
.tenant-identity > span { color: #fff; background: var(--brand-primary); font-size: 1.2rem; font-weight: 900; }
.tenant-identity > div { min-width: 0; padding-top: 30px; }
.tenant-identity h3 { margin: 0; overflow: hidden; font-size: 1.05rem; text-overflow: ellipsis; white-space: nowrap; }
.tenant-discovery-body > p { min-height: 44px; margin: 0; color: var(--muted); font-size: .84rem; }
.tenant-stats { display: flex; gap: 10px; }
.tenant-stats span { display: grid; flex: 1; padding: 10px; border-radius: 13px; background: var(--surface-2); color: var(--muted); font-size: .68rem; }
.tenant-stats strong { color: var(--ink); font-size: .98rem; }
.home-course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-course-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.home-course-media { position: relative; height: 180px; overflow: hidden; }
.home-course-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.home-course-card:hover .home-course-media > img { transform: scale(1.035); }
.home-course-media > span { position: absolute; right: 12px; bottom: 12px; padding: 6px 9px; border-radius: 999px; color: #fff; background: rgba(6,22,74,.82); font-size: .67rem; font-weight: 850; backdrop-filter: blur(8px); }
.abstract-course { display: grid; width: 100%; height: 100%; place-items: center; color: rgba(255,255,255,.85); background: radial-gradient(circle at 70% 25%, rgba(255,186,8,.54), transparent 27%), linear-gradient(135deg, #0a2472, #375eca); font-size: 4.6rem; font-weight: 800; }
.home-course-body { display: grid; gap: 9px; padding: 19px; }
.home-course-body > small { color: var(--brand-primary); font-weight: 850; }
.home-course-body h3 { margin: 0; font-size: 1.05rem; }
.home-course-body p { min-height: 42px; margin: 0; color: var(--muted); font-size: .82rem; }
.home-call-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-call-card { position: relative; display: grid; align-content: start; gap: 12px; min-height: 310px; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(160deg, #fff, #f7f9ff); box-shadow: var(--shadow-sm); }
.home-call-card::after { position: absolute; right: -35px; bottom: -45px; width: 120px; height: 120px; border: 18px solid rgba(10,36,114,.05); border-radius: 50%; content: ""; }
.home-call-card h3, .home-call-card p, .home-call-card .card-link, .home-call-card .chip-row { position: relative; z-index: 1; }
.home-call-card h3 { margin: 0; font-size: 1.02rem; }
.home-call-card p { margin: 0; color: var(--muted); font-size: .82rem; }
.call-brand { display: flex; align-items: center; gap: 8px; }
.call-brand > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #fff; background: var(--brand-primary); font-size: .72rem; font-weight: 900; }
.call-brand small { color: var(--ink-soft); font-weight: 800; }
.platform-value-section { padding-block: 76px; color: #fff; background: radial-gradient(circle at 85% 15%, rgba(255,186,8,.2), transparent 24%), linear-gradient(135deg, #07184c, #0a2472); }
.platform-value { display: grid; grid-template-columns: minmax(0, .95fr) minmax(460px, 1.05fr); align-items: center; gap: 70px; }
.platform-value h2 { max-width: 650px; color: #fff; font-size: clamp(1.8rem, 3.5vw, 3rem); }
.platform-value > div:first-child > p { color: #d6e0f8; }
.value-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.value-grid > span { display: grid; gap: 6px; padding: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.07); }
.value-grid .icon { color: var(--brand-secondary); }
.value-grid strong { color: #fff; }
.value-grid small { color: #c7d4f2; }

/* Searchable localization */
.localization-field { min-width: 0; }
.localization-label { display: block; min-width: 0; }
.localization-label > span { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: .82rem; font-weight: 800; }
.localization-label b { color: var(--danger); }
.localization-native { width: 100%; }
.localization-native.is-enhanced { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; border: 0; opacity: 0; pointer-events: none; }
.localization-select { position: relative; min-width: 0; }
.localization-input-wrap { position: relative; display: flex; align-items: center; }
.localization-input-wrap .icon { position: absolute; z-index: 2; left: 13px; color: var(--muted); pointer-events: none; }
.localization-input-wrap input { width: 100%; padding-left: 41px; padding-right: 36px; }
.localization-input-wrap input:disabled { cursor: not-allowed; opacity: .8; background: var(--surface-3); }
.localization-chevron { position: absolute; right: 13px; color: var(--muted); font-size: 1.1rem; pointer-events: none; }
.localization-options { position: absolute; z-index: 140; top: calc(100% + 7px); right: 0; left: 0; max-height: 290px; padding: 7px; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(6,22,74,.2); }
.localization-option { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 0; border-radius: 11px; background: transparent; text-align: left; }
.localization-option:hover, .localization-option.is-active, .localization-option[aria-selected="true"] { color: var(--brand-primary); background: var(--brand-soft); }
.localization-option span { min-width: 0; overflow: hidden; font-size: .82rem; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.localization-option small { font-size: .66rem; font-weight: 850; }
.localization-empty { margin: 0; padding: 18px; color: var(--muted); text-align: center; }
.localization-grid { align-items: start; }

/* Premium plan management */
.plan-kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.metric-card { position: relative; min-height: 148px; overflow: hidden; border-radius: 22px; box-shadow: var(--shadow-sm); }
.metric-card > div { position: relative; z-index: 2; display: grid; gap: 4px; padding: 23px; }
.metric-card span { font-size: .74rem; font-weight: 830; }
.metric-card strong { font-size: 2.3rem; line-height: 1; letter-spacing: -.05em; }
.metric-card .metric-text { max-width: 220px; overflow: hidden; font-size: 1.45rem; text-overflow: ellipsis; white-space: nowrap; }
.metric-card small { opacity: .75; }
.metric-navy { color: #fff; background: linear-gradient(135deg, #0a2472, #07184b); }
.metric-gold { color: #3e2b00; background: linear-gradient(135deg, #ffd862, #ffba08); }
.metric-violet { color: #fff; background: linear-gradient(135deg, #6546c8, #3c298b); }
.metric-art { position: absolute; inset: 0; }
.metric-art i { position: absolute; border: 1px solid currentColor; border-radius: 50%; opacity: .15; }
.metric-art i:first-child { width: 130px; height: 130px; right: -30px; bottom: -50px; }
.metric-art i:last-child { width: 72px; height: 72px; right: 52px; top: -26px; background: currentColor; opacity: .08; }
.premium-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: start; gap: 18px; margin: 22px 0; }
.premium-plan-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.premium-plan-card.is-highlighted { border-color: rgba(255,186,8,.7); box-shadow: 0 22px 62px rgba(10,36,114,.16); }
.premium-plan-card.is-highlighted::before { position: absolute; top: 0; right: 0; left: 0; height: 5px; background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary)); content: ""; }
.plan-card-top { display: flex; min-height: 190px; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 24px 22px 16px; }
.plan-card-top h2 { margin: 8px 0; font-size: 1.45rem; }
.plan-card-top p { margin: 0; color: var(--muted); font-size: .82rem; }
.plan-code { padding: 5px 8px; border-radius: 999px; color: var(--brand-primary); background: var(--brand-soft); font-size: .64rem; font-weight: 900; text-transform: uppercase; }
.plan-price { display: flex; align-items: flex-end; gap: 8px; padding: 0 22px 18px; }
.plan-price > strong { font-size: 2.35rem; line-height: .9; letter-spacing: -.055em; }
.plan-price > span { display: grid; color: var(--ink-soft); font-size: .78rem; font-weight: 900; }
.plan-price small { font-weight: 650; }
.plan-adoption { display: flex; flex-wrap: wrap; gap: 8px; padding: 15px 22px; border-block: 1px solid var(--line); background: var(--surface-2); }
.plan-adoption span { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); font-size: .71rem; font-weight: 800; }
.plan-editor summary { display: flex; align-items: center; justify-content: space-between; padding: 17px 22px; color: var(--brand-primary); font-size: .82rem; font-weight: 900; cursor: pointer; list-style: none; }
.plan-editor summary::-webkit-details-marker { display: none; }
.plan-editor[open] summary .icon { transform: rotate(90deg); }
.plan-editor-body { display: grid; gap: 17px; padding: 4px 22px 22px; }
.comparison-card { margin-top: 22px; }
.comparison-table th:not(:first-child), .comparison-table td:not(:first-child) { text-align: center; }
.comparison-yes { display: inline-grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--success); background: var(--success-soft); font-weight: 950; }
.comparison-no { color: var(--muted); }

/* Share UI */
.share-panel { display: inline-flex; }
.share-dialog { width: min(92vw, 540px); padding: 0; border: 0; border-radius: 24px; color: var(--ink); background: #fff; box-shadow: 0 34px 110px rgba(6,22,74,.32); }
.share-dialog::backdrop { background: rgba(5,16,52,.68); backdrop-filter: blur(6px); }
.share-dialog > p { padding: 0 24px; color: var(--muted); }
.share-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 14px; }
.share-dialog-head h2 { margin: 0; }
.share-actions { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; padding: 10px 24px 22px; }
.share-action { display: flex; min-height: 78px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); color: var(--ink-soft); font-size: .74rem; font-weight: 850; }
button.share-action { width: 100%; }
.share-action:hover { color: var(--brand-primary); border-color: rgba(10,36,114,.3); background: var(--brand-soft); }
.share-action-whatsapp { color: #087b49; background: #e9f8f1; }
.share-qr { display: grid; place-items: center; padding: 24px; border-top: 1px solid var(--line); background: #f8faff; }
.share-qr canvas { width: min(100%, 280px); height: auto; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.share-qr small { margin-top: 10px; }
.card-action-row { display: flex; align-items: stretch; gap: 8px; }
.card-share-button { display: grid; width: 48px; min-width: 48px; place-items: center; border: 1px solid #b8e7d2; border-radius: 13px; color: #087b49; background: #ecfaf3; }
.card-share-button:hover { color: #fff; background: #0b9155; }
.clipboard-fallback { position: fixed; left: -10000px; opacity: 0; }

/* Global premium KPI and trends */
.kpi-card { min-height: 142px; overflow: hidden; border: 0; background: linear-gradient(145deg, #fff, #f8faff); box-shadow: 0 15px 42px rgba(10,36,114,.09); }
.kpi-card::after { display: none; }
.kpi-card::before { position: absolute; top: 0; right: 0; left: 0; height: 4px; background: linear-gradient(90deg, var(--brand-primary), #4d70d1); content: ""; }
.kpi-card.kpi-success::before { background: linear-gradient(90deg, #147a53, #58c192); }
.kpi-card.kpi-warning::before { background: linear-gradient(90deg, #bd6f16, #ffba08); }
.kpi-card.kpi-info::before { background: linear-gradient(90deg, #315fc3, #53b6da); }
.kpi-card.kpi-danger::before { background: linear-gradient(90deg, #b63b44, #ec7880); }
.kpi-copy, .kpi-icon, .kpi-arrow { position: relative; z-index: 2; }
.kpi-art { position: absolute; inset: 0; color: var(--brand-primary); pointer-events: none; }
.kpi-success .kpi-art { color: var(--success); }.kpi-warning .kpi-art { color: var(--warning); }.kpi-info .kpi-art { color: var(--info); }.kpi-danger .kpi-art { color: var(--danger); }
.kpi-art i { position: absolute; border: 1px solid currentColor; border-radius: 50%; opacity: .075; }
.kpi-art i:nth-child(1) { width: 115px; height: 115px; right: -36px; bottom: -44px; border-width: 18px; }
.kpi-art i:nth-child(2) { width: 52px; height: 52px; right: 56px; top: -21px; background: currentColor; }
.kpi-art i:nth-child(3) { width: 26px; height: 26px; right: 19px; top: 25px; }
.trend-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-bottom: 22px; }
.trend-card { overflow: hidden; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.trend-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.trend-head h2 { margin: 0 0 5px; font-size: 1.12rem; }
.trend-head p { margin: 0; color: var(--muted); font-size: .78rem; }
.trend-head > strong { padding: 8px 11px; border-radius: 999px; color: var(--brand-primary); background: var(--brand-soft); font-size: .72rem; white-space: nowrap; }
.trend-svg { width: 100%; height: 190px; margin-top: 14px; overflow: visible; color: var(--brand-primary); }
.trend-gold .trend-svg { color: #c07800; }.trend-success .trend-svg { color: var(--success); }
.trend-grid-lines { fill: none; stroke: #e5eaf4; stroke-width: .5; vector-effect: non-scaling-stroke; }
.trend-area { fill: currentColor; opacity: .09; }
.trend-line { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trend-dot { fill: #fff; stroke: currentColor; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.trend-labels { display: flex; justify-content: space-between; gap: 4px; color: var(--muted); font-size: .66rem; font-weight: 750; }



/* Global internal UX refinement */
.app-main { position: relative; isolation: isolate; }
.app-main::before { position: fixed; z-index: -1; top: 0; right: 0; width: min(46vw, 720px); height: 430px; border-radius: 0 0 0 100%; background: radial-gradient(circle at 70% 20%, rgba(255,186,8,.12), transparent 36%), radial-gradient(circle at 28% 18%, rgba(58,104,214,.12), transparent 44%); content: ""; pointer-events: none; }
.app-body .content-inner > .card,
.app-body .dashboard-grid > .card,
.app-body .form-stack.card { border-color: rgba(198,208,228,.78); box-shadow: 0 14px 44px rgba(10,36,114,.075); }
.app-body .card-head h2 { letter-spacing: -.035em; }
.app-body .table-card { overflow: hidden; }
.app-body .table-wrap { border-radius: 0 0 18px 18px; }
.app-body table { width: 100%; }
.app-body th { padding-block: 13px; color: #52607b; font-size: .68rem; letter-spacing: .075em; text-transform: uppercase; }
.app-body td { padding-block: 15px; }
.app-body tbody tr:last-child td { border-bottom: 0; }
.app-body .form-stack > label,
.app-body .form-grid > label,
.app-body .localization-field { padding: 1px; }
.app-body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.app-body select,
.app-body textarea { background: linear-gradient(180deg, #fff, #fbfcff); }
.app-body input:focus,
.app-body select:focus,
.app-body textarea:focus { border-color: rgba(42,85,183,.55); box-shadow: 0 0 0 4px rgba(52,94,190,.10); }
.quick-action { position: relative; overflow: hidden; border-color: rgba(198,208,228,.72); background: linear-gradient(145deg, #fff, #f8faff); }
.quick-action::after { position: absolute; right: -28px; bottom: -30px; width: 82px; height: 82px; border: 14px solid currentColor; border-radius: 50%; opacity: .035; content: ""; }
.quick-action:hover { transform: translateY(-2px); border-color: rgba(10,36,114,.25); box-shadow: 0 13px 34px rgba(10,36,114,.09); }
.empty-state { border-radius: 20px; background: linear-gradient(145deg, #fff, #f7f9ff); }
.kpi-primary { background: linear-gradient(145deg, #fff, #eef3ff); }
.kpi-success { background: linear-gradient(145deg, #fff, #edf9f3); }
.kpi-warning { background: linear-gradient(145deg, #fff, #fff7e9); }
.kpi-info { background: linear-gradient(145deg, #fff, #eef7fc); }
.kpi-danger { background: linear-gradient(145deg, #fff, #fff0f1); }
.kpi-card:hover { transform: translateY(-3px); box-shadow: 0 22px 52px rgba(10,36,114,.13); }
.kpi-card:not(a):hover { transform: none; }
@media (max-width: 720px) {
    .app-main::before { width: 100vw; height: 260px; opacity: .7; }
    .app-body .content { padding: 16px 14px 92px; }
    .app-body .card { border-radius: 19px; }
    .app-body .table-wrap { overflow-x: auto; }
    .app-body .table-wrap table { min-width: 660px; }
}

/* Exact branded PWA launch asset */
.pwa-launch { position: fixed; z-index: 10000; inset: 0; display: grid; place-items: center; opacity: 0; background: #0a2472; transition: opacity .32s ease; }
.pwa-launch.is-visible { opacity: 1; }
.pwa-launch.is-leaving { opacity: 0; }
.pwa-launch img { width: 100%; height: 100%; object-fit: contain; background: #0a2472; }

/* Logo visibility */
.public-header .tenant-brand > .kampus-logo { width: auto; max-width: 210px; height: 44px; }

@media (max-width: 1100px) {
    .discovery-hero-grid { grid-template-columns: 1fr 420px; gap: 32px; }
    .tenant-discovery-grid, .home-course-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .home-call-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .platform-value { grid-template-columns: 1fr; gap: 34px; }
    .premium-plan-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .discovery-hero-grid { grid-template-columns: 1fr; min-height: auto; padding-block: 62px 40px; }
    .hero-showcase { width: min(100%, 560px); min-height: 420px; margin-inline: auto; }
    .plan-kpi-grid { grid-template-columns: 1fr 1fr; }
    .metric-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
    .section { padding: 42px 0; }
    .public-nav { min-height: 72px; }
    .public-header .tenant-brand > .kampus-logo { max-width: 164px; height: 38px; }
    .discovery-hero { min-height: 0; }
    .discovery-hero-grid { padding-top: 54px; }
    .discovery-copy h1 { font-size: clamp(2.35rem, 13vw, 3.65rem); }
    .discovery-copy .hero-actions { align-items: stretch; flex-direction: column; }
    .discovery-copy .btn { width: 100%; }
    .trust-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .hero-showcase { min-height: 340px; transform: scale(.94); transform-origin: top center; }
    .showcase-main { inset: 75px 28px auto 28px; min-height: 170px; padding: 22px; }
    .showcase-k { width: 72px; height: 94px; font-size: 3.5rem; }
    .showcase-card { min-width: 176px; padding: 11px; }
    .showcase-card-a { top: 12px; right: 0; }
    .showcase-card-b { right: 0; bottom: 2px; }
    .showcase-card-c { bottom: 24px; left: 0; }
    .section-heading.split { align-items: flex-start; flex-direction: column; gap: 12px; }
    .tenant-discovery-grid, .home-course-grid, .home-call-grid, .premium-plan-grid, .trend-grid { grid-template-columns: 1fr; }
    .tenant-discovery-grid { display: flex; margin-right: -16px; padding-right: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
    .tenant-discovery-card { min-width: min(86vw, 350px); scroll-snap-align: start; }
    .value-grid { grid-template-columns: 1fr; }
    .plan-kpi-grid { grid-template-columns: 1fr; }
    .metric-card:last-child { grid-column: auto; }
    .plan-card-top { min-height: 0; }
    .comparison-card { margin-inline: -4px; }
    .share-actions { grid-template-columns: 1fr; }
    .share-action { min-height: 54px; flex-direction: row; }
    .localization-options { position: fixed; z-index: 1000; top: auto; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; max-height: min(55vh, 420px); border-radius: 22px; }
    .kpi-card { min-height: 126px; }
    .trend-svg { height: 150px; }
}
@media (max-width: 430px) {
    .public-header .tenant-brand > .kampus-logo { max-width: 148px; height: 35px; }
    .public-nav nav .btn { min-height: 40px; padding-inline: 11px; font-size: .74rem; }
    .trust-row { grid-template-columns: 1fr; }
    .showcase-card-c { display: none; }
    .showcase-main { right: 8px; left: 8px; }
    .showcase-card-a, .showcase-card-b { right: -5px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-orbit, .showcase-card { animation: none; }
    .tenant-discovery-card, .home-course-media > img, .pwa-launch { transition: none; }
}
