/* ========== TESLA CLONE MAIN CSS ========== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --tesla-red: #e82127;
  --tesla-dark: #171a20;
  --tesla-white: #ffffff;
  --tesla-gray: #5c5e62;
  --tesla-light-gray: #f4f4f4;
  --tesla-border: #d0d0d0;
  --nav-height: 52px;
  --font: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--tesla-white);
  color: var(--tesla-dark);
  overflow-x: hidden;
}

/* ===== HEADER / NAV ===== */
.tesla-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.tesla-header.dark-header {
  background: rgba(0,0,0,0.6);
}

.tesla-header.dark-header .nav-links a,
.tesla-header.dark-header .nav-actions a,
.tesla-header.dark-header .nav-btn {
  color: white;
}

.tesla-header.dark-header svg path { fill: white; }

.tesla-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: var(--nav-height);
  max-width: 1800px;
  margin: 0 auto;
}

.tesla-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--tesla-dark);
  transition: color 0.2s;
  text-decoration: none;
}

/* SVG wordmark inherits color from parent .tesla-logo */
.tesla-logo svg {
  display: block;
  fill: currentColor;
  transition: fill 0.2s;
  overflow: visible;
}
.tesla-logo svg path {
  fill: currentColor;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--tesla-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 20px;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { background: rgba(0,0,0,0.07); }

.nav-links .invest-link {
  color: var(--tesla-red);
  font-weight: 700;
}

.nav-links .invest-link:hover { background: rgba(232,33,39,0.08); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-btn {
  color: var(--tesla-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-btn:hover { background: rgba(0,0,0,0.07); }

.nav-btn-red {
  background: var(--tesla-red);
  color: white !important;
}

.nav-btn-red:hover { background: #c41a1f !important; }

.nav-btn-outline {
  border: 1px solid var(--tesla-border);
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.menu-toggle:hover { background: rgba(0,0,0,0.07); }

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(2px);
  pointer-events: none;
  visibility: hidden;
}
.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Slide panel */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 90vw);
  background: #fff;
  z-index: 9999;
  box-shadow: -24px 0 80px rgba(0,0,0,0.18);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  /* Always block — visibility controlled by transform + pointer-events */
  display: block;
  pointer-events: none;
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}

/* Menu header bar */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}
.mobile-logo { display: block; color: var(--tesla-dark); }
.mobile-logo path { fill: currentColor; }

.mobile-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tesla-dark);
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.mobile-close:hover { background: #f4f4f4; }

/* Section labels */
.mobile-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8a8a8a;
  padding: 20px 24px 6px;
}

/* Links list */
.mobile-menu-items {
  display: flex;
  flex-direction: column;
}
.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--tesla-dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 24px;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s;
}
.mobile-link:hover { background: #fafafa; }
.mobile-link svg { opacity: 0.35; flex-shrink: 0; }

/* Highlighted links */
.mobile-shop { color: var(--tesla-dark); font-weight: 600; }
.mobile-invest { color: var(--tesla-red); font-weight: 700; }
.mobile-invest svg { opacity: 0.6; stroke: var(--tesla-red); }
.mobile-signout { color: #8a8a8a; }

/* Account section CTA */
.mobile-account-items { padding-bottom: 32px; }
.mobile-cta {
  display: block;
  margin: 16px 24px 0;
  background: var(--tesla-red);
  color: white;
  text-align: center;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.mobile-cta:hover { background: #c41a1f; }

/* Nav shop link — use tesla-red not blue */
.nav-links .nav-shop-link { color: var(--tesla-red); font-weight: 600; }
.nav-links .nav-shop-link:hover { background: rgba(232,33,39,0.07); color: var(--tesla-red); }

/* ===== HOME PAGE SECTIONS ===== */
.hero-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0 0 40px;
  position: relative;
  scroll-snap-align: start;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  padding-top: 120px;
  z-index: 1;
  position: relative;
}

.hero-content h1 {
  font-size: 40px;
  font-weight: 500;
  color: var(--tesla-dark);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.hero-content p {
  font-size: 16px;
  color: var(--tesla-gray);
  font-weight: 400;
}

.hero-content.light h1,
.hero-content.light p { color: white; }

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding-bottom: 8px;
  z-index: 1;
  position: relative;
  flex-wrap: wrap;
}

.btn-primary {
  background: rgba(255,255,255,0.9);
  color: var(--tesla-dark);
  border: none;
  padding: 14px 48px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  background: rgba(255,255,255,1);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: rgba(23,26,32,0.8);
  color: white;
  border: none;
  padding: 14px 48px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
  text-align: center;
}

.btn-secondary:hover {
  background: rgba(23,26,32,1);
  transform: translateY(-1px);
}

.btn-red {
  background: var(--tesla-red);
  color: white;
  border: none;
  padding: 14px 48px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
  text-align: center;
}

.btn-red:hover {
  background: #c41a1f;
  transform: translateY(-1px);
}

/* ===== FULL PAGE SNAP SCROLL ===== */
.home-wrapper {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

/* ===== CAR PAGE ===== */
.car-hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 100px 40px 60px;
}

.car-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding: 80px 40px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.spec-item h3 {
  font-size: 36px;
  font-weight: 500;
  color: var(--tesla-dark);
}

.spec-item p {
  font-size: 14px;
  color: var(--tesla-gray);
  margin-top: 4px;
}

.spec-note {
  font-size: 11px;
  color: #8a8a8a;
  margin-top: 2px;
}

/* ===== INVEST PAGE ===== */
.invest-hero {
  min-height: 90vh;
  background: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #0d0d0d 100%);
  display: flex;
  align-items: center;
  padding: 120px 60px 80px;
  position: relative;
  overflow: hidden;
}

.invest-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(232,33,39,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.invest-hero-content {
  max-width: 800px;
  z-index: 1;
}

.invest-hero h1 {
  font-size: 64px;
  font-weight: 300;
  color: white;
  line-height: 1.1;
  margin-bottom: 24px;
}

.invest-hero h1 span { color: var(--tesla-red); }

.invest-hero p {
  font-size: 20px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
}

.invest-hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.section-title {
  text-align: center;
  padding: 80px 40px 40px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 400;
  color: var(--tesla-dark);
  margin-bottom: 12px;
}

.section-title p {
  font-size: 18px;
  color: var(--tesla-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Investment Plans */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  padding: 20px 60px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.plan-card {
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 36px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--plan-color, var(--tesla-red));
}

.plan-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.plan-badge {
  display: inline-block;
  background: var(--plan-color, var(--tesla-red));
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.plan-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--tesla-dark);
  margin-bottom: 8px;
}

.plan-range {
  font-size: 16px;
  color: var(--tesla-gray);
  margin-bottom: 20px;
}

.plan-range strong { color: var(--tesla-dark); }

.plan-return {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--tesla-light-gray);
  border-radius: 10px;
  margin-bottom: 24px;
}

.plan-return-rate {
  font-size: 28px;
  font-weight: 700;
  color: var(--plan-color, var(--tesla-red));
}

.plan-return-label {
  font-size: 13px;
  color: var(--tesla-gray);
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
}

.plan-features li {
  font-size: 14px;
  color: var(--tesla-gray);
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before {
  content: '✓';
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
}

.plan-invest-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--tesla-dark);
  color: white;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.plan-invest-btn:hover {
  background: var(--plan-color, var(--tesla-red));
  transform: translateY(-1px);
}

/* Shares / Companies */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 60px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.company-card {
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
  cursor: pointer;
}

.company-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-3px);
  border-color: var(--tesla-red);
}

.company-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.company-icon {
  width: 48px;
  height: 48px;
  background: var(--tesla-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  font-weight: 700;
}

.company-info h3 { font-size: 18px; font-weight: 600; }
.company-info .ticker { font-size: 13px; color: var(--tesla-gray); }

.company-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--tesla-dark);
  margin-bottom: 4px;
}

