/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html,
body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
}

body {
  background: #0e2a23;
  color: white;
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

body.index-page .hero.index-main-section {
  display: flex;
  flex-direction: column;
}

body.index-page .navbar {
  flex: 0 0 auto;
}

body.index-page .hero-container {
  flex: 0 0 auto;
  min-height: 0;
  overflow: hidden;
  padding-top: 40px;
  padding-bottom: 20px;
}

body.index-page .index-about-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 20px 20px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1280px;
  width: 100%;
  box-sizing: border-box;
}

/* Reduce sizes on index page to fit all content */
body.index-page .hero-title {
  font-size: 48px;
  margin-bottom: 15px;
}

body.index-page .hero-text p {
  font-size: 15px;
  margin-top: 15px;
}

body.index-page .hero-image img {
  max-width: 350px;
}

body.index-page .about-us-heading {
  font-size: 38px;
  margin-bottom: 10px;
}

body.index-page .about-us-main-title {
  font-size: 32px;
  margin-bottom: 8px;
}

body.index-page .about-us-sub-title {
  font-size: 26px;
  margin-bottom: 12px;
}

body.index-page .about-us-description {
  margin-top: 10px;
}

body.index-page .about-us-description p {
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.5;
}

body.index-page .about-visual-wrapper {
  height: auto;
  min-height: 320px;
  max-height: 400px;
}

section {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Agent (Customer) Page */
.agent-section {
  min-height: 100vh;
  padding: 40px;
  background: linear-gradient(135deg, #12342c 0%, #0c221c 100%);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.agent-container {
  width: 100%;
  max-width: 960px;
  margin: 40px auto 0;
}

.agent-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.refresh-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
}

.agent-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
}

.agent-user-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Summary card */
.agent-summary-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 20px 24px;
  margin-bottom: 24px;
}

.agent-summary-header {
  display: flex;
  justify-content: flex-end;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.agent-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.agent-metric {
  text-align: center;
}

.agent-metric-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.agent-metric-value {
  font-size: 20px;
  font-weight: 700;
  color: #5ee99c;
}

/* Get statement button */
.agent-actions {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.agent-statement-btn {
  min-width: 260px;
  padding: 14px 24px;
  font-size: 16px;
}

/* Statement list */
.agent-statement-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 20px 20px;
  width: 100%;
  margin: 0 auto;
}

.agent-statement-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.agent-statement-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agent-statement-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.agent-statement-row:last-child {
  border-bottom: none;
}

.agent-statement-text {
  max-width: 70%;
}

.agent-statement-date {
  color: rgba(255, 255, 255, 0.6);
}

/* Statement Table Styles */
.statement-table-container {
  overflow-x: auto;
  margin-top: 0;
  width: 100%;
}

.statement-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  margin: 0 auto;
}

.statement-table thead {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
}

.statement-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.statement-table th.text-right {
  text-align: right;
}

.statement-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease;
}

.statement-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

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

.statement-table td {
  padding: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  vertical-align: middle;
}

.statement-date {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  white-space: nowrap;
}

