/* ExpenseTrack app shell for TaxTrack: same top bar and left menu as app.expensetrack.ai (client/src/components/Layout.tsx). */
:root { --et-bar: #141414; --et-page: #0f0f0f; --et-line: #404040; --et-line2: #2d2d2d; --et-rule: #4a5568; --et-text: #e2e8f0; --et-muted: #a0aec0; --et-orange: #f97316; --et-orange2: #ea580c; --et-orange-l: #fb923c; --et-logo: #ed8936; --et-side: 280px; --et-side-c: 80px; }
body.et-shell { margin: 0; background-color: var(--et-page); font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* top bar */
.et-topbar { position: fixed; top: 0; left: 0; right: 0; height: 60px; background: var(--et-bar); border-bottom: 1px solid var(--et-line); z-index: 1001; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; box-sizing: border-box; }
.et-tb-left { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 16px; }
.et-tb-lock { background: transparent; border: 0; color: var(--et-logo); font-size: 20px; cursor: pointer; padding: 8px 12px; border-radius: 6px; line-height: 1; }
.et-tb-lock:hover { background: var(--et-line2); }
.et-when-closed { display: none; }
.et-collapsed .et-when-open { display: none; }
.et-collapsed .et-when-closed { display: inline; }
.et-tb-logo-link { display: block; }
.et-tb-logo { height: 38px; display: block; }
.et-tb-badge { text-decoration: none; background: linear-gradient(135deg, var(--et-orange), var(--et-orange2)); color: #fff; font-weight: 900; font-size: 13px; letter-spacing: 2px; padding: 5px 10px; border-radius: 6px; border: 2px solid var(--et-orange-l); box-shadow: 0 2px 8px rgba(249,115,22,.45); text-shadow: 0 1px 2px rgba(0,0,0,.35); font-family: Arial, sans-serif; line-height: 1; user-select: none; white-space: nowrap; }
.et-tb-center { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.et-tb-search { position: relative; width: 100%; max-width: 400px; background: var(--et-line2); border-radius: 8px; padding: 10px 45px 10px 16px; color: #94a3b8; font-size: 14px; text-decoration: none; box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.et-tb-search:hover, .et-tb-search.active { box-shadow: 0 0 0 1px var(--et-orange); }
.et-tb-search-ic { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-size: 18px; }
.et-tb-right { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; }
.et-tb-support, .et-tb-signin { padding: 8px 20px; border-radius: 9999px; border: 1px solid var(--et-orange); color: var(--et-orange); font-size: 16px; font-weight: 600; line-height: 24px; white-space: nowrap; text-decoration: none; }
.et-tb-support:hover { background: rgba(249,115,22,.1); }
.et-tb-signin { background: linear-gradient(to right, var(--et-orange), var(--et-orange2)); color: #fff; border-color: transparent; }
.et-acct { position: relative; }
.et-acct-btn { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: transparent; border: 0; border-radius: 8px; cursor: pointer; color: var(--et-text); }
.et-acct-btn:hover, .et-acct-btn[aria-expanded="true"] { background: rgba(255,255,255,.1); }
.et-avatar { width: 32px; height: 32px; border-radius: 50%; background: #007bff; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; }
.et-caret { color: var(--et-muted); font-size: 12px; }
.et-acct-menu { position: absolute; top: 100%; right: 0; margin-top: 8px; width: 240px; background: var(--et-line2); border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,.4); overflow: hidden; z-index: 1002; }
.et-acct-menu[hidden] { display: none; }
.et-acct-who { padding: 12px 16px; border-bottom: 1px solid #3d3d3d; }
.et-acct-name { color: #fff; font-size: 14px; font-weight: 600; }
.et-acct-email { color: #888; font-size: 12px; margin-top: 2px; word-break: break-all; }
.et-acct-plan { color: var(--et-orange-l); font-size: 12px; margin-top: 4px; }
.et-acct-menu a, .et-acct-out { display: block; width: 100%; padding: 12px 16px; background: transparent; border: 0; color: var(--et-text); font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; box-sizing: border-box; }
.et-acct-menu a:hover, .et-acct-out:hover { background: rgba(255,255,255,.06); }
.et-acct-menu form { margin: 0; border-top: 1px solid #3d3d3d; }
.et-acct-out { color: #ef4444; }

/* left menu: 1:1 with app.expensetrack.ai Layout.tsx (inline styles there), nothing added */
.et-side { position: fixed; top: 60px; bottom: 0; left: 0; width: var(--et-side); background: #141414; padding: 24px 0; overflow-y: auto; border-right: 1px solid #2d2d2d; box-sizing: border-box; transition: width .3s ease; z-index: 1000; }
.et-side-sec { padding: 0 12px; }
.et-side-h { color: #e2e8f0; font-size: 14px; font-weight: 600; margin: 0 0 16px 0; text-transform: uppercase; letter-spacing: .5px; }
.et-side-list { display: flex; flex-direction: column; gap: 8px; }
.et-nav { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: transparent; border-radius: 8px; color: #e2e8f0; font-size: 14px; font-weight: 500; text-decoration: none; transition: all .2s; justify-content: flex-start; }
.et-nav:hover { background: rgba(255,255,255,.05); }
.et-nav.pro:hover { background: rgba(249,115,22,.08); }
.et-ic { font-size: 26px; }
.et-pro { border-top: 1px solid #4a5568; margin-top: 16px; padding-top: 16px; }
.et-pro-wrap { display: flex; justify-content: center; margin: 4px 0 16px 0; }
.et-pro-badge { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; font-weight: 900; font-size: 20px; letter-spacing: 4px; padding: 10px 24px; border-radius: 8px; border: 2px solid #fb923c; box-shadow: 0 2px 10px rgba(249,115,22,.45); text-shadow: 0 1px 2px rgba(0,0,0,.35); font-family: Arial, sans-serif; line-height: 1; user-select: none; }
/* collapsed (the app's lock button): icons only */
.et-collapsed .et-side { width: var(--et-side-c); }
.et-collapsed .et-side-h, .et-collapsed .et-lb { display: none; }
.et-collapsed .et-nav { justify-content: center; }
.et-collapsed .et-pro-badge { font-size: 13px; letter-spacing: 1px; padding: 8px 8px; }

/* content */
.et-main { margin-left: var(--et-side); padding-top: 60px; min-width: 0; min-height: 100vh; box-sizing: border-box; transition: margin-left .3s ease; container-type: inline-size; }
.et-collapsed .et-main { margin-left: var(--et-side-c); }
.et-foot { text-align: center; padding: 16px; font-size: 14px; color: #6b7280; }
.et-foot a { color: #60a5fa; text-decoration: none; }

/* the checkup's own two-column layout follows the space left beside the menu, not the window */
@container (max-width: 980px) {
  .layout { grid-template-columns: 1fr !important; padding: 12px 16px 40px !important; }
  .col-result { position: static !important; }
  .page-head { flex-direction: column; padding: 20px 16px 4px !important; }
}
.et-main .page-head .brand-logo, .et-main .page-head .brand-tag { display: none; }
.et-main .auth-page { min-height: calc(100vh - 60px - 60px); }

/* phones: same as the app (Layout.tsx top-bar rules); the menu keeps its 80px / 280px widths */
@media (max-width: 700px) {
  .et-topbar { padding: 0 8px; gap: 8px; }
  .et-tb-left { gap: 8px; flex: 0 0 auto; }
  .et-tb-search { min-width: 90px; }
  .et-tb-support, .et-tb-signin { padding: 8px 12px; font-size: 14px; }
}
@media (max-width: 520px) {
  .et-tb-logo { height: 26px; }
  .et-tb-badge { text-decoration: none; font-size: 9px; padding: 3px 6px; letter-spacing: 1px; border-width: 1px; }
  .et-tb-search { min-width: 60px; padding: 8px 30px 8px 8px; }
  .et-tb-search-text { display: none; }
  .et-tb-search-ic { right: 9px; font-size: 15px; }
  .et-tb-support, .et-tb-signin { padding: 6px 9px; font-size: 12px; line-height: 18px; }
  .et-caret { display: none; }
  .et-acct-btn { padding: 4px; }
  .et-tb-lock { padding: 6px; }
}

/* feature and upgrade pages */
.ft { max-width: 1100px; margin: 0 auto; padding: 32px 32px 24px; color: #e5e5e5; box-sizing: border-box; }
.ft-hero { position: relative; border: 1px solid #7c4a1e; border-radius: 16px; padding: 32px; background: radial-gradient(ellipse 70% 60% at 0% 0%, rgba(249,115,22,.16), transparent 70%), linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px), #141414; background-size: auto, 40px 40px, 40px 40px, auto; }
.ft-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ft-ic { font-size: 40px; line-height: 1; }
.ft-pill { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #fdba74; border: 1px solid #7c4a1e; border-radius: 999px; padding: 3px 10px; }
.ft-pill.pro { color: #fff; background: linear-gradient(135deg, var(--et-orange), var(--et-orange2)); border-color: var(--et-orange-l); }
.ft h1 { color: #fff; font-size: 30px; line-height: 1.2; margin: 0 0 10px; font-weight: 800; }
.ft-lead { color: #cbd5e1; font-size: 17px; line-height: 1.6; margin: 0 0 18px; max-width: 720px; }
.ft-points { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 20px; }
.ft-points li { position: relative; padding-left: 26px; color: #e5e5e5; font-size: 15px; line-height: 1.5; }
.ft-points li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--et-orange); font-weight: 800; }
.ft-incl { color: #fdba74; font-size: 14px; margin: 0 0 18px; }
.ft-tie { border-left: 3px solid var(--et-orange); background: rgba(249,115,22,.06); padding: 12px 16px; border-radius: 0 8px 8px 0; color: #e5e5e5; font-size: 14px; margin: 0 0 20px; max-width: 760px; }
.ft-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ft-btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; background: linear-gradient(to right, var(--et-orange), var(--et-orange2)); color: #fff; box-shadow: 0 4px 12px rgba(249,115,22,.3); }
.ft-btn:hover { filter: brightness(1.08); }
.ft-btn.ghost { background: transparent; border: 1px solid var(--et-orange); color: var(--et-orange); box-shadow: none; }
.ft-sec { margin-top: 36px; }
.ft-sec h2 { color: #fff; font-size: 22px; margin: 0 0 6px; font-weight: 700; }
.ft-sec .ft-sub { color: #9aa6b8; margin: 0 0 18px; font-size: 15px; }
.ft-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ft-plan { position: relative; display: flex; flex-direction: column; background: #1a1a1a; border: 1px solid #333; border-radius: 14px; padding: 22px; }
.ft-plan.popular { border-color: var(--et-orange); box-shadow: 0 0 0 1px var(--et-orange), 0 8px 24px rgba(249,115,22,.15); }
.ft-plan.rec { border-color: var(--et-orange-l); }
.ft-plan-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: linear-gradient(to right, var(--et-orange), var(--et-orange2)); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 1px; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.ft-plan h3 { color: #fff; font-size: 20px; margin: 0; }
.ft-plan .motto { color: var(--et-orange-l); font-size: 13px; margin: 2px 0 8px; font-weight: 600; }
.ft-plan .pitch { color: #9aa6b8; font-size: 14px; margin: 0 0 12px; }
.ft-price { color: #fff; font-size: 30px; font-weight: 800; }
.ft-price small { color: #9aa6b8; font-size: 14px; font-weight: 500; }
.ft-annual { color: #9aa6b8; font-size: 13px; margin: 2px 0 14px; }
.ft-plan ul { list-style: none; padding: 0; margin: 0 0 18px; flex-grow: 1; }
.ft-plan li { position: relative; padding-left: 22px; font-size: 14px; margin-bottom: 8px; color: #e5e5e5; }
.ft-plan li::before { content: "\2713"; position: absolute; left: 0; color: var(--et-orange); font-weight: 800; }
.ft-plan .ft-btn { text-align: center; }
.ft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ft-card { display: block; background: #141414; border: 1px solid #2d2d2d; border-radius: 12px; padding: 16px; text-decoration: none; color: #e5e5e5; }
.ft-card:hover { border-color: var(--et-orange); }
.ft-card .t { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.ft-card .t span:first-child { font-size: 22px; }
.ft-card .d { color: #9aa6b8; font-size: 13px; line-height: 1.5; }
.ft-note { color: #6b7280; font-size: 13px; margin-top: 18px; }
@container (max-width: 640px) {
  .ft { padding: 20px 14px; }
  .ft-hero { padding: 20px; }
  .ft h1 { font-size: 24px; }
}

/* the top bar's account menu carries the name and Sign out; keep only the save state in the page head */
.et-main .head-user .who, .et-main .head-user form { display: none; }


/* Items the signed-in person does not have: grayed with a lock; the click opens the plan page */
.et-nav.locked { opacity: .45; }
.et-nav.locked:hover { opacity: .8; }
.et-nav.locked .et-lb::after { content: " \1F512"; font-size: 11px; }
