/* ==========================================================
   LensMarket — Premium Fintech Theme
   Dark Gold matte palette · Sora (display) + Manrope (body)
   ========================================================== */
:root {
  --c-orange-1: #8B6914;
  --c-orange-2: #A07A1B;
  --c-primary:  #8B6914;
  --c-primary-dark: #6B5010;
  --c-amber:    #8B6914;
  --c-gold:     #7A5C12;
  --c-white:    #FFFFFF;
  --c-bg:       #FBF6EC;
  --c-surface:  #FFFFFF;
  --c-text:     #1F1A14;
  --c-muted:    #6B5F4E;
  --c-border:   #E5D6B0;
  --c-soft:     #F3E8CC;
  --c-success:  #18A957;
  --c-danger:   #E0322B;
  --c-warning:  #A07A1B;
  --c-info:     #2A88E0;

  --grad-primary: linear-gradient(135deg, #6B5010 0%, #7A5C12 50%, #8B6914 100%);
  --grad-shine:   linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 100%);
  --shadow-sm:  0 2px 8px rgba(60,45,10,.10);
  --shadow-md:  0 8px 22px rgba(60,45,10,.16);
  --shadow-lg:  0 16px 40px rgba(60,45,10,.20);
  --radius:     16px;
  --radius-sm:  10px;
  --radius-lg:  22px;

  /* Premium typography stack */
  --font-display: 'Sora', 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:    'Manrope', 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: var(--font-body);
}
[data-theme="dark"] {
  --c-bg:      #14110D;
  --c-surface: #1C1812;
  --c-text:    #FFEFD8;
  --c-muted:   #B8A98E;
  --c-border:  #2C241A;
  --c-soft:    #211A12;
}
*,*::before,*::after { box-sizing: border-box; }
html, body { margin:0; padding:0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02","cv03","cv04","cv11","ss01";
  letter-spacing: -0.005em;
  min-height: 100dvh;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
a { color: var(--c-orange-1); text-decoration: none; }
a:hover { color: var(--c-orange-2); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }
.muted { color: var(--c-muted); }
[data-theme="dark"] .muted { color: #C7B89E; }
.text-center { text-align: center; }

/* Layout */
.container { max-width: 980px; margin: 0 auto; padding: 88px 16px 32px; }
.container.narrow { max-width: 560px; }
.has-bottomnav { padding-bottom: 110px; }

/* Topbar */
.topbar {
  position: fixed; top:0; left:0; right:0; z-index: 50;
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 18px;
  background: rgba(255,248,238,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-border);
}
[data-theme="dark"] .topbar { background: rgba(20,17,13,.78); }
.brand { display:flex; align-items:center; gap:10px; font-family: var(--font-display); font-weight:800; font-size:18px; }
.brand-logo {
  width:36px; height:36px; border-radius: 12px;
  background: var(--grad-primary);
  color: #fff; display:grid; place-items:center;
  box-shadow: var(--shadow-md);
  position: relative; overflow:hidden;
}
.brand-logo::after { content:''; position:absolute; inset:0; background: var(--grad-shine); }
.brand-img { border-radius: 10px; }
.brand-img-lg { width:48px; height:48px; border-radius: 14px; }
.brand-text { background: var(--grad-primary); -webkit-background-clip: text; background-clip:text; color: transparent; letter-spacing: -0.02em; }
.brand-center { justify-content: center; margin-bottom: 8px; }
.topbar-actions { display:flex; gap:8px; align-items:center; }
.icon-btn {
  width:40px; height:40px; border-radius: 12px;
  background: var(--c-surface); border:1px solid var(--c-border);
  display:grid; place-items:center; color: var(--c-text);
  box-shadow: var(--shadow-sm); transition: transform .15s ease;
  font-size: 18px;
}
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn--menu { color: var(--c-primary); }

/* Side drawer (landing / guest) */
.side-drawer { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.side-drawer-backdrop {
  position: absolute; inset: 0; background: rgba(15,12,8,.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.side-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 86%; max-width: 340px;
  background: var(--c-surface); color: var(--c-text);
  box-shadow: -16px 0 40px rgba(60,45,10,.22);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column; padding: 18px 18px 24px;
  pointer-events: auto;
}
.side-drawer.open { pointer-events: auto; }
.side-drawer.open .side-drawer-backdrop { opacity: 1; pointer-events: auto; }
.side-drawer.open .side-drawer-panel { transform: translateX(0); }
.side-drawer-head { display:flex; align-items:center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.side-drawer-tag { font-size: 12.5px; margin: 0 4px 16px; line-height: 1.5; }
.side-drawer-nav { display:flex; flex-direction: column; gap: 4px; flex: 1; }
.side-link {
  display:flex; align-items:center; gap: 14px;
  padding: 13px 14px; border-radius: 14px;
  background: transparent; color: var(--c-text); font-weight: 600;
  font-size: 15px; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: all .18s ease;
  font-family: var(--font-body);
}
.side-link i { font-size: 20px; color: var(--c-primary); width: 24px; text-align: center; }
.side-link:hover { background: var(--c-soft); }
.side-link--primary { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-sm); margin-top: 4px; }
.side-link--primary i { color: #fff; }
.side-link--primary:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.side-drawer-foot { margin-top: 14px; font-size: 12px; text-align: center; padding-top: 12px; border-top: 1px solid var(--c-border); }

/* Buttons */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border-radius: 14px; padding: 12px 18px; font-weight:700; font-size:15px;
  border: none; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, opacity .2s, background .2s;
  white-space: nowrap; font-family: var(--font-body); letter-spacing: -0.01em;
}
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 22px; font-size: 16px; border-radius: 16px; }
.btn-primary {
  color: #fff; background: var(--grad-primary);
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.btn-primary::after { content:''; position:absolute; inset:0; background: var(--grad-shine); pointer-events:none; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--c-surface); color: var(--c-text); border:1px solid var(--c-border); }
.btn-ghost:hover { background: var(--c-soft); }
.btn-danger { background: linear-gradient(135deg, #FF6A6A, #E0322B); color:#fff; }
.btn-block { display:flex; width: 100%; }

/* Auth pages */
.page-auth { min-height: 100dvh; background:
  radial-gradient(1000px 400px at 50% -100px, rgba(139,105,20,.10), transparent 60%),
  radial-gradient(800px 400px at 100% 100%, rgba(122,92,18,.08), transparent 60%),
  var(--c-bg);
}
.auth-shell { padding: 56px 18px 64px; max-width: 460px; margin: 0 auto; }
.auth-card {
  background: var(--c-surface);
  border:1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.auth-card::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background: var(--grad-primary); }
.auth-card h1 { margin: 12px 0 6px; font-size: 26px; }
.auth-foot { text-align:center; margin-top: 16px; color: var(--c-muted); }

.field { display:block; margin: 14px 0; }
.field > span { display:block; font-size:13px; color: var(--c-muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font-size: 15px;
  border-radius: 12px; background: var(--c-surface);
  border: 1px solid var(--c-border); color: var(--c-text);
  transition: border-color .2s, box-shadow .2s; font-family: var(--font-body);
}
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--c-orange-2); box-shadow: 0 0 0 4px rgba(139,105,20,.12); }
.input-with-icon { position:relative; display:block; }
.input-with-icon .reveal {
  position:absolute; right: 8px; top:50%; transform: translateY(-50%);
  background:none; border:none; padding:8px; color: var(--c-muted);
}
.row-between { display:flex; align-items:center; justify-content: space-between; margin: 6px 0 14px; }
.link-soft { color: var(--c-orange-1); font-size: 14px; font-weight: 600; }
.form-msg { margin-top: 10px; font-size: 14px; min-height: 18px; }
.form-msg.err { color: var(--c-danger); }
.form-msg.ok { color: var(--c-success); }
.grid2 { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Landing */
.page-landing .container { padding-top: 96px; padding-bottom: 64px; }
.hero { display:grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: 48px; line-height: 1.05; margin: 12px 0 16px; letter-spacing: -.025em; font-weight: 800; }
.grad-text { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--c-muted); font-size: 17px; line-height: 1.6; max-width: 520px; }
.chip {
  display:inline-flex; align-items:center; gap:6px;
  font-size: 12px; font-weight: 700; padding: 6px 12px;
  border-radius: 999px; background: var(--c-soft); color: var(--c-orange-1);
  border: 1px solid var(--c-border); letter-spacing: .02em;
}
.hero-actions { display:flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-stats { display:flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats > div { display:flex; flex-direction: column; }
.hero-stats b { font-size: 22px; font-family: var(--font-display); font-weight: 800; }
.hero-stats span { font-size: 12px; color: var(--c-muted); font-weight: 500; }
.hero-card-wrap { display:grid; place-items: center; }

.section-title { font-size: 28px; margin: 60px 0 20px; }
.feature-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.feature {
  background: var(--c-surface); border:1px solid var(--c-border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.feature i { font-size: 28px; color: var(--c-orange-1); }
.feature h3 { margin: 8px 0 6px; font-size: 18px; }
.feature p { color: var(--c-muted); font-size: 14px; line-height: 1.5; margin: 0; }
.cta-card {
  background: var(--grad-primary); color: #fff;
  border-radius: var(--radius-lg); padding: 28px;
  display:flex; align-items:center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg); position: relative; overflow:hidden; margin-top: 60px;
}
.cta-card::after { content:''; position:absolute; inset:0; background: var(--grad-shine); pointer-events:none; }
.cta-card h2 { margin: 0 0 6px; }
.cta-card .btn-primary { background: #fff; color: var(--c-orange-1); }
.site-footer { text-align:center; color: var(--c-muted); padding: 40px 16px; font-size: 13px; }

/* Bottom nav */
.bottomnav {
  position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%);
  display:flex; align-items: center; justify-content: space-between;
  gap: 4px; padding: 8px 14px; max-width: 460px; width: calc(100% - 24px);
  background: var(--c-surface); border-radius: 24px;
  border: 1px solid var(--c-border); box-shadow: var(--shadow-md); z-index: 60;
}
.bottomnav .nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px; color: var(--c-muted); font-size: 11px; font-weight: 600;
  text-decoration: none; transition: color .18s;
}
.bottomnav .nav-item i { font-size: 22px; }
.bottomnav .nav-item.active { color: var(--c-orange-1); }
.bottomnav .nav-center { position: relative; }
.bottomnav .fab {
  width: 52px; height: 52px; border-radius: 50%; background: var(--grad-primary);
  color: #fff; display:grid; place-items:center; font-size: 26px;
  box-shadow: var(--shadow-md); margin-top: -28px; border: 4px solid var(--c-bg);
  position: relative; overflow:hidden;
}
.bottomnav .fab::after { content:''; position:absolute; inset:0; background: var(--grad-shine); }

/* ==== Mobile Responsive Landing ==== */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 36px; }
  .container { padding-top: 80px; }
  .balance-card--showcase { transform: rotate(0deg); margin: 0 auto; }
}
@media (max-width: 520px) {
  .topbar { padding: 10px 14px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand-img { width: 32px; height: 32px; }
  .page-landing .container { padding-top: 80px; padding-bottom: 32px; }
  .hero { gap: 20px; }
  .hero h1 { font-size: 30px; line-height: 1.08; }
  .hero .lead { font-size: 15px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 18px; margin-top: 22px; }
  .hero-stats b { font-size: 19px; }
  .balance-card--showcase { padding: 22px; max-width: 100%; }
  .balance-amount h2 { font-size: 26px; }
  .section-title { font-size: 22px; margin: 40px 0 16px; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature { padding: 16px; }
  .feature i { font-size: 24px; }
  .feature h3 { font-size: 15px; }
  .feature p { font-size: 13px; }
  .cta-card { padding: 22px; margin-top: 40px; }
  .cta-card h2 { font-size: 20px; }
  .cta-card .btn-lg { width: 100%; }
  .auth-card { padding: 22px 18px; }
  .auth-card h1 { font-size: 22px; }
  .grid2 { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 380px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
}

/* ==========================================================
   Custom dialogs (replace native confirm/alert/prompt)
   ========================================================== */
.lt-dialog-root { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.lt-overlay {
  position: fixed; inset: 0; background: rgba(15, 12, 8, .55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 18px;
  opacity: 0; transition: opacity .22s ease;
  pointer-events: auto;
}
.lt-overlay.show { opacity: 1; }
.lt-dialog {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); width: 100%; max-width: 380px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform: translateY(12px) scale(.96); opacity: 0;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), opacity .25s ease;
}
.lt-overlay.show .lt-dialog { transform: translateY(0) scale(1); opacity: 1; }
.lt-dialog-head { padding: 18px 20px 4px; }
.lt-dialog-head h3 { margin: 0; font-size: 17px; }
.lt-dialog-body { padding: 14px 20px 8px; }
.lt-dialog-body p { margin: 0 0 10px; color: var(--c-text); font-size: 14.5px; line-height: 1.5; }
.lt-dialog-input { width: 100%; margin-top: 6px; }
.lt-dialog-actions {
  display: flex; gap: 10px; padding: 12px 20px 18px; justify-content: flex-end;
}
.lt-dialog-actions .btn { padding: 10px 16px; font-size: 14px; }

/* ==========================================================
   Animations
   ========================================================== */
@keyframes lt-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lt-slide-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lt-pop { 0% { transform: scale(.92); opacity: 0; } 60% { transform: scale(1.02); opacity: 1; } 100% { transform: scale(1); } }
@keyframes lt-pop-centered { 0% { transform: translateX(-50%) scale(.92); opacity: 0; } 60% { transform: translateX(-50%) scale(1.02); opacity: 1; } 100% { transform: translateX(-50%) scale(1); } }
@keyframes lt-slide-up-centered { from { opacity: 0; transform: translateX(-50%) translateY(14px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes lt-toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

main.page-enter > * { animation: lt-slide-up .42s ease both; }
main.page-enter > *:nth-child(1) { animation-delay: .02s; }
main.page-enter > *:nth-child(2) { animation-delay: .08s; }
main.page-enter > *:nth-child(3) { animation-delay: .14s; }
main.page-enter > *:nth-child(4) { animation-delay: .20s; }
main.page-enter > *:nth-child(5) { animation-delay: .26s; }
main.page-enter > *:nth-child(n+6) { animation-delay: .30s; }

.toast { opacity: 0; transform: translateY(-6px); transition: opacity .22s ease, transform .22s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

.nominal-tile, .product-tile, .smm-row, .game-chip, .brand-chip, .cat-tile, .hub-tile {
  will-change: transform;
}
.nominal-tile:active, .product-tile:active, .smm-row:active { transform: scale(.97); }
.btn { transition: transform .12s ease, box-shadow .2s ease, opacity .2s, background .2s; }
.btn:active { transform: scale(.97); }
.card, .hub-step, .order-card { animation: lt-slide-up .35s ease both; }
.bottomnav { animation: lt-pop-centered .45s ease .1s both; }
.balance-card { animation: lt-pop .55s ease .05s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Deposit method picker ===== */
.pay-tabs { display:flex; gap:8px; overflow-x:auto; padding-bottom:6px; margin-bottom:10px; scrollbar-width:none; }
.pay-tabs::-webkit-scrollbar { display:none; }
.pay-tab { flex:0 0 auto; padding:8px 14px; border-radius:999px; background:var(--c-soft); color:var(--c-text); font-size:13px; font-weight:700; border:1px solid transparent; cursor:pointer; transition:all .18s ease; }
.pay-tab.active { background:var(--grad-primary); color:#fff; border-color:transparent; box-shadow:var(--shadow-sm); }
.pay-list { display:flex; flex-direction:column; gap:8px; }
.pay-row { display:flex; align-items:center; gap:12px; width:100%; padding:12px 14px; background:var(--c-surface); border:1.5px solid var(--c-border); border-radius:var(--radius); cursor:pointer; text-align:left; transition:all .18s ease; }
.pay-row:hover:not(:disabled) { border-color:var(--c-primary); transform:translateY(-1px); box-shadow:var(--shadow-sm); }
.pay-row.selected { border-color:var(--c-primary); background:linear-gradient(135deg, #FFF8E1 0%, #FFFDF6 100%); box-shadow:var(--shadow-sm); }
.pay-row.is-disabled, .pay-row:disabled { opacity:.45; cursor:not-allowed; }
.pay-row-icn { width:40px; height:40px; flex:0 0 40px; display:grid; place-items:center; border-radius:10px; background:var(--c-soft); color:var(--c-primary); font-size:20px; }
.pay-row-main { flex:1; display:flex; flex-direction:column; min-width:0; }
.pay-row-name { font-weight:700; font-size:14px; color:var(--c-text); }
.pay-row-sub { font-size:12px; color:var(--c-muted); margin-top:2px; }
.pay-row-fee { font-size:12px; font-weight:700; color:var(--c-primary); white-space:nowrap; }

.pay-summary .row { display:flex; justify-content:space-between; align-items:center; padding:6px 0; font-size:14px; }
.pay-summary .row.total { padding-top:10px; margin-top:6px; border-top:1px dashed var(--c-border); font-size:16px; font-weight:800; color:var(--c-primary); }
.pay-summary .btn { margin-top:14px; }

.va-box { display:flex; flex-direction:column; align-items:center; gap:4px; padding:14px; margin:14px 0; border-radius:var(--radius); background:var(--c-soft); }
.va-box strong { font-size:22px; letter-spacing:1px; color:var(--c-text); font-family: var(--font-display); }

/* Deposit detail */
.dep-detail { display:flex; flex-direction:column; align-items:stretch; gap:12px; }
.dep-head { text-align:center; }
.dep-head .muted { margin:0 0 2px; font-size:12px; }
.dep-invoice { margin:0; font-size:18px; font-weight:800; letter-spacing:.3px; font-family: var(--font-display); }
.dep-method { margin:4px 0 0; font-size:13px; color:var(--c-muted); font-weight:600; }
.dep-amount { text-align:center; font-size:28px; font-weight:800; color:var(--c-primary); letter-spacing:.3px; margin:4px 0 6px; font-variant-numeric: tabular-nums; font-family: var(--font-display); }
.qr-box { display:flex; justify-content:center; padding:16px; background:#fff; border:1px solid var(--c-border); border-radius:var(--radius); margin:0 auto; max-width:280px; }
.qr-box img { display:block; width:100%; max-width:240px; height:auto; image-rendering: pixelated; }
.qr-actions { display:flex; justify-content:center; margin-top:-4px; }
.dep-status-row { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-top:1px dashed var(--c-border); margin-top:6px; }
.dep-countdown { text-align:center; font-weight:800; color:var(--c-primary); background:var(--c-soft); padding:8px 12px; border-radius:10px; font-variant-numeric: tabular-nums; font-family: var(--font-display); }
.dep-btn-row { display:flex; flex-direction:column; gap:8px; margin-top:6px; }
.btn-danger-ghost { color:#c0392b; }
.btn-danger-ghost:hover { background:rgba(192,57,43,.08); }

/* ==========================================================
   Profile – better visibility & edit form
   ========================================================== */
.profile-avatar-wrap {
  position: relative; width: 156px; height: 156px;
  margin: 0 auto 14px;
}
.profile-avatar-wrap .avatar {
  width: 156px; height: 156px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  display:grid; place-items: center;
  margin: 0; font-size: 64px; box-shadow: var(--shadow-lg);
  overflow: hidden; border: 4px solid var(--c-surface);
  outline: 1px solid var(--c-border);
}
.profile-avatar-wrap .avatar img { width: 100%; height: 100%; object-fit: cover; display:block; }
.profile-avatar-edit {
  position: absolute; bottom: 6px; right: 6px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  display:grid; place-items: center; font-size: 18px;
  border: 3px solid var(--c-surface); cursor: pointer;
  box-shadow: var(--shadow-md); transition: transform .15s ease;
  z-index: 2;
}
.profile-avatar-edit:hover { transform: scale(1.06); }
.profile-hero h2 { margin: 8px 0 4px; font-size: 24px; }
.profile-hero { text-align: center; padding: 8px 0 20px; }
.profile-hero .profile-handle {
  display:inline-flex; align-items:center; gap: 8px; flex-wrap: wrap;
  justify-content: center; color: var(--c-muted); font-size: 14px; margin: 4px 0 0;
}
.tier-pill {
  display:inline-flex; align-items:center; gap: 4px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  background: var(--grad-primary); color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
}
.tier-pill.t-bronze   { background: linear-gradient(135deg, #8C5A2A, #B97D4A); }
.tier-pill.t-silver   { background: linear-gradient(135deg, #6E7884, #A8B0BC); color:#fff; }
.tier-pill.t-gold     { background: linear-gradient(135deg, #8B6914, #D4A93A); }
.tier-pill.t-platinum { background: linear-gradient(135deg, #2A3142, #5A6478); }

.kv {
  display:flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px dashed var(--c-border);
  font-size: 14.5px; gap: 12px;
}
.kv:last-child { border: none; }
.kv span { color: var(--c-muted); font-weight: 500; }
.kv b { color: var(--c-text); font-weight: 700; word-break: break-word; text-align: right; }
.profile-actions { display:grid; gap: 10px; margin-top: 16px; }

/* ==========================================================
   App-wide centered modal (used by profile, admin user edit, etc.)
   Uses .lm- prefix to avoid collision with admin.css legacy .lt-modal
   ========================================================== */
.lm-modal-backdrop {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(15,12,8,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display:none; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; transition: opacity .22s ease;
}
.lm-modal-backdrop.show { display:flex; opacity: 1; }
.lm-modal {
  background: var(--c-surface); color: var(--c-text);
  border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(.96); transition: transform .25s cubic-bezier(.2,.7,.2,1);
  position: relative;
}
.lm-modal-backdrop.show .lm-modal { transform: translateY(0) scale(1); }
.lm-modal-head { display:flex; align-items: center; justify-content: space-between; padding: 18px 20px 8px; gap: 12px; }
.lm-modal-head h3 { margin: 0; font-size: 18px; }
.lm-modal-body { padding: 8px 20px 18px; }
.lm-modal-foot {
  padding: 12px 20px 18px; display:flex; gap: 8px; justify-content: flex-end;
  position: sticky; bottom: 0; background: var(--c-surface);
  border-top: 1px solid var(--c-border);
}
@media (max-width: 480px) {
  .lm-modal-backdrop { padding: 0; align-items: flex-end; }
  .lm-modal { max-width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; }
  .lm-modal-foot .btn { flex: 1; }
}

/* ===== Promo banner slider (auto-advance) ===== */
.promo-slider {
  overflow: hidden; margin: 8px -16px 18px; padding: 0 16px;
  position: relative;
}
.promo-track {
  display:flex; gap: 12px; transition: transform .6s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.promo-dots {
  display:flex; gap: 6px; justify-content: center; margin-top: 10px;
}
.promo-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-border);
  border: none; padding: 0; cursor: pointer; transition: all .25s ease;
}
.promo-dot.active { width: 22px; background: var(--c-primary); border-radius: 999px; }

/* === History page: provider ID copy === */
.icon-btn {
  background: transparent; border: 0; color: var(--c-primary, #8B6914);
  cursor: pointer; padding: 2px 4px; border-radius: 4px; font-size: 14px;
}
.icon-btn:hover { background: rgba(139,105,20,.08); }
