:root {
  --font-primary: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --color-navy-950: #061a33;
  --color-navy-900: #082447;
  --color-navy-800: #0c315e;
  --color-blue-700: #1559d6;
  --color-blue-600: #1f6feb;
  --color-blue-500: #3b82f6;
  --color-green-700: #0c7a46;
  --color-green-600: #119454;
  --color-green-500: #22a963;
  --color-surface: #ffffff;
  --color-background: #f4f7fb;
  --color-background-soft: #eef3f8;
  --color-border: #dce4ee;
  --color-border-soft: #e8edf3;
  --color-text-primary: #0b1f3a;
  --color-text-secondary: #53647a;
  --color-text-muted: #7a899c;
  --color-success: #168a50;
  --color-warning: #b85f00;
  --color-danger: #c92a3b;
  --color-info: #1f6feb;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 4px 14px rgba(15, 35, 60, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 35, 60, 0.10);
  --shadow-lg: 0 24px 55px rgba(7, 25, 50, 0.15);
  --transition: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; font-family: var(--font-primary); color-scheme: light; }
body { margin: 0; min-height: 100%; color: var(--color-text-primary); background: var(--color-background); font-family: var(--font-primary); font-size: 1rem; font-weight: 400; line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: clamp(1.75rem, 2.4vw, 2.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.25rem, 1.75vw, 1.75rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.018em; }
h3, h4 { font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
a { color: var(--color-blue-700); text-decoration: none; }
a:hover { color: var(--color-blue-600); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { transition: color var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
:focus-visible { outline: 3px solid rgba(31, 111, 235, 0.28); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: 0.58; transform: none; }

/* Public shell */
.public-body { display: flex; min-height: 100vh; flex-direction: column; background: radial-gradient(circle at 8% 14%, rgba(59, 130, 246, 0.07), transparent 26rem), radial-gradient(circle at 92% 78%, rgba(34, 169, 99, 0.045), transparent 25rem), var(--color-background); }
.public-header { position: relative; z-index: 5; display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 24px; padding: 14px clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--color-border); background: rgba(255, 255, 255, 0.98); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--color-navy-950); font-weight: 700; line-height: 1.25; }
.brand:hover { color: var(--color-navy-800); }
.brand-mark { display: grid; min-width: 46px; height: 40px; place-items: center; border-radius: var(--radius-sm); background: var(--color-navy-950); color: white; font-size: 0.94rem; font-weight: 700; letter-spacing: 0.045em; box-shadow: var(--shadow-sm); }
.brand-mark.large { width: 64px; height: 56px; margin: 0 auto; border-radius: var(--radius-md); }
.public-header nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.public-header nav a { color: var(--color-text-secondary); font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
.public-header nav a:hover { color: var(--color-blue-700); }
.public-footer, .admin-footer { padding: 16px 24px; border-top: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-muted); text-align: center; font-size: 0.75rem; font-weight: 400; }

/* Landing */
.landing-grid { display: grid; flex: 1; grid-template-columns: minmax(300px, 1fr) minmax(430px, 1.35fr) minmax(300px, 1fr); min-height: 720px; }
.login-zone { display: flex; align-items: center; padding: 52px clamp(22px, 3.1vw, 50px); background: transparent; }
.login-card { position: relative; width: 100%; max-width: 420px; margin: auto; padding: clamp(30px, 3vw, 40px); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-md); }
.login-card::before { position: absolute; inset: 0 28px auto; height: 3px; border-radius: 0 0 4px 4px; content: ""; opacity: 0.9; }
.client-zone .login-card::before, .focused-card .client-button:first-child { background: var(--color-blue-600); }
.admin-zone .login-card::before, .admin-focused::before { background: var(--color-green-600); }
.portal-icon { display: grid; width: 50px; height: 50px; place-items: center; border-radius: var(--radius-md); font-size: 1.35rem; }
.client-icon { color: var(--color-blue-700); background: #eaf2ff; }
.admin-icon { color: var(--color-green-700); background: #e6f6ee; }
.login-card-header { margin-bottom: 25px; text-align: center; }
.login-card-header .portal-icon { margin-right: auto; margin-left: auto; }
.login-card-header h1 { margin: 20px 0 8px; color: var(--color-navy-950); font-size: clamp(1.55rem, 2vw, 1.9rem); font-weight: 700; }
.login-card-header p { max-width: 300px; margin: 0 auto; color: var(--color-text-secondary); font-weight: 400; line-height: 1.65; }
.register-link { margin: 20px 0 0; color: var(--color-text-secondary); text-align: center; font-size: 0.82rem; }
.setup-notice { display: grid; gap: 4px; margin: -7px 0 19px; padding: 12px 14px; border: 1px solid #f2d49a; border-radius: var(--radius-md); background: #fff9ed; color: #75510d; font-size: 0.78rem; line-height: 1.45; }
.setup-notice strong { font-weight: 600; }
.setup-notice a { font-weight: 600; }

.corporate-panel { position: relative; display: flex; align-items: center; overflow: hidden; padding: clamp(44px, 4.5vw, 68px); background: radial-gradient(circle at 88% 12%, rgba(59, 130, 246, 0.20), transparent 34%), linear-gradient(145deg, var(--color-navy-950), var(--color-navy-900) 72%, var(--color-navy-800)); color: white; }
.corporate-panel::before, .corporate-panel::after { position: absolute; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 50%; content: ""; pointer-events: none; }
.corporate-panel::before { right: -160px; bottom: -210px; width: 520px; height: 520px; }
.corporate-panel::after { right: -85px; bottom: -135px; width: 370px; height: 370px; box-shadow: 0 0 0 72px rgba(255, 255, 255, 0.018); }
.corporate-inner { position: relative; z-index: 1; width: 100%; max-width: 660px; margin: auto; }
.hero-intro { max-width: 760px; margin: 0 auto; text-align: center; }
.trust-badge { display: inline-flex; align-items: center; padding: 7px 13px; border: 1px solid rgba(34, 169, 99, 0.45); border-radius: 999px; background: rgba(17, 148, 84, 0.14); color: #8be2b4; font-size: 0.8rem; font-weight: 500; }
.corporate-inner h2 { margin: 27px 0 20px; color: white; font-size: clamp(2.35rem, 3.6vw, 3.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; }
.corporate-inner h2 em { color: #65a5f5; font-style: normal; font-weight: 700; }
.corporate-inner .lead { max-width: 680px; margin: 0 auto; color: #d5e0ee; font-size: clamp(0.98rem, 1.2vw, 1.08rem); font-weight: 400; line-height: 1.7; }
.feature-grid { display: grid; width: 100%; max-width: 620px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 28px; margin: 40px auto; }
.feature-grid article { display: flex; gap: 14px; align-items: flex-start; }
.feature-grid b { display: grid; flex: 0 0 40px; height: 40px; place-items: center; border: 1px solid rgba(110, 169, 240, 0.09); border-radius: 10px; background: rgba(47, 119, 205, 0.20); color: #8bbdff; font-weight: 600; }
.feature-grid h3 { margin: 1px 0 5px; color: white; font-size: 0.95rem; font-weight: 600; }
.feature-grid p { margin: 0; color: #b9c9dd; font-size: 0.82rem; line-height: 1.55; }
.corporate-inner aside.financial-goals-callout { display: flex; max-width: 620px; margin: 0 auto; padding: 17px 20px; align-items: center; justify-content: center; flex-direction: column; border-top: 3px solid var(--color-green-500); border-left: 0; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.075); text-align: center; }
.corporate-inner aside strong, .corporate-inner aside span { display: block; }
.corporate-inner aside strong { font-weight: 600; }
.corporate-inner aside span { margin-top: 4px; color: #c3d2e4; font-size: 0.86rem; }

/* Forms and buttons */
.field { display: block; margin: 17px 0; color: var(--color-text-primary); font-size: 0.82rem; font-weight: 600; }
.field > span:first-child { display: block; margin-bottom: 7px; }
.input-wrap { position: relative; display: block; }
.field input:not([type="checkbox"]), .field select, .field textarea { width: 100%; min-height: 50px; padding: 0 44px 0 14px; border: 1px solid #cbd6e3; border-radius: 11px; background: white; color: var(--color-text-primary); font-weight: 400; line-height: 1.5; }
.field input::placeholder { color: #98a5b5; }
.field input:not([type="checkbox"]):hover { border-color: #aebdce; }
.client-zone .field input:focus, .focused-card .field input:focus { border-color: var(--color-blue-600); outline: none; box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.12); }
.admin-zone .field input:focus, .admin-focused .field input:focus, .settings-card .field input:focus { border-color: var(--color-green-600); outline: none; box-shadow: 0 0 0 4px rgba(17, 148, 84, 0.12); }
.password-toggle { position: absolute; top: 6px; right: 6px; display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--color-text-muted); cursor: pointer; }
.password-toggle:hover { background: var(--color-background-soft); color: var(--color-text-primary); }
.check-field { display: flex; align-items: center; gap: 9px; color: var(--color-text-secondary); font-weight: 500; }
.check-field input { width: 15px; height: 15px; accent-color: var(--color-blue-600); }
.admin-zone .check-field input, .verification-card .check-field input { accent-color: var(--color-green-600); }
.field-error, .form-errors { display: block; margin-top: 7px; color: var(--color-danger); font-size: 0.78rem; font-weight: 500; line-height: 1.45; }
.form-errors { padding: 11px 13px; border: 1px solid #f1b5bd; border-radius: var(--radius-sm); background: #fff2f4; }
.form-errors ul { margin: 0; padding-left: 18px; }
.form-links { margin: -39px 0 21px; text-align: right; font-size: 0.8rem; }
.primary { min-height: 48px; padding: 0 21px; border: 0; border-radius: 10px; color: white; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-sm); }
.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.login-card .primary, .verification-card .primary { width: 100%; }
.client-button { background: var(--color-blue-700); }
.client-button:hover:not(:disabled) { background: #104bb8; }
.admin-button { background: var(--color-green-600); }
.admin-button:hover:not(:disabled) { background: var(--color-green-700); }
.text-button { border: 0; background: transparent; color: var(--color-blue-700); font-weight: 600; cursor: pointer; }
.text-button:hover:not(:disabled) { color: var(--color-blue-600); }
.text-button:disabled { color: #9da9b8; }
.button-link { display: grid; place-items: center; }
.back-link { display: block; margin-top: 22px; text-align: center; font-size: 0.82rem; font-weight: 500; }

/* Focused authentication, registration, client and error pages */
.focused-page, .verification-page { display: grid; flex: 1; place-items: center; padding: 50px 20px; background: radial-gradient(circle at 78% 8%, rgba(59, 130, 246, 0.09), transparent 29rem), radial-gradient(circle at 12% 88%, rgba(34, 169, 99, 0.05), transparent 24rem), var(--color-background); }
.focused-card { max-width: 470px; }
.verification-card { width: min(100%, 520px); padding: clamp(30px, 4vw, 44px); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: white; box-shadow: var(--shadow-lg); text-align: center; }
.shield { display: grid; width: 58px; height: 58px; place-items: center; margin: 24px auto 16px; border: 1px solid #ccebdc; border-radius: 50%; background: #e7f7ef; color: var(--color-green-700); font-size: 1.45rem; font-weight: 600; }
.verification-card h1 { margin: 7px auto 12px; color: var(--color-navy-950); font-size: clamp(1.7rem, 3vw, 2.15rem); }
.verification-card > p { max-width: 410px; margin-right: auto; margin-left: auto; color: var(--color-text-secondary); line-height: 1.62; }
.destination { padding: 12px 14px; border: 1px solid var(--color-border-soft); border-radius: 10px; background: var(--color-background); }
.otp-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 25px 0; }
.otp-boxes input { min-width: 0; height: 58px; border: 1px solid #c8d4e2; border-radius: 10px; background: white; color: var(--color-navy-950); text-align: center; font-family: var(--font-primary); font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; caret-color: var(--color-green-600); }
.otp-boxes input:focus { border-color: var(--color-green-600); outline: none; box-shadow: 0 0 0 4px rgba(17, 148, 84, 0.12); }
.otp-error { margin: -14px 0 16px; }
.verification-card .primary { margin-top: 10px; }
.resend-form p { margin: 20px 0 4px; color: var(--color-text-muted); font-size: 0.8rem; }

/* Feedback and shared content */
.messages { position: fixed; top: 82px; right: 20px; z-index: 30; width: min(390px, calc(100vw - 40px)); }
.message { padding: 13px 17px; border: 1px solid #a9e3c3; border-radius: var(--radius-md); background: #ecfdf3; color: #087443; font-size: 0.88rem; font-weight: 500; box-shadow: var(--shadow-md); }
.message.error { border-color: #f2b6be; background: #fff1f3; color: #a71d30; }
.empty-state { padding: 68px 25px; color: var(--color-text-secondary); text-align: center; }
.empty-state b { display: grid; width: 54px; height: 54px; margin: auto; place-items: center; border: 1px solid #dce8f7; border-radius: 50%; background: #edf4fc; color: var(--color-blue-600); font-size: 1.3rem; font-weight: 600; }
.empty-state h2, .empty-state h3 { margin: 16px 0 7px; color: #314259; font-weight: 600; }
.empty-state p { margin-bottom: 0; color: var(--color-text-muted); }

/* Admin shell */
.admin-body { background: var(--color-background); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; width: 252px; flex-direction: column; overflow-y: auto; padding: 23px 15px; background: var(--color-navy-950); color: white; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 24px; border-bottom: 1px solid rgba(210, 225, 243, 0.11); }
.sidebar-brand b, .sidebar-brand small { display: block; }
.sidebar-brand b { font-size: 1rem; font-weight: 700; }
.sidebar-brand small { margin-top: 2px; color: #91a4bd; font-size: 0.7rem; font-weight: 500; }
.sidebar nav { flex: 1; padding-top: 13px; }
.nav-label { margin: 21px 12px 7px; color: #7890ad; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.12em; }
.sidebar nav a, .sidebar-logout button { display: flex; min-height: 43px; align-items: center; gap: 13px; margin: 3px 0; padding: 0 13px; border-radius: var(--radius-sm); color: #c0cddd; font-size: 0.86rem; font-weight: 500; }
.sidebar nav a:hover, .sidebar-logout button:hover { background: rgba(255, 255, 255, 0.075); color: white; }
.sidebar nav a.active { position: relative; background: var(--color-blue-700); color: white; box-shadow: 0 8px 20px rgba(21, 89, 214, 0.24); }
.sidebar nav a.active::before { position: absolute; left: 0; width: 3px; height: 21px; border-radius: 0 3px 3px 0; background: #91beff; content: ""; }
.sidebar-logout { padding-top: 12px; border-top: 1px solid rgba(210, 225, 243, 0.11); }
.sidebar-logout button { width: 100%; border: 0; background: transparent; cursor: pointer; }
.admin-workspace { display: flex; min-height: 100vh; margin-left: 252px; flex-direction: column; }
.topbar { display: flex; min-height: 72px; align-items: center; gap: 20px; padding: 0 30px; border-bottom: 1px solid var(--color-border); background: white; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--color-navy-950); font-size: 1.35rem; cursor: pointer; }
.search { display: flex; width: min(390px, 42vw); align-items: center; gap: 9px; padding: 0 14px; border: 1px solid var(--color-border); border-radius: 10px; background: #f7f9fc; color: var(--color-text-muted); }
.search:focus-within { border-color: var(--color-blue-600); background: white; box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.10); }
.search input { width: 100%; height: 42px; border: 0; outline: 0; background: transparent; color: var(--color-text-primary); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.top-actions > button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--color-border-soft); border-radius: 10px; background: #f7f9fc; color: var(--color-text-secondary); cursor: pointer; }
.top-actions > button:hover { border-color: var(--color-border); background: var(--color-background-soft); color: var(--color-blue-700); }
.profile { display: flex; align-items: center; gap: 10px; margin-left: 9px; color: var(--color-text-primary); }
.profile > span { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 50%; background: var(--color-navy-950); color: white; font-weight: 600; }
.profile b, .profile small { display: block; }
.profile b { font-size: 0.82rem; font-weight: 600; }
.profile small { color: var(--color-text-muted); font-size: 0.7rem; }
.admin-main { flex: 1; padding: 31px clamp(20px, 3vw, 42px); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.page-head p { margin: 0 0 7px; color: var(--color-blue-700); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; }
.page-head h1 { margin: 0 0 6px; color: var(--color-navy-950); font-size: clamp(1.75rem, 2.3vw, 2.25rem); }
.page-head span { color: var(--color-text-secondary); font-size: 0.88rem; }

/* Admin cards, panels and tables */
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 20px; }
.summary-grid article { display: flex; min-width: 0; align-items: center; gap: 15px; padding: 20px; border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); }
.metric-icon { display: grid; flex: 0 0 46px; height: 46px; place-items: center; border-radius: var(--radius-md); font-weight: 700; }
.metric-icon.blue { background: #eaf2ff; color: var(--color-blue-700); }
.metric-icon.amber { background: #fff3df; color: var(--color-warning); }
.metric-icon.green { background: #e6f6ee; color: var(--color-green-700); }
.metric-icon.navy { background: #e9eef5; color: var(--color-navy-900); }
.summary-grid small, .summary-grid strong, .summary-grid em { display: block; }
.summary-grid small { overflow: hidden; color: var(--color-text-secondary); font-size: 0.77rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.summary-grid strong { margin: 3px 0; color: var(--color-navy-950); font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.summary-grid em { color: var(--color-text-muted); font-size: 0.66rem; font-style: normal; font-weight: 400; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 20px; }
.panel { overflow: hidden; border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); }
.panel.wide { grid-column: span 2; }
.panel header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px 21px; border-bottom: 1px solid var(--color-border-soft); background: white; }
.panel h2 { margin: 0; color: var(--color-navy-950); font-size: 0.97rem; font-weight: 600; }
.panel header a { font-size: 0.76rem; font-weight: 500; }
.empty-state.compact { padding: 40px 18px; }
.empty-state.compact h3 { font-size: 0.88rem; }
.page-panel { min-height: 440px; }
.settings-card { max-width: 610px; padding: 26px; }
.setup-page { align-items: start; }
.setup-card { margin-top: 4vh; }
.setup-workspace { width: min(100%, 940px); margin: 0 auto; padding: clamp(25px, 4vw, 40px); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: white; box-shadow: var(--shadow-lg); }
.setup-workspace > header { display: flex; align-items: center; gap: 16px; margin-bottom: 25px; padding-bottom: 22px; border-bottom: 1px solid var(--color-border-soft); }
.setup-workspace h1 { margin: 0 0 6px; font-size: clamp(1.65rem, 2.4vw, 2.15rem); }
.setup-workspace header p { margin: 0; color: var(--color-text-secondary); }
.setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.setup-grid .check-field { align-self: center; margin-top: 32px; }
.secret-note { padding: 11px 13px; border-radius: var(--radius-sm); background: var(--color-background); color: var(--color-text-secondary); font-size: 0.78rem; }
.setup-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--color-border-soft); }
.email-settings-card { max-width: none; }
.email-status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.email-status-grid article { padding: 17px 19px; border: 1px solid var(--color-border-soft); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-sm); }
.email-status-grid small, .email-status-grid strong { display: block; }
.email-status-grid small { color: var(--color-text-muted); font-size: 0.74rem; }
.email-status-grid strong { margin-top: 5px; color: var(--color-navy-950); font-size: 0.9rem; font-weight: 600; }
.status-pill { padding: 7px 11px; border: 1px solid #b9e6ce; border-radius: 999px; background: #ecf9f2; color: var(--color-green-700); font-size: 0.76rem; font-weight: 600; }
.table-wrap { max-width: 100%; overflow-x: auto; padding: 8px; }
.table-wrap table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 0.84rem; }
.table-wrap th, .table-wrap td { padding: 14px 13px; border-bottom: 1px solid var(--color-border-soft); text-align: left; vertical-align: middle; }
.table-wrap th { background: #f7f9fc; color: var(--color-text-secondary); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }
.table-wrap tbody tr:hover { background: #f8fafd; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.drawer-backdrop { display: none; }
.admin-footer { margin-top: auto; }

@media (max-width: 1280px) {
  .landing-grid { grid-template-columns: minmax(280px, 0.95fr) minmax(400px, 1.2fr) minmax(280px, 0.95fr); }
  .login-zone { padding-right: 28px; padding-left: 28px; }
  .corporate-panel { padding-right: 45px; padding-left: 45px; }
  .summary-grid { gap: 14px; }
  .summary-grid article { padding: 17px; }
}

@media (max-width: 1100px) {
  .landing-grid { grid-template-columns: minmax(310px, 0.92fr) minmax(430px, 1.18fr); }
  .admin-zone { grid-column: 1 / -1; padding-top: 36px; padding-bottom: 42px; }
  .admin-zone .login-card { max-width: 520px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .panel.wide { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .public-header { min-height: 68px; }
  .public-header nav { display: none; }
  .landing-grid { display: flex; flex-direction: column; }
  .corporate-panel { order: -1; min-height: auto; padding: 52px 30px; }
  .corporate-inner h2 { font-size: clamp(2.45rem, 9vw, 3.65rem); }
  .login-zone { padding: 34px 20px; }
  .login-card { padding: 30px; }
  .sidebar { width: 252px; transform: translateX(-100%); transition: transform 200ms ease; }
  .sidebar.open { transform: none; }
  .admin-workspace { margin-left: 0; }
  .menu-toggle { display: block; }
  .drawer-backdrop.show { position: fixed; inset: 0; z-index: 15; display: block; background: rgba(4, 18, 38, 0.56); }
  .topbar { padding: 0 16px; }
  .profile div { display: none; }
  .admin-main { padding: 25px 18px; }
  .search { width: auto; flex: 1; }
  .setup-grid { grid-template-columns: 1fr; }
  .setup-grid .check-field { margin-top: 8px; }
  .email-status-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .brand { font-size: 0.88rem; }
  .brand-mark { min-width: 42px; height: 38px; }
  .corporate-panel { padding: 45px 23px; }
  .feature-grid { grid-template-columns: 1fr; gap: 22px; margin: 34px 0; }
  .login-zone { padding: 30px 17px; }
  .login-card { padding: 27px 25px; border-radius: 16px; }
  .form-links { margin-top: -38px; }
  .verification-card { padding: 30px 20px; border-radius: var(--radius-lg); }
  .otp-boxes { gap: 6px; }
  .otp-boxes input { height: 51px; border-radius: var(--radius-sm); font-size: 1.2rem; }
  .messages { top: 74px; right: 12px; width: calc(100vw - 24px); }
  .summary-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .panel.wide { grid-column: auto; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .setup-actions { align-items: stretch; flex-direction: column; }
  .setup-actions .primary { width: 100%; }
  .top-actions > button:nth-child(1) { display: none; }
  .public-footer, .admin-footer { font-size: 0.7rem; }
}

@media (max-width: 380px) {
  .public-header { padding-right: 14px; padding-left: 14px; }
  .brand { gap: 9px; font-size: 0.82rem; }
  .corporate-panel { padding-right: 19px; padding-left: 19px; }
  .login-card { padding-right: 21px; padding-left: 21px; }
  .form-links { position: static; margin: -7px 0 17px; text-align: left; }
  .check-field { margin-bottom: 9px; }
  .otp-boxes { gap: 4px; }
  .otp-boxes input { height: 47px; }
  .admin-main { padding-right: 14px; padding-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; transition-duration: 0.01ms; animation-duration: 0.01ms; animation-iteration-count: 1; }
}
