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

body {
  font-family: 'Poppins', sans-serif;
  background: #0a0f1e;
  color: #e2e8f0;
  min-height: 100vh;
}

/* ── AUTH GATE ── */
#authGate {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, #0a0f1e 0%, #111827 100%);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}

.auth-box {
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 44px 36px;
  width: 100%; max-width: 400px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

.auth-logo img {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(124,58,237,0.5);
  margin-bottom: 20px;
}

.auth-box h2 {
  font-size: 1.5rem; font-weight: 800;
  color: #f1f5f9; margin-bottom: 6px;
}

.auth-box p {
  font-size: 0.82rem; color: #94a3b8; margin-bottom: 28px;
}

.input-wrap {
  position: relative; margin-bottom: 14px;
}

.input-wrap input {
  width: 100%; padding: 13px 44px 13px 16px;
  border-radius: 12px; border: 1.5px solid rgba(255,255,255,0.1);
  background: #334155; color: #f1f5f9;
  font-size: 0.95rem; font-family: 'Poppins', sans-serif;
  outline: none; letter-spacing: 2px;
  transition: border-color 0.2s;
}

.input-wrap input:focus { border-color: #7c3aed; }

.eye-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1rem; color: #94a3b8;
}

.unlock-btn {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff; border: none; border-radius: 12px;
  font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: opacity 0.2s, transform 0.15s;
  font-family: 'Poppins', sans-serif;
}

.unlock-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.auth-err {
  margin-top: 12px; font-size: 0.82rem; color: #ef4444; min-height: 18px;
}

/* ── HEADER ── */
.hub-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: rgba(30,41,59,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
}

.hub-brand {
  display: flex; align-items: center; gap: 14px;
}

.hub-brand img {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(124,58,237,0.5);
}

.hub-brand h1 {
  font-size: 1.15rem; font-weight: 800; color: #f1f5f9; line-height: 1.2;
}

.hub-brand span {
  font-size: 0.72rem; color: #64748b; font-weight: 500;
}

.logout-btn {
  padding: 8px 20px;
  background: rgba(239,68,68,0.12);
  color: #ef4444; border: 1px solid rgba(239,68,68,0.25);
  border-radius: 20px; font-size: 0.82rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s;
  font-family: 'Poppins', sans-serif;
}

.logout-btn:hover { background: rgba(239,68,68,0.22); }

/* ── MAIN ── */
.hub-main {
  max-width: 1100px; margin: 0 auto;
  padding: 48px 24px 60px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}

/* ── CARD ── */
.card {
  display: flex; align-items: center; gap: 16px;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 18px 20px;
  text-decoration: none; color: inherit;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}

.card-info { flex: 1; min-width: 0; }

.card-name {
  font-size: 0.95rem; font-weight: 700; color: #f1f5f9;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.card-url {
  font-size: 0.72rem; color: #7c3aed; font-weight: 600;
  margin: 2px 0 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.card-desc {
  font-size: 0.75rem; color: #64748b; line-height: 1.4;
}

.card-arrow {
  font-size: 1.1rem; color: #475569; flex-shrink: 0;
  transition: color 0.18s, transform 0.18s;
}

.card:hover .card-arrow { color: #a78bfa; transform: translateX(3px); }

/* ── FOOTER ── */
.hub-footer {
  text-align: center; padding: 20px;
  font-size: 0.72rem; color: #334155;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hub-header { padding: 14px 16px; }
  .hub-main   { padding: 24px 14px 48px; }
  .cards-grid { grid-template-columns: 1fr; }
  .auth-box   { padding: 32px 22px; }
}

/* ── Change Password Buttons ── */
.pw-btn {
  display: flex; align-items: center; gap: 14px;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px 18px;
  color: #e2e8f0; text-align: left;
  cursor: pointer; font-family: 'Poppins', sans-serif;
  transition: border-color 0.18s, transform 0.15s;
  font-size: 0.88rem; font-weight: 600;
}
.pw-btn:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-2px); }
.pw-btn span  { font-size: 1.4rem; flex-shrink: 0; }
.pw-sub       { font-size: 0.7rem; color: #64748b; font-weight: 400; margin-top: 2px; }
