/* Crypto Pal - Optimized Stylesheet */

/* ===== Theme ===== */
:root{
  --bg:#f6f9ff; --panel:#fff; --surface:#fff;
  --fg:#0b1320; --muted:#475569; --border:#e6edf7;
  --brand:#0a84ff; --accent:#2ea8ff; --ok:#19c37d;
  --card-blue:#f0f7ff; --card-blue-border:#d7e9ff;
}
*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth;-webkit-overflow-scrolling:touch}
/* Prevent horizontal scroll on mobile */
body{overflow-x:hidden}
body{margin:0;background:var(--bg);color:var(--fg);font:16px/1.6 Inter,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial}
@media (max-width:700px){
  body{font-size:19px;line-height:1.7}
  small{font-size:16px}
  .muted{font-size:17px}
}

/* ===== Layout ===== */
.container{max-width:1200px;margin:0 auto;padding:0 26px}

/* ===== Nav ===== */
.nav{position:sticky;top:0;z-index:30;background:#fff;border-bottom:1px solid var(--border);box-shadow:0 2px 10px rgba(15,23,42,.04)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;padding:12px 0;gap:18px}
.brand{display:flex;align-items:center;gap:14px;font-weight:900;text-decoration:none;color:var(--fg)}
.brand:hover{color:var(--brand)}
.nav .brand .logo{width:80px;height:80px;border-radius:50%;display:block}
.nav .brand span{font-size:32px;line-height:1}
.footer .brand .logo{width:40px;height:40px}

.menu{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.menu.open{display:block}
.hamburger{display:none;background:none;border:none;font-size:24px;color:var(--fg);cursor:pointer}

/* Buttons */
.btn{
  display:inline-block;padding:10px 14px;border-radius:12px;
  border:1px solid #dbe7fb;background:#f3f8ff;color:#0b1320;text-decoration:none;font-weight:700;
  transition:background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease
}
.btn:hover{background:#dbeeff;border-color:#bed6ff;transform:translateY(-2px);box-shadow:0 2px 10px rgba(2,6,23,.06)}
.btn.primary{background:var(--brand);color:#fff;border:none;box-shadow:0 2px 8px rgba(10,132,255,.24)}
.btn.primary:hover{background:#0077ee;box-shadow:0 6px 16px rgba(10,132,255,.28)}
.nav .navlink.active{background:#f3f8ff;color:#0b1320;border:1px solid #dbe7fb;box-shadow:none}
.btn.ghost{background:#f7fbff;border:1px solid #dbe7fb}
.btn.ghost:hover{background:#e3efff;border-color:#c7defd}
.btn.lg{padding:12px 18px;border-radius:14px}

/* ===== Sections & Headings ===== */
.section{padding:56px 0;scroll-margin-top:90px}
h1{font-size:56px;line-height:1.05;margin:0 0 10px;letter-spacing:-.02em;color:var(--brand)}
h2{margin:0 0 16px;color:#0b1320}
h3{margin:0 0 6px}
p.lead{color:#475569;max-width:760px;margin-left:auto;margin-right:auto}
.actions{display:flex;gap:12px;margin:14px 0 18px;flex-wrap:wrap}
@media (max-width:600px){
  .actions{flex-direction:column;gap:10px;margin:16px 0 20px}
  .actions .btn{width:100%;justify-content:center;text-align:center}
}

/* status pills */
.status-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.pill{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;background:#eef7ff;border:1px solid #d7e9ff;color:#0b3a74;font-weight:700}
.dot{width:8px;height:8px;border-radius:50%}
.dot.ok{background:var(--ok)}
@media (max-width:600px){
  .status-pills{gap:6px;margin-top:6px}
  .pill{padding:8px 12px;font-size:15px}
  .dot{width:8px;height:8px}
}

/* ===== HERO ===== */
.section.hero .container.hero{display:grid;grid-template-columns:minmax(320px,560px) minmax(300px,520px);gap:32px;align-items:center;justify-content:center;justify-items:center}
.hero-text{max-width:600px;text-align:center;margin-inline:auto}
.hero .status-pills,.hero .actions{justify-content:center}
.hero-visual{position:relative;width:min(315px,28.5vw);aspect-ratio:1/1;justify-self:center}
.hero-visual::before{content:"";position:absolute;inset:-18%;border-radius:50%;background:radial-gradient(circle at 48% 48%, rgba(10,132,255,.18) 0%, rgba(10,132,255,.06) 62%, rgba(10,132,255,0) 78%);filter:blur(8px)}
.hero-visual .shell{position:absolute;inset:0;border-radius:50%;background:radial-gradient(ellipse at 50% 50%, #bad4fd 0%, #eaf2ff 48%, rgba(219,231,255,.60) 70%, rgba(219,231,255,0) 76%);box-shadow:inset 0 0 0 30px rgba(226,236,255,.92)}
.hero-visual .core{position:absolute;inset:15%;border-radius:50%;background:radial-gradient(circle at 62% 38%, rgba(200,240,255,.96) 0%, rgba(127,198,252,.92) 25%, rgba(107,173,248,.88) 50%, rgba(200,230,255,.62) 75%, rgba(200,230,255,0) 100%);animation:breathing 6s ease-in-out infinite}
@keyframes breathing{0%,100%{filter:blur(22px) brightness(1)}50%{filter:blur(28px) brightness(1.15)}}

/* ===== Cards & Grids ===== */
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:12px}
.card{background:var(--card-blue);border:1px solid var(--card-blue-border);border-radius:18px;padding:18px;transition:transform .2s,box-shadow .2s,border-color .2s;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.card h3{color:var(--brand)}
.card.pop:hover{transform:translateY(-6px);box-shadow:0 6px 18px rgba(15,23,42,.08);border-color:#cfe3ff}

.features-list{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card.list ul{margin:8px 0 0 18px}
.card.list li{margin:6px 0}

/* ===== Feature Gallery ===== */
.gallery h2{margin-bottom:8px}
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;align-items:start;justify-items:center}
@media (min-width:1000px){.gallery-grid{grid-template-columns:repeat(4,1fr)}}
.g-thumb{width:80%;aspect-ratio:9/19.5;border-radius:16px;object-fit:cover;object-position:center;background:#fff;border:1px solid #e6edf7;box-shadow:0 6px 18px rgba(15,23,42,.08);cursor:zoom-in;transition:transform .2s ease, box-shadow .2s ease;will-change:transform;transform-origin:center center;position:relative}
.g-thumb:hover{transform:scale(1.5);z-index:3;box-shadow:0 18px 40px rgba(15,23,42,.22)}

/* ===== Guides ===== */
.guides-grid{display:grid;grid-template-columns:repeat(3,minmax(240px,1fr));gap:18px;margin-top:12px}
.guide-card{background:var(--card-blue);border:1px solid var(--card-blue-border);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:10px;text-decoration:none;color:var(--fg);transition:transform .2s,box-shadow .2s,border-color .2s;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.guide-card:hover{transform:translateY(-6px);box-shadow:0 6px 18px rgba(15,23,42,.08);border-color:#cfe3ff}
.guide-card h3{color:var(--brand)}
.guide-card .eyebrow{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#64748b}
.guide-card p{margin:0;color:#64748b}
.guide-card .cta{margin-top:auto;font-weight:700;color:var(--brand)}

/* ===== FAQ ===== */
.faq{max-width:900px;margin:0 auto}
.faq details{background:#fff;border:1px solid var(--border);padding:14px 18px;border-radius:12px;margin-bottom:10px;cursor:pointer;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.faq summary{font-weight:800;color:#0b1320;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq details[open]{border-color:#cfe3ff;box-shadow:0 4px 14px rgba(15,23,42,.07)}
.faq p{margin:10px 0 0;color:#475569;font-size:16px;line-height:1.6}
@media (max-width:700px){
  .faq p{font-size:18px}
  .faq summary{font-size:20px}
}

/* ===== Contact ===== */
#contact{scroll-margin-top:90px}
.form{max-width:900px}
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:12px}
.input{grid-column:span 6;padding:12px 14px;border-radius:12px;border:1px solid #d7e3f5;background:#fff;color:#0b1320;transition:border .2s,box-shadow .2s;font-size:16px;touch-action:manipulation}
.input::placeholder{color:#94a3b8}
.input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(10,132,255,.12)}
.textarea{grid-column:span 12;min-height:160px}
.form-actions{display:flex;gap:12px;align-items:center;margin-top:12px}
small.muted{color:#64748b}
@media (max-width:700px){
  .input{font-size:16px;min-height:44px;padding:12px 14px}
  .textarea{min-height:140px;font-size:16px}
  .form-actions button{min-height:48px;font-size:16px;width:100%}
}

/* ===== Footer ===== */
.footer{border-top:1px solid var(--border);padding:28px 0 12px;color:#64748b;margin-top:40px;background:#fff}
.footer-inner{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:18px;align-items:start}
.footer .brand{font-size:18px}
.footer-title{margin:0 0 8px;font-size:14px;text-transform:uppercase;letter-spacing:.08em;color:#0b1320}
.footer-nav{display:flex;flex-direction:column;gap:8px}
.footer-nav a{color:#0b1320;text-decoration:none;opacity:.9;min-height:32px;display:flex;align-items:center;touch-action:manipulation}
.footer-nav a:hover{opacity:1;color:var(--brand)}
.footer-brand p{margin-top:8px}
.footer-legal{text-align:center;margin-top:16px}
@media (max-width:700px){
  .footer{padding:24px 0 16px;margin-top:32px}
  .footer-inner{gap:24px}
  .footer .brand{font-size:19px}
  .footer .brand .logo{width:36px;height:36px}
  .footer-title{font-size:15px;margin-bottom:10px}
  .footer-nav a{font-size:17px;min-height:36px}
  .footer-legal{font-size:16px;margin-top:20px}
}

/* ===== Mobile Optimizations ===== */

/* Touch-friendly targets - minimum 44x44px */
button, .btn, a.btn, .hamburger, .chip-buy, select {
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(10, 132, 255, 0.2);
}

/* Prevent text size adjustment on iOS */
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Smooth scrolling on mobile */
@media (max-width:1100px){
  .section.hero .container.hero{grid-template-columns:1fr;gap:32px}
  .hero-text{order:2}
  .hero-visual{order:1;width:240px}
  .cards,.features-list,.guides-grid{grid-template-columns:repeat(2,1fr)}
  .footer-inner{grid-template-columns:1fr 1fr}
  .container{padding:0 20px}
}

@media (max-width:700px){
  .cards,.features-list,.guides-grid{grid-template-columns:1fr}
  .nav-inner{flex-wrap:wrap;justify-content:space-between;padding:10px 0}
  .nav .brand .logo{width:60px;height:60px}
  .nav .brand span{font-size:28px}
  .menu{display:none;position:fixed;top:70px;left:0;right:0;background:#fff;padding:20px;border-bottom:1px solid var(--border);box-shadow:0 4px 12px rgba(15,23,42,.08);z-index:100;max-height:calc(100vh - 70px);overflow-y:auto;-webkit-overflow-scrolling:touch}
  .menu.open{display:flex;flex-direction:column;gap:12px;align-items:stretch}
  .hamburger{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;font-size:28px;padding:0}
  .hamburger:active{background:rgba(10,132,255,0.1);border-radius:8px}
  .btn{padding:12px 16px;font-size:18px;min-height:44px}
  .input{grid-column:span 12;font-size:18px;min-height:44px;padding:12px 14px}
  .form-actions{flex-direction:column;align-items:stretch}
  .footer-inner{grid-template-columns:1fr}
  h1{font-size:42px;line-height:1.2;margin:0 0 16px}
  h2{font-size:34px;line-height:1.3}
  h3{font-size:26px;line-height:1.4}
  .section{padding:40px 0}
  .container{padding:0 16px}
  .lead{font-size:19px;line-height:1.7}
  p{font-size:19px;line-height:1.7}
  .card p,.guide-card p{font-size:18px;line-height:1.65}
}

/* ===== Markets Page Scoped Styles ===== */
.page-head{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}
.page-head h1{flex:1 1 auto;margin:0}
.page-head .pill-sel{margin-left:auto}
@media (max-width:700px){
  .page-head{flex-direction:column;align-items:stretch;gap:12px}
  .page-head h1{font-size:36px;margin-bottom:0}
  .page-head .pill-sel{margin-left:0;width:100%}
  .page-head .pill-sel label{display:block;margin-bottom:4px;font-size:16px;font-weight:600}
  select{width:100%;min-height:44px;font-size:18px;padding:10px 12px}
  .refresh-indicator{font-size:15px !important;color:#0a84ff !important;white-space:nowrap}
}
.refresh-indicator{font-size:16px;color:#0a84ff}
.market th:first-child, .market td:first-child{text-align:center;width:48px}
.market td.buy-cell{text-align:center}
.buy-icon img{width:30px;height:30px;border-radius:6px;box-shadow:0 0 0 1px rgba(0,0,0,.06);transition:transform .12s ease}
.buy-icon:hover img{transform:scale(1.06)}
.market td .names{display:inline-block;margin-left:8px;vertical-align:middle}
.market td .names small{display:block;color:#64748b;font-size:15px;margin-top:-2px}
@media (max-width:600px){
  .market td .names small{font-size:14px}
}
.chg.up,.chg.pos{color:#16a34a !important}
.chg.down,.chg.neg{color:#dc2626 !important}
.spark{display:block}
.spark.up svg{color:#16a34a !important}
.spark.down svg{color:#b91c1b !important}

/* List cards (Trending / Top Gainers) */
.list-card h3{color:#2563eb;font-weight:800;display:flex;align-items:center;gap:8px;margin:0 0 8px 0}
.list-card h3 .view-more{margin-left:auto;font-weight:700;color:#6b7280;text-decoration:none;font-size:.9rem}
@media (max-width:600px){
  .list-card h3 .view-more{font-size:15px}
}
#list-trending .row,#list-gainers .row{display:grid;grid-template-columns:18px 52px 1fr auto auto auto;gap:10px;align-items:center;padding:6px 0;border-bottom:1px dashed #e6edf7}
#list-trending .row:last-child,#list-gainers .row:last-child{border-bottom:none}

/* Mini-list (Highlights) */
.mini-list .row{display:grid;grid-template-columns:18px 52px 1fr auto auto auto;gap:10px;align-items:center;padding:6px 0;border-bottom:1px dashed #e6edf7}
.mini-list .row:last-child{border-bottom:none}
.mini-list img{width:16px;height:16px;border-radius:50%}
.mini-list .sym{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini-list .name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini-list .price{justify-self:end;white-space:nowrap}
.mini-list .chg{text-align:right;white-space:nowrap}
.mini-list .chg.pos{color:#16a34a !important}
.mini-list .chg.neg{color:#b91c1b !important}

/* Active nav for markets */
.nav .menu .cta-trading.active{background:#16a34a !important;color:#fff !important;border-color:#128a3f !important}
.nav .menu .cta-trading.active:hover{background:#15803d !important}

/* Crypto Markets button styling - make it green like the trading page */
.nav .menu .cta-trading {
  background: #19c37d !important;
  color: #fff !important;
  border: 1px solid #19c37d !important;
  font-weight: 700 !important;
}

.nav .menu .cta-trading:hover {
  background: #15803d !important;
  border-color: #15803d !important;
}


/* Consolidated buy button styles */

/* Small Icons in Table/Lists */
.market .coin img, .mini-list img, .list-card img {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
}

/* Coin Links Styling */
.market .coin a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.market .coin a:hover {
  color: #0a84ff;
  text-decoration: underline;
}

/* Ensure Table Rows Fill */
.market tbody tr { display: table-row !important; } /* Prevent truncation */

/* Contact Form Styles */
#contact .card { max-width: 600px; margin: 0 auto; padding: 24px; }
#contact .input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  margin: 8px 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--fg);
  font: inherit;
}
#contact textarea.input { resize: vertical; min-height: 120px; }
#contact button { width: 100%; margin-top: 8px; }





/* Removed duplicate/unused externalized styles */

/* Removed duplicate/unused layout styles - using tiles5 grid instead */

/* Main Table Width Match */
.tablewrap { width: 100%; }

/* ========== Crypto Markets: 5-tile grid in 2 rows ========== */
.tiles5{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap:16px;
  align-items:stretch;
  margin:16px 0 28px;
}

/* First row: 3 boxes (Market Cap, 24h Volume, Highlights) */
.tiles5 .card:nth-child(1) {
  grid-row: 1;
  grid-column: 1 / 2;
}
.tiles5 .card:nth-child(2) {
  grid-row: 1;
  grid-column: 2 / 3;
}
.tiles5 .card:nth-child(3) {
  grid-row: 1;
  grid-column: 3 / 5;
}

/* Second row: 2 boxes (Top Gainers, Trending) */
.tiles5 .card:nth-child(4),
.tiles5 .card:nth-child(5) {
  grid-row: 2;
  grid-column: span 1;
}

/* Make Top Gainers and Trending equal width and stretch full width */
.tiles5 .card:nth-child(4) {
  grid-column: 1 / 3;
}
.tiles5 .card:nth-child(5) {
  grid-column: 3 / 5;
}

.tiles5 .card{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-height:140px;
  padding:16px;
}

/* Make the 3 top row boxes (Market Cap, 24h Volume, Highlights) have minimum height */
.tiles5 .card:nth-child(1),
.tiles5 .card:nth-child(2),
.tiles5 .card:nth-child(3) {
  min-height: 80px;
}

/* Consistent styling for all headings */
.tiles5 .stat .ov-title,
.tiles5 .list-card h3 {
  font-weight: 800;
  color: #0a84ff;
  font-size: 14px;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tiles5 .stat .ov-value{font-size:24px;font-weight:900;color:#0b1320}
.tiles5 .stat .ov-sub{color:#64748b;font-size:15px}
@media (max-width:600px){
  .tiles5 .stat .ov-sub{font-size:14px}
}
.tiles5 .list-card h3{margin:0 0 6px;display:flex;align-items:center;gap:8px}
.tiles5 .view-more{margin-left:auto;color:#0a84ff;text-decoration:none;font-weight:700;font-size:14px}
@media (max-width:600px){
  .tiles5 .view-more{font-size:13px}
}
.tiles5 .mini-list .row,
.tiles5 #list-trending .row,
.tiles5 #list-gainers .row{padding:6px 0;border-bottom:1px dashed #e6edf7}
.tiles5 .mini-list .row:last-child,
.tiles5 #list-trending .row:last-child,
.tiles5 #list-gainers .row:last-child{border-bottom:none}

/* Make Top Gainers and Trending boxes match Highlights layout */
.tiles5 .card:nth-child(4),
.tiles5 .card:nth-child(5) {
  min-height: 80px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Ensure all data in single row for Top Gainers and Trending */
.tiles5 #list-gainers .row,
.tiles5 #list-trending .row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}

.tiles5 #list-gainers .row span,
.tiles5 #list-trending .row span {
  flex-shrink: 0;
}

.tiles5 #list-gainers .row img,
.tiles5 #list-trending .row img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.tiles5 #list-gainers .row .sym,
.tiles5 #list-trending .row .sym {
  font-weight: 700;
  color: #0b1320;
  min-width: 40px;
  text-align: left;
}

.tiles5 #list-gainers .row .name,
.tiles5 #list-trending .row .name {
  color: #64748b;
  font-size: 12px;
  min-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  flex: 1;
}

.tiles5 #list-gainers .row .price,
.tiles5 #list-trending .row .price {
  font-weight: 600;
  color: #0b1320;
  min-width: 80px;
  font-size: 12px;
  text-align: right;
}

.tiles5 #list-gainers .row .chg,
.tiles5 #list-trending .row .chg {
  font-weight: 600;
  min-width: 60px;
  font-size: 12px;
  text-align: right;
}

.tiles5 #list-gainers .row .chip-buy,
.tiles5 #list-trending .row .chip-buy {
  padding: 4px 8px;
  font-size: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Responsive breakpoints - Mobile optimized tiles */
@media (max-width:1200px){ 
  .tiles5{ 
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
  }
  .tiles5 .card:nth-child(1),
  .tiles5 .card:nth-child(2) {
    grid-row: 1;
  }
  .tiles5 .card:nth-child(3) {
    grid-row: 2;
    grid-column: 1 / 3;
  }
  .tiles5 .card:nth-child(4),
  .tiles5 .card:nth-child(5) {
    grid-row: 3;
  }
  .tiles5 .card {
    padding: 14px;
    min-height: 120px;
  }
}
@media (max-width:900px){  
  .tiles5{ 
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 12px;
    margin: 12px 0 20px;
  }
  .tiles5 .card:nth-child(n) {
    grid-row: auto;
    grid-column: 1;
    min-height: auto;
    padding: 16px;
  }
  .tiles5 .stat .ov-value {
    font-size: 26px;
  }
  .tiles5 .stat .ov-title,
  .tiles5 .list-card h3 {
    font-size: 16px;
  }
}
@media (max-width:600px) {
  .tiles5 {
    gap: 10px;
    margin: 10px 0 16px;
  }
  .tiles5 .card {
    padding: 12px;
    border-radius: 12px;
  }
.tiles5 #list-gainers .row,
.tiles5 #list-trending .row,
.tiles5 .mini-list .row {
  padding: 8px 0;
  font-size: 17px;
  gap: 6px;
}
  .tiles5 #list-gainers .row img,
  .tiles5 #list-trending .row img,
  .tiles5 .mini-list .row img {
    width: 18px;
    height: 18px;
  }
  .tiles5 #list-gainers .row,
  .tiles5 #list-trending .row,
  .tiles5 .mini-list .row {
    font-size: 16px;
  }
  .tiles5 #list-gainers .row .price,
  .tiles5 #list-trending .row .price {
    font-size: 15px;
    min-width: 70px;
  }
  .tiles5 #list-gainers .row .chg,
  .tiles5 #list-trending .row .chg {
    font-size: 15px;
    min-width: 50px;
  }
  .tiles5 .chip-buy {
    padding: 6px 12px !important;
    font-size: 14px !important;
  }
  .tiles5 .stat .ov-title,
  .tiles5 .list-card h3 {
    font-size: 16px;
  }
}

/* ========== Main Table Layout ========== */
.tablewrap{ 
  width: 100%; 
  overflow-x: auto; 
  margin: 0;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.market {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.market thead {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

.market th {
  padding: 16px 12px;
  text-align: left;
  font-weight: 700;
  color: #334155;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.market td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.market tbody tr:hover {
  background: #f8fafc;
}

/* Proportional column widths */
.market th:nth-child(1), .market td:nth-child(1) { width: 5%; }   /* # */
.market th:nth-child(2), .market td:nth-child(2) { width: 15%; }  /* Coin */
.market th:nth-child(3), .market td:nth-child(3) { width: 8%; }    /* Buy */
.market th:nth-child(4), .market td:nth-child(4) { width: 12%; }  /* Price */
.market th:nth-child(5), .market td:nth-child(5) { width: 8%; }    /* 1h */
.market th:nth-child(6), .market td:nth-child(6) { width: 8%; }   /* 24h */
.market th:nth-child(7), .market td:nth-child(7) { width: 8%; }    /* 7d */
.market th:nth-child(8), .market td:nth-child(8) { width: 15%; }  /* 24h Volume */
.market th:nth-child(9), .market td:nth-child(9) { width: 15%; } /* Market Cap */
.market th:nth-child(10), .market td:nth-child(10) { width: 6%; } /* Sparkline */

/* Center align specific columns */
.market th:nth-child(1), .market td:nth-child(1),
.market th:nth-child(3), .market td:nth-child(3),
.market th:nth-child(5), .market td:nth-child(5),
.market th:nth-child(6), .market td:nth-child(6),
.market th:nth-child(7), .market td:nth-child(7),
.market th:nth-child(10), .market td:nth-child(10) {
  text-align: center;
}

/* Buy button styling - Mobile optimized with touch targets */
.market .chip-buy, .list-card .chip-buy, .mini-list .chip-buy {
  display: inline-block;
  background: #19c37d !important;
  border: none !important;
  color: #fff !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  font-size: 13px !important;
  transition: all 0.2s ease !important;
  min-height: 36px;
  min-width: 60px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(25, 195, 125, 0.3);
  user-select: none;
}

.market .chip-buy:hover, .list-card .chip-buy:hover, .mini-list .chip-buy:hover,
.market .chip-buy:active, .list-card .chip-buy:active, .mini-list .chip-buy:active {
  background: #15803d !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(25, 195, 125, 0.3) !important;
}

@media (max-width: 600px) {
  .market .chip-buy, .list-card .chip-buy, .mini-list .chip-buy {
    padding: 6px 12px !important;
    font-size: 12px !important;
    min-height: 32px;
    min-width: 55px;
  }
}

/* Responsive table - Mobile optimized */
@media (max-width: 1200px) {
  .market th:nth-child(8), .market td:nth-child(8),
  .market th:nth-child(9), .market td:nth-child(9) {
    display: none;
  }
}

@media (max-width: 900px) {
  .tablewrap {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    position: relative;
    margin: 0 -16px;
    padding: 0 16px;
  }
  .tablewrap::before,
  .tablewrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 1;
  }
  .tablewrap::before {
    left: 0;
    background: linear-gradient(to right, var(--bg), transparent);
  }
  .tablewrap::after {
    right: 0;
    background: linear-gradient(to left, var(--bg), transparent);
  }
  .market {
    min-width: 800px;
    font-size: 17px;
  }
  .market th, .market td {
    padding: 12px 10px;
    white-space: nowrap;
  }
  .market th {
    font-size: 15px;
  }
  .market th:nth-child(5), .market td:nth-child(5),
  .market th:nth-child(7), .market td:nth-child(7),
  .market th:nth-child(10), .market td:nth-child(10) {
    display: none;
  }
  .market .coin {
    min-width: 140px;
  }
  .market .chip-buy {
    padding: 8px 14px !important;
    font-size: 14px !important;
    min-width: 55px;
    min-height: 36px;
  }
}

@media (max-width: 600px) {
  .market {
    min-width: 700px;
    font-size: 16px;
  }
  .market th, .market td {
    padding: 12px 10px;
  }
  .market th {
    font-size: 14px;
  }
  .market th:nth-child(6), .market td:nth-child(6) {
    display: none;
  }
  .market .coin small {
    font-size: 14px;
  }
}

/* ========== Screenshot Carousel ========== */
.screenshot-carousel {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: fit-content;
  gap: 0;
  align-items: center;
}

.carousel-img {
  flex: 0 0 33.333%;
  width: calc(33.333% - 2px);
  height: 600px;
  object-fit: contain;
  border-radius: 12px;
  margin: 0 1px;
  cursor: pointer;
  transition: transform 0.3s ease;
  background: #f8fafc;
}

.carousel-img:hover {
  transform: scale(1.05);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 132, 255, 0.1);
  color: #0a84ff;
  border: 2px solid #0a84ff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: #0a84ff;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 10px;
}

.carousel-prev::before {
  content: "◀";
  font-size: 20px;
  font-weight: bold;
  color: #0a84ff;
}

.carousel-next {
  right: 10px;
}

.carousel-next::before {
  content: "▶";
  font-size: 20px;
  font-weight: bold;
  color: #0a84ff;
}

/* Responsive carousel - Mobile optimized */
@media (max-width: 768px) {
  .carousel-img {
    flex: 0 0 50%;
    width: 180px;
    height: 380px;
  }
  .carousel-container {
    padding: 0 10px;
  }
}

@media (max-width: 600px) {
  .carousel-img {
    flex: 0 0 70%;
    width: 220px;
    height: 420px;
  }
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .carousel-prev {
    left: 5px;
  }
  .carousel-next {
    right: 5px;
  }
}

@media (max-width: 480px) {
  .carousel-img {
    flex: 0 0 85%;
    width: 260px;
    height: 500px;
  }
  .gallery h2 {
    font-size: 24px;
    margin-bottom: 16px;
  }
}

/* Chart containers for Market Cap and Volume */
.chart-container {
  margin-top: 10px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 600px) {
  .chart-container {
    margin-top: 8px;
    padding: 6px;
    min-height: 45px;
  }
  .coingecko-exact-chart {
    padding: 12px !important;
  }
  .coingecko-exact-chart .chart-main-value {
    font-size: 18px !important;
  }
  .coingecko-exact-chart .chart-label {
    font-size: 12px !important;
  }
}

.chart-container .spark {
  width: 100%;
  height: 40px;
}

.chart-container svg {
  width: 100%;
  height: 40px;
}

/* Line chart styling */
.line-chart {
  width: 100%;
  position: relative;
}

.line-chart .chart-value {
  position: absolute;
  top: -8px;
  right: 0;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 10;
}

.line-chart svg {
  width: 100%;
  height: 40px;
  display: block;
}

/* CoinGecko exact chart layout */
.coingecko-exact-chart {
  width: 100%;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.coingecko-exact-chart .chart-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.coingecko-exact-chart .chart-main-value {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
  margin-bottom: 8px;
}

.coingecko-exact-chart .chart-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coingecko-exact-chart .chart-label {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}

.coingecko-exact-chart .chart-change {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.coingecko-exact-chart .chart-change.up {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.coingecko-exact-chart .chart-change.down {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.coingecko-exact-chart .chart-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 40px;
}

.coingecko-exact-chart .chart-right svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* CoinGecko-style chart */
.coingecko-style-chart {
  width: 100%;
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.coingecko-style-chart .chart-main-value {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
  margin-bottom: 8px;
}

.coingecko-style-chart .chart-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.coingecko-style-chart .chart-label {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}

.coingecko-style-chart .chart-change {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.coingecko-style-chart .chart-change.up {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.coingecko-style-chart .chart-change.down {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.coingecko-style-chart .chart-sparkline {
  width: 100%;
  height: 40px;
  margin-top: 8px;
}

.coingecko-style-chart .chart-sparkline svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Enhanced line chart styling */
.line-chart-enhanced {
  width: 100%;
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 8px;
}

.line-chart-enhanced .chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 4px;
}

.line-chart-enhanced .chart-title {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.line-chart-enhanced .chart-current-value {
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
  background: rgba(59, 130, 246, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.line-chart-enhanced svg {
  width: 100%;
  height: 60px;
  display: block;
}

.line-chart-enhanced .y-axis-label {
  font-size: 9px;
  fill: #6b7280;
  font-weight: 500;
}

.line-chart-enhanced .x-axis-label {
  font-size: 9px;
  fill: #6b7280;
  font-weight: 500;
}

.chart-no-data {
  color: #9ca3af;
  font-size: 12px;
  text-align: center;
  padding: 10px;
}

/* ========== ENHANCED UI STYLES ========== */

/* ===== Animations & Fade-ins ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ===== Hero Enhancements ===== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,132,255,0.05) 0%, rgba(46,168,255,0.02) 100%);
  opacity: 0.5;
  z-index: 0;
}

.hero .container.hero {
  position: relative;
  z-index: 1;
}

.status-pills .icon {
  font-size: 14px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(10,132,255,0.2);
  border-radius: 999px;
  margin: 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #0b1320;
}

.badge-icon {
  font-size: 16px;
}

.btn-icon {
  margin-right: 6px;
  font-size: 18px;
}

.scroll-indicator {
  margin-top: 24px;
}

.scroll-arrow {
  display: inline-block;
  animation: bounce 2s infinite;
  font-size: 24px;
  color: var(--brand);
  text-decoration: none;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ===== Stats Counter ===== */
.stats-bar {
  background: linear-gradient(135deg, rgba(10,132,255,0.08) 0%, rgba(46,168,255,0.04) 100%);
  padding: 40px 0;
  border-top: 1px solid rgba(10,132,255,0.1);
  border-bottom: 1px solid rgba(10,132,255,0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--brand);
  line-height: 1.2;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stat-number {
    font-size: 32px;
  }
}

/* ===== Section Headers & Dividers ===== */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.section-number {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand);
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-divider {
  position: relative;
  text-align: center;
  margin: 40px 0;
  height: 60px;
}

.divider-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

.divider-number {
  position: relative;
  display: inline-block;
  padding: 0 20px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
  opacity: 0.6;
}

/* ===== Card Enhancements ===== */
.card-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.card-stat {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(10,132,255,0.1);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feat-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
  text-align: center;
}

.feat-stat {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(10,132,255,0.1);
  font-size: 13px;
  font-weight: 700;
  color: var(--ok);
}

/* ===== Social Proof ===== */
.social-proof {
  background: rgba(240,247,255,0.5);
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  min-width: 140px;
}

.badge-icon-large {
  font-size: 40px;
}

.badge-text {
  font-size: 14px;
  font-weight: 700;
  color: #0b1320;
  text-align: center;
}

.testimonials-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  display: none;
  padding: 32px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.testimonial-card.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.testimonial-text {
  font-size: 18px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-author strong {
  color: #0b1320;
  font-size: 16px;
}

.testimonial-author span {
  color: #64748b;
  font-size: 14px;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.testimonial-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dots .dot.active {
  background: var(--brand);
  transform: scale(1.2);
}

/* ===== How It Works ===== */
.how-it-works {
  background: white;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.step-item {
  text-align: center;
  padding: 24px;
  background: var(--card-blue);
  border: 1px solid var(--card-blue-border);
  border-radius: 16px;
  position: relative;
}

.step-number {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--brand);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 8px rgba(10,132,255,0.3);
}

.step-icon {
  font-size: 48px;
  margin: 16px 0 12px;
}

.step-item h3 {
  margin-bottom: 8px;
  color: var(--brand);
}

.step-item p {
  font-size: 14px;
  color: #64748b;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Carousel Enhancements ===== */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--brand);
  transform: scale(1.2);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.95);
  color: var(--brand);
  border: 2px solid var(--brand);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carousel-btn:hover {
  background: var(--brand);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* ===== Guide Cards Enhancements ===== */
.guide-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
  text-align: center;
}

/* ===== Comparison Section ===== */
.comparison {
  background: rgba(240,247,255,0.5);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.comparison-item {
  text-align: center;
  padding: 24px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.comparison-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.comparison-item h3 {
  color: var(--brand);
  margin-bottom: 8px;
}

.comparison-item p {
  font-size: 14px;
  color: #64748b;
}

@media (max-width: 900px) {
  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FAQ Enhancements ===== */
.faq-search-wrapper {
  max-width: 600px;
  margin: 0 auto 32px;
}

.faq-search {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.faq-search:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10,132,255,0.1);
}

.faq-icon {
  margin-right: 8px;
  font-size: 18px;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.expand-icon {
  font-size: 24px;
  font-weight: 300;
  color: var(--brand);
  transition: transform 0.3s ease;
}

details[open] .expand-icon {
  transform: rotate(45deg);
}

/* ===== Roadmap ===== */
.roadmap {
  background: white;
}

.roadmap-timeline {
  position: relative;
  max-width: 800px;
  margin: 48px auto 0;
  padding-left: 40px;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  padding-left: 40px;
}

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border);
  border: 4px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-item.completed .timeline-dot {
  background: var(--ok);
}

.timeline-item.active .timeline-dot {
  background: var(--brand);
  animation: pulse 2s infinite;
}

.timeline-content {
  background: var(--card-blue);
  border: 1px solid var(--card-blue-border);
  border-radius: 12px;
  padding: 20px;
}

.timeline-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.timeline-content h3 {
  color: var(--brand);
  margin-bottom: 8px;
}

.timeline-content p {
  color: #64748b;
  font-size: 14px;
  margin: 0;
}

/* ===== Price Ticker ===== */
.price-ticker {
  display: none;
  padding: 8px 16px;
  background: rgba(10,132,255,0.05);
  border-radius: 8px;
  font-size: 12px;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker-label {
  font-weight: 700;
  color: var(--brand);
}

.ticker-items {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ticker-item {
  white-space: nowrap;
  font-weight: 600;
  color: #0b1320;
}

.ticker-change {
  margin-left: 4px;
  font-size: 11px;
}

.ticker-item.up .ticker-change {
  color: #16a34a;
}

.ticker-item.down .ticker-change {
  color: #dc2626;
}

@media (min-width: 900px) {
  .price-ticker {
    display: block;
  }
}

@media (max-width: 1100px) {
  .price-ticker {
    display: none;
  }
}

/* ===== Theme Toggle ===== */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(10,132,255,0.1);
  border-color: var(--brand);
}

/* Dark Theme */
body.dark-theme {
  --bg: #0b1320;
  --panel: #1e293b;
  --surface: #1e293b;
  --fg: #f1f5f9;
  --muted: #94a3b8;
  --border: #334155;
  background: var(--bg);
  color: var(--fg);
}

body.dark-theme .nav,
body.dark-theme .footer {
  background: var(--panel);
  border-color: var(--border);
}

body.dark-theme .card {
  background: var(--panel);
  border-color: var(--border);
}

/* ===== Waitlist Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 32px;
  color: #64748b;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(0,0,0,0.05);
  color: #0b1320;
}

.modal-content h2 {
  margin-bottom: 8px;
}

.modal-subtitle {
  color: #64748b;
  margin-bottom: 24px;
}

.waitlist-form .form-group {
  margin-bottom: 20px;
}

.waitlist-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #0b1320;
}

.waitlist-form input,
.waitlist-form select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.waitlist-form input:focus,
.waitlist-form select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10,132,255,0.1);
}

.modal-privacy {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  margin-top: 16px;
}

/* ===== Email Banner ===== */
.email-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  color: white;
  padding: 16px 20px;
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

.email-banner.visible {
  transform: translateY(0);
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.banner-text {
  flex: 1;
  font-weight: 600;
}

.banner-cta {
  background: white;
  color: var(--brand);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.banner-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.banner-close:hover {
  background: rgba(255,255,255,0.2);
}

@media (max-width: 600px) {
  .banner-content {
    flex-direction: column;
    text-align: center;
  }
  .banner-cta {
    width: 100%;
  }
}

/* ===== Floating CTA ===== */
.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 998;
  display: none;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.floating-cta .btn {
  box-shadow: 0 4px 16px rgba(10,132,255,0.4);
}

/* ===== Scroll to Top ===== */
.scroll-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 997;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(10,132,255,0.4);
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(10,132,255,0.5);
}

/* ===== Footer Enhancements ===== */
.footer-inner {
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
}

.social-share {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-btn:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.newsletter-form input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--brand);
}

.footer-newsletter-desc {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

@media (max-width: 1100px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .social-share {
    justify-content: flex-start;
  }
}

/* ===== Lightbox Fix ===== */
.lb.open {
  display: flex;
}

.lb {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lb-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lb-close:hover {
  background: rgba(255,255,255,0.3);
}

.lb-caption {
  color: white;
  margin-top: 16px;
  font-size: 16px;
}

/* ===== Mobile Responsive Adjustments ===== */
@media (max-width: 700px) {
  .hero-bg-pattern {
    opacity: 0.3;
  }
  
  .trust-badge {
    font-size: 13px;
    padding: 6px 12px;
  }
  
  .stats-bar {
    padding: 32px 0;
  }
  
  .trust-badges {
    gap: 16px;
    margin-bottom: 32px;
  }
  
  .badge-item {
    min-width: 120px;
    padding: 16px;
  }
  
  .testimonial-card {
    padding: 24px;
  }
  
  .testimonial-text {
    font-size: 16px;
  }
  
  .modal-content {
    padding: 24px;
    width: 95%;
  }
  
  .roadmap-timeline {
    padding-left: 32px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .section-number {
    font-size: 12px;
  }
}

/* ===== Loading States ===== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
