/* ===========================
   TREMO INVESTMENT - MAIN CSS
   Green & White Professional Theme
   =========================== */

:root {
  --primary: #0f7a3e;
  --primary-dark: #0a5c2e;
  --primary-light: #1aad59;
  --primary-xlight: #e8f7ef;
  --accent: #ffc107;
  --white: #ffffff;
  --text-dark: #1a2332;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 30px rgba(15,122,62,0.18);
  --radius: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  background: #f0f4f0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

/* ---- AUTH PAGES ---- */
.auth-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f7a3e 0%, #1aad59 50%, #0a5c2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 15px;
  position: relative;
  overflow: hidden;
}
.auth-wrapper::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -200px; right: -150px;
}
.auth-wrapper::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  bottom: -100px; left: -80px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 35px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo .logo-icon {
  width: 64px; height: 64px;
  background: var(--primary);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.auth-logo .logo-icon i { font-size: 30px; color: white; }
.auth-logo h2 { color: var(--primary); font-size: 22px; margin: 0; }
.auth-logo p { color: var(--text-muted); font-size: 14px; margin: 4px 0 0; }

.form-label { font-weight: 600; font-size: 13px; color: var(--text-dark); margin-bottom: 6px; }
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,122,62,0.1);
  outline: none;
}
.input-group-text {
  border: 1.5px solid var(--border);
  background: #f9fafb;
  border-radius: 10px 0 0 10px !important;
  color: var(--text-muted);
}
.input-group .form-control { border-radius: 0 10px 10px 0 !important; }

.btn-primary-green {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(15,122,62,0.3);
  width: 100%;
}
.btn-primary-green:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15,122,62,0.4);
}
.btn-primary-green:active { transform: translateY(0); }

