/* ==========================================================================
   Aurex Capital Financial Dashboard - Shared 3D Luxury Design System
   ========================================================================== */

:root {
  --gold-primary: #D4AF37;
  --gold-light: #F3DA8B;
  --gold-mid: #C59B34;
  --gold-dark: #B8860B;
  --gold-deep: #8A6208;

  --sidebar-top: #0C0B0A;
  --sidebar-bottom: #171512;

  --bg-main: #F4F3EE;
  --bg-card: #FFFFFF;
  --bg-recessed: #F7F4EC;
  --bg-pill: #EFECE3;

  --text-primary: #212529;
  --text-heading: #191816;
  --text-secondary: #6C757D;
  --text-muted: #8E9297;

  --border-subtle: rgba(212, 175, 55, 0.14);
  --border-card: rgba(30, 24, 12, 0.06);

  --shadow-card:
    0 2px 6px rgba(25, 20, 10, 0.04),
    0 12px 28px -6px rgba(25, 20, 10, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-card-hover:
    0 6px 12px rgba(25, 20, 10, 0.06),
    0 22px 38px -8px rgba(184, 134, 11, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --shadow-recessed:
    inset 2px 3px 6px rgba(25, 20, 10, 0.08),
    inset -1px -1px 3px rgba(255, 255, 255, 0.85);

  --sidebar-width: 242px;
  --radius-card: 18px;
  --radius-pill: 999px;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dark Theme Variables (Triggered by Theme Toggle) */
html[data-theme="dark"] {
  --bg-main: #12110F;
  --bg-card: #1B1916;
  --bg-recessed: #141210;
  --bg-pill: #25221D;

  --text-primary: #F3F0E8;
  --text-heading: #FAF7F0;
  --text-secondary: #A9A59B;
  --text-muted: #848076;

  --border-subtle: rgba(212, 175, 55, 0.22);
  --border-card: rgba(212, 175, 55, 0.12);

  --shadow-card:
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 14px 30px -6px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-card-hover:
    0 6px 14px rgba(0, 0, 0, 0.45),
    0 22px 40px -8px rgba(212, 175, 55, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow-recessed:
    inset 2px 3px 6px rgba(0, 0, 0, 0.48),
    inset -1px -1px 2px rgba(255, 255, 255, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans) !important;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   App Shell: Fixed Luxury Sidebar + Main Workspace
   ========================================================================== */

.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* Sidebar */
.aurex-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: linear-gradient(180deg, #0D0C0A 0%, #14120F 55%, #0D0B09 100%);
  color: #D8D4CC;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid rgba(212, 175, 55, 0.16);
  box-shadow: 6px 0 32px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.aurex-sidebar::-webkit-scrollbar {
  width: 4px;
}

.aurex-sidebar::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.25);
  border-radius: 4px;
}

/* Ambient gold ribbon glow behind sidebar links */
.aurex-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 28%, rgba(212, 175, 55, 0.11) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 58%, rgba(184, 134, 11, 0.12) 0%, transparent 52%);
  pointer-events: none;
  z-index: 0;
}

.sidebar-gold-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
}

.sidebar-top {
  position: relative;
  z-index: 2;
  padding: 20px 14px 12px;
}

/* Brand Logo */
.aurex-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 8px 18px;
}

.aurex-brand-mark {
  width: 56px;
  height: 44px;
  filter: drop-shadow(0 4px 10px rgba(212, 175, 55, 0.4));
}

.aurex-brand-title {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-top: 4px;
  line-height: 1.1;
  background: linear-gradient(180deg, #F8E5A3 0%, #D4AF37 52%, #9D7116 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.aurex-brand-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.34em;
  color: #C7B27A;
  margin-top: 3px;
  text-transform: uppercase;
}

.aurex-brand-sub::before,
.aurex-brand-sub::after {
  content: '';
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.65));
}

.aurex-brand-sub::after {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.65), transparent);
}

/* Sidebar Nav Links */
.sidebar-nav {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-radius: 11px;
  color: #D2CEC6;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  border-left: 3px solid transparent;
  cursor: pointer;
}

