/* TradeMO Platform Styles */
:root {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-sidebar: #111827;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --green: #10b981;
  --red: #ef4444;
  --yellow: #f59e0b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #f8fafc; color: #1e293b; }
body.landing { background: #fff; }
body.dashboard { background: var(--bg); color: var(--text); overflow: hidden; height: 100vh; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 16px 0; position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 700; color: #1e40af; }
.logo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
nav a { margin-left: 24px; text-decoration: none; color: #475569; font-weight: 500; }
.btn { background: var(--accent); color: white; padding: 10px 20px; border-radius: 8px; text-decoration: none; display: inline-block; font-weight: 600; transition: 0.2s; }
.btn:hover { background: var(--accent-hover); }
.btn-large { padding: 14px 32px; font-size: 18px; }

/* Hero */
.hero { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); color: white; padding: 80px 0; text-align: center; }
.hero h1 { font-size: 42px; margin-bottom: 16px; }
.hero p { font-size: 18px; max-width: 700px; margin: 0 auto 32px; opacity: 0.95; }
.stats { display: flex; justify-content: center; gap: 40px; margin: 40px 0; flex-wrap: wrap; }
.stat { text-align: center; }
.stat span { display: block; font-size: 36px; font-weight: 700; }

/* Sections */
.section { padding: 80px 0; }
.section.gray { background: #f1f5f9; }
.section h2 { font-size: 32px; margin-bottom: 24px; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; }
.card { background: white; padding: 24px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.requirements { list-style: none; max-width: 600px; margin: 0 auto 32px; }
.requirements li { padding: 12px 0; border-bottom: 1px solid #e2e8f0; font-size: 18px; }
.requirements li::before { content: "✓ "; color: var(--green); font-weight: bold; }

footer { background: #1e293b; color: white; padding: 24px 0; text-align: center; }

/* Dashboard */
.dashboard-layout { display: flex; height: 100vh; }
.sidebar { width: 260px; background: var(--bg-sidebar); border-right: 1px solid var(--border); padding: 20px 0; overflow-y: auto; }
.sidebar .logo { padding: 0 20px 20px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.sidebar .logo span { color: white; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: var(--text-muted); text-decoration: none; cursor: pointer; transition: 0.15s; }
.menu-item:hover, .menu-item.active { background: rgba(59,130,246,0.15); color: white; border-left: 3px solid var(--accent); }
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar { height: 64px; background: var(--bg-card); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.content { flex: 1; overflow-y: auto; padding: 24px; }

/* Cards & Tables */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); padding: 20px; border-radius: 12px; border: 1px solid var(--border); }
.stat-card h3 { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.stat-card .value { font-size: 28px; font-weight: 700; }
.stat-card .value.green { color: var(--green); }
.stat-card .value.blue { color: var(--accent); }

.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.profile-card { background: var(--bg-card); border-radius: 12px; padding: 16px; border: 1px solid var(--border); }
.profile-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.profile-name { font-weight: 600; }
.profile-id { color: var(--text-muted); font-size: 13px; }
.bank-badge { background: #1e3a8a; padding: 6px 10px; border-radius: 6px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.ready-list { margin-top: 12px; font-size: 13px; }
.ready-list div { margin: 4px 0; }
.check { color: var(--green); }
.cross { color: var(--red); }

table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: 12px; overflow: hidden; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #1e293b; color: var(--text-muted); font-weight: 600; font-size: 13px; }
tr:hover { background: rgba(255,255,255,0.03); }
.status { padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.status.success { background: rgba(16,185,129,0.2); color: var(--green); }
.status.pending { background: rgba(245,158,11,0.2); color: var(--yellow); }
.status.dispute { background: rgba(239,68,68,0.2); color: var(--red); }

.filters { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
input, select { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); padding: 8px 12px; border-radius: 6px; }
.btn-sm { padding: 6px 12px; font-size: 13px; border: none; border-radius: 6px; cursor: pointer; }
.btn-success { background: var(--green); color: white; }
.btn-danger { background: var(--red); color: white; }

.section-title { font-size: 24px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.hidden { display: none; }

.sidebar .menu-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px 16px !important;
  margin: 2px 8px;
  border-radius: 6px;
  color: #94a3b8 !important;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.15s;
}
.sidebar .menu-item:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #e2e8f0 !important;
}
.sidebar .menu-item.active {
  background: #1e40af !important;
  color: #fff !important;
  font-weight: 600;
  position: relative;
}
.sidebar .menu-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #3b82f6;
  border-radius: 0 2px 2px 0;
}
.sidebar .logo {
  padding: 16px 20px 8px;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 8px;
}
