:root {
    --ink: #17211c;
    --muted: #69736d;
    --line: #dfe5e1;
    --surface: #ffffff;
    --canvas: #f4f6f3;
    --forest: #173f32;
    --forest-2: #245844;
    --mint: #dceadf;
    --lime: #c5dd85;
    --amber: #c97828;
    --red: #a9453d;
    --blue: #3f6c78;
    --shadow: 0 18px 48px rgba(22, 48, 37, .08);
    --radius: 16px;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; min-height: 100vh; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(63, 108, 120, .25); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; }
code { padding: .16rem .35rem; border-radius: 5px; background: #e9eeea; color: var(--forest); }

.auth-body { background: var(--forest); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(390px, .75fr); }
.auth-story { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 7rem); display: flex; flex-direction: column; justify-content: center; color: #f5f8f4; background: radial-gradient(circle at 12% 10%, rgba(197, 221, 133, .16), transparent 27%), linear-gradient(145deg, #173f32, #0f2e25); }
.auth-story::after { content: ""; position: absolute; width: 520px; height: 520px; right: -230px; bottom: -240px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); }
.auth-story h1 { max-width: 850px; margin: 1.6rem 0; font-family: Georgia, serif; font-size: clamp(2.7rem, 5.5vw, 5.8rem); font-weight: 400; line-height: .99; }
.auth-lead { max-width: 700px; color: #c9d7d0; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.7; }
.auth-points { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 720px; margin-top: 4rem; background: rgba(255,255,255,.16); }
.auth-points div { display: grid; gap: .35rem; padding: 1.2rem; background: #173f32; }
.auth-points strong { color: var(--lime); font-size: 1.2rem; }
.auth-points span { color: #bdcbc5; font-size: .82rem; }
.login-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 6vw, 6rem); background: #f8f9f7; }
.login-card h2 { margin-bottom: .5rem; font-size: clamp(2rem, 3vw, 2.8rem); }
.mobile-brand { display: none; margin-bottom: 3rem; font-weight: 800; }
.brand-dot { display: inline-block; width: .8rem; height: .8rem; margin-right: .4rem; border-radius: 50%; background: var(--forest); }
.security-note { margin: 2rem 0 0; color: var(--muted); font-size: .78rem; }
.security-note span { color: var(--forest); }
.language-switch { display: inline-flex; align-self: flex-end; gap: 2px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 2rem; padding: 3px; background: #fff; }
.language-switch button { border: 0; border-radius: 5px; padding: .34rem .55rem; color: var(--muted); background: transparent; font-size: .68rem; font-weight: 900; }
.language-switch button.active { color: #fff; background: var(--forest); }
.language-switch.compact { align-self: auto; margin: 0; }
.platform-login-link { display: inline-flex; margin-top: 1.5rem; color: var(--forest-2); font-size: .76rem; font-weight: 800; text-decoration: none; }

@media (min-width: 821px) {
    .auth-body { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
    .auth-body .auth-shell { height: 100%; min-height: 0; overflow: hidden; }
    .auth-body .auth-story { padding: clamp(2rem, 4.5vw, 4.5rem); }
    .auth-body .auth-story h1 { margin: 1rem 0; font-size: clamp(2.45rem, 4.6vw, 5rem); }
    .auth-body .auth-points { margin-top: clamp(1.5rem, 3vh, 2.5rem); }
    .auth-body .login-card { justify-content: flex-start; padding: clamp(1.25rem, 4vh, 2.5rem) clamp(2rem, 5vw, 5rem); overflow: hidden; }
    .auth-body .language-switch { margin-bottom: clamp(1rem, 2.5vh, 1.6rem); }
    .auth-body .form-stack { margin-top: clamp(1.2rem, 2.5vh, 2rem); }
    .auth-body .security-note { margin-top: clamp(1rem, 2vh, 1.5rem); }
    .auth-body .platform-login-link { margin-top: clamp(.75rem, 1.5vh, 1.15rem); }
}

.brand-mark { display: flex; width: 52px; height: 44px; align-items: end; gap: 4px; }
.brand-mark span { display: block; width: 13px; border-radius: 12px 12px 2px 2px; background: var(--lime); transform: rotate(20deg); transform-origin: bottom; }
.brand-mark span:nth-child(1) { height: 25px; }
.brand-mark span:nth-child(2) { height: 42px; }
.brand-mark span:nth-child(3) { height: 32px; transform: rotate(42deg); }
.brand-mark.small { width: 36px; height: 30px; gap: 3px; }
.brand-mark.small span { width: 9px; }
.brand-mark.small span:nth-child(1) { height: 17px; }
.brand-mark.small span:nth-child(2) { height: 28px; }
.brand-mark.small span:nth-child(3) { height: 22px; }
.eyebrow { margin: 0 0 .45rem; color: var(--forest-2); font-size: .69rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.light { color: var(--lime); }
.muted { color: var(--muted); }

.form-stack { display: grid; gap: 1.15rem; margin-top: 2rem; }
label { display: grid; gap: .45rem; color: #39443e; font-size: .79rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #cfd7d2; border-radius: 9px; padding: .76rem .82rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #aebdb4; }
input:focus, select:focus, textarea:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(36, 88, 68, .08); outline: none; }
textarea { resize: vertical; line-height: 1.5; }
input[type="range"] { padding: 0; accent-color: var(--forest); }
.btn { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: .75rem; border: 1px solid transparent; border-radius: 9px; padding: .66rem 1rem; font-size: .82rem; font-weight: 800; text-decoration: none; transition: transform .15s, background .15s, opacity .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { cursor: wait; opacity: .55; transform: none; }
.btn-primary { color: #fff; background: var(--forest); box-shadow: 0 8px 18px rgba(23, 63, 50, .12); }
.btn-primary:hover { background: var(--forest-2); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-block { width: 100%; justify-content: space-between; padding: .84rem 1rem; }
.text-btn { border: 0; padding: .25rem; color: var(--forest-2); background: transparent; font-size: .76rem; font-weight: 800; }
.icon-btn { border: 0; padding: .4rem; color: #819089; background: transparent; font-size: 1.1rem; }
.form-message { display: none; margin: 0; border-radius: 7px; padding: .65rem .75rem; color: #7c2f29; background: #f8e9e7; font-size: .78rem; line-height: 1.45; }
.form-message.show { display: block; }
.form-message.success { color: #205c42; background: #e6f1e9; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; width: 258px; flex-direction: column; border-right: 1px solid rgba(255,255,255,.06); color: #d8e1dc; background: #122f27; }
.brand { display: flex; min-height: 84px; align-items: center; gap: .8rem; border-bottom: 1px solid rgba(255,255,255,.07); padding: 1.2rem 1.45rem; }
.brand strong, .brand span { display: block; }
.brand strong { color: #fff; font-size: 1.15rem; letter-spacing: -.02em; }
.brand span { margin-top: .15rem; color: #81978e; font-size: .65rem; font-weight: 700; letter-spacing: .1em; }
.nav-list { flex: 1; overflow-y: auto; padding: 1.2rem .75rem; }
.nav-label { margin: 1.25rem .7rem .45rem; color: #668078; font-size: .58rem; font-weight: 800; letter-spacing: .14em; }
.nav-item { display: flex; width: 100%; align-items: center; gap: .75rem; border: 0; border-radius: 8px; padding: .68rem .75rem; color: #aebdb7; background: transparent; font-size: .79rem; text-align: left; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.045); }
.nav-item.active { color: #fff; background: rgba(197, 221, 133, .12); box-shadow: inset 3px 0 var(--lime); }
.nav-icon { display: grid; width: 23px; height: 23px; place-items: center; color: var(--lime); font-size: .95rem; }
.sidebar-footer { display: flex; align-items: center; gap: .7rem; border-top: 1px solid rgba(255,255,255,.08); padding: 1rem; }
.user-avatar { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #173f32; background: var(--lime); font-weight: 900; }
.user-meta { min-width: 0; flex: 1; }
.user-meta strong, .user-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta strong { color: #fff; font-size: .75rem; }
.user-meta span { margin-top: .15rem; color: #82978f; font-size: .62rem; }
.sidebar-footer form { margin: 0; }

.main-content { min-height: 100vh; margin-left: 258px; }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: 1rem clamp(1.25rem, 3vw, 3rem); background: rgba(244, 246, 243, .92); backdrop-filter: blur(14px); }
.topbar h1 { margin: 0; font-size: 1.45rem; }
.breadcrumb { margin: 0 0 .2rem; color: #829089; font-size: .66rem; }
.topbar-actions { display: flex; align-items: center; gap: 1rem; }
.system-status { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .69rem; }
.system-status i { width: 7px; height: 7px; border-radius: 50%; background: #54a170; box-shadow: 0 0 0 4px rgba(84,161,112,.12); }
.menu-toggle { display: none; border: 0; border-radius: 8px; padding: .5rem; color: var(--forest); background: #e6ece8; }
.view { display: none; padding: clamp(1.25rem, 3vw, 3rem); animation: view-in .25s ease; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }
.password-alert { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid #e5d3a8; border-radius: 10px; margin-bottom: 1rem; padding: .8rem 1rem; color: #6f4c18; background: #fbf3df; text-align: left; }
.password-alert span { font-size: .72rem; }

.hero-card { position: relative; overflow: hidden; display: flex; min-height: 210px; align-items: center; justify-content: space-between; gap: 2rem; border-radius: 20px; padding: clamp(1.5rem, 4vw, 3.2rem); color: #f5f8f4; background: linear-gradient(120deg, #173f32, #265843); box-shadow: var(--shadow); }
.hero-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -80px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.025); }
.hero-card > * { position: relative; z-index: 1; }
.hero-card h2 { max-width: 720px; margin: 0 0 .7rem; font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 400; }
.hero-card p:not(.eyebrow) { max-width: 670px; margin: 0; color: #c8d8d1; font-size: .9rem; line-height: 1.6; }
.readiness { display: grid; min-width: 130px; height: 130px; place-content: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; text-align: center; background: rgba(255,255,255,.05); }
.readiness span { font-family: Georgia, serif; font-size: 2.2rem; }
.readiness small { color: #bed0c8; font-size: .65rem; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.2rem 0; }
.metric-card { display: grid; min-height: 130px; align-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: var(--surface); }
.metric-card strong { font-family: Georgia, serif; font-size: 2.3rem; font-weight: 400; }
.metric-card small, .metric-label { color: var(--muted); font-size: .69rem; }
.metric-card.risk strong { color: var(--red); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 1.2rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 7px 24px rgba(30, 59, 46, .035); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #edf0ee; padding: 1.3rem 1.4rem; }
.card-header h3 { margin: 0; font-size: 1.05rem; }
.unit { color: var(--muted); font-size: .68rem; }
.bar-chart { display: flex; min-height: 250px; align-items: end; gap: 6px; padding: 2rem 1.5rem 1.25rem; }
.bar-group { display: flex; min-width: 18px; flex: 1; align-items: end; justify-content: center; gap: 2px; height: 190px; border-bottom: 1px solid var(--line); }
.bar { width: 26%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--forest); }
.bar.scope-2 { background: var(--lime); }
.bar.scope-3 { background: #73a09a; }
.bar-label { position: absolute; transform: translateY(20px); color: var(--muted); font-size: .55rem; }
.activity-list { min-height: 250px; }
.activity-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; border-bottom: 1px solid #edf0ee; padding: 1rem 1.3rem; }
.activity-item:last-child { border-bottom: 0; }
.activity-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.activity-dot.yuksek { background: var(--red); }
.activity-dot.dusuk { background: #4f9669; }
.activity-item strong, .activity-item span { display: block; }
.activity-item strong { font-size: .77rem; }
.activity-item span { margin-top: .2rem; color: var(--muted); font-size: .67rem; }
.activity-score { color: var(--ink) !important; font-family: Georgia, serif; font-size: 1.15rem !important; }
.empty-state { width: 100%; margin: auto; padding: 2.2rem; color: var(--muted); font-size: .78rem; text-align: center; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.6rem; }
.section-heading h2 { margin: 0 0 .5rem; font-size: clamp(1.75rem, 3vw, 2.55rem); }
.section-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .83rem; }
.table-card { overflow: hidden; }
.table-toolbar { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: .7rem 1rem; }
.table-search { width: min(320px, 70%); border: 0; padding-left: .25rem; background: transparent; }
.table-search:focus { box-shadow: none; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .75rem; }
th { padding: .75rem 1rem; color: #75817a; background: #f8faf8; font-size: .63rem; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { border-top: 1px solid #edf0ee; padding: .9rem 1rem; color: #344039; vertical-align: middle; }
tbody tr:hover { background: #fafcfa; }
td strong { display: block; color: var(--ink); }
td small { display: block; margin-top: .2rem; color: var(--muted); }
.badge { display: inline-flex; align-items: center; border-radius: 99px; padding: .28rem .55rem; color: #2d6550; background: #e5f0e8; font-size: .62rem; font-weight: 800; white-space: nowrap; }
.badge.medium, .badge.bekliyor, .badge.taslak { color: #87551d; background: #f7ead8; }
.badge.high, .badge.yuksek, .badge.reddedildi { color: #8b3731; background: #f7e5e3; }
.badge.low, .badge.dusuk, .badge.dogrulandi, .badge.hazir, .badge.aktif { color: #2d6550; background: #e5f0e8; }
.score-bar { width: 92px; height: 5px; overflow: hidden; border-radius: 99px; background: #e8ece9; }
.score-bar i { display: block; height: 100%; background: var(--forest-2); }
.row-actions { display: flex; gap: .35rem; }
.mini-btn { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; padding: .35rem .55rem; color: var(--forest); background: #fff; font-size: .65rem; font-weight: 800; text-decoration: none; }
.mini-btn.danger { color: var(--red); }
.info-banner, .retention-banner { margin-bottom: 1rem; border: 1px solid #d8e4dc; border-radius: 11px; padding: .85rem 1rem; color: #496057; background: #edf4ef; font-size: .75rem; }
.risk-scale { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1rem; border-radius: 10px; padding: .75rem 1rem; background: #fff; color: var(--muted); font-size: .69rem; }
.risk-scale span { display: flex; align-items: center; gap: .4rem; }
.risk-scale i { width: 8px; height: 8px; border-radius: 50%; background: #4f9669; }
.risk-scale i.medium { background: var(--amber); }
.risk-scale i.high { background: var(--red); }
.risk-scale small { margin-left: auto; }
.scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.scope-grid article { border-left: 4px solid var(--forest); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; background: #fff; }
.scope-grid article:nth-child(2) { border-color: var(--lime); }
.scope-grid article:nth-child(3) { border-color: #73a09a; }
.scope-grid span, .scope-grid small, .scope-grid strong { display: block; }
.scope-grid span, .scope-grid small { color: var(--muted); font-size: .67rem; }
.scope-grid strong { margin: .35rem 0; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 400; }
.retention-banner { display: flex; align-items: center; gap: 1rem; border-color: #dedfc5; background: #f5f5e8; }
.retention-banner p { margin: .2rem 0 0; color: var(--muted); font-size: .7rem; }
.retention-icon { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--forest); background: var(--lime); font-weight: 900; }
.narrow-card { max-width: 560px; padding: 1.5rem; }

.modal { width: min(620px, calc(100vw - 2rem)); max-height: min(850px, calc(100vh - 2rem)); overflow-y: auto; border: 0; border-radius: 18px; padding: 0; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgba(10, 30, 22, .28); }
.modal.modal-wide { width: min(760px, calc(100vw - 2rem)); }
.modal::backdrop { background: rgba(8, 25, 19, .68); backdrop-filter: blur(3px); }
.modal-header { padding: 1.6rem 1.8rem .4rem; }
.modal-header h2 { margin: 0; font-size: 1.7rem; }
.modal-close { position: sticky; z-index: 2; top: .75rem; float: right; margin: .75rem .75rem 0 0; }
.modal-close button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #fff; font-size: 1.2rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 1.4rem 1.8rem 1.8rem; clear: both; }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; gap: .7rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.file-drop { border: 1px dashed #aebcb4; border-radius: 10px; padding: 1rem; background: #f8faf8; }
.file-drop input { border: 0; padding: .5rem 0; background: transparent; }
.file-drop small { color: var(--muted); }
.declaration-note { display: flex; justify-content: space-between; border-radius: 9px; padding: 1rem; color: #405149; background: #edf3ef; font-size: .72rem; }

.toast-region { position: fixed; z-index: 100; right: 1.2rem; bottom: 1.2rem; display: grid; width: min(380px, calc(100vw - 2.4rem)); gap: .6rem; }
.toast { border-left: 4px solid #5b9970; border-radius: 9px; padding: .85rem 1rem; color: #fff; background: #1e352b; box-shadow: 0 12px 35px rgba(0,0,0,.2); font-size: .76rem; animation: toast-in .2s ease; }
.toast.error { border-color: #d76c63; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* SaaS platform console */
.platform-body { --platform: #243b67; --platform-2: #34568f; --platform-soft: #e7edf8; background: #f3f5f9; }
.platform-auth .platform-story { background: radial-gradient(circle at 15% 15%, rgba(136, 172, 235, .2), transparent 26%), linear-gradient(145deg, #152747, #263f6e); }
.platform-story .brand-mark span { background: #9bbcf3; }
.platform-auth-stats { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.6rem; }
.platform-auth-stats span { border: 1px solid rgba(255,255,255,.15); border-radius: 99px; padding: .5rem .75rem; color: #d6e2f6; font-size: .7rem; }
.platform-shell { min-height: 100vh; }
.platform-sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; width: 258px; flex-direction: column; color: #dce4f3; background: #172844; }
.platform-brand .brand-mark span { background: #9bbcf3; }
.platform-sidebar .nav-item.active { background: rgba(132, 170, 234, .14); box-shadow: inset 3px 0 #91b4ef; }
.platform-sidebar .nav-icon { color: #9bbcf3; }
.platform-sidebar .sidebar-footer { margin-top: auto; }
.platform-avatar { color: #172844; background: #9bbcf3; }
.platform-main { min-height: 100vh; margin-left: 258px; }
.platform-topbar { background: rgba(243, 245, 249, .92); }
.platform-view { display: none; padding: clamp(1.25rem, 3vw, 3rem); animation: view-in .25s ease; }
.platform-view.active { display: block; }
.btn-platform { color: #fff; background: var(--platform); box-shadow: 0 8px 18px rgba(36,59,103,.14); }
.btn-platform:hover { background: var(--platform-2); }
.platform-body .language-switch button.active { background: var(--platform); }
.platform-body .eyebrow { color: var(--platform-2); }
.platform-body .eyebrow.light { color: #b9d0f5; }
.platform-hero { position: relative; overflow: hidden; display: flex; min-height: 220px; align-items: center; justify-content: space-between; gap: 2rem; border-radius: 20px; padding: clamp(1.5rem, 4vw, 3.2rem); color: #f7f9fe; background: radial-gradient(circle at 88% 20%, rgba(155,188,243,.18), transparent 28%), linear-gradient(125deg, #1b3156, #31588e); box-shadow: 0 20px 55px rgba(27,49,86,.16); }
.platform-hero::after { content: ""; position: absolute; width: 330px; height: 330px; right: -140px; bottom: -220px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.018); }
.platform-hero > * { position: relative; z-index: 1; }
.platform-hero h2 { max-width: 760px; margin: 0 0 .7rem; font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 400; }
.platform-hero p:not(.eyebrow) { max-width: 720px; margin: 0; color: #cfdbed; font-size: .88rem; line-height: 1.65; }
.platform-pulse { display: grid; min-width: 128px; height: 128px; place-content: center; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; text-align: center; background: rgba(255,255,255,.05); }
.platform-pulse i { width: 10px; height: 10px; justify-self: center; border-radius: 50%; background: #85dea8; box-shadow: 0 0 0 7px rgba(133,222,168,.12); }
.platform-pulse strong { margin-top: .8rem; font-size: 1.1rem; }
.platform-pulse span { color: #c7d5e9; font-size: .62rem; }
.platform-metrics .metric-card.revenue strong { color: var(--platform-2); font-size: 1.8rem; }
.platform-recent { overflow: hidden; }
.company-tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.company-tile { display: grid; gap: .65rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.2rem 1.35rem; }
.company-tile:nth-child(3n) { border-right: 0; }
.company-tile strong { font-size: .8rem; }
.company-tile small { color: var(--muted); font-size: .66rem; }
.company-tile-meta { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.workspace-code { display: inline-flex; border-radius: 5px; padding: .22rem .4rem; color: var(--platform-2); background: var(--platform-soft); font-family: ui-monospace, Consolas, monospace; font-size: .61rem; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.plan-card { position: relative; overflow: hidden; display: flex; min-height: 320px; flex-direction: column; border: 1px solid #dbe1ec; border-radius: 17px; padding: 1.5rem; background: #fff; box-shadow: 0 8px 28px rgba(36,59,103,.045); }
.plan-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--platform); }
.plan-card .plan-code { color: var(--platform-2); font-size: .62rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.plan-card h3 { margin: .65rem 0 .4rem; font-size: 1.45rem; }
.plan-card p { min-height: 54px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.plan-price { display: flex; align-items: baseline; gap: .35rem; margin: 1rem 0; }
.plan-price strong { font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.plan-price span { color: var(--muted); font-size: .68rem; }
.plan-limits { display: grid; gap: .55rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.plan-limits div { display: flex; justify-content: space-between; color: var(--muted); font-size: .7rem; }
.plan-limits strong { color: var(--ink); }
.plan-subscriptions { margin-top: auto; border-radius: 7px; padding: .65rem; color: var(--platform-2); background: var(--platform-soft); font-size: .7rem; font-weight: 800; text-align: center; }
.platform-modal .modal-header .eyebrow { color: var(--platform-2); }
.form-separator { position: relative; margin: .45rem 0 0; border-top: 1px solid var(--line); }
.form-separator span { position: relative; top: -.55rem; padding-right: .6rem; color: var(--platform-2); background: #fff; font-size: .65rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.feature-checks { display: flex; flex-wrap: wrap; gap: .7rem; border-radius: 9px; padding: .9rem; background: #f5f7fb; }
.feature-checks label { display: flex; align-items: center; gap: .4rem; }
.feature-checks input { width: auto; accent-color: var(--platform); }
.company-status-control { display: flex; min-width: 145px; align-items: center; gap: .35rem; }
.company-status-control select { min-width: 88px; padding: .38rem; font-size: .66rem; }
.company-status-control button { border: 0; border-radius: 6px; padding: .43rem .5rem; color: #fff; background: var(--platform); font-size: .63rem; font-weight: 800; }
.subscription-detail { display: grid; gap: .2rem; }
.subscription-detail strong { color: var(--platform); }

@media (max-width: 1100px) {
    .company-tile-grid, .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-story { display: none; }
    .login-card { min-height: 100vh; }
    .mobile-brand { display: block; }
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
    .sidebar.open { transform: translateX(0); }
    .platform-sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
    .platform-sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .platform-main { margin-left: 0; }
    .menu-toggle { display: block; }
    .topbar-actions .system-status { display: none; }
    .view { padding: 1.2rem; }
    .section-heading { align-items: start; flex-direction: column; gap: 1rem; }
    .scope-grid { grid-template-columns: 1fr; }
    .company-tile-grid, .plan-grid { grid-template-columns: 1fr; }
    .company-tile { border-right: 0; }
}

@media (max-width: 560px) {
    .topbar { min-height: 72px; padding: .8rem 1rem; }
    .topbar .btn { display: none; }
    .topbar h1 { font-size: 1.15rem; }
    .hero-card { align-items: start; flex-direction: column; }
    .platform-hero { align-items: start; flex-direction: column; }
    .readiness { min-width: 95px; width: 95px; height: 95px; }
    .metric-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
    .metric-card { min-height: 110px; padding: 1rem; }
    .metric-card strong { font-size: 1.8rem; }
    .form-grid { grid-template-columns: 1fr; padding: 1.2rem; }
    .span-2 { grid-column: span 1; }
    .risk-scale { align-items: start; flex-direction: column; gap: .5rem; }
    .risk-scale small { margin-left: 0; }
    .declaration-note { flex-direction: column; gap: .3rem; }
}
