:root {
  --bg: #0a0e17;
  --bg2: #0f1520;
  --card: #131a27;
  --card2: #1a2332;
  --border: #1e2a3a;
  --text: #e8eef7;
  --muted: #8b9cb3;
  --primary: #00d4aa;
  --primary2: #00b894;
  --blue: #3b82f6;
  --green: #10b981;
  --red: #ef4444;
  --btc: #f7931a;
  --usdt: #26a17b;
  --radius: 16px;
  --font: 'Inter', system-ui, sans-serif;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Header */
header {
  position: fixed; top:0; left:0; right:0; z-index:1000;
  height: 64px;
  background: rgba(10,14,23,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px; margin:0 auto; padding:0 1.25rem;
  height:100%; display:flex; align-items:center; justify-content:space-between; gap:1rem;
}
.logo-link { display:flex; align-items:center; gap:0.55rem; text-decoration:none; color:var(--text); }
.logo-img {
  height: 38px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.logo-text {
  font-weight:800; font-size:1.2rem;
  background: linear-gradient(135deg, var(--primary), #5eead4);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
nav { display:flex; gap:0.15rem; }
.nav-link {
  color:var(--muted); text-decoration:none; font-weight:500; font-size:0.9rem;
  padding:0.4rem 0.8rem; border-radius:8px; transition:0.2s;
}
.nav-link:hover { color:var(--primary); background:rgba(0,212,170,0.07); }
.header-actions { display:flex; align-items:center; gap:0.7rem; }
.menu-toggle { display:none; background:none; border:none; color:var(--text); font-size:1.45rem; cursor:pointer; }

/* Buttons */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:0.4rem;
  padding:0.7rem 1.35rem; border-radius:12px; font-weight:600; font-size:0.9rem;
  border:none; cursor:pointer; font-family:inherit; text-decoration:none; transition:0.2s;
}
.btn-sm { padding:0.42rem 1rem; font-size:0.85rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color:#0a0e17; box-shadow:0 4px 18px rgba(0,212,170,0.28);
}
.btn-primary:hover { transform:translateY(-1px); box-shadow:0 6px 24px rgba(0,212,170,0.4); }
.btn-secondary {
  background: var(--card2); color:var(--text); border:1px solid var(--border);
}
.btn-secondary:hover { border-color:var(--primary); color:var(--primary); }
.btn.full { width:100%; }

/* Hero - two column like screenshot */
.hero-section { padding: 6.5rem 1.25rem 3.5rem; }
.hero-grid {
  max-width: 1200px; margin:0 auto;
  display:grid; grid-template-columns: 1.1fr 1fr; gap:2.5rem; align-items:center;
}
.hero-chart-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  min-height: 380px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.hero-chart { width:100%; height:380px; }

.hero-content { padding: 0.5rem 0; }
.badge {
  display:inline-flex; align-items:center; gap:0.4rem;
  background: rgba(0,212,170,0.1); border:1px solid rgba(0,212,170,0.25);
  color: var(--primary); font-size:0.8rem; font-weight:600;
  padding:0.3rem 0.85rem; border-radius:20px; margin-bottom:1.1rem;
}
.badge.centered { display:flex; width:fit-content; margin:0 auto 0.9rem; }
.badge-dot {
  width:7px; height:7px; border-radius:50%; background:var(--primary);
  box-shadow:0 0 8px var(--primary); animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

.hero-content h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight:800; line-height:1.2; margin-bottom:1rem;
}
.hero-content h1 span {
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.hero-desc { color:var(--muted); font-size:1.02rem; margin-bottom:1.5rem; max-width:420px; }
.hero-cta { display:flex; flex-wrap:wrap; gap:0.75rem; margin-bottom:2rem; }

.hero-stats { display:flex; gap:1.75rem; flex-wrap:wrap; }
.stat-num { font-size:1.35rem; font-weight:800; color:var(--text); }
.stat-label { font-size:0.8rem; color:var(--muted); }

/* Sections */
.section { padding: 3.5rem 1.25rem; }
.container { max-width:1100px; margin:0 auto; }
.section-header { text-align:center; margin-bottom:2rem; }
.section-header h2 { font-size:1.7rem; font-weight:800; margin-bottom:0.4rem; }
.section-header p { color:var(--muted); }

/* Markets */
.markets-card {
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
}
.markets-toolbar {
  display:flex; flex-wrap:wrap; gap:0.75rem; align-items:center; justify-content:space-between;
  padding:1rem 1.15rem; border-bottom:1px solid var(--border);
}
.search-input {
  background:var(--bg); border:1px solid var(--border); border-radius:10px;
  padding:0.5rem 0.9rem; color:var(--text); font-size:0.9rem; font-family:inherit;
  min-width:180px; outline:none;
}
.search-input:focus { border-color:var(--primary); }
.market-tabs { display:flex; gap:0.3rem; }
.tab {
  background:transparent; border:1px solid transparent; color:var(--muted);
  padding:0.35rem 0.8rem; border-radius:8px; font-size:0.85rem; font-weight:500;
  cursor:pointer; font-family:inherit;
}
.tab.active, .tab:hover { background:rgba(0,212,170,0.1); color:var(--primary); border-color:rgba(0,212,170,0.2); }

.markets-table-wrap { overflow-x:auto; }
.markets-table { width:100%; border-collapse:collapse; font-size:0.9rem; }
.markets-table th {
  text-align:left; padding:0.85rem 1.1rem; color:var(--muted); font-weight:500;
  border-bottom:1px solid var(--border); white-space:nowrap;
}
.markets-table td {
  padding:0.8rem 1.1rem; border-bottom:1px solid var(--border); white-space:nowrap;
}
.markets-table tr:last-child td { border-bottom:none; }
.markets-table tbody tr { cursor:pointer; transition:background 0.15s; }
.markets-table tbody tr:hover { background: var(--card2); }
.sym { font-weight:700; }
.name { color:var(--muted); font-size:0.85rem; }
.up { color:var(--green); }
.down { color:var(--red); }

/* Chart section */
.chart-card {
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden;
}
.chart-top {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem;
  padding:1rem 1.2rem; border-bottom:1px solid var(--border);
}
.chart-pair-info { display:flex; align-items:baseline; gap:0.7rem; flex-wrap:wrap; }
.pair-name { font-size:1.25rem; font-weight:700; }
.pair-price { font-size:1.1rem; font-weight:600; }
.pair-change { font-weight:600; font-size:0.95rem; }
.timeframes { display:flex; gap:0.3rem; flex-wrap:wrap; }
.tf-btn {
  background:var(--bg); border:1px solid var(--border); color:var(--muted);
  padding:0.3rem 0.65rem; border-radius:6px; font-size:0.8rem; font-weight:500;
  cursor:pointer; font-family:inherit;
}
.tf-btn.active, .tf-btn:hover { border-color:var(--primary); color:var(--primary); }
.main-chart { width:100%; height:500px; }

/* Deposit */
.payment-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:1.4rem; margin-bottom:1.25rem;
}
.payment-card {
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  padding:1.6rem; position:relative; overflow:hidden;
}
.payment-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
}
.payment-card.usdt::before { background:linear-gradient(90deg,var(--usdt),#34d399); }
.payment-card.usdc::before { background:linear-gradient(90deg,#2775ca,#60a5fa); }
.payment-card.btc::before { background:linear-gradient(90deg,var(--btc),#fbbf24); }
.payment-head { display:flex; align-items:center; gap:0.85rem; margin-bottom:1.2rem; }
.coin-icon {
  width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:1.15rem; color:#fff;
}
.coin-icon.usdt { background:var(--usdt); }
.coin-icon.usdc { background:#2775ca; }
.coin-icon.btc { background:var(--btc); }
.payment-head h3 { font-size:1.15rem; }
.payment-head span { font-size:0.8rem; color:var(--muted); }
.payment-card label { display:block; font-size:0.8rem; color:var(--muted); margin-bottom:0.35rem; }
.addr-box {
  background:rgba(0,0,0,0.3); border:1px solid var(--border); border-radius:10px;
  padding:0.8rem 3.4rem 0.8rem 0.8rem; position:relative; margin-bottom:1rem; word-break:break-all;
}
.addr-box code { font-family:ui-monospace,monospace; font-size:0.84rem; direction:ltr; display:block; }
.copy-btn {
  position:absolute; top:50%; right:0.55rem; transform:translateY(-50%);
  background:rgba(0,212,170,0.15); border:1px solid rgba(0,212,170,0.3); color:var(--primary);
  padding:0.28rem 0.6rem; border-radius:6px; font-size:0.75rem; font-weight:600;
  cursor:pointer; font-family:inherit;
}
.copy-btn:hover { background:rgba(0,212,170,0.28); }
.meta-row {
  display:flex; justify-content:space-between; font-size:0.85rem; color:var(--muted);
  padding-top:0.7rem; border-top:1px solid var(--border);
}
.meta-row strong { color:var(--text); }
.warn {
  text-align:center; font-size:0.9rem; color:#fbbf24;
  background:rgba(245,158,11,0.08); border:1px solid rgba(245,158,11,0.22);
  border-radius:12px; padding:0.9rem 1rem;
}

/* Pricing */
.pricing-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:1.4rem; align-items:start;
}
.price-card {
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  padding:1.8rem 1.4rem; text-align:center; position:relative;
}
.price-card.featured {
  border-color:var(--primary);
  box-shadow:0 0 0 1px var(--primary), 0 14px 40px rgba(0,212,170,0.15);
}
.popular {
  position:absolute; top:-12px; left:50%; transform:translateX(-50%);
  background:var(--primary); color:#0a0e17; font-size:0.72rem; font-weight:700;
  padding:0.22rem 0.8rem; border-radius:20px;
}
.plan { font-size:1rem; color:var(--muted); font-weight:600; margin-bottom:0.4rem; }
.price { font-size:2.4rem; font-weight:800; margin-bottom:1.2rem; }
.price span { font-size:0.95rem; font-weight:500; color:var(--muted); }
.price-card ul { list-style:none; text-align:left; margin-bottom:1.4rem; }
.price-card li {
  padding:0.38rem 0 0.38rem 1.35rem; font-size:0.9rem; color:var(--muted); position:relative;
}
.price-card li::before { content:'✓'; position:absolute; left:0; color:var(--primary); font-weight:700; }

/* Footer */
footer {
  border-top:1px solid var(--border); padding:2rem 1.25rem; text-align:center;
  color:var(--muted); font-size:0.85rem;
}
.footer-inner { max-width:700px; margin:0 auto; }
.footer-brand {
  display:flex; align-items:center; justify-content:center; gap:0.45rem;
  margin-bottom:0.5rem; font-weight:700; color:var(--text);
}
footer a { color:var(--primary); text-decoration:none; }
footer a:hover { text-decoration:underline; }
.footer-legal { display:flex; gap:0.55rem; justify-content:center; align-items:center; flex-wrap:wrap; font-size:0.85rem; }
.footer-legal span { color:var(--muted); opacity:0.5; }
.footer-legal a { font-size:0.85rem; }

/* Chat */
.chat-fab {
  position:fixed; bottom:1.4rem; right:1.4rem; z-index:1100;
  width:54px; height:54px; border-radius:50%;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#0a0e17; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 22px rgba(0,212,170,0.35); transition:0.2s;
}
.chat-fab:hover { transform:scale(1.07); }
.chat-panel {
  position:fixed; bottom:5.3rem; right:1.4rem; z-index:1100;
  width:350px; max-width:calc(100vw - 1.5rem); height:440px; max-height:calc(100vh - 7.5rem);
  background:var(--bg2); border:1px solid var(--border); border-radius:16px;
  box-shadow:0 12px 40px rgba(0,0,0,0.45);
  display:none; flex-direction:column; overflow:hidden;
}
.chat-panel.open { display:flex; }
.chat-head {
  display:flex; align-items:center; justify-content:space-between;
  padding:0.85rem 1rem; background:var(--card); border-bottom:1px solid var(--border);
}
.chat-user { display:flex; align-items:center; gap:0.65rem; }
.avatar {
  width:34px; height:34px; border-radius:50%; background:var(--primary); color:#0a0e17;
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:0.9rem;
}
.chat-user strong { display:block; font-size:0.9rem; }
.online { font-size:0.72rem; color:var(--muted); }
.online::before { content:''; display:inline-block; width:6px; height:6px; background:var(--green); border-radius:50%; margin-right:3px; }
.chat-x { background:none; border:none; color:var(--muted); font-size:1.45rem; cursor:pointer; line-height:1; }
.chat-body { flex:1; overflow-y:auto; padding:1rem; display:flex; flex-direction:column; gap:0.65rem; }
.bubble {
  max-width:85%; padding:0.6rem 0.85rem; border-radius:12px; font-size:0.9rem; line-height:1.45;
}
.bubble.system { align-self:center; background:rgba(0,212,170,0.1); color:var(--muted); font-size:0.8rem; border-radius:20px; }
.bubble.user { align-self:flex-end; background:var(--primary); color:#0a0e17; border-bottom-right-radius:4px; }
.bubble.support { align-self:flex-start; background:var(--card); border:1px solid var(--border); border-bottom-left-radius:4px; }
.bubble .t { display:block; font-size:0.68rem; opacity:0.7; margin-top:0.2rem; }
.chat-foot {
  display:flex; gap:0.45rem; padding:0.8rem; border-top:1px solid var(--border); background:var(--card);
}
.chat-foot input {
  flex:1; background:var(--bg); border:1px solid var(--border); border-radius:10px;
  padding:0.6rem 0.85rem; color:var(--text); font-size:0.9rem; font-family:inherit; outline:none;
}
.chat-foot input:focus { border-color:var(--primary); }
.chat-foot button {
  background:var(--primary); color:#0a0e17; border:none; border-radius:10px;
  padding:0 1rem; font-weight:600; font-size:0.85rem; cursor:pointer; font-family:inherit;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns:1fr; }
  .hero-chart-box, .hero-chart { min-height:300px; height:300px; }
}
@media (max-width: 768px) {
  nav {
    display:none; position:absolute; top:64px; left:0; right:0;
    background:var(--bg); border-bottom:1px solid var(--border);
    flex-direction:column; padding:0.7rem; gap:0.2rem;
  }
  nav.open { display:flex; }
  .menu-toggle { display:block; }
  .main-chart { height:360px; }
  .chat-panel { right:0.7rem; bottom:4.8rem; width:calc(100vw - 1.4rem); }
}


.footer-logo {
  height: 32px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  display: block;
}

/* QR codes in deposit */
.qr-wrap {
  display: flex;
  justify-content: center;
  margin: 1rem 0 1.1rem;
}
.qr-wrap canvas,
.qr-wrap img {
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: block;
}

/* 3-column pricing */
.pricing-grid.pricing-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  margin: 0 auto;
}
.price-card.featured-alt {
  border-color: rgba(0, 212, 170, 0.45);
  position: relative;
}
.price-card .price-old {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.popular.save {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0a0e17;
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.25rem 2rem;
}
.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.2rem;
  width: 100%;
  max-width: 420px;
}
.auth-card h1 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  text-align: center;
}
.auth-card .sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.6rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--primary);
}
.auth-footer {
  text-align: center;
  margin-top: 1.3rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.auth-footer a { color: var(--primary); text-decoration: none; }
.auth-hint {
  margin-top: 1.2rem;
  padding: 0.85rem;
  background: var(--bg);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Dashboard / Admin */
.dash-page { padding: 5.5rem 1.25rem 3rem; max-width: 1100px; margin: 0 auto; }
.dash-header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1.8rem;
}
.dash-header h1 { font-size: 1.6rem; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.stat-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
}
.stat-box .lbl { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.25rem; }
.stat-box .val { font-size: 1.45rem; font-weight: 700; }
.stat-box .val.green { color: var(--green); }
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.panel h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th, .admin-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.admin-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  background: var(--bg);
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-ok { background: rgba(16,185,129,0.15); color: var(--green); }
.badge-wait { background: rgba(245,158,11,0.15); color: #f59e0b; }
.badge-no { background: rgba(239,68,68,0.15); color: var(--red); }
.btn-danger {
  background: var(--red);
  color: #fff;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.btn-ok {
  background: var(--green);
  color: #0a0e17;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  margin-right: 0.3rem;
}

@media (max-width: 900px) {
  .pricing-grid.pricing-3 { grid-template-columns: 1fr; }
}

/* ===== Signals ===== */
.signals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.2rem;
}
.signal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.3rem;
  position: relative;
  overflow: hidden;
}
.signal-card.buy { border-left: 3px solid var(--green); }
.signal-card.sell { border-left: 3px solid var(--red); }
.signal-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.8rem;
}
.signal-pair { font-weight: 700; font-size: 1.05rem; }
.signal-badge {
  font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem;
  border-radius: 6px; text-transform: uppercase;
}
.signal-badge.buy { background: rgba(16,185,129,0.15); color: var(--green); }
.signal-badge.sell { background: rgba(239,68,68,0.15); color: var(--red); }
.signal-levels {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem;
  margin: 0.8rem 0; font-size: 0.85rem;
}
.signal-levels div {
  background: var(--bg); border-radius: 8px; padding: 0.5rem;
  text-align: center;
}
.signal-levels .lbl { color: var(--muted); font-size: 0.7rem; display: block; }
.signal-analysis {
  color: var(--muted); font-size: 0.88rem; line-height: 1.5;
  margin-top: 0.6rem;
}
.signal-meta {
  display: flex; justify-content: space-between; margin-top: 0.9rem;
  font-size: 0.75rem; color: var(--muted);
}
.locked-overlay {
  position: absolute; inset: 0;
  background: rgba(10,14,23,0.82);
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem; border-radius: 14px;
  z-index: 2;
}
.locked-overlay i, .locked-overlay .lock-icon {
  font-size: 2rem; margin-bottom: 0.6rem; color: var(--primary);
}
.locked-overlay p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.9rem; max-width: 240px; }

/* ===== Ads ===== */
.ad-banner {
  background: linear-gradient(135deg, rgba(0,212,170,0.12), rgba(59,130,246,0.1));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1.8rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.ad-banner h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.ad-banner p { color: var(--muted); font-size: 0.88rem; }
.ad-label {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin-bottom: 0.3rem;
}
.ad-featured {
  align-items: center;
  background: linear-gradient(135deg, rgba(0,212,170,0.16), rgba(59,130,246,0.12));
  border-color: rgba(0,212,170,0.35);
}
.ad-logo-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 0.55rem 0.9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ad-img-wide { height: 56px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.ad-text { flex: 1; min-width: 200px; }
.ads-sub-grid { margin-top: 1rem; }
.ad-card {
  flex-direction: column; align-items: flex-start;
  margin: 0; padding: 1.2rem 1.4rem;
  background: linear-gradient(135deg, rgba(0,212,170,0.08), rgba(59,130,246,0.07));
}
.ad-card .ad-img { height: 40px; width: auto; max-width: 140px; object-fit: contain; margin-bottom: 0.5rem; background:#fff; border-radius:8px; padding: 0.25rem 0.5rem; }
.ad-card-img { margin-bottom: 0.5rem; }
.ad-btn-row { margin-top: 0.6rem; }
.ads-top { padding-top: 2.2rem !important; padding-bottom: 0 !important; }

/* ===== Referrals (dashboard + home) ===== */
.ref-code-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-bottom:1.1rem; }
.ref-code-block { min-width:0; }
.ref-lbl { display:block; font-size:0.72rem; text-transform:uppercase; letter-spacing:0.05em; color:var(--muted); margin-bottom:0.35rem; }
.ref-code { display:flex; align-items:center; gap:0.5rem; background:var(--bg2); border:1px solid var(--border); border-radius:10px; padding:0.55rem 0.7rem; }
.ref-code code { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--primary); font-weight:700; font-size:0.9rem; }
.ref-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:0.7rem; margin-bottom:1.1rem; }
.ref-stat { background:var(--bg2); border:1px solid var(--border); border-radius:12px; padding:0.8rem; text-align:center; }
.ref-stat .val { font-size:1.25rem; font-weight:800; }
.ref-stat .lbl { font-size:0.72rem; color:var(--muted); margin-top:0.15rem; }
.ref-progress-wrap { margin-bottom:1.2rem; }
.ref-progress-head { display:flex; justify-content:space-between; font-size:0.8rem; color:var(--muted); margin-bottom:0.4rem; }
.ref-progress { height:10px; background:var(--bg2); border-radius:999px; overflow:hidden; border:1px solid var(--border); }
.ref-progress-bar { height:100%; background:linear-gradient(90deg,var(--primary),var(--blue)); border-radius:999px; transition:width 0.5s; }
.ref-tiers { display:flex; gap:0.5rem; flex-wrap:wrap; margin-top:0.6rem; }
.ref-tier { font-size:0.75rem; padding:0.25rem 0.6rem; border-radius:999px; border:1px solid var(--border); color:var(--muted); }
.ref-tier.done { color:var(--primary); border-color:var(--primary); background:rgba(0,212,170,0.08); }
.ref-sub { font-size:0.95rem; margin:1.2rem 0 0.7rem; }
.ref-coupons { display:flex; flex-direction:column; gap:0.6rem; }
.ref-coupon { display:flex; justify-content:space-between; align-items:center; gap:0.8rem; background:var(--bg2); border:1px dashed var(--primary); border-radius:12px; padding:0.7rem 0.9rem; }
.ref-coupon strong { color:var(--primary); font-size:0.95rem; }
.ref-coupon small { display:block; color:var(--muted); font-size:0.72rem; }
.ref-coupon-actions { display:flex; gap:0.45rem; flex-shrink:0; }

/* ===== Refer & Earn (home) ===== */
.refhome-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.1rem; }
.refhome-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:1.5rem 1.4rem; text-align:center; position:relative; overflow:hidden; transition:transform 0.25s, border-color 0.25s; }
.refhome-card:hover { transform:translateY(-4px); border-color:rgba(0,212,170,0.45); }
.refhome-num { font-size:2rem; font-weight:800; color:var(--primary); }
.refhome-card h3 { font-size:1.02rem; margin:0.5rem 0 0.35rem; }
.refhome-card p { color:var(--muted); font-size:0.86rem; line-height:1.6; }
.refhome-cta-wrap { text-align:center; margin-top:1.4rem; }
@media (max-width:820px) { .refhome-grid { grid-template-columns:1fr; } }

/* ===== Discount form (admin) ===== */
.dc-form-row { display:grid; grid-template-columns:1.1fr 0.7fr 0.7fr 1fr auto; gap:0.7rem; align-items:end; }
.dc-form-row .form-group { margin:0; }
@media (max-width:820px) {
  .ref-code-row, .ref-stats { grid-template-columns:1fr; }
  .dc-form-row { grid-template-columns:1fr 1fr; }
  .dc-form-row button { grid-column:1 / -1; }
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Testimonials ===== */
.tst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}
.tst-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.25s, border-color 0.25s;
}
.tst-card:hover { transform: translateY(-4px); border-color: rgba(0,212,170,0.4); }
.tst-stars { color: #fbbf24; font-size: 0.95rem; letter-spacing: 2px; }
.tst-card p { color: var(--text); opacity: 0.88; font-size: 0.9rem; line-height: 1.65; flex: 1; margin: 0; }
.tst-who { display: flex; align-items: center; gap: 0.7rem; }
.tst-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  color: #0a0e17; font-weight: 800; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}
.tst-who strong { display: block; font-size: 0.88rem; }
.tst-who small { color: var(--muted); font-size: 0.75rem; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 0.7rem; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: rgba(0,212,170,0.4); }
.faq-item summary {
  cursor: pointer;
  padding: 1.05rem 1.3rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 2.6rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  color: var(--primary); font-size: 1.3rem; font-weight: 400; transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  margin: 0; padding: 0 1.3rem 1.15rem;
  color: var(--muted); font-size: 0.88rem; line-height: 1.7;
}

/* ===== Ad ticker (marquee) ===== */
.ad-ticker {
  margin-top: 1.4rem;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(0,212,170,0.08), rgba(59,130,246,0.06), rgba(0,212,170,0.08));
  position: relative;
}
.ad-ticker::before, .ad-ticker::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.ad-ticker::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ad-ticker::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.ad-ticker-track {
  display: inline-flex; align-items: center; gap: 0;
  white-space: nowrap;
  padding: 0.65rem 0;
  animation: tickerScroll 32s linear infinite;
  will-change: transform;
}
.ad-ticker:hover .ad-ticker-track { animation-play-state: paused; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  font-size: 0.82rem; color: var(--text); font-weight: 500;
  padding: 0 1.4rem; opacity: 0.9;
}
.ticker-cta {
  margin-left: 0.7rem; font-size: 0.72rem; font-weight: 700;
  color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em;
}
.ticker-sep { color: var(--primary); opacity: 0.6; font-size: 0.7rem; }

