/* assets/css/style.css */

:root{
  --bg: #070A12;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --accent: #7c5cff;
  --accent2: #27f2d7;
  --warning: #f6c445;
}

*{ box-sizing:border-box; }
html, body { height: 100%; }

body{
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(124,92,255,.22), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(39,242,215,.18), transparent 55%),
              radial-gradient(900px 600px at 50% 90%, rgba(246,196,69,.10), transparent 55%),
              var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* Particles layer */
#particles-js{
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
}

/* Page content over particles */
.page{
  position: relative;
  z-index: 2;
}

.navbar-blur{
  backdrop-filter: blur(12px);
  background: rgba(7,10,18,.55);
  border-bottom: 1px solid var(--border);
}

.brand-badge{
  display:flex;
  align-items:center;
  gap:.75rem;
}
.brand-badge img{
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.brand-badge .brand-title{
  font-weight: 700;
  letter-spacing: .4px;
}

.btn-glow{
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(39,242,215,.12));
  color: var(--text);
  box-shadow: 0 0 0 rgba(124,92,255,0);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn-glow:hover{
  transform: translateY(-1px);
  border-color: rgba(124,92,255,.45);
  box-shadow: 0 10px 30px rgba(124,92,255,.18);
  color: var(--text);
}

.btn-solid{
  background: linear-gradient(135deg, rgba(124,92,255,.85), rgba(39,242,215,.65));
  border: none;
  color: #0b0f1a;
  font-weight: 700;
  transition: transform .15s ease, filter .2s ease;
}
.btn-solid:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.section{
  padding: 72px 0;
}

.glass{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.hero{
  padding-top: 92px;
}

.hero h1{
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.6px;
}
.hero p{
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 48ch;
}

.hero-logo{
  width: min(220px, 60%);
  height: auto;
}

.kpi{
  display:flex;
  align-items: baseline;
  gap: .75rem;
  flex-wrap: wrap;
}
.kpi .num{
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--warning);
}
.kpi .label{
  font-size: clamp(1.6rem, 3vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -.8px;
}

.team-card img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.small-muted{
  color: var(--muted);
}

.footer{
  border-top: 1px solid var(--border);
  background: rgba(7,10,18,.55);
  backdrop-filter: blur(10px);
  padding: 22px 0;
}

.form-control, .form-select{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text);
}
.form-control:focus{
  background: rgba(255,255,255,.07);
  color: var(--text);
  border-color: rgba(124,92,255,.5);
  box-shadow: 0 0 0 .2rem rgba(124,92,255,.15);
}

.modal-content{
  background: rgba(12,16,28,.85);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  color: var(--text);
  border-radius: 18px;
}

.alert{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
}

/* Process steps */
.process-step{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}
.step-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(39,242,215,.14));
  border: 1px solid rgba(255,255,255,.14);
  flex: 0 0 auto;
}
.step-icon i{
  font-size: 20px;
  color: var(--text);
}

/* Coins list styling */
.coins-list{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.coin-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  transition: transform .15s ease, border-color .2s ease, background .2s ease;
}
.coin-row:hover{
  transform: translateY(-1px);
  border-color: rgba(124,92,255,.35);
  background: rgba(255,255,255,.06);
}

