:root {
    --bg: #0d1117;
    --card: #161b22;
    --ink: #e6edf3;
    --muted: #8b949e;
    --line: rgba(255, 255, 255, .09);
    --navy: #031638;
    --navy-2: #07285d;
    --blue: #0877ff;
    --cyan: #02b8f4;
    --green: #05c990;
    --danger: #d84a5f;
    --shadow: 0 18px 45px rgba(0, 0, 0, .24);
    font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 18px 14px; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; color: #d8e8ff; border-right: 1px solid var(--line); background: #161b22; transition: width .25s ease, padding .25s ease; }
.brand { display: block; height: 64px; overflow: hidden; border-radius: 14px; background: #031638; }
.brand img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.22); }
.workspace-label { margin: 26px 12px 12px; color: #748db3; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav { display: grid; gap: 7px; }
.nav-section { margin: 17px 12px 3px; color: #6885ad; font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: #aabfdd; font-weight: 650; transition: .18s ease; }
.nav-item:hover, .nav-item.active { color: white; background: rgba(25, 130, 255, .18); }
.nav-icon { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(137, 188, 255, .23); border-radius: 9px; color: #76caff; font-size: 12px; font-weight: 900; }
.nav-item.active .nav-icon { border-color: transparent; color: white; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 8px 20px rgba(0, 123, 255, .28); }
.sidebar-foot { margin-top: auto; display: grid; gap: 14px; }
.secure-note { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid rgba(96, 165, 250, .16); border-radius: 11px; color: #94acd0; font-size: 12px; }
.secure-note span, .environment span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(5, 201, 144, .13); }

.main { min-width: 0; padding: 30px clamp(24px, 4vw, 48px) 54px; transition: margin .25s ease; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.topbar h1 { margin: 4px 0 0; font-family: "Syne", sans-serif; font-size: clamp(25px, 3vw, 35px); letter-spacing: -.045em; }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 13px; }
.menu-toggle { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #21262d; cursor: pointer; }
.menu-toggle:hover { color: var(--ink); border-color: rgba(59, 130, 246, .45); }
.operator-menu { position: relative; }
.operator-menu summary { display: flex; align-items: center; gap: 9px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 11px; background: #161b22; cursor: pointer; list-style: none; }
.operator-menu summary::-webkit-details-marker { display: none; }
.operator-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; color: white; background: linear-gradient(135deg, #3b82f6, #6366f1); }
.operator-copy strong, .operator-copy small { display: block; }
.operator-copy strong { max-width: 150px; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.operator-copy small { color: var(--muted); font-size: 9px; }
.operator-dropdown { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; width: 220px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #1c2333; box-shadow: 0 18px 45px rgba(0,0,0,.4); }
.operator-dropdown p { margin: 0 0 9px; color: var(--muted); font-size: 10px; }
.operator-dropdown button { width: 100%; padding: 9px; border: 0; border-radius: 8px; color: #f85149; background: rgba(248,81,73,.1); cursor: pointer; text-align: left; }
.eyebrow { margin: 0; color: #0877c9; font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.light { color: #63dfff; }
.environment { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #161b22; font-size: 11px; font-weight: 800; letter-spacing: .08em; }

.alert { margin: 0 0 20px; padding: 14px 16px; border-radius: 12px; font-size: 14px; }
.alert ul { margin: 8px 0 0 20px; padding: 0; }
.alert-success { color: #08745b; border: 1px solid #9ae7cf; background: #e9fbf5; }
.alert-error { color: #a12d42; border: 1px solid #fac1cb; background: #fff0f3; }

.hero-card { min-height: 220px; padding: clamp(28px, 4vw, 46px); display: flex; align-items: center; justify-content: space-between; overflow: hidden; color: white; border-radius: 24px; background: radial-gradient(circle at 85% 0%, rgba(0, 226, 170, .35), transparent 25%), linear-gradient(125deg, #03163a, #064c9e); box-shadow: 0 24px 50px rgba(6, 49, 105, .22); }
.hero-card h2 { margin: 14px 0 8px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.055em; }
.hero-card p { max-width: 670px; margin: 0; color: #bdd6f6; line-height: 1.7; }
.pill { padding: 7px 10px; border: 1px solid rgba(99, 223, 255, .4); border-radius: 999px; color: #77e8ff; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.hero-mark { width: 125px; height: 125px; display: grid; place-items: center; flex: 0 0 auto; margin-left: 30px; border: 1px solid rgba(255,255,255,.2); border-radius: 34px; color: white; background: linear-gradient(145deg, rgba(0,119,255,.8), rgba(0,225,166,.75)); font-size: 68px; font-weight: 900; transform: rotate(-8deg); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 20px 50px rgba(0,0,0,.22); }

.metric-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.metric-card, .panel { border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.metric-card { padding: 22px; }
.metric-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 750; }
.metric-card strong { display: block; margin-top: 20px; font-size: 42px; letter-spacing: -.05em; }
.metric-card p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.metric-card p span { float: right; color: #0877c9; font-size: 16px; }
.role-metric-grid { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.role-metric-grid .metric-card { position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.role-metric-grid .metric-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(14, 39, 78, .14); }
.role-metric-grid .metric-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--blue); }
.metric-violet::before { background: #7657e8 !important; }
.metric-green::before { background: var(--green) !important; }
.metric-cyan::before { background: var(--cyan) !important; }
.metric-orange::before { background: #ef9d35 !important; }
.metric-navy::before { background: var(--navy-2) !important; }
.service-state { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.service-state.online { color: #009b6f; }
.service-state.offline { color: var(--danger); }
.panel-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.panel { padding: 24px; }
.dashboard-alert { margin-top: 22px; margin-bottom: 0; }
.dashboard-panels { margin-top: 22px; }
.identity-chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.identity-chips span { padding: 7px 10px; border: 1px solid rgba(128, 211, 255, .25); border-radius: 999px; color: #d5efff; background: rgba(1, 21, 55, .28); font-size: 10px; font-weight: 850; }
.panel h2, .panel h3 { margin: 7px 0 9px; letter-spacing: -.03em; }
.panel p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.text-link { color: #0877c9; font-size: 13px; font-weight: 800; }

.content-grid { display: grid; grid-template-columns: minmax(290px, .72fr) minmax(500px, 1.5fr); gap: 20px; align-items: start; }
.providers-grid { grid-template-columns: minmax(280px, .65fr) minmax(550px, 1.55fr); }
.form-panel { position: sticky; top: 28px; }
.form-panel.compact { max-width: 440px; }
form label { display: block; margin: 15px 0 7px; color: #43546c; font-size: 12px; font-weight: 750; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--ink); background: #0d1117; transition: .18s ease; }
input:focus, select:focus, textarea:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .14); background: #101722; }
.field-row { display: grid; grid-template-columns: .55fr 1.45fr; gap: 12px; }
.switch-grid { margin: 18px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.check-card { margin: 0; padding: 11px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbfe; }
.check-card input { width: 16px; min-height: 16px; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 9px 16px; border: 0; border-radius: 10px; color: #07599c; background: #e8f4ff; cursor: pointer; font-weight: 800; transition: .18s ease; }
.button:hover { transform: translateY(-1px); filter: brightness(.98); }
.button:disabled { cursor: wait; opacity: .78; transform: none; }
.button-primary { color: white; background: linear-gradient(135deg, #0877ff, #05a9e8); box-shadow: 0 9px 20px rgba(8, 119, 255, .2); }
.button-spinner { display: none; width: 17px; height: 17px; margin-left: 9px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: white; border-radius: 50%; animation: button-spin .75s linear infinite; }
.button.is-loading .button-spinner { display: inline-block; }
.button-secondary { color: #0b6b57; background: #e6faf4; }
.button-ghost { color: #a9bddb; border: 1px solid rgba(133, 165, 209, .2); background: transparent; }
.button-small { min-height: 34px; padding: 7px 11px; font-size: 11px; }
.full { width: 100%; }
.muted { color: var(--muted); }

.panel-title, .provider-summary { display: flex; align-items: center; gap: 13px; }
.filter-bar { margin-bottom: 18px; padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.filter-copy { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.filter-copy strong, .filter-copy span { display: block; }
.filter-copy span:not(.filter-icon) { margin-top: 2px; color: var(--muted); font-size: 10px; }
.filter-icon { width: 36px; height: 36px; display: grid !important; place-items: center; border-radius: 10px; color: #0877c9; background: #e9f5ff; font-size: 20px; }
.filter-fields { width: min(760px, 100%); display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.filter-fields input, .filter-fields select { min-width: 135px; min-height: 38px; }
.filter-fields .button { flex: 0 0 auto; }
.module-banner { margin-bottom: 18px; padding: 25px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; border: 1px solid #dce8f4; border-radius: 19px; background: linear-gradient(135deg, #fff, #eff7ff); box-shadow: var(--shadow); }
.module-banner h2 { margin: 6px 0; font-size: 24px; letter-spacing: -.04em; }
.module-banner p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.6; }
.compliance-banner { background: radial-gradient(circle at 90% 0, rgba(118, 87, 232, .17), transparent 32%), linear-gradient(135deg, #fff, #f6f3ff); }
.security-banner { background: radial-gradient(circle at 90% 0, rgba(5, 201, 144, .16), transparent 32%), linear-gradient(135deg, #fff, #f0fbf8); }
.module-monogram { min-width: 80px; height: 68px; display: grid; place-items: center; border-radius: 17px; color: white; background: linear-gradient(135deg, #6f4ed5, #258fe9); font-size: 19px; font-weight: 900; box-shadow: 0 14px 28px rgba(77, 69, 183, .22); }
.stat-pair { display: flex; gap: 10px; }
.stat-pair span { min-width: 90px; padding: 13px; border: 1px solid #d7ebe4; border-radius: 13px; color: var(--muted); background: rgba(255,255,255,.75); font-size: 11px; text-align: center; }
.stat-pair strong { display: block; color: var(--ink); font-size: 25px; }
.role-grid { margin-bottom: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.role-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.role-card-head { margin-bottom: 15px; display: flex; align-items: center; gap: 11px; }
.role-card-head h3 { margin: 0; font-size: 14px; }
.role-card-head span:not(.role-avatar) { color: var(--muted); font-size: 10px; }
.role-avatar { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; color: white; background: linear-gradient(135deg, #0877ff, #05c990); font-weight: 900; }
.tag-more { color: #744f1c; background: #fff2dc; }
.json-value { display: block; max-width: 340px; overflow: hidden; color: #46647c; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.table-action { color: #0877c9; font-size: 11px; font-weight: 850; white-space: nowrap; }
.role-link { display: inline-block; margin-top: 15px; }
.detail-toolbar { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.detail-panel { margin-bottom: 20px; }
.detail-grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.detail-item { min-width: 0; padding: 16px; background: var(--card); }
.detail-item dt { margin-bottom: 7px; color: #7c8b9f; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.detail-item dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 650; }
.detail-item pre { max-height: 250px; margin: 0; overflow: auto; color: #45617b; font-size: 10px; font-weight: 500; white-space: pre-wrap; }
.permission-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.permission-grid span { padding: 10px 12px; border: 1px solid #deebf4; border-radius: 9px; color: #315873; background: #f6fbff; font-size: 11px; font-weight: 750; }
.decision-panel { max-width: 720px; }
.decision-panel h2 { margin: 7px 0 15px; }
.decision-panel .button { margin-top: 14px; }
.customer-360-grid { margin-bottom: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.customer-section { min-width: 0; }
.activity-row { padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #edf1f6; }
.activity-row > span:first-child { min-width: 0; color: var(--muted); font-size: 10px; }
.activity-row strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 12px; }
.loading-overlay { position: fixed; inset: 0; z-index: 9999; display: none; place-items: center; background: rgba(0,0,0,.68); backdrop-filter: blur(4px); }
.loading-overlay.show { display: grid; }
.loading-ring { width: 44px; height: 44px; border: 3px solid rgba(59,130,246,.22); border-top-color: #3b82f6; border-radius: 50%; animation: button-spin .7s linear infinite; }
.sidebar-overlay { display: none; position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,.65); backdrop-filter: blur(2px); }
.shell.sidebar-collapsed { grid-template-columns: 72px minmax(0, 1fr); }
.shell.sidebar-collapsed .sidebar { padding-inline: 10px; }
.shell.sidebar-collapsed .brand { height: 46px; }
.shell.sidebar-collapsed .workspace-label, .shell.sidebar-collapsed .nav-section, .shell.sidebar-collapsed .sidebar-foot { display: none; }
.shell.sidebar-collapsed .nav-item { gap: 0; width: 50px; overflow: hidden; font-size: 0; }
.shell.sidebar-collapsed .nav-icon { flex: 0 0 31px; font-size: 12px; }
.module-banner, .compliance-banner, .security-banner { border-color: var(--line); background: radial-gradient(circle at 90% 0, rgba(59,130,246,.15), transparent 34%), #161b22; }
.check-card, .pawapay-configuration, .configuration-drawer, .configuration-grid form { border-color: var(--line); background: #1c2333; }
.permission-grid span { border-color: var(--line); color: #a9c8e8; background: #1c2333; }
.filter-icon, .empty-icon, .count-badge { color: #58a6ff; background: rgba(59,130,246,.13); }
.tag { color: #8fc7f4; background: rgba(59,130,246,.12); }
th { color: #6e7681; }
td { border-top-color: var(--line); }
tbody tr:hover td { background: rgba(255,255,255,.018); }
.button { color: #79b8ff; background: rgba(59,130,246,.13); }
.button-primary { color: white; background: linear-gradient(135deg, #2563eb, #3b82f6); }
.alert-error { color: #ff7b72; border-color: rgba(248,81,73,.3); background: rgba(248,81,73,.1); }
.alert-success { color: #56d364; border-color: rgba(63,185,80,.3); background: rgba(63,185,80,.1); }
.login-card { border-color: var(--line); color: var(--ink); background: #161b22; box-shadow: 0 28px 70px rgba(0,0,0,.45); }
.login-symbol { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 13px; color: white; background: linear-gradient(135deg, #2563eb, #6366f1); box-shadow: 0 12px 25px rgba(59,130,246,.25); }
.panel-title { justify-content: space-between; margin-bottom: 15px; }
.count-badge { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #0877c9; background: #e9f5ff; font-size: 12px; font-weight: 850; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 12px; color: #8491a4; font-size: 10px; text-align: left; text-transform: uppercase; letter-spacing: .09em; }
td { padding: 15px 12px; border-top: 1px solid #edf1f6; font-size: 13px; }
td strong, td span { display: block; }
td span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.status { display: inline-block; width: max-content; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .06em; }
.status-active, .status-available { color: #06765c; background: #e4f9f2; }
.status-draft, .status-degraded { color: #916600; background: #fff4cc; }
.status-unavailable, .status-disabled { color: #a6384b; background: #ffe7eb; }
.empty { padding: 30px; color: var(--muted); text-align: center; }
.tag-list { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { display: inline-block; width: max-content; margin: 0; padding: 4px 6px; border-radius: 6px; color: #35617f; background: #edf6fb; font-size: 9px; font-weight: 800; }

.provider-list { display: grid; gap: 16px; }
.provider-card { padding: 21px; }
.provider-avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: white; background: linear-gradient(145deg, #086ff1, #00bfaa); font-size: 20px; font-weight: 900; }
.provider-summary h2 { margin: 0 0 3px; font-size: 18px; }
.provider-summary code { color: var(--muted); font-size: 11px; }
.provider-summary .status { margin-left: auto; }
.provider-meta { margin: 17px 0; padding: 11px 0; display: flex; gap: 18px; border-block: 1px solid #edf1f6; color: var(--muted); font-size: 11px; }
.provider-actions { display: grid; gap: 10px; }
.pawapay-configuration { padding: 18px; border: 1px solid #dcd3f7; border-radius: 14px; background: linear-gradient(145deg, #fbf9ff, #f5f9ff); }
.pawapay-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pawapay-heading h3 { margin: 4px 0 0; }
.credential-state { padding: 6px 9px; border-radius: 999px; color: #a6384b; background: #ffe7eb; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.credential-state.configured { color: #06765c; background: #e4f9f2; }
.callback-list { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px 12px; align-items: center; margin: 14px 0; }
.callback-list label { margin: 0; }
.copy-field, .token-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.copy-field input { min-height: 38px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.inline-fields { display: grid; grid-template-columns: 105px 1fr 135px auto; gap: 8px; align-items: end; }
.health-form { display: flex; gap: 8px; justify-content: flex-end; }
.health-form select { width: 120px; min-height: 34px; }
.configuration-drawer { margin-top: 5px; border: 1px solid var(--line); border-radius: 12px; background: #f9fbfd; }
.configuration-drawer summary { padding: 13px 15px; color: #176ba8; cursor: pointer; font-size: 12px; font-weight: 850; }
.configuration-grid { padding: 0 15px 15px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.configuration-grid form { padding: 14px; border: 1px solid #e4ebf3; border-radius: 11px; background: white; }
.configuration-grid h3 { margin: 0 0 10px; font-size: 13px; }
.field-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.empty-state { padding: 60px 30px; text-align: center; }
.empty-icon { width: 56px; height: 56px; display: grid; place-items: center; margin: auto; border-radius: 17px; color: #0877c9; background: #e9f5ff; font-weight: 900; }

.login-page { background: radial-gradient(circle at 15% 15%, rgba(8, 119, 255, .24), transparent 28%), radial-gradient(circle at 85% 85%, rgba(5, 201, 144, .16), transparent 26%), var(--navy); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-story { position: relative; padding: 55px clamp(40px, 7vw, 105px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: white; background: radial-gradient(circle at 20% 75%, rgba(0, 221, 173, .25), transparent 28%), radial-gradient(circle at 90% 10%, rgba(0, 123, 255, .38), transparent 33%), linear-gradient(140deg, #020c24, #06366f); }
.login-story::after { content: ""; position: absolute; width: 330px; height: 330px; right: -150px; bottom: -140px; border: 1px solid rgba(80, 208, 255, .25); border-radius: 50%; box-shadow: 0 0 0 60px rgba(10, 134, 255, .05), 0 0 0 120px rgba(10, 134, 255, .035); }
.login-logo { width: min(430px, 80%); height: 100px; object-fit: cover; object-position: center; transform: scale(1.15); transform-origin: left center; }
.login-story h1 { margin: 15px 0; font-size: clamp(42px, 5vw, 70px); line-height: 1.02; letter-spacing: -.06em; }
.login-story p:not(.eyebrow) { max-width: 600px; color: #b9d0ef; font-size: 17px; line-height: 1.65; }
.security-strip { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.security-strip span { padding: 8px 11px; border: 1px solid rgba(133, 216, 255, .18); border-radius: 999px; color: #8ccfec; background: rgba(1, 16, 43, .25); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.login-panel { width: 100%; display: grid; place-items: center; }
.login-card { width: min(440px, 100%); padding: clamp(30px, 5vw, 50px); border: 1px solid #e3eaf2; border-radius: 24px; background: white; box-shadow: 0 28px 70px rgba(11, 36, 72, .12); }
.login-form-logo { width: 210px; height: 60px; margin: -4px 0 24px; object-fit: cover; object-position: center; transform: scale(1.1); transform-origin: left center; }
.login-card h2 { margin: 7px 0 5px; font-size: 34px; letter-spacing: -.045em; }
.login-card .button { margin-top: 22px; }
.form-note { margin: 16px 0 0; color: #8794a7; font-size: 10px; line-height: 1.5; text-align: center; }
.mobile-brand { display: none; }

@keyframes button-spin {
    to { transform: rotate(360deg); }
}

.settings-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 18px; align-items: start; }
.settings-card { min-width: 0; }
.settings-card:first-child { grid-row: span 2; }
.settings-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.settings-heading h2 { margin: 3px 0 0; font-size: 19px; }
.settings-heading .status { margin-left: auto; }
.settings-icon { width: 42px; height: 42px; display: grid; flex: 0 0 42px; place-items: center; border-radius: 12px; color: #79b8ff; background: rgba(59,130,246,.14); }
.settings-icon-violet { color: #bc8cff; background: rgba(163,113,247,.14); }
.settings-icon-green { color: #56d364; background: rgba(63,185,80,.14); }
.two-factor-setup { margin-top: 20px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.two-factor-setup h3 { margin: 0 0 8px; font-size: 14px; }
.two-factor-setup h3:not(:first-child) { margin-top: 20px; }
.qr-box { min-height: 212px; padding: 16px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 15px; background: white; }
.qr-box img, .qr-box canvas { max-width: 100%; height: auto !important; }
.secret-value { padding: 11px 13px; overflow-wrap: anywhere; border: 1px dashed rgba(88,166,255,.45); border-radius: 10px; color: #79b8ff; background: rgba(59,130,246,.08); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; letter-spacing: .08em; }
.security-success { padding: 12px 14px; border: 1px solid rgba(63,185,80,.3); border-radius: 11px; color: #56d364; background: rgba(63,185,80,.09); }
.inline-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: end; }
.recovery-box { margin-top: 20px; padding: 16px; border: 1px solid rgba(210,153,34,.35); border-radius: 13px; color: #e3b341; background: rgba(210,153,34,.08); }
.recovery-box h3 { margin: 0; }
.recovery-codes { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.recovery-codes code { padding: 8px; border-radius: 7px; color: #f0c85d; background: rgba(0,0,0,.2); text-align: center; }
.integration-row { margin: 10px 0; padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.integration-row span:first-child { min-width: 0; }
.integration-row strong, .integration-row span:first-child { display: block; }
.integration-row span:first-child:not(.status) { color: var(--muted); font-size: 10px; }
.integration-row strong { margin-bottom: 3px; color: var(--ink); font-size: 13px; }
.security-list { margin: 0; padding: 0; display: grid; gap: 11px; list-style: none; }
.security-list li { display: flex; gap: 9px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.security-list i { margin-top: 3px; color: #56d364; }

@media (max-width: 1040px) {
    .content-grid, .providers-grid { grid-template-columns: 1fr; }
    .customer-360-grid { grid-template-columns: 1fr; }
    .form-panel { position: static; max-width: none; }
    .inline-fields { grid-template-columns: 110px 1fr; }
    .filter-bar { align-items: stretch; flex-direction: column; }
    .filter-fields { justify-content: flex-start; flex-wrap: wrap; }
    .settings-grid { grid-template-columns: 1fr; }
    .settings-card:first-child { grid-row: auto; }
}

@media (max-width: 760px) {
    .shell { display: block; }
    .sidebar { position: fixed; left: 0; top: 0; z-index: 950; width: 270px; height: 100vh; padding: 18px 14px; transform: translateX(-100%); transition: transform .25s ease; }
    .sidebar.show { transform: translateX(0); }
    .sidebar-overlay.show { display: block; }
    .brand { width: 100%; height: 58px; }
    .workspace-label, .sidebar-foot { display: block; }
    .nav { display: grid; margin: 0; }
    .nav-item { padding: 12px; font-size: 14px; }
    .nav-icon { font-size: 11px; }
    .main { padding: 24px 16px 40px; }
    .topbar-actions .environment, .operator-copy { display: none; }
    .metric-grid, .panel-grid { grid-template-columns: 1fr; }
    .hero-mark { display: none; }
    .login-shell { min-height: 100vh; padding: 20px; }
    .login-story { display: none; }
    .login-panel { min-height: 100vh; }
    .mobile-brand { display: block; margin-bottom: 28px; color: #0577d4; font-weight: 900; }
    .field-row, .switch-grid { grid-template-columns: 1fr; }
    .provider-meta { flex-direction: column; gap: 5px; }
    .inline-fields { grid-template-columns: 1fr; }
    .configuration-grid, .field-row.three { grid-template-columns: 1fr; }
    .filter-fields { display: grid; grid-template-columns: 1fr; }
    .module-banner { align-items: flex-start; flex-direction: column; }
    .stat-pair { width: 100%; }
    .stat-pair span { flex: 1; }
    .health-form { justify-content: stretch; }
    .health-form select { width: 100%; }
    .two-factor-setup { grid-template-columns: 1fr; }
    .qr-box { width: 212px; }
    .inline-action, .recovery-codes { grid-template-columns: 1fr; }
}