.sidebar-link-main {
  display: flex;
  align-items: center;
  gap: 11px;
}

.sidebar-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.85;
}

.sidebar-link:hover {
  color: #FFFFFF;
  background: rgba(212, 175, 55, 0.11);
  border-left-color: rgba(212, 175, 55, 0.55);
}

.sidebar-link.active {
  background: linear-gradient(90deg, #F0D483 0%, #CFA237 55%, #9C721A 100%);
  color: #191306;
  font-weight: 600;
  border-left: 3px solid #FFF4CA;
  box-shadow:
    0 6px 18px rgba(212, 175, 55, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.sidebar-link.active svg {
  opacity: 1;
  color: #191306;
}

.sidebar-badge {
  background: linear-gradient(180deg, #F1D37E 0%, #C69628 100%);
  color: #1B1405;
  font-size: 11px;
  font-weight: 700;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.sidebar-chevron {
  width: 14px !important;
  height: 14px !important;
  transition: transform 0.2s ease;
}

.sidebar-submenu-group.open .sidebar-chevron {
  transform: rotate(180deg);
}

.sidebar-submenu {
  list-style: none;
  margin: 2px 0 4px 16px;
  padding: 4px 0 4px 14px;
  border-left: 1px dashed rgba(212, 175, 55, 0.32);
  display: none;
  flex-direction: column;
  gap: 2px;
}

.sidebar-submenu-group.open .sidebar-submenu {
  display: flex;
}

.sidebar-sublink {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: #B8B2A6;
  transition: all 0.18s ease;
}

.sidebar-sublink:hover,
.sidebar-sublink.active {
  color: #F3DA8B;
  background: rgba(212, 175, 55, 0.12);
}

/* Sidebar Bottom Skyline & Tagline */
.sidebar-footer {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  padding-top: 8px;
}

.sidebar-skyline-wrap {
  position: relative;
  height: 138px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sidebar-skyline-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: linear-gradient(180deg, #110F0D 0%, transparent 100%);
  z-index: 2;
}

.sidebar-skyline-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.92;
  filter: saturate(1.1) contrast(1.06);
}

.sidebar-tagline {
  padding: 10px 14px 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(14, 12, 9, 0.85) 0%, #090807 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.sidebar-tagline-top {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #B89D5A;
  text-transform: uppercase;
}

.sidebar-tagline-bottom {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
  background: linear-gradient(90deg, #F6E2A0, #D4AF37, #F6E2A0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Main Content Area & Top Banner
   ========================================================================== */

.main-workspace {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-width: 0;
  position: relative;
  padding: 16px 24px 36px;
  background-color: var(--bg-main);
}

/* Hero Skyline Background Blend (top-right matching reference image) */
.hero-skyline-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  width: 68%;
  height: 195px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-skyline-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.82;
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.92) 38%, rgba(0, 0, 0, 0.42) 68%, transparent 100%),
                      linear-gradient(to bottom, rgba(0, 0, 0, 1) 52%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.92) 38%, rgba(0, 0, 0, 0.42) 68%, transparent 100%);
}

.hero-skyline-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg-main) 0%, rgba(244, 243, 238, 0.65) 32%, transparent 64%),
    linear-gradient(0deg, var(--bg-main) 0%, rgba(244, 243, 238, 0.3) 34%, transparent 72%);
}

html[data-theme="dark"] .hero-skyline-backdrop img {
  opacity: 0.36;
}

html[data-theme="dark"] .hero-skyline-fade {
  background:
    linear-gradient(90deg, var(--bg-main) 0%, rgba(18, 17, 15, 0.72) 35%, transparent 65%),
    linear-gradient(0deg, var(--bg-main) 0%, rgba(18, 17, 15, 0.4) 38%, transparent 75%);
}

.workspace-inner {
  position: relative;
  z-index: 2;
}

/* Top Header Bar */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 440px;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-heading);
  box-shadow: var(--shadow-card);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-pill {
  position: relative;
  flex: 1;
}