.coin-left{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 160px;
}
.coin-badge{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  overflow:hidden;
}
.coin-badge img{
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.coin-name{
  font-weight: 700;
}
.coin-symbol{
  color: var(--muted);
  font-weight: 600;
  margin-left: 6px;
}

.coin-mid{
  flex: 1;
  text-align: right;
  font-weight: 800;
  letter-spacing: .2px;
}

.coin-right{
  width: 92px;
  text-align:right;
  font-weight: 800;
}
.change-up{ color: #26d07c; }
.change-down{ color: #ff5d5d; }


/* ===== Dashboard Layout ===== */
.dash-wrap{
  display:flex;
  min-height: 100vh;
  padding-top: 0;
}

.dash-sidebar{
  width: 280px;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  background: rgba(7,10,18,.55);
  border-right: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
  display:flex;
  flex-direction: column;
  gap: 18px;
}

.dash-brand{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.dash-brand img{
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.dash-brand-title{ font-weight: 800; letter-spacing: .3px; }
.dash-brand-sub{ color: var(--muted); font-size: .9rem; margin-top: -2px; }

.dash-nav{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.dash-link{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration:none;
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  transition: transform .12s ease, border-color .2s ease, background .2s ease;
}
.dash-link:hover{
  transform: translateY(-1px);
  border-color: rgba(124,92,255,.35);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.92);
}
.dash-link i{ font-size: 18px; color: rgba(255,255,255,.75); }
.dash-link span{ font-weight: 700; }

.dash-link.active{
  border-color: rgba(124,92,255,.45);
  background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(39,242,215,.10));
}

.dash-footer{
  margin-top: auto;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.dash-main{
  flex: 1;
  padding: 22px 22px;
}

.dash-top{
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  margin-bottom: 18px;
}

.dash-hello{
  font-weight: 900;
  font-size: 1.15rem;
}

.dash-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.85);
  font-weight: 700;
  font-size: .95rem;
}

.dash-balance{
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.dash-icon{
  width: 46px;
  height: 46px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(39,242,215,.12));
  border: 1px solid rgba(255,255,255,.12);
}

/* Mobile sidebar */
@media (max-width: 991.98px){
  .dash-wrap{ display:block; }
  .dash-sidebar{
    position: fixed;
    left: -320px;
    top: 0;
    width: 300px;
    z-index: 9999;
    transition: left .2s ease;
  }
  .dash-sidebar.open{ left: 0; }
  .dash-main{ padding: 18px 14px; }
}
/* Fix: make select dropdown options readable (admin panel + dark theme) */
select.form-select option {
  background: #0b1020;
  color: #ffffff;
}


/* ===== Card 3D Flip Showcase ===== */
.card-stage{
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  perspective: 1100px;
  cursor: pointer;
}

.card-3d{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
  transform-style: preserve-3d;
}

.card-stage:hover .card-3d{
  transform: rotateY(180deg);
}

.card-3d.is-flipped{
  transform: rotateY(180deg);
}

.card-face{
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  backface-visibility: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.card-face img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-back{
  transform: rotateY(180deg);
}

/* On touch devices, disable hover flip so click/tap is the control */
@media (hover: none) {
  .card-stage:hover .card-3d{ transform: none; }
}

/* ===== Futuristic Debit Card (HTML/CSS) ===== */
.neo-card{
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.14);

  /* SOLID base so website background doesn't show through */
  background: #0b1020;

  /* Futuristic gradients on top (still solid overall) */
  background-image:
    radial-gradient(1200px 500px at 10% 10%, rgba(124,92,255,.35), transparent 45%),
    radial-gradient(900px 500px at 90% 80%, rgba(39,242,215,.22), transparent 50%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

.neo-glow{
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 40% 30%, rgba(255,255,255,.12), transparent 55%);
  filter: blur(10px);
  pointer-events:none;
}

.neo-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.neo-brand{
  display:flex;
  align-items:center;
  gap: 10px;
}
.neo-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(39,242,215,.95);
  box-shadow: 0 0 18px rgba(39,242,215,.55);
}
.neo-brand-title{
  font-weight: 900;
  letter-spacing: .7px;
  font-size: .95rem;
}
.neo-brand-sub{
  color: var(--muted);
  font-weight: 700;
  font-size: .82rem;
  margin-top: -2px;
}

.neo-net{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.neo-signal{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(124,92,255,.95);
  box-shadow: 0 0 18px rgba(124,92,255,.55);
}
.neo-net-text{
  font-weight: 900;
  letter-spacing: 1px;
  font-size: .9rem;
}

.neo-mid{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.neo-chip{
  width: 58px;
  height: 44px;
  border-radius: 12px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(255,215,120,.85), rgba(255,255,255,.10));
  border: 1px solid rgba(255,255,255,.18);
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 6px;
}
.neo-chip span{
  border-radius: 6px;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.12);
}

.neo-contactless{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.85);
  font-size: 18px;
}

/* UPDATED: centered card number + slightly larger */
.neo-num{
  margin-top: 22px;
  margin-bottom: 8px;
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 1.12rem;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);

  text-align: center;
  width: 100%;
}

.neo-bottom{
  margin-top: auto;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  position:absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
}

.neo-name{
  font-weight: 900;
  letter-spacing: .6px;
  font-size: .95rem;
  text-transform: uppercase;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.neo-exp{
  text-align:right;
}
.neo-exp-label{
  color: var(--muted);
  font-weight: 800;
  font-size: .7rem;
  letter-spacing: .6px;
}
.neo-exp-val{
  font-weight: 900;
  letter-spacing: .8px;
}

/* Back side (UPDATED: solid base as well) */
.neo-card-back{
  background: #0b1020;
  background-image:
    radial-gradient(1200px 500px at 90% 20%, rgba(124,92,255,.25), transparent 45%),
    radial-gradient(900px 500px at 20% 85%, rgba(39,242,215,.18), transparent 50%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

.neo-strip{
  height: 52px;
  border-radius: 12px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.10);
  margin-top: 8px;
}

.neo-sign{
  margin-top: 16px;
}
.neo-sign-label{
  color: var(--muted);
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .6px;
  margin-bottom: 8px;
}
.neo-sign-area{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 10px;
  height: 42px;
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.neo-cvv-label{
  color: var(--muted);
  font-weight: 800;
  font-size: .78rem;
}
.neo-cvv{
  font-weight: 900;
  letter-spacing: 1px;
}

.neo-back-bottom{
  position:absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.neo-back-logo{
  font-weight: 900;
  letter-spacing: 1px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}