:root {
  --bg: #0f172a;
  --card: #1e293b;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: #334155;
  --error: #f87171;
  --success: #34d399;
}

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #1e293b, var(--bg));
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.card h1 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  text-align: center;
}

.card .subtitle {
  color: var(--muted);
  text-align: center;
  margin-bottom: 28px;
  font-size: 0.92rem;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.15s;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
}

.field .hint {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.section-title {
  margin: 26px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 1.05rem;
  color: var(--text);
}

.admin-card {
  text-align: left;
}

.table-wrap {
  overflow-x: auto;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.users-table th,
.users-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.users-table th {
  color: var(--muted);
  font-weight: 600;
}

.users-table select {
  padding: 6px 8px;
  width: auto;
}

.edit-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.edit-link:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 8px 0 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.social-link.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link.facebook {
  background: #1877f2;
}

.social-link:hover {
  opacity: 0.9;
}

.btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--primary-hover);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.link-row {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

.link-row a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.link-row a:hover {
  text-decoration: underline;
}

.message {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  text-align: center;
  display: none;
}

.message.error {
  display: block;
  background: rgba(248, 113, 113, 0.12);
  color: var(--error);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.message.success {
  display: block;
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* Dashboard */
.dashboard {
  max-width: 640px;
  text-align: center;
}

.dashboard .user-email {
  color: var(--primary);
  font-weight: 600;
}

.dashboard .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  margin-top: 20px;
}

.btn-secondary:hover {
  background: #0f172a;
}
