/* ========== Reset & Base ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root{
  --bg: #000;
  --panel: #fff;
  --green: #18c964;
  --text: #000;
  --muted: rgba(0,0,0,0.75);
  --shadow1: 0 30px 60px rgba(0,0,0,0.55);
  --shadow2: 0 10px 20px rgba(0,0,0,0.2);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

body {
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", Helvetica, sans-serif;
  min-height: 100vh;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

/* ========== Navbar ========== */
.navbar {
  background: var(--green);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  height: 52px;
  width: auto;
}

.brand .title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

/* Desktop nav */
.nav-links {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  transition: transform 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}

.nav-links a:hover {
  background: rgba(0,0,0,0.18);
  transform: translateY(-1px);
}

.nav-links a.active {
  background: rgba(0,0,0,0.24);
}

/* Mobile menu */
.menu-btn {
  display: none;
  background: rgba(0,0,0,0.15);
  border: none;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
}

/* ========== Layout ========== */
.container {
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 16px;
}

.content-panel {
  background: var(--panel);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow1), var(--shadow2);
}

/* Headings + text */
.content-panel h1 {
  font-size: clamp(26px, 2.6vw, 38px);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.content-panel h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.content-panel p {
  color: var(--text);
  line-height: 1.65;
}

/* ========== Cards ========== */
.card {
  background: var(--green);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 18px;
  box-shadow: 0 16px 30px rgba(0,0,0,0.32), inset 0 0 0 1px rgba(0,0,0,0.14);
  transform: translateY(0);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px rgba(0,0,0,0.42), inset 0 0 0 1px rgba(0,0,0,0.18);
}

.card h2 { color: var(--text); font-weight: 900; }
.card p { color: #083b1f; font-weight: 700; }

/* ========== Forms ========== */
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form label {
  font-weight: 900;
  color: var(--text);
  margin-top: 2px;
}

.form input {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.35);
  background: #fff;
  color: var(--text);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.form input:focus {
  outline: none;
  border-color: rgba(0,0,0,0.6);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.10);
}

/* Buttons */
.btn {
  background: #000;
  color: #fff;
  font-weight: 900;
  padding: 12px 14px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn:active { transform: translateY(0px); opacity: 0.88; }

.btn.danger { background: #ff4d4d; color: #000; }

/* Messages */
.msg { font-weight: 900; margin-top: 6px; color: #000; }

/* Links that look like buttons */
.btn-link { text-decoration: none; display: inline-flex; }

/* ===== Dashboard grid helper (optional) ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .content-panel { padding: 22px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    background: var(--green);
    padding: 12px;
    border-radius: 18px;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 16px 30px rgba(0,0,0,0.30);
  }
  .nav-links.show { display: flex; }
  .nav-links a { width: 100%; justify-content: center; text-align: center; }

  .brand img { height: 46px; }
  .brand .title { font-size: 18px; }

  .grid { grid-template-columns: 1fr; }
}

/* ===== Enhancements (Home + Vault) ===== */
.hero { padding: 10px 0; }
.hero-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.03);
  font-size: 14px;
  margin-bottom: 12px;
}
.hero-title { font-size: 40px; margin: 6px 0; }
.hero-subtitle { font-size: 16px; line-height: 1.6; }

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}

.vault-status {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
}
.vault-status.locked { background: rgba(0,0,0,0.03); }
.vault-status.unlocked { background: rgba(0,128,0,0.07); }

@media (max-width: 520px) {
  .hero-title { font-size: 32px; }
}