.search-pill input {
  width: 100%;
  height: 40px;
  padding: 0 18px 0 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  font-size: 12.5px;
  box-shadow:
    0 4px 16px rgba(20, 16, 8, 0.06),
    inset 1px 2px 4px rgba(20, 16, 8, 0.04);
  transition: all 0.2s ease;
}

html[data-theme="dark"] .search-pill input {
  background: rgba(27, 25, 22, 0.92);
  border-color: rgba(212, 175, 55, 0.22);
}

.search-pill input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow:
    0 6px 20px rgba(184, 134, 11, 0.14),
    0 0 0 3px rgba(212, 175, 55, 0.16);
}

.search-pill .search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  box-shadow:
    0 4px 12px rgba(25, 20, 10, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

html[data-theme="dark"] .header-icon-btn {
  background: rgba(31, 28, 24, 0.92);
  border-color: rgba(212, 175, 55, 0.24);
}

.header-icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(184, 134, 11, 0.18);
}

.header-icon-btn svg {
  width: 17px;
  height: 17px;
}

.notif-dot-3d {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FF7878, #D92626);
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 2px 5px rgba(217, 38, 38, 0.55);
}

/* User Profile Pill */
.profile-dropdown-wrap {
  position: relative;
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(25, 20, 10, 0.08);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

html[data-theme="dark"] .user-profile-pill {
  background: rgba(31, 28, 24, 0.94);
  border-color: rgba(212, 175, 55, 0.24);
}

.user-profile-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(184, 134, 11, 0.16);
}

.user-avatar-gold {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #221E17;
}

.user-profile-meta {
  line-height: 1.2;
  text-align: left;
}

.user-profile-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-heading);
  display: block;
}

.user-profile-tier {
  font-size: 10.5px;
  color: var(--text-secondary);
  display: block;
}

.profile-menu-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 215px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  box-shadow: var(--shadow-card-hover);
  padding: 8px;
  z-index: 1050;
  display: none;
}

.profile-menu-popover.show {
  display: block;
  animation: fadeSlideDown 0.16s ease;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  transition: background 0.15s ease, color 0.15s ease;
}

.profile-menu-item:hover {
  background: rgba(212, 175, 55, 0.13);
  color: var(--gold-dark);
}

/* ==========================================================================
   3D Cards, Recessed Inputs, Tactile Buttons
   ========================================================================== */

.aurex-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}

.aurex-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.aurex-card-static {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
}

.card-title-sm {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0;
}

.btn-gold-3d {
  background: linear-gradient(180deg, #E8CB7B 0%, #D4AF37 54%, #B5871E 100%);
  color: #1C1507;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid #C69B2E;
  border-radius: 12px;
  padding: 10px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow:
    0 5px 14px rgba(184, 134, 11, 0.3),
    0 2px 0 #8E6709,
    inset 0 1px 1px rgba(255, 250, 224, 0.85),
    inset 0 -2px 3px rgba(138, 98, 8, 0.42);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.btn-gold-3d:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  color: #1C1507;
  box-shadow:
    0 7px 18px rgba(184, 134, 11, 0.38),
    0 3px 0 #8E6709,
    inset 0 1px 1px rgba(255, 250, 224, 0.95);
}

.btn-gold-3d:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 4px rgba(184, 134, 11, 0.25),
    0 0 0 #8E6709,
    inset 0 2px 4px rgba(110, 78, 5, 0.55);
}

