/* Stocker — dark fintech theme */
:root {
  --bg: #0b0f17;
  --bg-elevated: #121826;
  --bg-card: #161d2c;
  --border: #1f2a3d;
  --text: #e6edf6;
  --text-dim: #8a97ad;
  --brand: #21c97b;
  --brand-2: #16a866;
  --danger: #ef4d5c;
  --warning: #f0b429;
  --accent: #4f8cff;
}

* { box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #7aa8ff; }

/* Top nav */
.navbar-stocker {
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-stocker .navbar-brand {
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--text) !important;
}
.brand-dot {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--brand);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 12px var(--brand);
}
.navbar-stocker .nav-link {
  color: var(--text-dim) !important;
  font-weight: 500;
}
.navbar-stocker .nav-link.active,
.navbar-stocker .nav-link:hover { color: var(--text) !important; }

/* Buttons */
.btn-brand {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  border: none;
  color: #07150e;
  font-weight: 600;
}
.btn-brand:hover { color: #07150e; opacity: .92; }
.btn-outline-soft {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-outline-soft:hover { background: var(--bg-elevated); color: var(--text); }

/* Cards */
.card-soft {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
}
.stat-card {
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
}
.stat-card .label { color: var(--text-dim); font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; }
.stat-card .value { font-size: 1.75rem; font-weight: 700; margin-top: 4px; }

/* Hero */
.hero {
  padding: 7rem 0 5rem;
  background:
    radial-gradient(ellipse at top left, rgba(33, 201, 123, .15), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(79, 140, 255, .12), transparent 50%);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.05;
}
.hero .lead { color: var(--text-dim); font-size: 1.15rem; max-width: 640px; }

.gradient-text {
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  height: 100%;
  transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.feature-icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(33, 201, 123, .12);
  color: var(--brand);
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.aws-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  font-weight: 600;
}
.aws-card small { color: var(--text-dim); display: block; margin-top: 4px; font-weight: 400; }

/* Tables */
.table-stocker {
  color: var(--text);
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0;
}
.table-stocker thead th {
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
}
.table-stocker tbody td {
  border-color: var(--border);
  vertical-align: middle;
}
.table-stocker tbody tr:hover { background: rgba(255,255,255,.02); }

.change-up { color: var(--brand); font-weight: 600; }
.change-down { color: var(--danger); font-weight: 600; }

/* Forms */
.auth-wrapper {
  min-height: calc(100vh - 70px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem;
  width: 100%; max-width: 420px;
}
.form-control, .form-control:focus {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
}
.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .15rem rgba(33,201,123,.18);
}
.form-label { color: var(--text-dim); font-size: .85rem; font-weight: 500; }

/* Notification bell */
.notif-wrapper { position: relative; }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--danger);
  color: white; font-size: .65rem;
  border-radius: 999px; padding: 1px 6px; font-weight: 700;
}
.notif-panel {
  position: absolute; right: 0; top: 42px;
  width: 320px; max-height: 400px; overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .5rem 0;
  display: none;
  z-index: 1050;
  box-shadow: 0 12px 36px rgba(0,0,0,.5);
}
.notif-panel.open { display: block; }
.notif-item {
  padding: .65rem 1rem;
  font-size: .85rem;
  border-bottom: 1px solid var(--border);
}
.notif-item:last-child { border-bottom: none; }
.notif-item .time { color: var(--text-dim); font-size: .7rem; }

/* Modal overrides */
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}
.modal-header, .modal-footer { border-color: var(--border); }
.btn-close { filter: invert(1); }

footer.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  padding: 2rem 0;
  margin-top: 4rem;
}

/* Toasts */
.toast-container { z-index: 1100; }