/* ===== Proof upload dropzone ===== */
.proof-drop {
  position: relative;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  padding: 1.1rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--bg2);
}
.proof-drop:hover, .proof-drop.dragover {
  border-color: var(--primary);
  background: rgba(0,212,170,0.06);
}
.proof-drop input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.proof-drop-icon { font-size: 1.6rem; display: block; margin-bottom: 0.35rem; opacity: 0.85; }
.proof-drop-main { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.proof-drop-main span { color: var(--primary); text-decoration: underline; }
.proof-drop-hint { font-size: 0.73rem; color: var(--muted); margin-top: 0.25rem; }
.proof-preview-box {
  margin-top: 0.7rem; display: flex; align-items: center; gap: 0.8rem;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 0.6rem 0.8rem;
}
.proof-preview-box img {
  width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); flex-shrink: 0;
}
.proof-preview-info { flex: 1; min-width: 0; text-align: left; }
.proof-preview-name { font-size: 0.8rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proof-preview-size { font-size: 0.72rem; color: var(--muted); }
.proof-preview-ok { color: var(--green); font-size: 0.72rem; font-weight: 600; margin-top: 0.1rem; }
.proof-remove-btn {
  background: none; border: none; color: var(--red); cursor: pointer;
  font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.5rem; border-radius: 6px;
}
.proof-remove-btn:hover { background: rgba(239,68,68,0.1); }
@media (max-width: 640px) {
  .ad-ticker::before, .ad-ticker::after { width: 36px; }
}

/* ===== Latest News ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
  transition: 0.2s;
}
.news-card:hover { border-color: rgba(0,212,170,0.4); transform: translateY(-2px); }
.news-date {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: rgba(0,212,170,0.1);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.6rem;
}
.news-card h3 { font-size: 1rem; margin-bottom: 0.45rem; }
.news-card p { color: var(--muted); font-size: 0.86rem; line-height: 1.55; }
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
}
.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}
.contact-info-card h3 { margin-bottom: 1rem; }
.contact-row {
  display: flex; align-items: flex-start; gap: 0.8rem;
  margin-bottom: 1rem; font-size: 0.92rem;
}
.contact-row .icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(0,212,170,0.12); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem;
}
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}
.contact-form textarea {
  width: 100%; min-height: 120px; padding: 0.7rem 0.9rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-family: inherit;
  font-size: 0.95rem; outline: none; resize: vertical;
}
.contact-form textarea:focus { border-color: var(--primary); }

/* Google button */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 100%; padding: 0.7rem 1rem;
  background: #fff; color: #333; border: 1px solid #dadce0;
  border-radius: 10px; font-weight: 600; font-size: 0.92rem;
  cursor: pointer; font-family: inherit; transition: 0.2s;
  margin-top: 0.6rem;
}
.btn-google:hover { background: #f7f8f8; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }
.auth-divider {
  display: flex; align-items: center; gap: 0.8rem;
  margin: 1.1rem 0; color: var(--muted); font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .signal-levels { grid-template-columns: 1fr; }
}

/* ===== Chat v2 — Messenger style ===== */
.chat-fab { overflow: visible; }
.chat-fab.has-unread::after {
  content: ''; position: absolute; top: 2px; right: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); border: 2px solid var(--bg);
  animation: pulse 1.4s infinite;
}
.chat-panel {
  width: 370px; height: 500px;
  border-radius: 18px;
  animation: chatPop 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  transform-origin: bottom right;
  display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
@keyframes chatPop {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-head {
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, rgba(0,212,170,0.12), rgba(59,130,246,0.08)), var(--card);
}
.chat-head-actions { display: flex; gap: 0.25rem; }
.chat-min, .chat-x {
  background: none; border: none; color: var(--muted);
  font-size: 1.1rem; cursor: pointer; width: 28px; height: 28px;
  border-radius: 8px; line-height: 1; transition: 0.15s;
}
.chat-min:hover, .chat-x:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.55rem; scroll-behavior: smooth; }
.bubble { word-break: break-word; }
.bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #0a0e17; border-bottom-right-radius: 4px; font-weight: 500;
}
.bubble.support {
  align-self: flex-start;
  background: var(--card2); border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
/* typing indicator */
.bubble.typing { display: flex; gap: 5px; padding: 0.75rem 1rem; }
.bubble.typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted); display: inline-block;
  animation: typingDot 1.2s infinite;
}
.bubble.typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* messenger-like action bar */
.chat-actions {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 0.7rem; border-top: 1px solid var(--border); background: var(--card);
}
.chat-act {
  background: none; border: none; color: var(--muted); cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; transition: 0.15s; flex-shrink: 0;
}
.chat-act:hover { background: rgba(0,212,170,0.12); color: var(--primary); }
.chat-actions input {
  flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 20px;
  padding: 0.55rem 0.9rem; color: var(--text); font-size: 0.9rem; font-family: inherit; outline: none;
}
.chat-actions input:focus { border-color: var(--primary); }
.chat-send {
  background: linear-gradient(135deg, var(--primary), var(--primary2)); color: #0a0e17;
  border: none; border-radius: 50%; width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.15s;
}
.chat-send:hover { transform: scale(1.08); }

