/* ==========================================================================
   CT3-Tax - High Performance Web3 Tax Suite Stylesheet
   CI/CD design inspired by https://ct-3.io/
   ========================================================================== */

:root {
  /* CT-3 Official Color Tokens */
  --primary-color: #AAFF00;         /* Neon lime green */
  --primary-hover: #c8ff00;         /* Slightly brighter lime */
  --primary-dim: rgba(170, 255, 0, 0.15);
  --primary-glow: rgba(170, 255, 0, 0.35);

  --secondary-color: #636564;       /* Slate smoke */
  --accent-color: #A2AAA4;          /* Soft metallic green-grey */

  --panel-bg: #545655;              /* Dominant opaque panel */
  --panel-card: #484948;            /* Darker card container */
  --panel-inner: #383938;           /* Nested darker sub-panel */
  --panel-light: #7e8280;           /* Brighter opaque panel */
  --panel-lighter: #959a97;
  --panel-darkest: #1a1b1a;         /* Deep container */

  --text-white: #ffffff;
  --text-soft: #f8f8f8;
  --text-muted: #cfcfcf;
  --text-dim: #9ca3af;
  --text-dark: #121312;

  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-active: rgba(170, 255, 0, 0.4);

  /* Signature CT-3 Border Radiuses */
  --radius-hero: 40px;
  --radius-sidebar: 31.28px;
  --radius-card: 28px;
  --radius-pill: 28.34px;
  --radius-round: 50px;
  --radius-row: 18.68px;
  --radius-input: 16px;
  --radius-sm: 10px;

  /* Elevation */
  --shadow-card: 0 14px 34px rgba(0, 0, 0, 0.28);
  --shadow-card-hover: 0 18px 40px rgba(0, 0, 0, 0.36), 0 0 18px rgba(170, 255, 0, 0.16);
  --shadow-btn: 0 4px 14px rgba(170, 255, 0, 0.25);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  min-height: 100vh;
  background: linear-gradient(174.18deg, var(--secondary-color) 3.85%, var(--accent-color) 219.19%);
  background-attachment: fixed;
  color: var(--text-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom Scrollbars */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}
*::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-color);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-soft);
  margin-bottom: 0.85rem;
}

p.muted {
  color: var(--text-muted);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  color: var(--primary-hover);
}

/* Clickable Green Marker Rule: Every clickable link or element embraces green */
a i, button i, .btn i, .clickable-card i, .nav-item i {
  color: var(--primary-color);
  transition: var(--transition-fast);
}

/* ==========================================================================
   Layout Architecture
   ========================================================================== */

.app-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Desktop Sidebar */
.sidebar {
  background: #666867;
  width: 250px;
  margin: 32px 0 32px 32px;
  padding: 32px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-sidebar);
  height: calc(100vh - 64px);
  position: sticky;
  top: 32px;
  box-shadow: var(--shadow-card);
  z-index: 100;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.sidebar-brand img {
  height: 38px;
  width: auto;
}

.sidebar-brand .brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-brand .brand-title .badge-tax {
  background: var(--primary-color);
  color: var(--text-dark);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 1px;
}

.sidebar nav {
  flex: 1;
  overflow-y: auto;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-menu li {
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-row);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  background: transparent;
}

.sidebar-menu a .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--panel-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: var(--transition-smooth);
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Hover: Slowly fade brighter */
.sidebar-menu li:hover a {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
}

.sidebar-menu li:hover .icon {
  transform: scale(1.15);
  background: var(--panel-inner);
}