.auth-link { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-link a { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-link a:hover { text-decoration: underline; }

/* ---- DASHBOARD LAYOUT ---- */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  box-shadow: var(--shadow-sm);
}
.topbar .brand { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; color: var(--primary); }
.topbar .menu-btn { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-dark); padding: 4px 8px; border-radius: 8px; }
.topbar .menu-btn:hover { background: var(--primary-xlight); color: var(--primary); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-right .user-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--primary-xlight);
  border-radius: 30px;
  padding: 6px 14px 6px 6px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
}
.topbar-right .user-badge .avatar {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 14px; font-weight: 700;
}
.topbar-right .logout-btn {
  background: #fef2f2; color: #ef4444; border: none;
  border-radius: 8px; padding: 7px 12px; font-size: 14px;
  cursor: pointer; text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  font-weight: 600;
}
.topbar-right .logout-btn:hover { background: #fee2e2; color: #dc2626; }

/* Sidebar */
.sidebar {
  width: 260px;
  position: fixed;
  top: 64px; left: -260px;
  height: calc(100vh - 64px);
  background: var(--primary-dark);
  z-index: 1000;
  transition: left 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sidebar.open { left: 0; }
.sidebar-nav { padding: 20px 0; flex: 1; }
.sidebar-section { padding: 8px 20px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); }
.sidebar a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.sidebar a i { font-size: 18px; width: 20px; }
.sidebar a:hover, .sidebar a.active {
  background: rgba(255,255,255,0.1);
  color: white;
  border-left-color: var(--accent);
}
.sidebar .logout-link { color: rgba(255,100,100,0.9); margin-top: auto; }
.sidebar .logout-link:hover { background: rgba(255,0,0,0.1); color: #ff6b6b; }
.sidebar-footer { padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-footer .plan-badge {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}

/* Main Content */
.main-content {
  margin-top: 64px;
  padding: 24px;
  min-height: calc(100vh - 64px);
  transition: margin-left 0.3s ease;
}
@media (min-width: 992px) {
  .sidebar { left: 0; }
  .main-content { margin-left: 260px; }
}
.sidebar-overlay {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}
.sidebar-overlay.show { display: block; }

/* ---- STAT CARDS ---- */
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
}
.stat-icon.green { background: var(--primary-xlight); color: var(--primary); }
.stat-icon.gold { background: #fff8e1; color: #f59e0b; }
.stat-icon.blue { background: #eff6ff; color: #3b82f6; }
.stat-icon.purple { background: #f5f3ff; color: #8b5cf6; }
.stat-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--text-dark); margin: 4px 0 0; }

/* ---- PLAN CARDS ---- */
.plan-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.plan-card.stable::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.plan-card:hover, .plan-card.selected {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.plan-card.stable:hover, .plan-card.stable.selected { border-color: #f59e0b; }
.plan-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.plan-badge.basic { background: var(--primary-xlight); color: var(--primary); }
.plan-badge.stable { background: #fff8e1; color: #d97706; }
.plan-amount { font-size: 36px; font-weight: 800; color: var(--text-dark); }
.plan-amount span { font-size: 20px; }
.plan-feature { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 8px 0; color: var(--text-muted); }
.plan-feature i { color: var(--primary); font-size: 16px; }

/* ---- STATUS BADGES ---- */
.badge-pending { background: #fff3cd; color: #856404; border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 600; }
.badge-approved { background: #d1e7dd; color: #0f5132; border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 600; }
.badge-rejected, .badge-failed { background: #f8d7da; color: #842029; border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 600; }
.badge-active { background: var(--primary-xlight); color: var(--primary); border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 600; }
.badge-inactive { background: #f3f4f6; color: #6b7280; border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 600; }

/* ---- PAGE HEADER ---- */
.page-header { margin-bottom: 24px; }
.page-header h4 { font-size: 22px; font-weight: 700; color: var(--text-dark); margin: 0; }
.page-header p { color: var(--text-muted); font-size: 14px; margin: 4px 0 0; }

/* ---- CARDS ---- */
.card-tremo {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-tremo .card-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
}
.card-tremo .card-body { padding: 20px; }

/* ---- TABLES ---- */
.table-tremo { border-collapse: separate; border-spacing: 0; width: 100%; }
.table-tremo th { background: #f9fafb; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); padding: 12px 16px; border-bottom: 1px solid var(--border); }
.table-tremo td { padding: 14px 16px; border-bottom: 1px solid #f3f4f6; font-size: 14px; vertical-align: middle; }
.table-tremo tr:last-child td { border-bottom: none; }
.table-tremo tr:hover td { background: #f9fafb; }

/* ---- ACCOUNT ACTIVATION BANNER ---- */
.activate-banner {
  background: linear-gradient(135deg, #fff8e1 0%, #fffbeb 100%);
  border: 2px dashed #fbbf24;
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.activate-banner .banner-icon { font-size: 32px; }
.activate-banner h5 { color: #92400e; font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.activate-banner p { color: #b45309; font-size: 13px; margin: 0; }
.btn-activate {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white; border: none;
  border-radius: 10px; padding: 10px 20px;
  font-weight: 700; font-size: 14px;
  cursor: pointer; white-space: nowrap;
  text-decoration: none;
}
.btn-activate:hover { background: linear-gradient(135deg, #d97706, #b45309); color: white; }

/* ---- REFERRAL SECTION ---- */
.referral-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  padding: 24px;
  color: white;
  position: relative;
  overflow: hidden;
}
.referral-box::after {
  content: '';
  position: absolute;
  width: 150px; height: 150px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  right: -40px; top: -40px;
}
.referral-link-input {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  width: 100%;
}
.referral-link-input::placeholder { color: rgba(255,255,255,0.6); }
.btn-copy {
  background: white; color: var(--primary); border: none;
  border-radius: 8px; padding: 10px 16px; font-weight: 700;
  font-size: 13px; cursor: pointer; white-space: nowrap;
}
.btn-copy:hover { background: var(--primary-xlight); }

/* ---- OTP INPUT ---- */
.otp-inputs { display: flex; gap: 12px; justify-content: center; }
.otp-inputs input {
  width: 52px; height: 60px;
  text-align: center; font-size: 22px; font-weight: 700;
  border: 2px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s;
}
.otp-inputs input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,122,62,0.1); }
.countdown { font-size: 13px; color: var(--text-muted); }
.countdown span { font-weight: 700; color: var(--primary); }
.countdown.expiring span { color: #ef4444; }

/* ---- ALERT STYLES ---- */
.alert-success-tremo {
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
  border-radius: 10px; padding: 14px 18px; font-size: 14px;
}
.alert-danger-tremo {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  border-radius: 10px; padding: 14px 18px; font-size: 14px;
}

/* ---- MODAL ---- */
.modal-content { border-radius: var(--radius-lg); border: none; box-shadow: var(--shadow-lg); }
.modal-header { background: var(--primary); color: white; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: none; padding: 20px 24px; }
.modal-header .btn-close { filter: invert(1); }
.modal-title { font-weight: 700; }

/* ---- ROI COUNTER ---- */
.roi-counter {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  border: 1px solid #a7f3d0;
}
.roi-amount { font-size: 32px; font-weight: 800; color: var(--primary); }

/* ---- LANDING PAGE ---- */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  top: -200px; right: -200px;
}
.hero-section::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  bottom: -150px; left: -100px;
}
.landing-nav { position: absolute; top: 0; left: 0; right: 0; padding: 20px 40px; display: flex; align-items: center; justify-content: space-between; z-index: 10; }
.landing-nav .brand { font-family: 'Space Grotesk',sans-serif; font-size: 24px; font-weight: 800; color: white; }
.landing-nav .nav-btns a { margin-left: 12px; }
.btn-nav-ghost { color: white; border: 1.5px solid rgba(255,255,255,0.5); border-radius: 8px; padding: 8px 20px; text-decoration: none; font-weight: 600; font-size: 14px; transition: all 0.2s; }
.btn-nav-ghost:hover { background: rgba(255,255,255,0.1); color: white; }
.btn-nav-white { background: white; color: var(--primary); border-radius: 8px; padding: 8px 20px; text-decoration: none; font-weight: 700; font-size: 14px; transition: all 0.2s; }
.btn-nav-white:hover { background: var(--primary-xlight); color: var(--primary-dark); }
.hero-content { position: relative; z-index: 1; color: white; }
.hero-tag { display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); border-radius: 30px; padding: 6px 16px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.hero-title { font-size: clamp(36px, 6vw, 60px); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero-title span { color: var(--accent); }
.hero-desc { font-size: 18px; opacity: 0.85; margin-bottom: 36px; line-height: 1.7; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary { background: var(--accent); color: var(--text-dark); border-radius: 10px; padding: 14px 32px; font-weight: 700; font-size: 16px; text-decoration: none; transition: all 0.2s; }
.btn-hero-primary:hover { background: #e6ac00; color: var(--text-dark); transform: translateY(-2px); }
.btn-hero-outline { color: white; border: 2px solid rgba(255,255,255,0.6); border-radius: 10px; padding: 14px 32px; font-weight: 600; font-size: 16px; text-decoration: none; transition: all 0.2s; }
.btn-hero-outline:hover { background: rgba(255,255,255,0.1); color: white; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat { text-align: left; }
.hero-stat .num { font-size: 28px; font-weight: 800; }
.hero-stat .lbl { font-size: 13px; opacity: 0.75; }
.floating-card {
  background: white; border-radius: var(--radius); padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  max-width: 320px; position: relative; z-index: 1; margin: auto;
}
.features-section { padding: 80px 0; background: white; }
.feature-card {
  text-align: center; padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-icon { width: 64px; height: 64px; background: var(--primary-xlight); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 28px; color: var(--primary); }
.plans-section { padding: 80px 0; background: #f8faf9; }

/* ---- PROFILE/SETTINGS ---- */
.avatar-upload { position: relative; width: 80px; height: 80px; }
.avatar-upload .avatar-circle {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; font-family: 'Space Grotesk', sans-serif;
}
.settings-tab { border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.settings-tab .nav-link { color: var(--text-muted); font-weight: 600; padding: 10px 20px; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.settings-tab .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); background: none; }

/* ---- ADMIN ---- */
.admin-sidebar { background: #1a2332; }
.admin-sidebar a { color: rgba(255,255,255,0.75); }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: white; border-left-color: #60a5fa; }

/* ---- RESPONSIVE ---- */
@media (max-width: 575px) {
  .auth-card { padding: 28px 20px; }
  .stat-value { font-size: 20px; }
  .plan-amount { font-size: 28px; }
  .otp-inputs input { width: 44px; height: 52px; font-size: 18px; }
  .activate-banner { flex-direction: column; text-align: center; }
  .main-content { padding: 16px; }
  .hero-stat .num { font-size: 22px; }
}

/* ---- UTILITIES ---- */
.text-primary-green { color: var(--primary) !important; }
.bg-primary-green { background-color: var(--primary) !important; }
.fw-700 { font-weight: 700 !important; }
.border-radius-lg { border-radius: var(--radius-lg) !important; }
.shadow-tremo { box-shadow: var(--shadow-md) !important; }