.btn-dark-pill {
  background: linear-gradient(180deg, #4B3921 0%, #342614 100%);
  color: #FFFFFF;
  border: 1px solid #5B4629;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 14px;
  cursor: pointer;
  box-shadow:
    0 3px 10px rgba(52, 38, 20, 0.28),
    inset 0 1px 0 rgba(255, 232, 180, 0.22);
  transition: all 0.18s ease;
}

.btn-dark-pill:hover {
  filter: brightness(1.1);
  color: #FFF6DC;
}

.btn-soft-pill {
  background: var(--bg-pill);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 13px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-soft-pill:hover {
  color: var(--text-heading);
  border-color: var(--gold-primary);
}

.input-3d-recessed {
  width: 100%;
  background: var(--bg-recessed);
  border: 1px solid #E3DDD0;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
  color: var(--text-primary);
  box-shadow: var(--shadow-recessed);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

html[data-theme="dark"] .input-3d-recessed {
  border-color: rgba(212, 175, 55, 0.22);
}

.input-3d-recessed:focus {
  outline: none;
  background: var(--bg-card);
  border-color: var(--gold-primary);
  box-shadow:
    inset 1px 2px 4px rgba(184, 134, 11, 0.1),
    0 0 0 3px rgba(212, 175, 55, 0.18);
}

/* ==========================================================================
   Dashboard Page Specific Grid & Widgets (Matches Reference Image)
   ========================================================================== */

.dashboard-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.dashboard-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 338px;
  gap: 18px;
  align-items: start;
}

.dashboard-left-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.dashboard-right-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.hero-greeting-row {
  padding-top: 4px;
  padding-bottom: 4px;
}

.hero-greeting-title {
  font-family: var(--font-sans);
  font-size: 25px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 3px;
  letter-spacing: -0.02em;
}

.hero-greeting-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* Top 3 Stats Cards */
.stats-3-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* 5 Income Stream Cards Grid */
.income-5-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.income-stream-card {
  padding: 14px 14px 13px;
}

.income-stream-card .stat-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.income-stream-card .stat-mini-title {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
}

.income-stream-val {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin: 4px 0 6px;
}

/* Business & Team Stats 2-Column Grid */
.business-team-2-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stat-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-split-box {
  background: var(--bg-recessed);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  padding: 12px 14px;
  box-shadow: var(--shadow-recessed);
}

.stat-split-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.stat-split-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.member-pill-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.member-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}

.member-status-pill.active-pill {
  background: #DCF6E8;
  color: #16854B;
}

.member-status-pill.inactive-pill {
  background: #EFECE5;
  color: #6E685C;
}

html[data-theme="dark"] .member-status-pill.inactive-pill {
  background: #2A261F;
  color: #B4AEA2;
}

.stat-mini-card {
  padding: 15px 16px 14px;
}

.stat-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.stat-mini-label-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #FAF3DF 0%, #EFE1B8 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #6B4D12;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(184, 134, 11, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-theme="dark"] .stat-icon-box {
  background: linear-gradient(145deg, #2B2416 0%, #1F1A10 100%);
  color: #E7C96F;
}

.stat-mini-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.stat-value-lg {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.stat-mini-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
}

.trend-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.trend-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.trend-pill.up {
  background: #DCF6E8;
  color: #16854B;
}

.trend-pill.down {
  background: #FDE4E4;
  color: #C93A3A;
}

.trend-note {
  font-size: 10.5px;
  color: var(--text-muted);
}

.sparkline-svg {
  width: 66px;
  height: 28px;
  flex-shrink: 0;
}

/* Middle 2-Column Analytics Row */
.analytics-2-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.card-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dots-menu-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}

.dots-menu-btn:hover {
  background: var(--bg-pill);
  color: var(--text-heading);
}

/* Income Breakdown Donut */
.expense-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.donut-wrap {
  position: relative;
  width: 184px;
  height: 184px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(184, 134, 11, 0.14));
}

.donut-center {
  position: absolute;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #F8F5EC 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow:
    0 4px 12px rgba(25, 20, 10, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.95);
  pointer-events: none;
}

html[data-theme="dark"] .donut-center {
  background: radial-gradient(circle at 35% 30%, #24211C 0%, #181612 100%);
  border-color: rgba(212, 175, 55, 0.26);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.06);
}

.donut-total-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.15;
  max-width: 100%;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.donut-total-val.compact-lg {
  font-size: 13.5px;
}

.donut-total-val.compact-xl {
  font-size: 11.5px;
}

.donut-total-sub {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-top: 3px;
}

