/* Loan Flex — single stylesheet for site, dashboard and admin */
:root {
  --bg: #030805;
  --panel: #0a1510;
  --panel-2: #0e1d15;
  --line: rgba(255, 255, 255, .1);
  --line-green: rgba(34, 224, 107, .5);
  --green: #22e06b;
  --green-ink: #04140a;
  --gold: #ffcf2e;
  --text: #ffffff;
  --muted: #b9c6be;
  --red: #ff6b6b;
  --amber: #ffb547;
  --blue: #5aa9ff;
  --radius: 14px;
  --head: 'Poppins', system-ui, sans-serif;
  --body: 'Roboto', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: #7dffad; }
h1, h2, h3, h4 { font-family: var(--head); margin: 0; line-height: 1.15; }
p { margin: 0; }
.green { color: var(--green); }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; font: 700 15px var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--green-ink); border-color: var(--green); box-shadow: 0 0 24px rgba(34, 224, 107, .4); }
.btn-primary:hover { color: var(--green-ink); box-shadow: 0 0 34px rgba(34, 224, 107, .6); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.btn-ghost:hover { color: #fff; border-color: var(--green); }
.btn-outline { background: rgba(34, 224, 107, .06); color: var(--green); border-color: var(--green); border-radius: 10px; }
.btn-outline:hover { background: rgba(34, 224, 107, .15); }
.btn-gold { background: linear-gradient(180deg, #ffd84a, #f0a91a); color: #1a1100; border-color: #ffcf2e; }
.btn-gold:hover { color: #1a1100; }
.btn-danger { background: transparent; color: var(--red); border-color: var(--red); border-radius: 10px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- alerts & badges ---------- */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; font-size: 14px; }
.alert-success { background: rgba(34, 224, 107, .1); border-color: var(--line-green); color: #b6ffd2; }
.alert-error { background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .5); color: #ffc9c9; }
.alert-info { background: rgba(90, 169, 255, .1); border-color: rgba(90, 169, 255, .45); color: #cfe5ff; }
.alert-warning { background: rgba(255, 181, 71, .1); border-color: rgba(255, 181, 71, .5); color: #ffe2b6; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; border: 1px solid; }
.badge-green { color: var(--green); border-color: var(--line-green); background: rgba(34, 224, 107, .1); }
.badge-amber { color: var(--amber); border-color: rgba(255, 181, 71, .5); background: rgba(255, 181, 71, .1); }
.badge-red { color: var(--red); border-color: rgba(255, 107, 107, .5); background: rgba(255, 107, 107, .1); }
.badge-blue { color: var(--blue); border-color: rgba(90, 169, 255, .5); background: rgba(90, 169, 255, .1); }
.badge-gray { color: var(--muted); border-color: var(--line); }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: #e5ece8; }
.form .row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: #07120c; color: #fff; font: 15px var(--body); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(34, 224, 107, .2); }
input[type=file] { padding: 9px; }
input[type=checkbox] { width: 18px; min-height: 18px; accent-color: var(--green); }
.check { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 10px !important; }
.hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }

/* ======================================================
   PUBLIC SITE
   ====================================================== */
.site { background:
  radial-gradient(1200px 600px at 75% 8%, rgba(34, 224, 107, .2), transparent 60%),
  radial-gradient(900px 500px at 92% 45%, rgba(34, 224, 107, .14), transparent 60%),
  radial-gradient(800px 500px at 8% 70%, rgba(34, 224, 107, .09), transparent 60%), var(--bg); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 60px; height: 50px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 700 26px var(--head); color: #fff; }
.brand-tag { font-size: 12.5px; color: #e8ece9; margin-top: 4px; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; position: relative; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 500; padding: 6px 2px; }
.site-nav a.active { background: var(--green); color: var(--green-ink); padding: 7px 18px; border-radius: 999px; font-weight: 700; }
.site-nav a:not(.active):hover { color: var(--green); }
.header-actions { display: flex; gap: 12px; align-items: center; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; cursor: pointer; padding: 0; align-items: center; justify-content: center; }

.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; align-items: center; padding: 16px 0 36px; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 2; }
.eyebrow-line { display: flex; align-items: center; gap: 16px; color: var(--green); font-weight: 700; font-size: 20px; }
.eyebrow-line::after { content: ""; width: 140px; height: 1px; background: rgba(34, 224, 107, .6); }
.hero-title { font: italic 800 clamp(56px, 7vw, 96px)/.95 var(--head); letter-spacing: -.02em; }
.hero-sub { font: 700 clamp(26px, 3vw, 40px)/1.12 var(--head); }
.hero-lead { font-size: 18px; color: #e4e9e6; max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
.trust { display: flex; flex-wrap: wrap; gap: 20px 36px; margin-top: 10px; }
.trust div { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.25; }
.trust svg { color: var(--green); width: 30px; height: 30px; }
.hero-art img { width: 100%; height: auto; -webkit-mask-image: radial-gradient(ellipse 75% 72% at 55% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 75% 72% at 55% 50%, #000 62%, transparent 100%); }
.hero-art .mob { display: none; }
.hero-mobile-title { display: none; }

.section { padding: 34px 0; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--green); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 40px; height: 2px; background: var(--green); }
.section-title { text-align: center; font-weight: 700; font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 26px; }

.loan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.loan-card { display: flex; flex-direction: column; border: 1.5px solid var(--line-green); border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, #0b1a11, #06100a); box-shadow: 0 0 22px rgba(34, 224, 107, .16); transition: transform .2s, box-shadow .2s; }
.loan-card:hover { transform: translateY(-4px); box-shadow: 0 0 34px rgba(34, 224, 107, .3); }
.loan-card > img { width: 100%; height: 150px; object-fit: cover; }
.loan-card .body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 20px; flex: 1; }
.loan-card h3 { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; }
.loan-card h3 .ic { display: inline-flex; width: 34px; height: 34px; border-radius: 999px; background: var(--green); color: var(--green-ink); align-items: center; justify-content: center; flex-shrink: 0; }
.loan-card .big-ic { display: none; color: var(--green); }
.loan-card p { text-align: center; color: #dfe5e1; flex: 1; margin-bottom: 6px; }

.why { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 28px; align-items: center; }
.why-intro { display: flex; flex-direction: column; gap: 16px; }
.why-intro h2 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.05; }
.why-intro h2 span { font-size: 1.2em; }
.why-intro p { color: #e4e9e6; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
.feature { display: flex; flex-direction: column; gap: 6px; padding: 4px 20px; border-left: 1px solid var(--line); }
.feature svg { color: var(--green); width: 32px; height: 32px; }
.feature h3 { font: 700 17px var(--body); margin-top: 6px; }
.feature p { font-size: 14px; color: #c9d2cc; line-height: 1.4; }
.why-art img { -webkit-mask-image: radial-gradient(ellipse 70% 70% at 55% 50%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 70% 70% at 55% 50%, #000 60%, transparent 100%); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1.5px solid var(--line-green); border-radius: var(--radius); background: rgba(8, 24, 14, .85); padding: 10px; margin: 10px 0 30px; }
.stat { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 14px 10px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat svg { width: 46px; height: 46px; color: var(--green); flex-shrink: 0; }
.stat .v { font: 700 26px var(--head); }
.stat .l { font-size: 14px; color: #e4e9e6; }

.how { display: grid; grid-template-columns: 3fr 1fr; gap: 28px; align-items: end; }
.steps { display: flex; gap: 12px; align-items: stretch; }
.step { flex: 1; display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(12, 26, 18, .9); }
.step .num { align-self: flex-start; display: inline-flex; width: 28px; height: 28px; border-radius: 999px; background: var(--green); color: var(--green-ink); font-weight: 700; align-items: center; justify-content: center; flex-shrink: 0; }
.step > svg { color: var(--green); width: 46px; height: 46px; flex-shrink: 0; }
.step h3 { font: 700 16px var(--body); margin-bottom: 4px; }
.step p { font-size: 13.5px; color: #c9d2cc; line-height: 1.35; }
.step-arrow { align-self: center; font-size: 30px; font-weight: 700; color: #fff; }
.cta-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); border: 1.5px solid rgba(34, 224, 107, .6); background: linear-gradient(135deg, #0d2416, #071209); box-shadow: 0 0 30px rgba(34, 224, 107, .22); }
.cta-card img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; }
.cta-card p { font: 700 22px/1.15 var(--head); margin-bottom: 12px; }

.testimonials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tcard { margin: 0; display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(12, 24, 17, .92); }
.avatar { flex-shrink: 0; width: 64px; height: 64px; border-radius: 999px; background: linear-gradient(135deg, #1b6b3d, #0b2a17); border: 2px solid var(--line-green); display: flex; align-items: center; justify-content: center; font: 700 20px var(--head); color: #fff; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.tcard blockquote { margin: 0 0 8px; font-style: italic; }
.tcard figcaption { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.tcard .who { font-weight: 700; }
.tcard .role { font-size: 13px; color: #c9d2cc; }
.stars { display: flex; gap: 2px; color: #ffc21a; }
.stars .off { color: #3c4a42; }

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: rgba(12, 24, 17, .9); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; color: #d5ddd8; }

.contact-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; color: #e4e9e6; }
.contact-strip a { color: #fff; }

.site-footer { border-top: 2px solid var(--green); box-shadow: 0 -10px 30px -12px rgba(34, 224, 107, .5); margin-top: 40px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; padding: 22px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.footer-links a { color: #fff; text-decoration: none; font-size: 14px; }
.footer-links a + a::before { content: "|"; color: #5e6d64; margin-right: 14px; }
.socials { display: flex; gap: 12px; }
.socials a { display: inline-flex; width: 44px; height: 44px; border-radius: 999px; align-items: center; justify-content: center; color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.socials .tg { background: #1d9bd7; } .socials .xx { background: #000; } .socials .yt { background: #e1251b; } .socials .dc { background: #5865f2; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 16px 0 22px; border-top: 1px solid var(--line); font-size: 14px; color: #e4e9e6; }
.footer-bottom a { text-decoration: none; }

.legal { max-width: 860px; margin: 0 auto; padding: 30px 0 60px; }
.legal h1 { font-size: 38px; margin-bottom: 18px; }
.legal h2 { font-size: 22px; margin: 26px 0 10px; }
.legal p, .legal li { color: #d5ddd8; margin-bottom: 10px; }

/* ---------- public site: tablet & phone ---------- */
@media (max-width: 1100px) {
  .site-nav { gap: 16px; }
  .why { grid-template-columns: 1fr 1fr; }
  .why-art { display: none; }
  .how { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 30; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px; border-radius: var(--radius); background: #07120c; border: 1px solid var(--line-green); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .header-actions .btn-primary { display: none; }
  .header-actions .btn-ghost { border-color: var(--green); }
  .loan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .testimonials { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .container { padding: 0 14px; }
  .brand img { width: 44px; height: 37px; }
  .brand-name { font-size: 21px; }
  .brand-tag { font-size: 10.5px; }
  .hero { display: block; position: relative; padding: 4px 0 22px; min-height: 360px; }
  .hero-art { position: absolute; right: -14px; top: -6px; width: 60%; z-index: 1; }
  .hero-art .desk { display: none; }
  .hero-art .mob { display: block; -webkit-mask-image: radial-gradient(ellipse 80% 78% at 60% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 80% 78% at 60% 50%, #000 58%, transparent 100%); }
  .hero-copy { gap: 10px; }
  .eyebrow-line, .hero-title, .trust, .hero-ctas .btn-ghost { display: none; }
  .hero-mobile-title { display: block; font: 800 26px/1.1 var(--head); max-width: 58%; }
  .hero-mobile-title span { font-size: 36px; color: var(--green); }
  .hero-sub { font-size: 18px; max-width: 54%; }
  .hero-lead { font-size: 14px; max-width: 52%; }
  .section { padding: 18px 0; }
  .section-title { font-size: 22px; margin-bottom: 14px; }
  .eyebrow { display: none; }
  .site .loan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .site .loan-card:nth-child(4) { display: none; }
  .site .loan-card > img { display: none; }
  .site .loan-card .body { align-items: center; text-align: center; padding: 12px 6px; gap: 4px; }
  .site .loan-card .big-ic { display: block; }
  .site .loan-card h3 { font: 700 13px var(--body); }
  .site .loan-card h3 .ic { display: none; }
  .site .loan-card p { font-size: 10.5px; line-height: 1.3; }
  .site .loan-card .btn { min-height: 32px; font-size: 12px; padding: 0 10px; border-radius: 999px; }
  .why { grid-template-columns: 1fr; gap: 14px; }
  .why-intro { align-items: center; text-align: center; }
  .why-intro h2 { font-size: 22px; }
  .why-intro h2 br { display: none; }
  .why-intro h2 span { font-size: 1em; }
  .why-intro p, .why-intro .btn { display: none; }
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 0; }
  .feature { align-items: center; text-align: center; padding: 0 4px; }
  .feature:first-child { border-left: 0; }
  .feature:nth-child(n+5), .feature p { display: none; }
  .feature h3 { font: 500 13px var(--body); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px; }
  .stat { gap: 10px; }
  .stat svg { width: 34px; height: 34px; }
  .stat .v { font-size: 18px; }
  .stat .l { font-size: 12px; }
  .steps { justify-content: center; gap: 4px; }
  .step { flex: 0 0 98px; height: 98px; border-radius: 999px; border: 2px solid var(--green); flex-direction: column; justify-content: center; gap: 4px; padding: 6px; text-align: center; position: relative; margin-top: 12px; box-shadow: 0 0 18px rgba(34, 224, 107, .3); }
  .step .num { position: absolute; top: -13px; left: 50%; margin-left: -13px; width: 26px; height: 26px; border-radius: 7px; }
  .step > svg { width: 24px; height: 24px; }
  .step h3 { font-size: 11px; margin: 0; }
  .step p { display: none; }
  .step-arrow { font-size: 18px; color: var(--green); }
  .cta-card { padding: 14px 12px; }
  .cta-card img { width: 80px; height: 80px; border-radius: 999px; }
  .cta-card p { font-size: 17px; }
  .tcard { padding: 14px; }
  .footer-links { justify-content: center; width: 100%; }
}

/* ======================================================
   AUTH PAGES
   ====================================================== */
.auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px 16px;
  background: radial-gradient(700px 500px at 80% 10%, rgba(34, 224, 107, .2), transparent 60%), radial-gradient(600px 500px at 10% 90%, rgba(34, 224, 107, .12), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 440px; padding: 30px; border-radius: 18px; border: 1.5px solid var(--line-green); background: rgba(8, 20, 13, .92); box-shadow: 0 0 40px rgba(34, 224, 107, .15); }
.auth-card .brand { justify-content: center; margin-bottom: 18px; }
.auth-title { font-size: 26px; margin-bottom: 6px; text-align: center; }
.auth-sub { text-align: center; color: var(--muted); margin-bottom: 20px; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ======================================================
   APP (dashboard + admin)
   ====================================================== */
.app { display: flex; min-height: 100vh; background: radial-gradient(900px 500px at 70% 0%, rgba(34, 224, 107, .07), transparent 60%), #050b08; }
.sidebar { width: 272px; flex-shrink: 0; border-right: 1px solid var(--line); padding: 26px 18px; display: flex; flex-direction: column; gap: 22px; background: #050b08; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 0 6px 6px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; color: #e8ece9; text-decoration: none; font-size: 16px; }
.side-link svg { color: #d9e0dc; flex-shrink: 0; }
.side-link:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.side-link.active { background: linear-gradient(90deg, #1fc85f, #22e06b); color: var(--green-ink); font-weight: 700; box-shadow: 0 0 22px rgba(34, 224, 107, .35); }
.side-link.active svg { color: var(--green-ink); }
.side-link .count { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.side-promo { margin-top: auto; border-radius: var(--radius); border: 1px solid rgba(255, 207, 46, .4); padding: 20px 16px; background: radial-gradient(circle at 20% 20%, rgba(255, 207, 46, .25), transparent 60%), linear-gradient(135deg, #1a1405, #070604); display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.side-promo img { width: 64px; height: 64px; border-radius: 999px; object-fit: cover; }
.side-promo p { font: 700 18px/1.2 var(--head); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 16px 28px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: rgba(5, 11, 8, .92); backdrop-filter: blur(8px); }
.topbar .who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar .avatar { width: 52px; height: 52px; font-size: 18px; }
.topbar .hello { font-size: 15px; color: #e8ece9; }
.topbar .name { font: 700 20px var(--head); display: flex; align-items: center; gap: 6px; }
.topbar .name svg { color: var(--green); }
.topbar .since { font-size: 12px; color: var(--muted); }
.topbar .spacer { flex: 1; }
.bell { position: relative; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; color: #fff; border-radius: 999px; }
.bell:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.bell .dot { position: absolute; top: 2px; right: 2px; min-width: 20px; height: 20px; border-radius: 999px; background: #ff3b3b; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.wallet-pill { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 14px; border: 1.5px solid var(--line-green); background: linear-gradient(135deg, #0d2a18, #07140c); text-decoration: none; color: #fff; }
.wallet-pill:hover { color: #fff; }
.coin-ic { width: 40px; height: 40px; border-radius: 999px; background: radial-gradient(circle at 35% 30%, #ffe27a, #f29d0c); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wallet-pill .lbl { font-size: 13px; color: var(--green); }
.wallet-pill .amt { font: 700 18px var(--head); }


.content { padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 22px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.page-head h1 { font-size: 26px; }
.page-head h1 small { display: block; font: 400 14px var(--body); color: var(--muted); margin-top: 4px; }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(13, 24, 18, .85); padding: 20px; }
.card-green { border-color: var(--line-green); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head h2 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.card-head h2 svg { color: var(--green); }
.card-head a { font-size: 14px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }

.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1fr) 340px; }
.g-bottom { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 300px; }

.banner { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-green); min-height: 270px; background: linear-gradient(100deg, #06120b 0%, #06120b 40%, #0a3a1d 100%); display: flex; align-items: center; }
.banner img { position: absolute; right: 0; top: 0; height: 100%; width: 60%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%); }
.banner .copy { position: relative; z-index: 2; padding: 28px; max-width: 470px; display: flex; flex-direction: column; gap: 14px; }
.banner h1 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; }
.banner p { color: #e4e9e6; font-size: 16px; }

.wallet-card .bal { font: 700 34px var(--head); margin: 6px 0 2px; }
.up { color: var(--green); }
.down { color: var(--red); }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: #fff; font-size: 14px; }
.quick .qi { width: 52px; height: 52px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #fff; }
.qi.g { background: #1fae58; } .qi.b { background: #2563eb; } .qi.p { background: #7c3aed; } .qi.o { background: #f59e0b; }
.icon-btn { background: transparent; border: 0; color: #fff; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; cursor: pointer; }
.icon-btn.side-toggle { display: none; }
.hide-bal .bal-v { filter: blur(8px); }

.why-box { border-radius: var(--radius); border: 1px solid var(--line-green); padding: 20px; background: linear-gradient(160deg, #0b2416, #06100a); }
.why-box h2 { font-size: 22px; margin-bottom: 14px; }
.why-box ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.why-box li { display: flex; align-items: center; gap: 10px; }
.why-box li svg { color: var(--green); }
.why-box .sec { display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--muted); font-size: 14px; }
.why-box .sec svg { color: var(--gold); }

.dash-loans .loan-card > img { height: 110px; }
.dash-loans .loan-card .body { padding: 14px; gap: 6px; }
.dash-loans .loan-card h3 { justify-content: center; font-size: 18px; }
.dash-loans .loan-card h3 .ic { display: none; }

.active-loan { display: flex; gap: 16px; align-items: center; }
.active-loan .thumb { width: 140px; height: 84px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.active-loan .t { font-weight: 700; font-size: 17px; }
.active-loan .amt { color: var(--green); font: 700 22px var(--head); }
.progress { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green); border-radius: 999px; }

.market-row { display: grid; grid-template-columns: 40px 1fr auto minmax(60px, 110px); align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.market-row > * { white-space: nowrap; min-width: 0; }
.spark-cell svg { width: 100%; height: 36px; display: block; }
.market-row:first-of-type { border-top: 0; }
.coin { width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; }
.coin.BTC { background: #f7931a; } .coin.ETH { background: #627eea; } .coin.USDT { background: #26a17b; }

.dream { border-radius: var(--radius); border: 1px solid rgba(255, 207, 46, .5); padding: 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; background: radial-gradient(circle at 50% 0%, rgba(255, 207, 46, .25), transparent 60%), linear-gradient(160deg, #1b1505, #070604); }
.dream svg { color: var(--gold); }
.dream h2 { font-size: 24px; color: var(--gold); }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: 13px; white-space: nowrap; }
td .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.calc { border-radius: 12px; border: 1px dashed var(--line-green); padding: 16px; background: rgba(34, 224, 107, .04); }
.addr { font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; padding: 12px; border-radius: 10px; background: #07120c; border: 1px solid var(--line); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: #fff; text-decoration: none; font-size: 14px; }
.tabs a.on { background: var(--green); color: var(--green-ink); border-color: var(--green); font-weight: 700; }
.msg { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #07120c; }
.msg.admin { border-color: var(--line-green); background: rgba(34, 224, 107, .06); }
.msg .meta { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.notif { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.notif.unread .t { color: var(--green); }
.kpi .v { font: 700 28px var(--head); }
.kpi .l { color: var(--muted); font-size: 14px; }

@media (max-width: 1280px) {
  .g-bottom { grid-template-columns: 1fr 1fr; }
  .g-bottom .dream { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .g-main { grid-template-columns: 1fr; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; box-shadow: 10px 0 40px rgba(0, 0, 0, .6); }
  .sidebar.open { transform: none; }
  .icon-btn.side-toggle { display: inline-flex; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .topbar .avatar, .topbar .since, .topbar .hello { display: none; }
  .wallet-pill .lbl { display: none; }
  .topbar .who { display: none; }
  .wallet-pill { padding: 6px 12px; }
  .wallet-pill .coin-ic { width: 32px; height: 32px; }
  .content { padding: 18px 14px 30px; }
  .g-2, .g-3, .g-bottom { grid-template-columns: 1fr; }
  .banner img { width: 100%; opacity: .35; }
}
@media (max-width: 560px) {
  .g-4 { grid-template-columns: 1fr; }
  .dash-loans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-row { grid-template-columns: 40px 1fr auto; }
  .market-row .spark-cell { display: none; }
  .active-loan .thumb { display: none; }
}
