:root {
  --sidebar-w: 300px;
  --topbar-h: 80px;
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: "Poppins", sans-serif;
  --font-body: "Poppins", sans-serif;
}

[data-theme="dark"] { 
  --bg-base: #0f1117;         
  --bg-surface: #151925;      
  --bg-card: #1b2030;          
  --bg-card2: #20263a;
  --bg-hover: #262d45;

  --border: rgba(255, 255, 255, 0.06);
  --border-md: rgba(255, 255, 255, 0.10);

  --text-1: #e8ebf5;           
  --text-2: #a0a6c3;
  --text-3: #6b7395;

  --accent: #6c8cff;         
  --accent-2: #8a6cff;

  --green: #2ed08f;
  --amber: #f3b04c;
  --red: #ff6b6b;

  --shadow: 0 6px 30px rgba(0, 0, 0, 0.5);

  --sidebar-bg: #121520;
  --topbar-bg: #121520;
}


[data-theme="light"] {
  --bg-base: #f6f7fb;          
  --bg-surface: #f1f3f9;
  --bg-card: #ffffff;
  --bg-card2: #f8f9fd;
  --bg-hover: #eef1f8;
--border:#00000021;
  /* --border: rgba(0, 0, 0, 0.05); */
  --border-md: rgba(0, 0, 0, 0.08);

  --text-1: #1a1d2e;
  --text-2: #6b7190;
  --text-3: #a0a5c0;

  --accent: #5a7cff;           /* more premium tone */
  --accent-2: #8a6cff;

  --green: #22b573;
  --amber: #e2a63a;
  --red: #e55353;

  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);

  --sidebar-bg: #ffffff;
  --topbar-bg: #ffffff;
}
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  /* background:#f5f8ff; */
  color: var(--text-1);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── SIDEBAR ── */
.sidebar {
  position: fixed;
  /* top: 60px; */
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: transform var(--transition);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-logo .sub{
  font-size: 20px!important;
    font-weight: 600!important;
}
.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-1);
  letter-spacing: -0.3px;
}
.sidebar-close-btn {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  font-size: 22px;
  padding: 4px;
}
.sidebar-nav {
  flex: 1;
  padding: 10px 12px;
  overflow-y: auto;
}
.nav-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-3);
  padding: 8px 8px 6px;
}
.side-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-2);
  font-size: 15.5px;
  font-weight: 500;
  transition: all 0.18s ease;
  text-decoration: none;
  position: relative;
  margin-bottom: 2px;
}
.side-nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-1);
}
.side-nav-item.active {
     background: rgb(85 76 217);
    color: #fff;
}
.side-nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background:rgb(85 76 217);
  border-radius: 0 3px 3px 0;
}
.side-nav-item ion-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}
.sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid var(--border);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.18s;
}
.sidebar-user:hover {
  background: var(--bg-hover);
}
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b7fff, #7c5fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}
.user-avatar .online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--sidebar-bg);
}
.user-info {
  flex: 1;
  min-width: 0;
}
.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.2;
}
.user-role {
  font-size: 11px;
  color: var(--text-3);
}

/* ── OVERLAY ── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  backdrop-filter: blur(2px);
}
.overlay.active {
  display: block;
}

/* ── MAIN ── */
.main-wrap {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  /* padding-top: 100px; */
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition);
}

/* ── TOPBAR ── */
.topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-h);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
  z-index: 100;
}
.topbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  font-size: 24px;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.15s;
}
.topbar-toggle:hover {
  background: var(--bg-hover);
}
.topbar-title {
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-1);
  letter-spacing: -0.3px;
}
.topbar-breadcrumb {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 1px;
}
.topbar-search {
  flex: 1;
  max-width: 380px;
  margin: 0 auto 0 20px;
  position: relative;
}
.topbar-search ion-icon {
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 16px;
}
.topbar-search input {
  width: 100%;
  height: 38px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px 0 36px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text-1);
  outline: none;
  transition:
    border-color 0.18s,
    background 0.18s;
}
.topbar-search input::placeholder {
  color: var(--text-3);
}
.topbar-search input:focus {
  border-color: var(--accent);
  background: var(--bg-card);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.icon-btn {
  width: 38px;
  height: 38px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  transition: all 0.18s;
  position: relative;
  font-size: 18px;
}
.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-1);
  border-color: var(--border-md);
}
.icon-btn .badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--topbar-bg);
}
.theme-toggle {
  width: 38px;
  height: 38px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  transition: all 0.18s;
  font-size: 18px;
}
.theme-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-1);
}
.topbar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #5b7fff, #7c5fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

