Body {
  background-color: #F8F6EF;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #333;
}

/* ==========================================
   HEADER & FOOTER NAVIGATION
   ========================================== */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.brand-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #9E7A2A;
  letter-spacing: 1.5px;
}

.notification-icon {
  position: relative;
  font-size: 1.4rem;
  color: #333;
  cursor: pointer;
}

.notification-icon .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background-color: #FF3B30;
  border-radius: 50%;
}

.footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #FFA500;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  z-index: 1000;
}

.footer-nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  position: relative;
  flex: 1;
  text-align: center;
}

.footer-nav li.active::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background-color: #FFFFFF;
  border-radius: 2px;
}

.footer-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: bold;
  gap: 4px;
  opacity: 0.8;
}

.footer-nav li.active a {
  opacity: 1;
}

/* ==========================================
   MAIN CONTENT CONTAINER
   ========================================== */
.content {
  padding-top: 70px;
  padding-bottom: 90px;
  padding-left: 15px;
  padding-right: 15px;
}

/* ==========================================
   WALLET CARD
   ========================================== */
.premium-card {
  background: linear-gradient(135deg, #2A2826 0%, #827982 100%);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 20px;
  margin-top: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.card-subtitle {
  margin: 0;
  font-size: 0.75rem;
  color: #B0B0B0;
  letter-spacing: 1px;
}

.growth-icon {
  font-size: 1.2rem;
  color: #E5C158;
}

.main-balance {
  margin: 5px 0 15px 0;
  font-size: 2.4rem;
  font-weight: 800;
  color: #E5C158;
}

.growth-stats {
  display: flex;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 15px;
}

.stat-label {
  margin: 0;
  font-size: 0.65rem;
  color: #A0A0A0;
}

.stat-value {
  font-size: 0.9rem;
  font-weight: 700;
}

.stat-value.gain {
  color: #4CAF50;
}

.invest-cta {
  width: 100%;
  background: linear-gradient(to right, #E5C158, #CFA348);
  color: #171614;
  border-radius: 12px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(229, 193, 88, 0.3);
  margin-bottom: 12px;
  text-decoration: none;
  box-sizing: border-box;
}

.secondary-actions {
  display: flex;
  gap: 10px;
}

.btn {
  flex: 1;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  padding: 10px;
  color: #FFF;
  cursor: pointer;
}

/* Card buttons specific styling */
.secondary-actions .btn-deposit { background-color: #2E7D32; }
.secondary-actions .btn-withdraw { background-color: #C62828; }

/* ==========================================
   QUICK ACTIONS GRID
   ========================================== */
.quick-actions {
  display: flex;
  justify-content: space-around;
  background: #FFFFFF;
  padding: 15px;
  border-radius: 16px;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.action-icon {
  width: 45px;
  height: 45px;
  background-color: #FFF8E7;
  color: #9E7A2A;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
}

.action-item span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
}

/* ==========================================
   INVESTMENT TABLE & PACKAGES SECTION
   ========================================== */
.packages-section {
  margin-top: 25px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}

.section-title a {
  color: #9E7A2A;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.table-container {
  width: 100%;
  overflow-x: auto;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid #EFEAE0;
  margin-top: 10px;
}

.investment-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
  white-space: nowrap;
}

.investment-table th {
  background-color: #FAF8F5;
  color: #666;
  font-weight: 700;
  padding: 12px 10px;
  border-bottom: 2px solid #EFEAE0;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.investment-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #F0F0F0;
  vertical-align: middle;
  color: #333;
}

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

.watch-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.table-img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  background: #F0F0F0;
}

.highlight {
  color: #9E7A2A;
  font-weight: 700;
}

.table-buy-btn {
  background: linear-gradient(to right, #9E7A2A, #B8923A);
  color: #FFFFFF;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(158, 122, 42, 0.2);
}

.table-buy-btn:hover {
  opacity: 0.9;
}
/* ==========================================================================
   FK INVESTMENT - POPUP MODAL & OVERLAY STYLES
   ========================================================================== */

/* DARK BACKDROP OVERLAY */
.fk-modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important; /* Floats above everything, including footer */
  padding: 16px;
  box-sizing: border-box;
}

/* POPUP CONTAINER CARD */
.fk-modal-card {
  background: #1e1d1b !important;
  border: 1px solid #3d3b38 !important;
  border-radius: 20px !important;
  width: 100% !important;
  max-width: 380px !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important;
  overflow: hidden;
  animation: fkPopIn 0.25s ease-out forwards;
  color: #ffffff !important;
  margin: auto;
}

@keyframes fkPopIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* HEADER BAR */
.fk-modal-header {
  background: #282623;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #383531;
}

.fk-modal-header h3 {
  color: #e5c158;
  font-size: 1.1rem;
  margin: 0;
  font-weight: 700;
}

.fk-modal-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.fk-modal-close:hover {
  color: #fff;
}

/* MODAL CONTENT */
.fk-modal-body {
  padding: 18px;
  box-sizing: border-box;
}

/* FORM ELEMENTS */
.fk-form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.fk-form-group label {
  font-size: 0.8rem;
  color: #cccccc;
  font-weight: 600;
}

.fk-input {
  background: #11100f !important;
  border: 1px solid #444444 !important;
  border-radius: 10px !important;
  padding: 12px !important;
  color: #ffffff !important;
  font-size: 0.95rem !important;
  outline: none;
  width: 100% !important;
  box-sizing: border-box !important;
}

.fk-input:focus {
  border-color: #e5c158 !important;
}

/* BUTTONS */
.fk-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #e5c158, #cfa348);
  border: none;
  color: #171614;
  padding: 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s;
}

.fk-btn-primary:active {
  opacity: 0.9;
}

.fk-btn-danger {
  width: 100%;
  background: linear-gradient(135deg, #d32f2f, #9a0007);
  border: none;
  color: #ffffff;
  padding: 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 8px;
}

.fk-balance-badge {
  background: #28241e;
  border: 1px solid #e5c158;
  color: #e5c158;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

/* HISTORY LIST */
.fk-history-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fk-history-item {
  background: #11100f;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tx-info strong {
  font-size: 0.85rem;
  color: #ffffff;
  display: block;
}

.tx-info span {
  font-size: 0.7rem;
  color: #888888;
}

.tx-amount {
  text-align: right;
  font-size: 0.85rem;
  font-weight: bold;
}

.tx-amount.plus {
  color: #4caf50;
}

.tx-amount.minus {
  color: #f44336;
}

.tx-status {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #aaaaaa;
}

/* TOAST NOTIFICATIONS */
.fk-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #2a2826;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  z-index: 1000000;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #e5c158;
  animation: fkToastIn 0.3s ease-out;
}

.fk-toast.error {
  border-color: #f44336;
  background: #2b1515;
}

.fk-toast.success {
  border-color: #4caf50;
  background: #122413;
}

@keyframes fkToastIn {
  from {
    top: 0px;
    opacity: 0;
  }
  to {
    top: 20px;
    opacity: 1;
  }
}
