@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --bg: #101014;
  --surface: #17171D;
  --surface-2: #1E1E26;
  --border: #2A2A34;
  --accent: #E5A039;
  --accent-dark: #C4842A;
  --text: #F2F1EE;
  --text-muted: #A9A8B0;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100vh;
  background:
    radial-gradient(ellipse 1200px 800px at 15% -10%, rgba(229,160,57,0.28), transparent 60%),
    radial-gradient(ellipse 1000px 800px at 100% 105%, rgba(229,160,57,0.18), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: 'Manrope', -apple-system, sans-serif;
}
a { color: inherit; }

/* ---- Auth pages ---- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 20px; margin: 0 0 6px; }
.muted { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
label { display: block; font-size: 12px; color: var(--text-muted); margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea {
  width: 100%; padding: 11px 12px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-family: inherit; font-size: 14px;
}
input[type=file] { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.btn-primary {
  width: 100%; padding: 12px; margin-top: 20px; border: none; border-radius: 8px;
  background: var(--accent); color: #1A1305; font-weight: 700; font-size: 14px; cursor: pointer;
  box-shadow: 0 0 16px rgba(229,160,57,0.35); transition: box-shadow 0.15s ease;
}
.btn-primary:hover { box-shadow: 0 0 24px rgba(229,160,57,0.55); }
.btn-secondary {
  padding: 9px 16px; border-radius: 8px; background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); font-family: inherit; font-size: 13px; cursor: pointer; text-decoration: none;
}
.error-box { background: rgba(220,53,69,0.12); border: 1px solid #DC3545; color: #FF8A97; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 6px; }
.ok-box { background: rgba(45,164,78,0.12); border: 1px solid #2DA44E; color: #6FDD8F; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 6px; }

/* ---- Admin shell ---- */
.admin-shell { max-width: 900px; margin: 0 auto; padding: 24px 20px 60px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.admin-topbar .brand { font-size: 18px; font-weight: 800; }
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-nav a { padding: 8px 14px; border-radius: 8px; font-size: 13px; text-decoration: none; color: var(--text-muted); border: 1px solid var(--border); }
.admin-nav a.active { color: #1A1305; background: var(--accent); border-color: var(--accent); font-weight: 700; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.panel h2 { font-size: 15px; margin: 0 0 16px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.stat-card .label { font-size: 11px; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; }
.stat-card .value { font-size: 24px; font-weight: 800; margin-top: 6px; }
.stat-card .value.accent { color: var(--accent); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-weight: 600; font-size: 11px; text-transform: uppercase; }
input.inline-num { width: 80px; padding: 6px 8px; font-size: 13px; }

.shareholder-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.shareholder-row:last-child { border-bottom: none; }
.sh-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 2px solid var(--accent); flex-shrink: 0; }
.sh-photo.placeholder { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent); }
.sh-fields { flex: 1; display: grid; grid-template-columns: 2fr 1.5fr 0.8fr; gap: 8px; }
.sh-fields input { padding: 8px; font-size: 13px; }

/* ---- Public shareholders page ---- */
.public-wrap { max-width: 720px; margin: 0 auto; padding: 50px 20px 70px; text-align: center; }
.public-logo { max-width: 120px; max-height: 120px; margin-bottom: 16px; border-radius: 14px; }
.public-title { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.glow-dot { height: 3px; width: 56px; background: var(--accent); margin: 10px auto 30px; border-radius: 2px; box-shadow: 0 0 16px rgba(229,160,57,0.6); }
.investor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 24px; margin-top: 10px; }
.investor-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 16px; }
.investor-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; display: block; border: 3px solid var(--accent); }
.investor-photo.placeholder { display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: var(--accent); background: var(--surface-2); }
.investor-name { font-weight: 700; font-size: 15px; }
.investor-role { color: var(--text-muted); font-size: 12.5px; margin-top: 2px; }
.investor-pct { color: var(--accent); font-weight: 800; font-size: 18px; margin-top: 10px; }