.company-change {
  font-size: 14px;
  color: #22c55e;
  margin-bottom: 16px;
}

.company-change.down { color: #ef4444; }

.company-desc {
  font-size: 13px;
  color: var(--tesla-gray);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ===== PAYMENT MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--tesla-gray);
  line-height: 1;
}

.modal h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.modal-subtitle {
  color: var(--tesla-gray);
  font-size: 14px;
  margin-bottom: 28px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--tesla-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--tesla-border);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font);
  transition: border-color 0.2s;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--tesla-dark);
}

.payment-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.payment-tab {
  flex: 1;
  min-width: 100px;
  padding: 10px 16px;
  background: #f4f4f4;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.payment-tab.active {
  background: var(--tesla-dark);
  color: white;
  border-color: var(--tesla-dark);
}

.payment-details {
  display: none;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
  margin-bottom: 20px;
}

.payment-details.active { display: block; }

.crypto-address {
  font-family: monospace;
  font-size: 13px;
  word-break: break-all;
  background: white;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.copy-btn {
  background: var(--tesla-dark);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.copy-btn:hover { background: var(--tesla-red); }

.amount-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(232,33,39,0.05);
  border: 1px solid rgba(232,33,39,0.2);
  border-radius: 8px;
  margin-bottom: 16px;
}

.amount-info span:first-child { font-size: 13px; color: var(--tesla-gray); }
.amount-info span:last-child { font-size: 18px; font-weight: 700; color: var(--tesla-red); }

/* ===== DASHBOARD ===== */
.dash-wrapper {
  display: flex;
  min-height: 100vh;
  padding-top: var(--nav-height);
}

.dash-sidebar {
  width: 260px;
  background: var(--tesla-dark);
  padding: 32px 0;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
}

.dash-sidebar .sidebar-brand {
  padding: 0 24px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
}

.dash-sidebar .sidebar-brand h3 {
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.dash-sidebar .sidebar-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  margin-top: 4px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  color: white;
  background: rgba(255,255,255,0.05);
}

.sidebar-nav a.active {
  color: white;
  background: rgba(255,255,255,0.08);
  border-left-color: var(--tesla-red);
}

.sidebar-nav a .nav-icon { font-size: 18px; }

.dash-main {
  flex: 1;
  margin-left: 260px;
  padding: 40px;
  background: #f8f9fa;
  min-height: calc(100vh - var(--nav-height));
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.dash-header h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--tesla-dark);
}

