/*\frontend\css\index.css*/
.index-container {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 10px 14px 12px !important;
  background: #f4f7fa;
  height: auto !important;
  min-height: auto !important;
  box-sizing: border-box;
  overflow-y: auto !important;
  gap: 10px;
}

/* Decorative corner ribbons */
.index-container::before,
.index-container::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Upper-left sweeping ribbons */
.index-container::before {
  background:
    linear-gradient(
      132deg,
      transparent 0%,
      transparent 9%,
      rgba(65, 184, 92, 0.09) 9.2%,
      rgba(65, 184, 92, 0.09) 17%,
      transparent 17.2%,
      transparent 21%,
      rgba(65, 184, 92, 0.055) 21.2%,
      rgba(65, 184, 92, 0.055) 25%,
      transparent 25.2%
    );
}

/* Lower-right sweeping ribbons */
.index-container::after {
  background:
    linear-gradient(
      312deg,
      transparent 0%,
      transparent 10%,
      rgba(65, 184, 92, 0.09) 10.2%,
      rgba(65, 184, 92, 0.09) 18%,
      transparent 18.2%,
      transparent 22%,
      rgba(65, 184, 92, 0.055) 22.2%,
      rgba(65, 184, 92, 0.055) 26%,
      transparent 26.2%
    );
}

/* Welcome Banner Styling */
.welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 4px;
  margin-bottom: 2px;
  box-sizing: border-box;
}

.welcome-left {
  display: flex;
  flex-direction: column;
}

.greeting-text {
  font-size: 15px;
  font-weight: 500;
  color: #0d1b2a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sun-emoji {
  font-size: 16px;
}

.username-text {
  font-size: 20px;
  font-weight: 800;
  color: #4caf50;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.subscription-badge {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(65, 184, 92, 0.25);
  border-radius: 50px;
  padding: 6px 14px 6px 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  gap: 8px;
}

.sub-icon-circle {
  width: 26px;
  height: 26px;
  background: #00c853;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 11px;
}

.sub-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.sub-title {
  font-size: 11px;
  font-weight: 600;
  color: #0d1b2a;
}

.sub-status {
  font-size: 13px;
  font-weight: 700;
  color: #4caf50;
}
/* Dynamic Subscription Badge Status Colors */
.sub-icon-circle.status-active {
  background: #00c853;
}
.sub-icon-circle.status-pending {
  background: #f39c12;
}
.sub-icon-circle.status-inactive {
  background: #00c853;
}

.sub-status.status-active-text {
  color: #00c853;
}
.sub-status.status-pending-text {
  color: #f39c12;
}
.sub-status.status-inactive-text {
  color: #e74c3c;
}
/* Wallet Balance Card Styling (Image Background matching Image 1 layout) */
.wallet-balance-card {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: url('../assets/dashwallet.png') center/cover no-repeat;
  border-radius: 16px;
  padding: 16px 20px;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 200, 83, 0.2);
  margin-bottom: 2px;
  overflow: hidden;
}

.wallet-left-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wallet-icon-circle {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4caf50;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.wallet-divider {
  width: 2px;
  height: 38px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 1px;
}

.wallet-right-section {
  display: flex;
  flex-direction: column;
  margin-left: 16px;
  flex: 1;
}

.wallet-label {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 2px;
  opacity: 0.95;
}

.wallet-amount-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-currency {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* Keeps hidden dots white and styled correctly */
.wallet-dots {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 2px;
}

/* Forces the revealed balance numbers to be large, bold, and white */
#walletBalanceText {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.wallet-toggle-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.wallet-toggle-btn:hover {
  opacity: 1;
}

/* Stats Cards Row Styling (Restored full height proportions from Image 1) */
.stats-cards-row {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-bottom: 2px;
  box-sizing: border-box;
}

.stat-card {
  flex: 1;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(65, 184, 92, 0.15);
  border-radius: 16px;
  padding: 14px 16px;
  height: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  gap: 12px;
}

.stat-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.income-circle {
  background: #4caf50;
  color: #ffffff;
}

.tx-circle {
  background: #4caf50;
  color: #ffffff;
}

.stat-content {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  justify-content: center;
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 3px;
}

.stat-value {
  font-size: 15px;
  font-weight: 800;
  color: #0d1b2a;
}

.stat-subtext {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

/* Action Buttons Grid (2x2) - Restored full visual proportions matching Image 1 */
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 2px;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(65, 184, 92, 0.15);
  border-radius: 16px;
  padding: 18px 14px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  position: relative;
  min-height: 125px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.action-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 200, 83, 0.1);
}

.action-icon-wrap {
  width: 64px;
  height: 64px;
  background: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 26px;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.mpesa-circle-badge {
  background: #4caf50;
  color: #ffffff;
}

.floynex-logo-wrap {
  background: #4caf50;
  color: #ffffff;
  font-weight: 900;
}

/* Custom Floynex Icon styling inside action icon wrapper */
.custom-floynexicon {
  width: 50px;
  height: auto;
  object-fit: contain;
  display: block;
}

.subscribe-circle {
  background: #4caf50;
  color: #ffffff;
}

.action-content-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.action-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0d1b2a;
  line-height: 1.25;
  text-align: center;
}

.action-arrow {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-size: 18px;
  color: #94a3b8;
  font-weight: 600;
}

/* Custom Saficon styling inside action icon wrapper */
.custom-saficon {
  width: 50px;
  height: auto;
  object-fit: contain;
  display: block;
}
/* Custom M-Pesa Icon styling inside action icon wrapper */
.custom-mpesaicon {
  width: 50px;
  height: auto;
  object-fit: contain;
  display: block;
}
/* Custom Bell Icon styling inside action icon wrapper */
.custom-bellicon {
  width: 50px;
  height: auto;
  object-fit: contain;
  display: block;
}
/* Custom subscription bell icon styling */
.custom-sub-bell {
  width: 14px;
  height: auto;
  object-fit: contain;
  display: block;
}
/* Promotional Banner Styling */
.promo-banner-container {
  width: 100%;
  margin-top: 4px;
  margin-bottom: 6px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
}

.promo-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 16px;
}
/* =================================
   SUBSCRIPTION SUCCESS POPUP
================================= */

.subscription-active-content {
  text-align: center;
  color: #475569;
}

.subscription-active-content p {
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0;
}

.subscription-expiry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0;
  padding: 18px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
}

.subscription-expiry span {
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.subscription-expiry strong {
  color: #166534;
  font-size: 20px;
  font-weight: 700;
}
.custom-dashboard-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}