/* Active Nav State */
.sidebar-menu li.active a {
  background: var(--panel-card);
  color: var(--text-white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.sidebar-menu li.active .icon {
  background: var(--primary-color);
  color: var(--text-dark);
}
.sidebar-menu li.active .icon i {
  color: var(--text-dark);
}

.sidebar-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-user-card {
  background: var(--panel-card);
  border-radius: var(--radius-row);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-smooth);
}
.sidebar-user-card:hover {
  background: rgba(255, 255, 255, 0.16);
}

.sidebar-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.sidebar-user-meta {
  flex: 1;
  overflow: hidden;
}
.sidebar-user-meta .name {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-meta .status {
  font-size: 0.72rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* Main Content Area */
.main-content {
  flex: 1;
  padding: 32px 40px 60px;
  max-width: 1380px;
  margin: 0 auto;
  width: 100%;
}

/* Header Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding: 14px 24px;
  background: rgba(84, 86, 85, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
}
.mobile-brand img {
  height: 32px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Mobile Bottom Navigation Bar (CT-3 signature) */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #5b5b5b;
  border-radius: 21.55px 21.55px 0 0;
  padding: 8px 16px 12px;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 12px;
  transition: var(--transition-fast);
  text-decoration: none;
}

.bottom-nav .nav-item .nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #484948;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cfcfcf;
  transition: var(--transition-fast);
}

.bottom-nav .nav-item .nav-label {
  font-weight: 600;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

.bottom-nav .nav-item:hover .nav-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.bottom-nav .nav-item.active .nav-icon {
  background: var(--primary-color);
  color: var(--text-dark);
}
.bottom-nav .nav-item.active .nav-icon i {
  color: var(--text-dark);
}
.bottom-nav .nav-item.active .nav-label {
  color: #ffffff;
  font-weight: 700;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */

.btn, button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  padding: 14px 28px;
  transition: transform 0.22s ease, background 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

/* Green Default Button - Slightly increases size on hover */
.btn-primary, .btn-green {
  background: var(--primary-color);
  color: #000000;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover, .btn-green:hover {
  background: var(--primary-hover);
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(170, 255, 0, 0.4);
  color: #000000;
}
.btn-primary:active, .btn-green:active {
  transform: scale(0.98);
}
.btn-primary i, .btn-green i {
  color: #000000;
}

/* Secondary Button - Dark Opaque */
.btn-secondary {
  background: #484948;
  color: #ffffff;
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  background: #5b5b5b;
  transform: scale(1.02);
  color: #ffffff;
}
.btn-secondary i {
  color: var(--primary-color);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid var(--primary-color);
}
.btn-outline:hover {
  background: rgba(170, 255, 0, 0.12);
  transform: scale(1.03);
  color: #ffffff;
}
.btn-outline i {
  color: var(--primary-color);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.15rem;
  border-radius: var(--radius-pill);
}

.btn:disabled, .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   Panels, Cards & Insets
   ========================================================================== */

/* Outer Panel (Dark Opaque) */
.panel {
  background: var(--panel-bg);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.panel-hero {
  border-radius: var(--radius-hero);
  padding: 44px 48px;
  background: linear-gradient(145deg, #545655 0%, #484948 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Clickable Panels: Slowly fade brighter */
.clickable-panel, .card-interactive {
  cursor: pointer;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.2s ease;
  position: relative;
}

.clickable-panel:hover, .card-interactive:hover {
  background: #666867;
  border-color: var(--border-active);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* Inner Panels: Darker or Brighter nested panels */
.panel-inner {
  background: var(--panel-inner);
  border-radius: var(--radius-row);
  padding: 20px 24px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.panel-inner-bright {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-row);
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.panel-inset-light {
  background: #d9d9d9;
  color: #171717;
  border-radius: var(--radius-row);
  padding: 16px 20px;
}
.panel-inset-light p, .panel-inset-light span, .panel-inset-light strong {
  color: #171717;
}

/* Grid System */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Stat & KPI Cards */
.stat-card {
  background: var(--panel-card);
  border-radius: var(--radius-card);
  padding: 24px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: var(--transition-smooth);
}
.stat-card:hover {
  background: #585a59;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(170, 255, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1rem;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
  letter-spacing: -1px;
}

.stat-footer {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Investment & Contract Cards (Faithful CT-3 signature style) */
.investment-card {
  background-color: #545655;
  border-radius: var(--radius-hero);
  padding: 32px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}
.investment-card:hover {
  background-color: #5d5f5e;
  border-color: var(--border-active);
}

.investment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.investment-header .card-tag {
  background: rgba(170, 255, 0, 0.2);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.investment-row {
  display: flex;
  align-items: center;
  border-radius: var(--radius-row);
  overflow: hidden;
  color: #000;
  background-color: #666867;
  justify-content: space-between;
  min-height: 54px;
  padding: 4px;
}

.investment-row .investment-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  padding: 12px 20px;
  background-color: #d9d9d9;
  border-radius: calc(var(--radius-row) - 4px);
  justify-content: space-between;
  flex: 1;
  font-weight: 700;
  color: #1a1a1a;
}

/* Badges & Pills */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.pill-badge-green {
  background: rgba(170, 255, 0, 0.18);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.pill-badge-dark {
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pill-badge-warning {
  background: rgba(255, 81, 0, 0.2);
  color: #ff8533;
  border: 1px solid #ff8533;
}

/* ==========================================================================
   Form Controls & Insets
   ========================================================================== */

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-control, input, select, textarea {
  width: 100%;
  background: rgba(20, 22, 21, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-input);
  padding: 14px 18px;
  color: var(--text-white);
  font-family: var(--font-family);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 12px rgba(170, 255, 0, 0.25);
  background: rgba(15, 17, 16, 0.85);
}

input::placeholder, select::placeholder, textarea::placeholder {
  color: var(--text-dim);
}

select option {
  background: #353736;
  color: #ffffff;
}

/* ==========================================================================
   Tables & Data Presentation
   ========================================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-row);
}

.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  text-align: left;
}

.custom-table th {
  padding: 12px 18px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
}

.custom-table tbody tr {
  background: var(--panel-inner);
  border-radius: var(--radius-row);
  transition: var(--transition-smooth);
}

.custom-table tbody tr:hover {
  background: #484a49;
  cursor: pointer;
}

.custom-table td {
  padding: 16px 18px;
  color: var(--text-white);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-table td:first-child {
  border-top-left-radius: var(--radius-row);
  border-bottom-left-radius: var(--radius-row);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-table td:last-child {
  border-top-right-radius: var(--radius-row);
  border-bottom-right-radius: var(--radius-row);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Dropzone (Large File Upload Area like PolarTax)
   ========================================================================== */
.dropzone {
  border: 2px dashed rgba(170, 255, 0, 0.4);
  border-radius: var(--radius-card);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  background: rgba(20, 22, 21, 0.45);
  transition: var(--transition-smooth);
  position: relative;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary-color);
  background: rgba(170, 255, 0, 0.08);
  box-shadow: 0 0 20px rgba(170, 255, 0, 0.15);
}

.dropzone-icon {
  font-size: 3rem;
  margin-bottom: 14px;
  color: var(--primary-color);
  transition: var(--transition-fast);
}

.dropzone:hover .dropzone-icon {
  transform: scale(1.12);
}

/* ==========================================================================
   Option Cards (Option A vs Option B Valuation Selector)
   ========================================================================== */
.option-card {
  background: var(--panel-card);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-card:hover {
  background: #5a5c5b;
  border-color: rgba(170, 255, 0, 0.4);
}

.option-card.selected {
  border-color: var(--primary-color);
  background: rgba(84, 86, 85, 0.95);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3), 0 0 16px rgba(170, 255, 0, 0.2);
}

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

.option-card .option-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.option-card.selected .option-radio {
  border-color: var(--primary-color);
  background: var(--primary-color);
}

.option-card.selected .option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000;
}

.dataset-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Tabs & View Management
   ========================================================================== */

.app-view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.app-view.active {
  display: block;
}

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

.tab-nav {
  display: flex;
  gap: 12px;
  background: var(--panel-inner);
  padding: 6px;
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-bottom: 24px;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-white);
}

.tab-btn.active {
  background: var(--primary-color);
  color: #000000;
}
.tab-btn.active i {
  color: #000000;
}

/* ==========================================================================
   Hero & Landing Specifics
   ========================================================================== */

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-active);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-soft);
  max-width: 820px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 40px;
}

/* Role / Notice Callout Box */
.callout-box {
  background: rgba(20, 22, 21, 0.7);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 var(--radius-row) var(--radius-row) 0;
  padding: 18px 24px;
  margin-top: 24px;
}

.callout-box h5 {
  color: var(--primary-color);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Feature Grid Cards */
.feature-card {
  background: var(--panel-card);
  border-radius: var(--radius-card);
  padding: 28px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition-smooth);
}
.feature-card:hover {
  background: #5a5c5b;
  border-color: var(--border-active);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(170, 255, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.4rem;
}

/* Coin Pills */
.coin-pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-inner);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-white);
  transition: var(--transition-fast);
}
.coin-pill:hover {
  background: #505251;
  border-color: var(--primary-color);
  transform: scale(1.05);
}
.coin-pill i {
  color: var(--primary-color);
}

/* Toasts */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #2a2c2b;
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--primary-color);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: linear-gradient(174.18deg, #545655 0%, #3e403f 100%);
  border-radius: var(--radius-hero);
  padding: 40px;
  width: 100%;
  max-width: 540px;
  border: 1px solid var(--border-active);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.modal-close:hover {
  background: var(--primary-color);
  color: #000;
}

/* ==========================================================================
   Responsive Adaptations (Mobile-first collapsing)
   ========================================================================== */

@media (max-width: 1080px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  /* Collapse to single column layout */
  .sidebar {
    display: none; /* Desktop sidebar hidden, bottom-nav active */
  }

  .main-content {
    padding: 20px 16px 100px; /* Extra bottom padding for bottom-nav */
  }

  .bottom-nav {
    display: flex;
  }

  .mobile-brand {
    display: flex;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .panel {
    padding: 22px 18px;
    border-radius: var(--radius-card);
  }

  .panel-hero {
    padding: 28px 20px;
    border-radius: 30px;
  }

  .investment-card {
    border-radius: 30px;
    padding: 22px 18px;
  }

  .btn-lg {
    padding: 14px 26px;
    font-size: 1rem;
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

