:root { --ink:#061a24; --paper:#f4f7f5; --line:#d8e1df; --muted:#61747a; --sea:#006d77; --acid:#dff44a; --danger:#b3372d; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 70% 18%, rgba(53,194,193,.18), transparent 34%), var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
.topbar { height: 78px; padding: 0 max(24px, calc((100vw - 1480px) / 2)); display: flex; align-items: center; gap: 22px; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(244,247,245,.93); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid #d9e2e3; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand b { display: block; font-size: 16px; line-height: 1; }
.brand small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; text-transform: uppercase; letter-spacing: .12em; }
.main-menu { display: flex; align-items: center; gap: 6px; margin-right: auto; }
.auth-actions { display: flex; align-items: center; gap: 6px; }
.main-menu a, .auth-link, .bottom-menu a { color: #31545a; text-decoration: none; border: 1px solid #bfd0cd; background: #fff; padding: 9px 12px; font-size: 11px; font-weight: 800; }
.main-menu a:hover, .auth-link:hover, .auth-link.active, .bottom-menu a.active { border-color: var(--ink); background: var(--ink); color: var(--acid); }
.auth-page { width: min(1120px, calc(100% - 48px)); min-height: calc(100vh - 78px); margin: 0 auto; padding: 58px 0; display: grid; place-items: start center; }
.auth-card { width: min(520px, 100%); border: 1px solid var(--line); background: #fff; box-shadow: 0 24px 80px rgba(5,32,43,.14); padding: 30px; }
.eyebrow { margin: 0 0 12px; color: var(--sea); font-size: 10px; letter-spacing: .18em; font-weight: 800; }
.auth-card h1 { margin: 0 0 24px; font-size: 46px; line-height: .92; letter-spacing: -.055em; }
form { display: grid; gap: 13px; }
label { display: grid; gap: 7px; }
label span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
input { width: 100%; border: 1px solid #bfd0cd; background: #fff; padding: 13px 14px; color: var(--ink); font-size: 14px; }
input:focus { outline: 2px solid rgba(0,109,119,.2); border-color: var(--sea); }
button, .google-button { width: 100%; border: 0; background: var(--acid); color: var(--ink); padding: 14px 16px; font-size: 13px; font-weight: 900; cursor: pointer; text-align: center; text-decoration: none; }
.google-button { display: block; border: 1px solid #bfd0cd; background: #fff; }
.button-link { display: block; width: 100%; border: 0; background: var(--acid); color: var(--ink); padding: 14px 16px; font-size: 13px; font-weight: 900; cursor: pointer; text-align: center; text-decoration: none; }
.button-link.secondary { border: 1px solid #bfd0cd; background: #fff; }
.danger-button { background: var(--danger); color: #fff; }
.auth-split { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.auth-split span { height: 1px; background: var(--line); }
.auth-alt { display: flex; justify-content: space-between; gap: 16px; margin: 18px 0 0; font-size: 12px; }
.auth-alt a { color: var(--sea); font-weight: 800; text-decoration: none; }
.flash { width: min(520px, 100%); margin-bottom: 12px; padding: 13px 15px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 800; }
.flash.error { color: var(--danger); border-color: #e9a7a0; background: #fff1ef; }
.flash.success { color: #236b42; border-color: #a9d9ba; background: #effbf3; }
.account-line { display: grid; gap: 4px; margin-bottom: 18px; padding: 14px; background: #f7faf9; border: 1px solid var(--line); }
.account-line b { font-size: 16px; }
.account-line span { color: var(--muted); font-size: 12px; }
.profile-shell { width: min(1120px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.profile-card { width: 100%; }
.profile-card h2 { margin: 0 0 18px; font-size: 28px; line-height: 1; }
.profile-actions { display: grid; gap: 10px; }
.profile-action { position: relative; min-height: 68px; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid #bfd0cd; background: #fff; color: var(--ink); text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease; }
.profile-action:before { content: ""; width: 44px; height: 44px; grid-row: 1 / span 2; display: grid; place-items: center; background: #eef5f3; border: 1px solid #d8e1df; }
.profile-action[href="/"]:before { content: "CH"; color: var(--ink); font-size: 11px; font-weight: 900; }
.profile-action[href="/change_password.php"]:before { content: "PW"; color: var(--ink); font-size: 11px; font-weight: 900; }
.profile-action[href="/logout.php"]:before { content: "LO"; color: #8f2f25; font-size: 11px; font-weight: 900; background: #fff1ef; border-color: #efc2bc; }
.profile-action span { align-self: end; color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.profile-action b { align-self: start; font-size: 14px; line-height: 1.2; }
.profile-action.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.profile-action.primary span { color: var(--acid); }
.profile-action.primary:before { background: var(--acid); border-color: var(--acid); }
.profile-action:hover, .profile-action:focus-visible { transform: translateY(-1px); border-color: var(--ink); box-shadow: 0 14px 34px rgba(5,32,43,.12); outline: 0; }
.profile-action.logout:hover, .profile-action.logout:focus-visible { border-color: #efc2bc; background: #fff8f7; }
.danger-card { border-color: #e9a7a0; }
.danger-card .eyebrow { color: var(--danger); }
.danger-copy { margin: -4px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.subscription-card { width: min(680px, 100%); }
.field-title { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.plan-block { display: grid; gap: 9px; }
.plan-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plan-option { position: relative; display: block; cursor: pointer; }
.plan-option input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.plan-option span { min-height: 86px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 14px; border: 1px solid #bfd0cd; background: #fff; color: var(--ink); }
.plan-option b { font-size: 14px; line-height: 1.1; }
.plan-option small { color: var(--muted); font-size: 11px; font-weight: 900; }
.plan-option input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 0 12px 30px rgba(5,32,43,.14); }
.plan-option input:checked + span small { color: var(--acid); }
.bank-card { display: grid; gap: 5px; padding: 16px; border: 1px solid #bfd0cd; background: #f7faf9; }
.bank-card span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; }
.bank-card b { font-size: 16px; }
.bank-card p { margin: 0; color: #31545a; font-size: 14px; line-height: 1.45; font-weight: 900; }
.slip-upload { gap: 9px; }
.slip-upload.required > span:after { content: " required"; color: var(--danger); }
.receipt-preview { min-height: 130px; display: grid; place-items: center; gap: 7px; padding: 14px; border: 1px dashed #9cb6b8; background: #fbfdfc; text-align: center; }
.receipt-preview img { max-width: 100%; max-height: 230px; object-fit: contain; border: 1px solid var(--line); background: #fff; }
.receipt-preview b { color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.receipt-preview small { color: var(--muted); font-size: 11px; font-weight: 800; }
.pdf-preview { width: 64px; height: 76px; display: grid; place-items: center; border: 1px solid #bfd0cd; background: #fff1ef; color: var(--danger); font-size: 14px; font-weight: 900; }
.bottom-menu { display: none; }
@media (max-width: 1000px) {
  .main-menu { display: none; }
  .auth-page { padding-bottom: 12px; }
  .bottom-menu { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px; background: rgba(244,247,245,.94); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(5,32,43,.2); }
  .bottom-menu a { text-align: center; padding-left: 6px; padding-right: 6px; }
  .profile-shell { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .topbar { height: 67px; padding: 0 16px; }
  .auth-link, .auth-actions { display: none; }
  .auth-page { width: calc(100% - 24px); padding-top: 34px; }
  .auth-card { padding: 22px; }
  .auth-card h1 { font-size: 38px; }
  .plan-options { grid-template-columns: 1fr; }
  .plan-option span { min-height: 70px; }
}
