/* =====================================================================
   Miles Hub — account page: logged-out hero with sign-in / create-account
   panels, profile card, preferences form, taste profile, search history.
   Uses the tokens from base.css (light + dark).
   ===================================================================== */
.acct { padding-bottom: 2rem; }

/* ---- logged out ---- */
.acct-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; padding: 3rem 0 2rem; }
@media (max-width: 900px) { .acct-hero { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.5rem; } }
.acct-hero-text h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.025em; margin: .6rem 0 .5rem; }
.acct-hero-text > p { font-size: 1.05rem; max-width: 560px; }
.acct-benefits { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .95rem; }
.acct-benefits li { display: flex; gap: .85rem; align-items: flex-start; }
.acct-benefits li > .icon { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.acct-benefits li div { display: flex; flex-direction: column; gap: .1rem; }
.acct-panels { display: grid; gap: 1rem; }
.acct-panel { padding: 1.4rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; }
.acct-panel.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.acct-panel-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; margin-bottom: .45rem; box-shadow: 0 10px 20px -10px var(--primary); }
.acct-panel-ico.accent { background: linear-gradient(135deg, var(--accent), #ffb35c); color: #1a1200; box-shadow: 0 10px 20px -10px var(--accent); }
.acct-panel h2 { font-size: 1.2rem; }
.acct-panel .btn { margin-top: .7rem; }

/* ---- logged in ---- */
.acct-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .acct-grid { grid-template-columns: 1fr; } }
.acct-left { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 900px) { .acct-left { position: static; } }
.acct-main { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.acct-card { padding: 1.2rem 1.3rem; }
.acct-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.acct-card-head h3 { display: flex; align-items: center; gap: .4rem; }
.acct-card-head h3 .icon { color: var(--primary); }
.acct-profile { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.acct-avatar { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 14px 30px -14px var(--primary); margin-bottom: .55rem; }
.acct-name { font-size: 1.25rem; }
.acct-email { overflow-wrap: anywhere; }
.acct-since { display: inline-flex; align-items: center; gap: .3rem; margin-top: .25rem; }
.acct-stats { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; margin: .75rem 0 .95rem; }
.acct-stats .badge { display: inline-flex; gap: .3rem; }
.acct-profile .btn { width: 100%; }
.acct-miles { display: block; text-decoration: none !important; color: var(--text); }
.acct-miles h3 { display: flex; align-items: center; gap: .4rem; }
.acct-miles h3 .icon { color: var(--primary); }
.acct-miles > .row-flex > .icon { color: var(--muted); transition: transform .2s var(--ease); }
.acct-miles:hover > .row-flex > .icon { transform: translateX(3px); color: var(--primary); }
.acct-miles-total { margin: .5rem 0 .65rem; }
.acct-miles-total b { font-size: 1.5rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* preferences */
.acct-prefs .row { margin-bottom: .7rem; }
.acct-prefs .field { margin-bottom: 0; }
.acct-prefs .sf-field { position: relative; min-width: 0; }
.acct-prefs .sf-label { display: block; font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .35rem; }
.acct-prefs .input, .acct-prefs .ac-input { height: 46px; font-weight: 500; }
.acct-prefs .help-text { margin-top: .3rem; }
.acct-style { width: 100%; display: flex; }
.acct-style button { flex: 1; padding: .6rem .5rem; }
.acct-haptics { margin: 1rem 0 .4rem; color: var(--text); font-weight: 500; font-size: .95rem; }
.acct-haptics .switch-label { display: inline !important; color: inherit; }
.acct-haptics input:checked ~ .switch-label { color: var(--text); }
.acct-prefs-foot { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.acct-prefs-foot .btn { min-width: 180px; }
@media (max-width: 560px) { .acct-prefs-foot { justify-content: stretch; } .acct-prefs-foot .btn { flex: 1; } }

/* taste */
.taste-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.2rem; align-items: center; }
@media (max-width: 700px) { .taste-grid { grid-template-columns: 1fr; } }
.taste-facts { display: flex; flex-wrap: wrap; gap: .4rem; }
.taste-facts .badge { display: inline-flex; gap: .3rem; }
.taste-summary { margin: .8rem 0 0; padding: .7rem .9rem; background: var(--surface-2); border-radius: 10px; }

/* history */
.acct-hist .table-wrap { box-shadow: none; }
.acct-hist .table td { vertical-align: middle; }
.acct-hist .table th { position: static; }
.hist-type { display: inline-flex; align-items: center; gap: .4rem; color: var(--primary); font-weight: 600; white-space: nowrap; }
.hist-type-name { color: var(--text); }
.hist-label { font-weight: 600; }
.hist-dates { white-space: nowrap; }
.acct-hist .btn { white-space: nowrap; }
@media (max-width: 760px) { .hist-type-name, .acct-hist th:nth-child(5), .acct-hist td:nth-child(5), .acct-hist th:nth-child(4), .acct-hist td:nth-child(4) { display: none; } .acct-hist .table th, .acct-hist .table td { padding: .55rem .6rem; } }
.acct-empty { padding: 2rem 1rem; }
.acct-empty .big .icon { color: var(--primary); }
