
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: #f8f9fc;
  color: #121417;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Original Dark Mode Body Background */
body.dark-theme {
  background-color: #0b0f17;
  color: #f1f5f9;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================
   2. DESKTOP LAYOUT & SIDEBAR
   ========================================== */
.app-layout {
  display: flex;
  width: 100vw;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background-color: #ffffff;
  border-right: 1px solid #e6e8ea;
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
}

body.dark-theme .sidebar {
  background-color: #111827;
  border-right-color: #1f293d;
}

.brand-logo {
  font-size: 18px;
  font-weight: 700;
  color: #000033;
  padding-left: 10px;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

body.dark-theme .brand-logo {
  color: #3b82f6;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #707a8a;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

body.dark-theme .nav-links a {
  color: #94a3b8;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: #f0f4fd;
  color: #000033;
  font-weight: 600;
}

body.dark-theme .nav-links a:hover,
body.dark-theme .nav-links a.active {
  background-color: #1e293b;
  color: #3b82f6;
}

.main-wrapper {
  flex: 1;
  margin-left: 240px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: calc(100% - 240px);
}

.page-content {
  padding: 20px 24px;
  flex: 1;
  background-color: #ffffff;
  margin: 20px 32px;
  border-radius: 12px;
  border: 1px solid #e6e8ea;
}

body.dark-theme .page-content {
  background-color: #111827;
  border-color: #1f293d;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   3. CARDS PAGE CONTAINER & HEADER
   ========================================== */
.card-page-container {
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.cards-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cards-title {
  font-size: 18px;
  font-weight: 700;
  color: #000033;
  letter-spacing: -0.2px;
}

body.dark-theme .cards-title {
  color: #f8fafc;
}

.cards-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

body.dark-theme .cards-subtitle {
  color: #94a3b8;
}

.icon-menu-btn {
  background: rgba(0, 0, 51, 0.05);
  border: 1px solid #e2e8f0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  color: #000033;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark-theme .icon-menu-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

/* ==========================================
   4. TAB BUTTONS (PHYSICAL / VIRTUAL)
   ========================================== */
.card-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background-color: #f8f9fc;
  padding: 4px;
  border-radius: 20px;
  border: 1px solid #e6e8ea;
}

body.dark-theme .card-tabs {
  background-color: #161f2e;
  border-color: #233148;
}

.tab-btn {
  flex: 1;
  padding: 8px 16px;
  border-radius: 16px;
  border: none;
  background-color: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

body.dark-theme .tab-btn {
  color: #94a3b8;
}

.tab-btn.active {
  background-color: #ffffff;
  color: #000033;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.dark-theme .tab-btn.active {
  background-color: #1e293b;
  color: #60a5fa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   5. CARD CAROUSEL & BANK CARDS
   ========================================== */
.card-carousel-wrapper {
  margin-bottom: 28px;
}

.card-carousel {
  display: flex;
  gap: 12px;
  overflow: hidden;
  position: relative;
  padding-bottom: 4px;
}

.bank-card {
  border-radius: 14px;
  padding: 20px;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 51, 0.12);
  flex-shrink: 0;
}

.bank-card.primary-card {
  width: 85%;
  background: linear-gradient(135deg, #000033 0%, #172a5a 100%);
}

body.dark-theme .bank-card.primary-card {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b2a4a 100%);
  border: 1px solid #233148;
}

.bank-card.peek-card {
  width: 20%;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.check-icon {
  width: 22px;
  height: 22px;
  background-color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.vendor-logo {
  font-style: italic;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.8px;
}

.card-digits {
  font-size: 16px;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: 'Courier New', Courier, monospace;
}

.card-details-grid {
  display: flex;
  gap: 20px;
}

.detail-label {
  display: block;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.detail-value {
  font-size: 11px;
  font-weight: 600;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #cbd5e1;
}

body.dark-theme .dot {
  background-color: #233148;
}

.dot.active {
  background-color: #000033;
  width: 14px;
  border-radius: 4px;
}

body.dark-theme .dot.active {
  background-color: #3b82f6;
}

/* ==========================================
   6. CARD SETTINGS & TOGGLE SWITCHES
   ========================================== */
.settings-title {
  font-size: 13px;
  font-weight: 600;
  color: #121417;
  margin-bottom: 12px;
  letter-spacing: -0.1px;
  text-transform: uppercase;
}

body.dark-theme .settings-title {
  color: #f8fafc;
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.setting-item {
  background-color: #f8fafc;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e2e8f0;
}

body.dark-theme .setting-item {
  background-color: #161f2e;
  border-color: #233148;
}

.setting-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.setting-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000033;
  font-size: 14px;
  border: 1px solid #e2e8f0;
}

body.dark-theme .setting-icon {
  background-color: #1e293b;
  color: #60a5fa;
  border-color: #334155;
}

.setting-name {
  font-size: 12px;
  font-weight: 600;
  color: #121417;
}

body.dark-theme .setting-name {
  color: #ffffff;
}

/* Custom CSS Toggle Switches */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .25s ease;
  border-radius: 22px;
}

body.dark-theme .slider {
  background-color: #233148;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s ease;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #10b981;
}

body.dark-theme input:checked + .slider {
  background-color: #10b981;
}

input:checked + .slider:before {
  transform: translateX(18px);
}

/* ==========================================
   7. FOOTER & MOBILE NAVIGATION
   ========================================== */
.desktop-footer {
  padding: 16px 32px;
  font-size: 11px;
  color: #64748b;
  text-align: center;
}

.mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .main-wrapper {
    margin-left: 0;
    width: 100%;
  }

  .page-content {
    margin: 12px;
    padding: 16px 12px;
  }

  /* FLOATING MOBILE NAVIGATION BAR */
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 16px;
    left: 5%;
    width: 90%;
    background-color: #000033;
    border-radius: 30px;
    justify-content: space-around;
    align-items: center;
    padding: 8px 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 200;
  }

  body.dark-theme .mobile-nav {
    background-color: #1e293b;
    border: 1px solid #334155;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.65);
  }

  body.dark-theme .mobile-nav-item {
    color: #64748b;
  }

  .mobile-nav-item i {
    font-size: 15px;
  }

  .mobile-nav-item.active {
    color: #ffffff;
    font-weight: 600;
  }

  body.dark-theme .mobile-nav-item.active {
    color: #60a5fa;
  }

  .desktop-footer {
    padding-bottom: 80px;
  }
}