/* =========================
   MOBILE POLISH FIXES
========================= */

@media (max-width: 768px) {

  /* TRANSACTIONS CLEANUP */
  .rv-transaction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
  }

  .rv-transaction-title {
    font-size: 13px;
    font-weight: 500;
  }

  .rv-transaction-amount {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
  }

  /* CRYPTO HOLDINGS SPACING */
  .rv-crypto-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .rv-crypto-item:last-child {
    border-bottom: none;
  }

  .rv-crypto-name {
    font-size: 13px;
    opacity: 0.8;
  }

  .rv-crypto-amount {
    font-size: 16px;
    font-weight: 600;
  }

  /* CARD SECTION TYPOGRAPHY */
  .rv-card-number {
    font-size: 14px;
    letter-spacing: 2px;
    opacity: 0.85;
  }

  .rv-card-name {
    font-size: 13px;
    opacity: 0.75;
  }

  .rv-card button {
    margin-top: 12px;
  }
}

body{margin:0;background:linear-gradient(135deg,#020617,#0b1229);color:#fff;font-family:Arial}
.rv-app{display:flex;min-height:100vh}

/* GLOBAL BACKGROUND */
.rv-wrap{
  min-height: 100vh;
  background: radial-gradient(
    circle at top left,
    #0b1120,
    #020617
  );
  color: #e5e7eb;
  display: flex;
}

.rv-sidebar{
  width: 260px;
  min-height: 100vh;
  background: rgba(15,23,42,0.96);
  padding: 28px 20px;
  box-sizing: border-box;
}

.rv-sidebar{
  box-shadow: 4px 0 24px rgba(0,0,0,0.45);
  width:260px;
  height:100vh;                /* FULL HEIGHT */
  background:linear-gradient(
    180deg,
    #020617 0%,
    #040b1f 100%
  );
  padding:32px 20px;
  display:flex;                /* FLEX LAYOUT */
  flex-direction:column;
  justify-content:flex-start;
}

.rv-sidebar a{
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  color: #cbd5f5;
}

.rv-sidebar a:hover{
  background: rgba(99,102,241,0.15);
  color: #ffffff;
}

.rv-sidebar a:first-of-type{
  background: rgba(99,102,241,0.25);
  color: #ffffff;
}

.rv-logo{
  font-size:20px;
  font-weight:600;
  color:#ffffff;
  margin-bottom:40px;
}

.rv-sidebar a{
  display:flex;
  align-items:center;
  padding:14px 16px;
  margin-bottom:12px;
  border-radius:12px;
  color:#94a3b8;
  text-decoration:none;
  font-size:15px;
  transition:all .25s ease;
  margin-bottom: 10px;
  font-weight: 500;
}

.rv-sidebar a{
  font-size: 15px;
  line-height: 1.4;
}


.rv-sidebar a:hover{
  background:rgba(59,130,246,0.12);
  color:#ffffff;
}

.rv-sidebar a.active{
  background:rgba(59,130,246,0.18);
  color:#ffffff;
}

.rv-main{
  flex:1;
  padding:48px;
  background:linear-gradient(
    135deg,
    #020617 0%,
    #0b1229 50%,
    #0e1a3a 100%
  );
  display: flex;
  flex-direction: column;
}

.rv-main{
  flex: 1;
  padding: 36px 48px;
  box-sizing: border-box;
  max-width: 1200px;
}

.rv-main h1{
  margin-top: 12px;
  margin-bottom: 40px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.rv-cards{
  display: flex;
  gap: 20px;
  margin-top: 24px;
  display: flex;
  gap: 24px;
  margin-bottom: 36px;
}


.rv-card{
  background: linear-gradient(
    180deg,
    rgba(30,41,59,0.95),
    rgba(15,23,42,0.95)
  );
  border-radius: 22px;
  padding: 26px;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

.rv-card{
  flex: 1;
  background: linear-gradient(
    180deg,
    rgba(30,41,59,0.9),
    rgba(15,23,42,0.9)
  );
  border-radius: 22px;
  padding: 28px;
  color: #ffffff;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.rv-card:first-child{
  min-height: 120px;
  background: linear-gradient(
    180deg,
    rgba(59,130,246,0.18),
    rgba(15,23,42,0.95)
  );
}


.rv-card div:first-child{
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.rv-card:first-child{
  background: linear-gradient(
    180deg,
    rgba(59,130,246,0.22),
    rgba(15,23,42,0.95)
  );
}


.rv-card div:last-child{
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.rv-card div:first-child{
  font-size: 14px;
  font-weight: 500;
  color: #a5b4fc;
  margin-bottom: 10px;
}

.rv-card div:last-child{
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.rv-card{
  position: relative;  
  transition: transform .25s ease, box-shadow .25s ease;

}


.rv-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}


.rv-card::after{
  content:'';
  position:absolute;
  inset:0;
  border-radius:22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
  pointer-events:none;
}


.rv-main h1{
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 28px;
  color: #ffffff;
}

.rv-cards{
  display: flex;
  gap: 24px;
  margin-bottom: 36px;
}

.rv-card{
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.rv-dashboard-grid{
  display: flex;
  gap: 32px;
  /* DASHBOARD LOWER GRID */
  display: flex;
  gap: 32px;
  margin-top: 40px;
}

/* LEFT COLUMN */
.rv-dashboard-left{
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* RIGHT COLUMN */
.rv-dashboard-right{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.rv-panel{
  background: linear-gradient(
    180deg,
    rgba(30,41,59,0.9),
    rgba(15,23,42,0.95)
  );
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
}

.rv-panel h3{
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}


.rv-panel{
  background: linear-gradient(
    180deg,
    rgba(30,41,59,0.9),
    rgba(15,23,42,0.95)
  );
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
}

.rv-panel h3{
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
  color: #ffffff;
}

/* DASHBOARD LOWER GRID */
.rv-dashboard-grid{
  display: flex;
  gap: 32px;
  margin-top: 40px;
}

/* LEFT COLUMN */
.rv-dashboard-left{
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* RIGHT COLUMN */
.rv-dashboard-right{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ===== Revaulte Dashboard Color Fix ===== */

.rv-dashboard,
.rv-dashboard * {
  color: #e5e7eb;
}

.rv-main h1,
.rv-main h2,
.rv-main h3,
.rv-main p,
.rv-main li {
  color: #e5e7eb !important;
}

/* Cards */
.rv-card {
  background: linear-gradient(135deg, #0f172a, #020617);
  color: #ffffff !important;
  border-radius: 14px;
  padding: 20px;
  font-weight: 600;
}

/* Sidebar */
.rv-sidebar {
  background: linear-gradient(180deg, #020617, #0f172a);
  color: #e5e7eb;
}

.rv-sidebar a {
  color: #cbd5f5;
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  margin-bottom: 6px;
}

.rv-sidebar a.active,
.rv-sidebar a:hover {
  background: rgba(99,102,241,0.15);
  color: #ffffff;
}

.rv-sidebar img {
  box-shadow: 0 0 0 2px rgba(99,102,241,.4);
}

.rv-main button {
  background: linear-gradient(135deg,#6366f1,#4f46e5);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

/* =========================
   Revaulte Auth (Login/Register)
========================= */

/* =========================
   Revaulte Auth Background (Universal)
========================= */

.rv-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1200px 600px at 10% 10%, #0b1020 0%, #020617 45%, #020617 100%);
}


/* Auth wrapper */
.rv-auth {
  max-width: 420px;
  margin: 12vh auto;
  padding: 34px 32px 30px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    linear-gradient(135deg, #020617, #0f172a);
  box-shadow:
    0 30px 80px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.06);
  color: #e5e7eb;
  backdrop-filter: blur(10px);
}

/* Title */
.rv-auth h2 {
  text-align: center;
  margin-bottom: 18px;
  font-size: 1.35rem;
  letter-spacing: .2px;
  color: #f8fafc;
}

/* Inputs */
.rv-auth input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.15);
  background: rgba(2,6,23,.6);
  color: #e5e7eb;
  outline: none;
}

.rv-auth input::placeholder {
  color: #94a3b8;
}

.rv-auth input:focus {
  border-color: rgba(99,102,241,.7);
  box-shadow: 0 0 0 4px rgba(99,102,241,.15);
}

/* Primary button */
.rv-auth button {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .2px;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow:
    0 12px 30px rgba(79,70,229,.35),
    inset 0 1px 0 rgba(255,255,255,.15);
}

.rv-auth button:hover {
  filter: brightness(1.05);
}

/* Links */
.rv-auth p {
  text-align: center;
  margin-top: 14px;
  font-size: .95rem;
  color: #cbd5f5;
}

.rv-auth a {
  color: #a5b4fc;
  text-decoration: none;
}

.rv-auth a:hover {
  text-decoration: underline;
}

/* Error message */
.rv-error {
  background: rgba(248,113,113,.12);
  border: 1px solid rgba(248,113,113,.25);
  color: #fecaca;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: .9rem;
}

/* Mobile */
@media (max-width: 480px) {
  .rv-auth {
    margin: 10vh 16px;
    padding: 28px 22px;
  }
}

/* =========================
   REVAULTE AUTH PAGES
========================= */

body:has(.rv-auth) {
  background: linear-gradient(135deg, #020617, #0b1229);
}

.rv-auth {
  max-width: 420px;
  margin: 80px auto;
  padding: 40px;
  background: rgba(10, 15, 30, 0.85);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  color: #fff;
}

.rv-auth h2 {
  margin-bottom: 24px;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
}

.rv-auth form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rv-auth input {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 15px;
}

.rv-auth input::placeholder {
  color: rgba(255,255,255,0.5);
}

.rv-auth input:focus {
  outline: none;
  border-color: #2563eb;
  background: rgba(255,255,255,0.08);
}

.rv-auth button {
  margin-top: 10px;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all .25s ease;
}

.rv-auth button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(37,99,235,.4);
}

.rv-auth p {
  margin-top: 20px;
  font-size: 14px;
  text-align: center;
}

.rv-auth a {
  color: #60a5fa;
  text-decoration: none;
}

.rv-auth a:hover {
  text-decoration: underline;
}

.rv-error {
  background: rgba(239,68,68,0.15);
  color: #fecaca;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
}
/* =========================
   MOBILE DASHBOARD PARITY
========================= */

@media (max-width: 768px) {

  /* MAIN LAYOUT */
  .rv-app {
    flex-direction: column;
  }

  .rv-main {
    padding: 20px 16px;
  }

  /* SIDEBAR */
  .rv-sidebar {
    width: 100%;
    height: auto;
    padding: 16px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .rv-sidebar nav {
    display: none;
  }

  /* DASHBOARD HEADER */
  .rv-dashboard-header h1 {
    font-size: 22px;
  }

  .rv-dashboard-header p {
    font-size: 14px;
  }

  /* BALANCE CARD */
  .rv-balance-card {
    width: 100%;
    margin-bottom: 20px;
  }

  /* ACTION BUTTONS */
  .rv-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .rv-action {
    padding: 14px;
    font-size: 13px;
  }

  /* TRANSACTIONS */
  .rv-transactions {
    margin-top: 24px;
  }

  .rv-transaction {
    padding: 14px;
    font-size: 13px;
  }

  /* CRYPTO HOLDINGS */
  .rv-crypto {
    margin-top: 24px;
  }

  .rv-crypto-item {
    padding: 14px;
  }

  /* VIRTUAL CARD */
  .rv-card {
    width: 100%;
    margin-top: 24px;
  }

  .rv-card img,
  .rv-card-inner {
    width: 100%;
  }
}