.expense-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.expense-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.expense-legend-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  min-width: 0;
}

.legend-swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex-shrink: 0;
}

.expense-legend-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.expense-amt {
  font-weight: 600;
  color: var(--text-heading);
}

.expense-pct {
  color: var(--text-muted);
  width: 30px;
  text-align: right;
  font-size: 11.5px;
}

/* Saving Goal Semi-Circle Gauge */
.gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.gauge-svg {
  width: 218px;
  height: 122px;
  overflow: visible;
}

.gauge-center-text {
  margin-top: -46px;
  text-align: center;
  margin-bottom: 14px;
}

.gauge-pct {
  font-size: 27px;
  font-weight: 700;
  color: #6B5322;
  line-height: 1.1;
}

html[data-theme="dark"] .gauge-pct {
  color: #E8CA76;
}

.gauge-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.goal-targets-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  padding: 4px 12px 12px;
}

.goal-metric {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.goal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 5px;
}

.goal-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
}

.goal-label {
  font-size: 11px;
  color: var(--text-secondary);
}

.quote-box {
  background: var(--bg-recessed);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-style: italic;
  color: var(--text-secondary);
  box-shadow: var(--shadow-recessed);
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1;
  color: var(--gold-mid);
  font-style: normal;
  flex-shrink: 0;
}

/* Cashflow Area Chart */
.cashflow-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cashflow-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}

.legend-line-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-line {
  width: 12px;
  height: 2.5px;
  border-radius: 2px;
  display: inline-block;
}

.cashflow-toggle-group {
  display: inline-flex;
  background: var(--bg-pill);
  padding: 3px;
  border-radius: 999px;
  gap: 3px;
}

.cashflow-toggle-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cashflow-toggle-btn.active {
  background: linear-gradient(180deg, #4B3A21 0%, #312412 100%);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(49, 36, 18, 0.28);
}

.cashflow-chart-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.cashflow-svg {
  width: 100%;
  height: auto;
  display: block;
}

.cashflow-svg.hidden-layer {
  display: none;
}

.cashflow-point-hit {
  cursor: pointer;
}

.cashflow-tooltip-box {
  position: absolute;
  top: 28%;
  left: 51%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 9px 13px;
  box-shadow:
    0 8px 24px rgba(25, 20, 10, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 11.5px;
  pointer-events: none;
  z-index: 4;
  min-width: 132px;
  transition: left 0.16s ease, top 0.16s ease;
}

.tooltip-date {
  color: var(--text-secondary);
  font-size: 11px;
  margin-bottom: 4px;
}

.tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.tooltip-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
}

.tooltip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.tooltip-val {
  font-weight: 700;
  color: var(--text-heading);
}

/* Recent Transactions Table */
.aurex-table-wrap {
  overflow-x: auto;
}

.aurex-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}

.aurex-table thead th {
  background: var(--bg-recessed);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 11.5px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.aurex-table thead th:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.aurex-table thead th:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.aurex-table tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(25, 20, 10, 0.05);
  vertical-align: middle;
}

html[data-theme="dark"] .aurex-table tbody td {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.aurex-table tbody tr:last-child td {
  border-bottom: none;
}

.aurex-table tbody tr:hover td {
  background: rgba(212, 175, 55, 0.04);
}

.tx-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #FFF2F0;
  color: #E04B3A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tx-icon-badge.income {
  background: #FFF4E8;
  color: #D96B27;
}

.tx-name {
  font-weight: 600;
  color: var(--text-heading);
}

.tx-date-main {
  font-weight: 500;
  color: var(--text-heading);
  display: block;
}

.tx-date-time {
  font-size: 11px;
  color: var(--text-muted);
}

.tx-amt-neg {
  font-weight: 700;
  color: #D9483B;
}

.tx-amt-pos {
  font-weight: 700;
  color: #1A9E66;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
}

.status-completed {
  background: #DCF6E8;
  color: #16854B;
}

.status-received {
  background: #DCEFFD;
  color: #2673B8;
}