/* ===== Admin chat inbox ===== */
.inbox-grid {
  display: grid; grid-template-columns: 300px 1fr; gap: 1rem;
  min-height: 420px;
}
.thread-list {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg); overflow-y: auto; max-height: 480px;
}
.thread-item {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.75rem 0.9rem; cursor: pointer;
  border-bottom: 1px solid var(--border); transition: 0.15s;
}
.thread-item:hover { background: var(--card2); }
.thread-item.active { background: rgba(0,212,170,0.08); border-inline-start: 3px solid var(--primary); }
.thread-mid { flex: 1; min-width: 0; }
.thread-mid b { display: block; font-size: 0.88rem; }
.thread-mid small {
  display: block; color: var(--muted); font-size: 0.75rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.thread-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.thread-side small { color: var(--muted); font-size: 0.68rem; }
.unread-dot {
  background: var(--primary); color: #0a0e17; font-size: 0.65rem;
  font-weight: 700; min-width: 18px; height: 18px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.conv-box {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg); display: flex; flex-direction: column; overflow: hidden;
}
.conv-empty {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.88rem; padding: 2rem; text-align: center;
}
.conv-head {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1rem; background: var(--card); border-bottom: 1px solid var(--border);
}
.conv-body {
  flex: 1; overflow-y: auto; padding: 1rem; max-height: 380px;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.conv-foot {
  display: flex; gap: 0.5rem; padding: 0.7rem;
  border-top: 1px solid var(--border); background: var(--card);
}
.conv-foot input {
  flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 20px;
  padding: 0.55rem 0.9rem; color: var(--text); font-size: 0.88rem; font-family: inherit; outline: none;
}
.conv-foot input:focus { border-color: var(--primary); }

@media (max-width: 860px) {
  .inbox-grid { grid-template-columns: 1fr; }
  .conv-box { min-height: 320px; }
}

@media (max-width: 768px) {
  .chat-panel { height: 70vh; }
  .header-actions { gap: 0.4rem; }
  .ad-featured { flex-direction: column; align-items: flex-start; }
}