/* ── CONTENT ── */
.content {
  padding: 24px;
  flex: 1;
}

/* ── STAT CARDS ── */
.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.dash-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.dash-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.dash-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.dash-stat-icon.blue {
  background: rgba(91, 127, 255, 0.15);
  color: var(--accent);
}
.dash-stat-icon.green {
  background: rgba(34, 201, 126, 0.15);
  color: var(--green);
}
.dash-stat-icon.amber {
  background: rgba(245, 166, 35, 0.15);
  color: var(--amber);
}
.dash-stat-icon.red {
  background: rgba(242, 91, 91, 0.15);
  color: var(--red);
}
.dash-stat-value {
  font-family: var(--font-main);
  font-size: 26px;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 4px;
}
.dash-stat-label {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 10px;
}
.dash-stat-change {
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 6px;
}
.dash-stat-change.up {
  background: rgba(34, 201, 126, 0.12);
  color: var(--green);
}
.dash-stat-change.down {
  background: rgba(242, 91, 91, 0.12);
  color: var(--red);
}

/* ── MAIN GRID ── */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  margin-bottom: 24px;
}

/* ── PROFILE CARD ── */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b7fff, #7c5fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  border: 3px solid var(--accent);
  position: relative;
}
.profile-avatar .verified-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border: 2px solid var(--bg-card);
  color: #fff;
}
.profile-name {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
}
.profile-sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  background: rgba(34, 201, 126, 0.12);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.role-switcher {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.role-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  margin-bottom: 12px;
}
.role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.role-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  cursor: pointer;
}
.role-opt-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s;
}
.role-opt:first-child .role-opt-icon {
  background: rgba(91, 127, 255, 0.18);
  color: var(--accent);
}
.role-opt:last-child .role-opt-icon {
  background: rgba(34, 201, 126, 0.18);
  color: var(--green);
}
.role-opt-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
}
.toggle-wrap {
  position: relative;
}
.toggle-input {
  display: none;
}
.toggle-track {
  display: flex;
  align-items: center;
  width: 44px;
  height: 24px;
  background: var(--bg-hover);
  border: 1px solid var(--border-md);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}
.toggle-input:checked + .toggle-track {
  background: var(--green);
  border-color: var(--green);
}
.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.toggle-input:checked ~ .toggle-thumb {
  transform: translateX(20px);
}

/* ── PROJECTS ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
}
.see-all {
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
}
.project-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.project-card:hover {
  background: var(--bg-hover);
  border-color: var(--border-md);
}
.project-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  overflow: hidden;
}
.project-info {
  flex: 1;
  min-width: 0;
}
.project-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-meta {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 8px;
}
.progress-wrap {
  position: relative;
}
.progress-bar {
  height: 4px;
  background: var(--bg-hover);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s;
}
.progress-fill.blue {
  background: var(--accent);
}
.progress-fill.green {
  background: var(--green);
}
.progress-label {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 3px;
  text-align: right;
}
.project-status {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 2px;
}
.status-active {
  background: rgba(34, 201, 126, 0.12);
  color: var(--green);
}
.status-pending {
  background: rgba(245, 166, 35, 0.12);
  color: var(--amber);
}

/* ── BID LIST ── */
.bid-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  border-radius: var(--radius-sm);
  padding-left: 8px;
  padding-right: 8px;
}
.bid-item:last-child {
  border-bottom: none;
}
.bid-item:hover {
  background: var(--bg-hover);
}
.bid-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.bid-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
}
.bid-sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}
.bid-arrow {
  margin-left: auto;
  color: var(--text-3);
  font-size: 16px;
}