.status-pending {
  background: #FFF2D6;
  color: #B57A10;
}

.status-inactive {
  background: #F1ECE4;
  color: #7D7568;
}

/* ==========================================================================
   Right Column Widgets (3D Visa Card, Total Balance, Quick Tx, Upcoming, Activity)
   ========================================================================== */

.card-3d-stage {
  perspective: 1100px;
}

.platinum-card-3d {
  position: relative;
  border-radius: 18px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #16130E 0%, #0A0907 58%, #1C160C 100%);
  color: #FFFFFF;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.32);
  box-shadow:
    0 18px 34px -8px rgba(14, 11, 5, 0.45),
    0 6px 14px rgba(184, 134, 11, 0.16),
    inset 0 1px 1px rgba(255, 232, 168, 0.35);
  transform: rotateY(-3deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.card-3d-stage:hover .platinum-card-3d {
  transform: rotateY(3deg) rotateX(4deg) translateY(-4px);
  box-shadow:
    0 26px 42px -8px rgba(14, 11, 5, 0.55),
    0 10px 22px rgba(212, 175, 55, 0.25),
    inset 0 1px 1px rgba(255, 232, 168, 0.5);
}

.platinum-card-globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.46;
  mix-blend-mode: screen;
  pointer-events: none;
}

.platinum-card-sheen {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(9, 8, 6, 0.72) 0%, rgba(11, 9, 7, 0.48) 54%, rgba(8, 7, 5, 0.72) 100%),
    linear-gradient(125deg, rgba(255, 240, 190, 0.1) 0%, transparent 45%);
  pointer-events: none;
}

.platinum-card-inner {
  position: relative;
  z-index: 2;
}

.card-brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(6px);
}