.statement-type {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.statement-type.type-regular {
  background: rgba(94, 233, 156, 0.15);
  color: #5ee99c;
  border: 1px solid rgba(94, 233, 156, 0.3);
}

.statement-type.type-commission {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.statement-description {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.statement-amount {
  color: #5ee99c;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.statement-table .text-right {
  text-align: right;
}

/* Responsive table */
@media (max-width: 768px) {
  .statement-table-container {
    overflow-x: scroll;
  }

  .statement-table {
    min-width: 600px;
  }

  .statement-table th,
  .statement-table td {
    padding: 12px 10px;
    font-size: 13px;
  }

  .statement-type {
    font-size: 10px;
    padding: 3px 8px;
  }
}

/* Responsive - Agent Section */
@media (max-width: 768px) {
  .agent-section {
    padding: 20px;
  }

  .agent-container {
    margin-top: 24px;
    max-width: 100%;
  }

  .agent-metrics-row {
    grid-template-columns: 1fr;
  }

  .agent-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .agent-title {
    font-size: 24px;
  }
}


/* Make header match dashboard */
.navbar {
  background-color: #082a24;
  /* Same green color */
  padding: 20px 0;
}

/* HERO BACKGROUND */
.hero {
  position: relative;
  width: 100%;
  max-width: 100vw;
  padding-bottom: 0px;
  background: linear-gradient(135deg, #12342c 0%, #0c221c 100%);
  overflow-x: hidden;
  box-sizing: border-box;
}

.nav-container {
  max-width: 1280px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.logo {
  font-size: 26px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links>* {
  margin-left: 26px;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  transition: 0.3s;
}

.nav-links a:hover {
  color: white;
}

/* Standardized Button Styles */
.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 18px;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.btn-outline:focus {
  outline: 2px solid #5ee99c;
  outline-offset: 2px;
}

.btn-filled {
  background: #5ee99c;
  color: #0f2c1f;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
}

/* HERO CONTENT LAYOUT */
.hero-container {
  max-width: 1280px;
  margin: auto;
  padding: 40px 20px 60px 20px;
  padding-top: 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.hero-image img {
  width: 100%;
  max-width: 430px;
  filter: drop-shadow(0px 12px 30px rgba(0, 0, 0, 0.4));
}

.hero-title {
  font-family: "Inter", sans-serif;
  font-size: 58px;
  /* exact Figma look */
  font-weight: 800;
  /* bold like screenshot */
  line-height: 1.12;
  /* matches tight spacing */
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  /* Figma style compression */
}

.hero-title .green {
  color: #78D9A0;
  /* exact green from screenshot */
  font-weight: 800;
}

.hero-text p {
  margin-top: 16px;
  font-size: 16px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  line-height: 1.6;
}

.hero-buttons {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* PRIMARY BUTTON */
.btn-primary {
  background: #5ee99c;
  color: #0f2c1f;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #4cd987;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(94, 233, 156, 0.3);
}

.btn-primary:focus {
  outline: 2px solid #5ee99c;
  outline-offset: 2px;
}

/* ABOUT US SECTION */
.about-us-section {
  background: #0e2a23;
  padding: 60px 20px;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
  position: relative;
}

.about-us-wrapper {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}

.about-us-content-left {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.about-us-heading {
  font-size: 48px;
  font-weight: 800;
  margin: 0 0 20px 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.green-text {
  color: #78D9A0;
}

.about-us-main-title {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.about-us-sub-title {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 32px 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.about-us-description {
  margin-top: 24px;
}

.about-us-description p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin: 0 0 20px 0;
  font-weight: 400;
  max-width: 100%;
  word-wrap: break-word;
}

.about-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 500px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

.phone-visual {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.phone-body {
  width: 180px;
  height: 320px;
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.phone-display {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.chart-area {
  flex: 1;
  background: linear-gradient(to top,
      rgba(255, 0, 0, 0.3) 0%,
      rgba(0, 0, 255, 0.3) 50%,
      rgba(255, 0, 0, 0.3) 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.chart-area::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, #FFD700 50%, transparent 100%);
  opacity: 0.6;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.sell-action {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  background: #FF4444;
  color: white;
}

.buy-action {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  background: #4A90E2;
  color: white;
}

.bitcoin-icon {
  position: absolute;
  left: 0;
  top: 80px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #F7931A 0%, #FFB84D 100%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  font-weight: 800;
  color: white;
  box-shadow: 0 10px 30px rgba(247, 147, 26, 0.4);
  z-index: 2;
  box-sizing: border-box;
}

.arrow-up {
  position: absolute;
  left: -20px;
  top: 40px;
  font-size: 100px;
  color: #87CEEB;
  opacity: 0.8;
  transform: rotate(-20deg);
  z-index: 1;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.coins-group {
  position: absolute;
  right: 0;
  bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.coin-item {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
  box-sizing: border-box;
}

.coin-item:nth-child(2) {
  width: 50px;
  height: 50px;
}

.coin-item:nth-child(3) {
  width: 45px;
  height: 45px;
}

/* Responsive design for About Us */
@media (max-width: 968px) {
  .about-us-section {
    padding: 60px 20px;
  }

  .about-us-heading {
    font-size: 40px;
  }

  .about-us-main-title {
    font-size: 36px;
  }

  .about-us-sub-title {
    font-size: 30px;
  }
}

/* VIDEO BUTTON */
.btn-video {
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 14px 26px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  color: white;
  transition: 0.3s;
}

.btn-video:hover {
  background: rgba(255, 255, 255, 0.18);
}

.play-icon {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    /* order: 2; Removed to place image above text */
    margin-bottom: 20px;
  }

  .hero-image img {
    margin: auto;
    width: 350px;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  /* Index page responsive - maintain no scroll */
  body.index-page .hero-container {
    padding-top: 50px;
    padding-bottom: 15px;
  }

  body.index-page .about-us-heading {
    font-size: 36px;
    margin-bottom: 12px;
  }

  body.index-page .about-us-main-title {
    font-size: 30px;
    margin-bottom: 10px;
  }

  body.index-page .about-us-sub-title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  body.index-page .about-us-description {
    margin-top: 12px;
  }

  body.index-page .about-us-description p {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  /* Index page responsive - maintain no scroll */
  body.index-page .hero-container {
    padding-top: 40px;
    padding-bottom: 15px;
  }

  body.index-page .hero-title {
    font-size: 32px;
    margin-bottom: 10px;
  }

  body.index-page .hero-text p {
    font-size: 13px;
    margin-top: 10px;
  }

  body.index-page .about-us-heading {
    font-size: 28px;
    margin-bottom: 8px;
  }

  body.index-page .about-us-main-title {
    font-size: 24px;
    margin-bottom: 8px;
  }

  body.index-page .about-us-sub-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  body.index-page .about-us-description {
    margin-top: 8px;
  }

  body.index-page .about-us-description p {
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.4;
  }
}

/* LOGIN SECTION */
.login-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #12342c 0%, #0c221c 100%);
}

.login-container {
  width: 100%;
  max-width: 450px;
}

.login-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  text-align: center;
}

.login-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-bottom: 32px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.form-group input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
  color: white;
  font-size: 15px;
  transition: all 0.3s;
  outline: none;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus {
  border-color: #5ee99c;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(94, 233, 156, 0.1);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #5ee99c;
}

.forgot-link {
  color: #5ee99c;
  text-decoration: none;
  transition: 0.3s;
}

.forgot-link:hover {
  color: #4cd987;
  text-decoration: underline;
}

.btn-login {
  background: #5ee99c;
  color: #0f2c1f;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
  margin-top: 8px;
  width: 100%;
}

.btn-login:hover {
  background: #4cd987;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(94, 233, 156, 0.3);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login:focus {
  outline: 2px solid #5ee99c;
  outline-offset: 2px;
}

.login-message {
  text-align: center;
  font-size: 14px;
  margin-top: 12px;
  min-height: 20px;
  font-weight: 500;
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.register-link {
  color: #5ee99c;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.register-link:hover {
  color: #4cd987;
  text-decoration: underline;
}

/* RESPONSIVE - LOGIN */
@media (max-width: 640px) {
  .login-card {
    padding: 36px 28px;
  }

  .login-title {
    font-size: 28px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* DASHBOARD SECTION */
.members-section {
  min-height: 100vh;
  padding: 40px;
  background: linear-gradient(135deg, #12342c 0%, #0c221c 100%);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.dashboard-section {
  min-height: 100vh;
  padding: 40px;
  background: linear-gradient(135deg, #12342c 0%, #0c221c 100%);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.dashboard-container {
  max-width: 1280px;
  width: 100%;
  margin: auto;
  padding: 0 40px;
}

.dashboard-header {
  margin-bottom: 40px;
  padding-top: 40px;
}

.dashboard-title {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.dashboard-title .green {
  color: #5ee99c;
}

.dashboard-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
}

/* STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: 0.3s;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stat-icon {
  font-size: 40px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(94, 233, 156, 0.15);
  border-radius: 12px;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  font-weight: 500;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.stat-change {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.stat-change.positive {
  color: #5ee99c;
}

.stat-change.negative {
  color: #ff6b6b;
}

/* DASHBOARD GRID */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.btn-icon {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: 0.3s;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* PORTFOLIO ITEMS */
.portfolio-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  transition: 0.3s;
}

.portfolio-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.portfolio-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portfolio-symbol {
  font-size: 18px;
  font-weight: 700;
  color: #5ee99c;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(94, 233, 156, 0.15);
  border-radius: 10px;
}

.portfolio-name {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.portfolio-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.portfolio-amount {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.portfolio-change {
  font-size: 13px;
  font-weight: 500;
}

.portfolio-change.positive {
  color: #5ee99c;
}

.portfolio-change.negative {
  color: #ff6b6b;
}

/* ACTIVITY ITEMS */
.activity-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  transition: 0.3s;
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}

.activity-icon.buy {
  background: rgba(94, 233, 156, 0.2);
  color: #5ee99c;
}

.activity-icon.sell {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.activity-details {
  flex: 1;
}

.activity-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.activity-time {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.activity-amount {
  font-size: 16px;
  font-weight: 700;
}

.activity-amount.positive {
  color: #5ee99c;
}

.activity-amount.negative {
  color: #ff6b6b;
}

/* QUICK ACTIONS */
.quick-actions {
  margin-top: 40px;
}

.quick-actions h2 {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.action-btn:hover {
  background: rgba(94, 233, 156, 0.15);
  border-color: #5ee99c;
  transform: translateY(-2px);
}

.action-icon {
  font-size: 32px;
}

/* USER EMAIL IN NAVBAR */
.user-email {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-right: 12px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

/* USER AVATAR AND DROPDOWN */
.user-avatar-container {
  position: relative;
  margin-left: auto;
  padding-left: 26px;
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5ee99c 0%, #4cd987 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #0f2c1f;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
}

.user-avatar:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(94, 233, 156, 0.3);
}

.user-avatar:focus {
  outline: 2px solid #5ee99c;
  outline-offset: 2px;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(14, 42, 35, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 8px 0;
}

.user-avatar-container.active .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  cursor: default;
}

.dropdown-item.dropdown-button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s;
}

.dropdown-item.dropdown-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

/* RESPONSIVE - DASHBOARD */
@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .dashboard-section {
    padding: 20px;
  }

  .dashboard-container {
    padding: 0 20px;
  }

  .dashboard-title {
    font-size: 32px;
  }

  .dashboard-header {
    padding-top: 20px;
    margin-bottom: 24px;
  }

  .card {
    padding: 24px;
  }

  .card-value {
    font-size: 32px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .user-email {
    display: none;
  }
}

/* Dashboard Card (for Total Wealth) */
.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  transition: 0.3s;
}

.card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-value {
  font-size: 42px;
  font-weight: 700;
  color: #5ee99c;
}

/* Remove duplicate nav-container, logo, and nav-links definitions - using the standardized ones above */

.page-title {
  color: white;
  margin-bottom: 30px;
}

/* MEMBER LIST */
.member-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.member-card h3 {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 600;
}

.member-card p {
  color: rgba(255, 255, 255, 0.7);
}

/* Remove duplicate btn-primary definition - using the standardized one above */

.btn-secondary {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

.btn-secondary:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* FORM */
.form-box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.form-box label {
  font-weight: 500;
  display: block;
  margin-top: 20px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.form-box label:first-child {
  margin-top: 0;
}

.form-box input {
  width: 100%;
  padding: 14px 16px;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: white;
  font-size: 15px;
  transition: all 0.3s;
  outline: none;
  box-sizing: border-box;
}

.form-box input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-box input:focus {
  border-color: #5ee99c;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(94, 233, 156, 0.1);
}

/* Hide number input spinners globally */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Make calendar icon button white in date inputs */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
  opacity: 0.9;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.form-box button[type="submit"] {
  width: 100%;
  margin-top: 24px;
}


/* Modern card header */
.card-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}

.badge {
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(94, 233, 156, 0.15);
  color: #5ee99c;
  border: 1px solid rgba(94, 233, 156, 0.4);
  font-weight: 600;
}

.badge-pill {
  border-radius: 999px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.input-with-action {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-with-action input {
  flex: 1;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.ghost-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.inline-errors {
  margin: 6px 0 4px;
  color: #ff8b8b;
  font-size: 14px;
  min-height: 18px;
}

.hint {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.btn-login.wide {
  width: 100%;
}

/* Highlight invalid inputs */
input.invalid,
select.invalid {
  border-color: #ff8b8b !important;
  box-shadow: 0 0 0 3px rgba(255, 139, 139, 0.18) !important;
}

/* Members Table Styles */
.members-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.table-container {
  width: 100%;
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  overflow-x: auto;
}

.members-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.members-table thead {
  background: rgba(255, 255, 255, 0.05);
}

.members-table th {
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.members-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
}

.members-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

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

/* User cell with avatar */
.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-cell .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5ee99c 0%, #4dd4a8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: #0e2a23;
  border: none;
  cursor: default;
}

/* Role badges */
.role-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
}

.role-admin {
  background: rgba(94, 233, 156, 0.2);
  color: #5ee99c;
}

.role-agent {
  background: rgba(77, 212, 168, 0.2);
  color: #4dd4a8;
}

.role-customer {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* Status badges */
.status-badge {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
}

.status-yes {
  background: rgba(94, 233, 156, 0.2);
  color: #5ee99c;
}

.status-no {
  background: rgba(255, 139, 139, 0.2);
  color: #ff8b8b;
}

/* Action buttons */
.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-action {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary-small,
.btn-table {
  padding: 6px 14px;
  background: #5ee99c;
  color: #0f2c1f;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.btn-primary-small:hover,
.btn-table:hover {
  background: #4cd987;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(94, 233, 156, 0.3);
}

.btn-secondary-small {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.btn-secondary-small:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

/* Table footer with pagination */
.table-footer {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Update table-info to include entry count */
.table-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 15px;
}

.table-info label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.table-info span:not(.entry-count) {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.entry-count {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.entries-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 6px 10px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.entries-select:focus {
  border-color: #5ee99c;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 4px;
  align-items: center;
}

.pagination-btn {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  min-width: 36px;
}

.pagination-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.pagination-btn.active {
  background: #5ee99c;
  color: #0e2a23;
  border-color: #5ee99c;
  font-weight: 600;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1200px) {
  .table-container {
    overflow-x: auto;
  }

  .members-table {
    min-width: 1000px;
  }
}

@media (max-width: 768px) {
  .table-footer {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .action-buttons {
    flex-direction: column;
  }

  .btn-action {
    width: 100%;
  }
}

/* Sortable table headers */
.members-table th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 30px;
}

.members-table th.sortable:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sort-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.3;
  transition: opacity 0.2s;
}

.members-table th.sortable:hover .sort-icon {
  opacity: 0.6;
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 32px;
  }

  .about-us-heading {
    font-size: 28px;
  }

  .about-us-main-title {
    font-size: 24px;
  }

  .about-us-sub-title {
    font-size: 20px;
  }

  /* FIXED: Mobile Card Layout & Alignment */
  body.index-page .hero-container,
  body.index-page .about-us-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px 20px;
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: auto;
    max-width: none;
    gap: 20px;
  }

  body.index-page .hero-image {
    order: -1;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0;
  }

  body.index-page .hero-image img {
    max-width: 100%;
    height: auto;
  }

  body.index-page .hero-text,
  body.index-page .about-us-content-left {
    width: 100%;
    text-align: center;
  }

  body.index-page .hero-text p,
  body.index-page .about-us-description p {
    text-align: center;
    margin: 0 auto 16px auto;
  }

  /* Styling to match card aesthetic */
  body.index-page .hero.index-main-section {
    padding-bottom: 20px;
  }
}