/* ── AVAILABLE PROJECTS ── */
.available-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.filter-row {
  display: flex;
  gap: 8px;
  
  margin-bottom: 16px;
}
.filter-tag {
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-md);
  cursor: pointer;
  color: var(--text-2);
  background: var(--bg-card2);
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-tag.active,
.filter-tag:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.avail-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.18s;
  cursor: pointer;
  position: relative;
  padding-left: 22px;
}
.avail-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 127, 255, 0.08);
}
.avail-dot {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.avail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.avail-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.avail-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 3px;
}
.avail-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
}
.avail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.avail-time {
  font-size: 11px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 4px;
}
.bid-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.bid-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

/* ── WALLET + SIDEBAR ── */
.right-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.wallet-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.wallet-icon {
  width: 52px;
  height: 52px;
  background: rgba(91, 127, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--accent);
  margin: 0 auto 14px;
}
.wallet-amt {
  font-family: var(--font-main);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 4px;
}
.wallet-sub {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 16px;
}
.topup-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}
.topup-btn:hover {
  filter: brightness(1.1);
}
.wallet-note {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 6px;
}
.wallet-link {
  font-size: 11px;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* ── BOTTOM GRID ── */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1280px) {
  .dash-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1100px) {
  .main-grid {
    display:block
  }
  .right-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1000px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.4);
  }
  .sidebar-close-btn {
    display: flex;
  }
  .main-wrap {
    margin-left: 0;
  }
  .topbar-toggle {
    display: flex;
  }
  .topbar-search {
    display: none;
  }
}

@media (max-width: 720px) {
  .dash-stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .right-col {
    grid-template-columns: 1fr;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .content {
    padding: 8px;
  }
  .topbar {
    padding: 10px 16px;
    height: 100%;
    gap: 20px;
  }
.topbar-title {
    font-size: 17px;
    width: 100%;
  }
  .finance-card{
    width:100%!important;
  }
  
.topbar-actions {
 
  margin-left: 30px!important;
}

.sidebar-logo sub{
  font-size: 15px;
    font-weight: 600;
}
  theme-toggle{
  width: 28px;
    height: 28px;
}
.topbar-avatar{
    width:28px;
height:28px;
}

@media (max-width: 480px) {
  .dash-stats-row {
    grid-template-columns:  1fr 1fr;
  }
  .dash-stat-value {
    font-size: 22px;
  }
}

/* scrollbar */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--bg-hover);
  border-radius: 3px;
}

/* quick fade-in */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.dash-stat-card {
  animation: fadeUp 0.38s ease both;
}
.dash-stat-card:nth-child(1) {
  animation-delay: 0.04s;
}
.dash-stat-card:nth-child(2) {
  animation-delay: 0.09s;
}
.dash-stat-card:nth-child(3) {
  animation-delay: 0.14s;
}
.dash-stat-card:nth-child(4) {
  animation-delay: 0.19s;
}



  /* Wallet Layout */
  .finance-card{
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
  }
      /* Wallet Header */
.custom-wallet-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
}

/* Balance */
.custom-balance-value{
    margin-top:10px;
    font-size:40px;
    font-weight:800;
    line-height:1;
}

.custom-coin-text{
    font-size:15px;
    color:var(--amber);
    font-weight:600;
    margin-left:5px;
}