.dash-header p { font-size: 14px; color: var(--tesla-gray); }

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #efefef;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(232,33,39,0.08);
}

.stat-icon.green { background: rgba(34,197,94,0.08); }
.stat-icon.blue { background: rgba(23,26,32,0.08); }
.stat-icon.purple { background: rgba(168,85,247,0.08); }

.stat-badge {
  font-size: 11px;
  font-weight: 600;
  color: #22c55e;
  background: rgba(34,197,94,0.1);
  padding: 2px 8px;
  border-radius: 20px;
}

.stat-card h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--tesla-dark);
  margin-bottom: 4px;
}

.stat-card p { font-size: 13px; color: var(--tesla-gray); }

/* Table */
.dash-table-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #efefef;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-bottom: 24px;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.table-header h3 { font-size: 18px; font-weight: 600; }

.table-header a {
  color: var(--tesla-red);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--tesla-gray);
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.data-table td {
  padding: 16px;
  font-size: 14px;
  border-bottom: 1px solid #f7f7f7;
  vertical-align: middle;
}

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

.data-table tr:hover td { background: #fafafa; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.pending { background: rgba(245,158,11,0.1); color: #d97706; }
.status-badge.active { background: rgba(34,197,94,0.1); color: #16a34a; }
.status-badge.approved { background: rgba(34,197,94,0.1); color: #16a34a; }
.status-badge.confirmed { background: rgba(34,197,94,0.1); color: #16a34a; }
.status-badge.completed { background: rgba(23,26,32,0.1); color: var(--tesla-dark); }
.status-badge.rejected { background: rgba(239,68,68,0.1); color: #dc2626; }

/* Alert Messages */
.alert {
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success { background: rgba(34,197,94,0.1); color: #16a34a; border: 1px solid rgba(34,197,94,0.2); }
.alert-error { background: rgba(239,68,68,0.1); color: #dc2626; border: 1px solid rgba(239,68,68,0.2); }

/* ===== ADMIN DASHBOARD ===== */
.admin-sidebar {
  width: 260px;
  background: #0f172a;
}

.admin-sidebar .sidebar-brand { border-bottom-color: rgba(255,255,255,0.08); }

/* ===== FORMS ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  background: #f8f9fa;
}

.auth-card {
  background: white;
  border-radius: 20px;
  padding: 48px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 4px 40px rgba(0,0,0,0.08);
}

.auth-logo { text-align: center; margin-bottom: 32px; }

.auth-logo svg path { fill: var(--tesla-red); }

.auth-card h1 {
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
}

.auth-card .auth-subtitle {
  text-align: center;
  color: var(--tesla-gray);
  font-size: 14px;
  margin-bottom: 32px;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--tesla-dark);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.submit-btn:hover { background: var(--tesla-red); }

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--tesla-gray);
}

.auth-footer a {
  color: var(--tesla-dark);
  text-decoration: none;
  font-weight: 600;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== FOOTER ===== */
.tesla-footer {
  background: var(--tesla-dark);
  padding: 20px 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

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

/* ===== WHY INVEST SECTION ===== */
.why-invest {
  background: linear-gradient(to bottom, #000, #0a0a0a);
  padding: 100px 60px;
  color: white;
}

.why-invest h2 {
  font-size: 48px;
  font-weight: 300;
  text-align: center;
  margin-bottom: 16px;
}

.why-invest .subtitle {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  margin-bottom: 80px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  padding: 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  transition: all 0.3s;
}

.feature-item:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--tesla-red);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 20px;
}

.feature-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: white;
}

.feature-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ===== WITHDRAWAL PAGE ===== */
.withdraw-form {
  max-width: 600px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  /* mobile-menu and mobile-overlay are always display:block; shown via visibility/transform */
  
  .plans-grid { padding: 20px 24px 60px; }
  .companies-grid { padding: 20px 24px 60px; }
  .why-invest { padding: 60px 24px; }
}

@media (max-width: 768px) {
  .tesla-nav { padding: 0 20px; }
  
  .invest-hero { padding: 120px 24px 60px; }
  .invest-hero h1 { font-size: 36px; }
  
  .dash-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .dash-sidebar.open { transform: translateX(0); }
  .dash-main { margin-left: 0; padding: 24px 20px; }
  
  .two-col { grid-template-columns: 1fr; }
  
  .auth-card { padding: 32px 24px; }
  
  .hero-content h1 { font-size: 28px; }
  
  .section-title h2 { font-size: 28px; }
}

/* ===== FLASH MESSAGES ===== */
.flash-container {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.flash-msg {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.flash-success { background: white; color: #16a34a; border-left: 4px solid #16a34a; }
.flash-error { background: white; color: #dc2626; border-left: 4px solid #dc2626; }

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

/* ===== LOADING ===== */
.loading-spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== PROFILE PAGE ===== */
.profile-section {
  background: white;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #efefef;
  margin-bottom: 24px;
}

.profile-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

/* ===== WITHDRAW PAGE ===== */
.withdraw-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.withdraw-tab {
  padding: 10px 20px;
  border: 2px solid var(--tesla-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: white;
  transition: all 0.2s;
}

.withdraw-tab.active {
  background: var(--tesla-dark);
  color: white;
  border-color: var(--tesla-dark);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--tesla-gray);
}

.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 500; margin-bottom: 8px; color: var(--tesla-dark); }
.empty-state p { font-size: 14px; margin-bottom: 24px; }