.card-status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.card-status-badge.is-active {
  background: rgba(10, 32, 20, 0.86);
  color: #8FF7BE;
  border: 1px solid rgba(92, 230, 148, 0.55);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.card-status-badge.is-active::before {
  background: #4CF096;
  box-shadow: 0 0 8px #4CF096;
}

.card-status-badge.is-inactive {
  background: rgba(42, 12, 12, 0.88);
  color: #FFB0B0;
  border: 1px solid rgba(235, 87, 87, 0.55);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.card-status-badge.is-inactive::before {
  background: #FF6B6B;
  box-shadow: 0 0 8px #FF6B6B;
}

.card-brand-mini-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: linear-gradient(180deg, #F6E2A2, #D4AF37);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  display: block;
}

.card-brand-mini-sub {
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: #E0C98D;
  text-transform: uppercase;
  display: block;
}

.card-main-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.card-balance-val {
  font-size: 25px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.card-balance-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: #E3D3AE;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.card-holder-block {
  text-align: right;
}

.card-holder-name {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.card-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(9, 8, 6, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  margin-bottom: 12px;
}

.card-meta-label {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #DFC788;
  line-height: 1.2;
}

.card-meta-val {
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  margin-top: 2px;
  white-space: nowrap;
}

.card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-number-mask {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #F6F1E6;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.visa-gold-logo {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #FFF1BA 0%, #D9AD3E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9));
}

/* Total Balance Widget */
.total-bal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.total-bal-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.progress-row-3d {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.progress-track-3d {
  flex: 1;
  height: 13px;
  background: #ECEAE4;
  border-radius: 999px;
  padding: 2px;
  box-shadow: inset 1px 2px 4px rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .progress-track-3d {
  background: #2A2721;
}

.progress-fill-gold {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #E8CA79 0%, #B7871F 100%);
  box-shadow: 0 1px 4px rgba(184, 134, 11, 0.45);
}

.used-remaining-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* Quick Transactions */
.quick-avatars-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
}

.quick-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  border-radius: 10px;
  transition: transform 0.16s ease, background-color 0.16s ease;
  flex-shrink: 0;
}

.quick-person:hover {
  transform: translateY(-2px);
  background: rgba(212, 175, 55, 0.08);
}

.quick-avatar-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #F0E6CA;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.quick-person-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Upcoming Payments */
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.upcoming-mini-card {
  background: var(--bg-recessed);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(25, 20, 10, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.upcoming-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(184, 134, 11, 0.14);
}

.upcoming-app-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  font-weight: 800;
  font-size: 14px;
}

.upcoming-name {
  font-size: 10.5px;
  color: var(--text-secondary);
  line-height: 1.25;
  min-height: 26px;
  display: flex;
  align-items: center;
}

.upcoming-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 3px;
}

.upcoming-date {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Recent Activity */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.activity-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-icon-circle.green { background: #DCF6E8; color: #16854B; }
.activity-icon-circle.gold { background: #FBF1D7; color: #A67919; }
.activity-icon-circle.red { background: #FDE7E7; color: #C93A3A; }
.activity-icon-circle.amber { background: #FFF2D6; color: #C27E12; }

.activity-text {
  font-size: 11.5px;
  line-height: 1.38;
  color: var(--text-primary);
}

.activity-time {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   3D Mobile App-Style Floating Footer Navigation
   ========================================================================== */

.mobile-footer-nav {
  display: none;
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 440px;
  height: 64px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 14px 36px rgba(18, 14, 6, 0.22),
    0 4px 12px rgba(184, 134, 11, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.95);
  z-index: 1035;
  align-items: center;
  justify-content: space-around;
}

html[data-theme="dark"] .mobile-footer-nav {
  background: rgba(26, 24, 20, 0.86);
  border-color: rgba(212, 175, 55, 0.28);
}

.footer-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  width: 56px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-nav-item svg {
  width: 20px;
  height: 20px;
}

.footer-nav-item.active {
  color: var(--gold-dark);
  transform: translateY(-4px);
  filter: drop-shadow(0 3px 8px rgba(212, 175, 55, 0.48));
}

html[data-theme="dark"] .footer-nav-item.active {
  color: var(--gold-light);
}

.footer-scan-btn {
  width: 60px;
  height: 60px;
  margin-top: -32px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(155deg, #F5DC8E 0%, #D4AF37 52%, #9D6F0D 100%);
  color: #1A1406;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 12px 24px rgba(184, 134, 11, 0.48),
    0 4px 8px rgba(0, 0, 0, 0.22),
    inset 0 2px 4px rgba(255, 252, 235, 0.9),
    inset 0 -3px 6px rgba(120, 82, 4, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.footer-scan-btn:hover {
  transform: translateY(-2px) scale(1.04);
}

.footer-scan-btn:active {
  transform: translateY(1px) scale(0.98);
}

/* ==========================================================================
   Subpages Shared Components (Profile, Deposit, Withdraw, Form, Referrals, Invite, Reports)
   ========================================================================== */

.page-hero-banner {
  margin-bottom: 20px;
}

.page-title-serif {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 4px;
}

.recessed-info-box {
  background: var(--bg-recessed);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  padding: 12px 15px;
  box-shadow: var(--shadow-recessed);
}

.recessed-info-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.recessed-info-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
}

.method-toggle-card {
  background: var(--bg-recessed);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  box-shadow:
    0 3px 8px rgba(25, 20, 10, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: all 0.2s ease;
}

.method-toggle-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.45);
}

.method-toggle-card.active {
  background: linear-gradient(180deg, #FFFDF7 0%, #FAF0D4 100%);
  border-color: var(--gold-primary);
  box-shadow:
    0 8px 18px rgba(184, 134, 11, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-theme="dark"] .method-toggle-card.active {
  background: linear-gradient(180deg, #2C2516 0%, #211C10 100%);
}

.pin-box-row {
  display: flex;
  gap: 10px;
}

.pin-digit-input {
  width: 48px;
  height: 52px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border-radius: 12px;
}

.dropzone-3d {
  background: var(--bg-recessed);
  border: 2px dashed rgba(184, 134, 11, 0.48);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-recessed);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dropzone-3d:hover,
.dropzone-3d.dragover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
}

.alert-success-3d {
  background: linear-gradient(180deg, #F1FBF5 0%, #E3F6EB 100%);
  border: 1.5px solid #2AA866;
  border-left: 5px solid #1C874F;
  color: #145D36;
  border-radius: 14px;
  padding: 13px 16px;
  box-shadow: 0 6px 16px rgba(28, 135, 79, 0.12);
}

.referral-code-box {
  background: var(--bg-recessed);
  border: 2px dashed var(--gold-primary);
  border-radius: 14px;
  padding: 16px 20px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
  box-shadow: var(--shadow-recessed);
}

.social-btn-3d {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.22),
    inset 0 2px 3px rgba(255, 255, 255, 0.38),
    inset 0 -3px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.social-btn-3d:hover {
  transform: translateY(-3px);
  color: #FFFFFF;
}

.social-fb { background: linear-gradient(180deg, #2D88FF, #1463CC); }
.social-x { background: linear-gradient(180deg, #2C2F33, #0F1012); }
.social-wa { background: linear-gradient(180deg, #35D975, #189D4B); }
.social-mail { background: linear-gradient(180deg, #E8C974, #B8860B); color: #1A1406; }

/* ==========================================================================
   Auth Pages (Login & Register)
   ========================================================================== */

.auth-page-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(184, 134, 11, 0.18) 0%, transparent 48%),
    linear-gradient(145deg, #090807 0%, #15120D 52%, #0C0A08 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  position: relative;
  overflow-x: hidden;
}

.auth-particles-svg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

.auth-card-3d {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: rgba(24, 21, 16, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 22px;
  padding: 32px 28px;
  color: #F4EFE4;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 36px rgba(212, 175, 55, 0.12),
    inset 0 1px 0 rgba(255, 232, 170, 0.25);
}

.auth-card-3d.auth-card-wide {
  max-width: 680px;
}

.auth-card-3d .input-3d-recessed {
  background: #110F0C;
  border-color: rgba(212, 175, 55, 0.24);
  color: #FAF6EC;
  box-shadow: inset 2px 3px 7px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-card-3d .input-3d-recessed::placeholder {
  color: #7D7669;
}

.auth-card-3d .input-3d-recessed:focus {
  background: #171410;
  border-color: var(--gold-primary);
}

/* ==========================================================================
   Sidebar Backdrop & Responsive Breakpoints
   ========================================================================== */

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 7, 5, 0.55);
  backdrop-filter: blur(3px);
  z-index: 1038;
}

.sidebar-backdrop.show {
  display: block;
}

@media (max-width: 1420px) {
  .income-5-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .expense-body {
    flex-direction: column;
    align-items: stretch;
  }
  .donut-wrap {
    margin: 0 auto;
  }
}

@media (max-width: 1279.98px) {
  .dashboard-top-grid {
    grid-template-columns: minmax(0, 1fr) 305px;
  }
}

@media (max-width: 1100px) {
  .dashboard-hero-row {
    grid-template-columns: 1fr;
  }
  .dashboard-top-grid {
    grid-template-columns: 1fr;
  }
  .analytics-2-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet: Sidebar collapses to icon rail or drawer, mobile footer nav activates */
@media (max-width: 991.98px) {
  .aurex-sidebar {
    transform: translateX(-100%);
  }
  .aurex-sidebar.open {
    transform: translateX(0);
  }
  .main-workspace {
    margin-left: 0;
    padding: 14px 16px 96px;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .mobile-footer-nav {
    display: flex;
  }
  .stats-3-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .income-5-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .business-team-2-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639.98px) {
  .stats-3-grid {
    grid-template-columns: 1fr;
  }
  .income-5-grid {
    grid-template-columns: 1fr;
  }
  .stat-split-grid {
    grid-template-columns: 1fr;
  }
  .card-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card-holder-block {
    text-align: left;
  }
  .upcoming-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .user-profile-meta {
    display: none;
  }
  .hero-greeting-title {
    font-size: 21px;
  }
  .header-right-group {
    gap: 6px;
  }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