/* Icon */
.custom-wallet-icon{
    width:70px;
    height:70px;
    border-radius:18px;
    background:linear-gradient(135deg,#f59e0b,#facc15);
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 10px 25px rgba(245,158,11,0.25);
}

.custom-wallet-icon ion-icon{
    font-size:34px;
    color:#111827;
}

/* Note */
.custom-wallet-note{
    margin-top:18px;
    line-height:1.7;
    font-size:14px;
}



/* Button */
.custom-wallet-btn{
    margin-top:24px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:12px 20px;
    border-radius:14px;
    background:linear-gradient(135deg,#f59e0b,#facc15);
    color:#111827;
    font-weight:700;
    text-decoration:none;
    transition:0.3s ease;
}

.custom-wallet-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 20px rgba(245,158,11,0.30);
}

.custom-wallet-btn ion-icon{
    font-size:18px;
}
      /* Skeleton Loader Styles */
      .skeleton {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
        border-radius: 4px;
      }

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

        100% {
          background-position: -200% 0;
        }
      }

      /* Dark mode skeleton */
      body.dark .skeleton {
        background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
        background-size: 200% 100%;
      }

      /* Spinner Styles */
      .spinner {
        border: 3px solid #f3f3f3;
        border-top: 3px solid #3498db;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        animation: spin 1s linear infinite;
        margin: 0 auto;
      }

      @keyframes spin {
        0% {
          transform: rotate(0deg);
        }

        100% {
          transform: rotate(360deg);
        }
      }

      /* Dark mode spinner */
      body.dark .spinner {
        border: 3px solid #1a1a1a;
        border-top: 3px solid #3498db;
      }

      /* Wallet Top Grid */
      .wallet-grid-top {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 24px;
      }

      /* Info Card */
      .info-card {
        padding: 24px;
      }

      .coin-rule-list {
        display: flex;
        flex-direction: column;
        gap: 18px;
        margin-top: 10px;
      }

      .coin-rule-item {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        padding: 5px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.02);
        transition: 0.3s ease;
      }

      .coin-rule-item:hover {
        transform: translateY(-2px);
        border-color: rgba(79, 70, 229, 0.25);
      }

      .coin-rule-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: #fff;
      }

      .coin-rule-icon.success {
        background: linear-gradient(135deg, #16a34a, #22c55e);
      }

      .coin-rule-icon.warning {
        background: linear-gradient(135deg, #d97706, #f59e0b);
      }

      .coin-rule-icon.danger {
        background: linear-gradient(135deg, #dc2626, #ef4444);
      }

      .coin-rule-content h4 {
        margin: 0;
        font-size: 15px;
        font-weight: 600;
        color: var(--text-1);
      }

      .coin-rule-content p {
        margin: 6px 0 0;
        font-size: 13px;
        line-height: 1.5;
        color: var(--text-3);
      }

      /* Responsive */
      @media(max-width:768px) {
        .wallet-grid-top {
          grid-template-columns: 1fr;
        }
      }

  /* Table Styling */
  .wallet-table {
    width: 100%;
    border-collapse: collapse;
  }

  .wallet-table th {
    text-align: left;
    padding: 12px;
    font-size: 12px;
    color: var(--text-3);
    border-bottom: 1px solid var(--border);
  }

  .wallet-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
  }

  .ref-text {
    font-weight: 600;
    color: var(--text-1);
  }

  .ref-id {
    font-size: 11px;
    color: var(--text-3);
  }

  .type-pill {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
  }

  .type-pill.cash {
    background: rgba(34, 201, 126, 0.1);
    color: var(--green);
  }

  .type-pill.coin {
    background: rgba(245, 166, 35, 0.1);
    color: var(--amber);
  }

  .amt-positive {
    color: var(--green);
    font-weight: 600;
  }

  .amt-negative {
    color: var(--red);
    font-weight: 600;
  }
  /* button css */
  .bid-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.18s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.bid-btn i { font-size: 14px; }
.bid-btn--primary { background: var(--accent); }
.bid-btn--primary:hover { filter: brightness(1.12); transform: translateY(-1px); }
.bid-btn .bid-btn--secondary { background: var(--bg-card2); color: var(--text-2); border: 1px solid var(--border-md); }
.bid-btn .bid-btn--secondary:hover { background: var(--bg-hover); color: var(--text-1); }

