* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #0f172a;
  min-height: 100vh;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.brand {
  font-weight: 700;
  color: #0f172a;
  font-size: 18px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info span {
  color: #475569;
  font-size: 14px;
}

.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  max-width: 450px;
  margin: 0 auto;
}

.hero {
  text-align: center;
  padding: 60px 32px;
  max-width: 600px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: #64748b;
  font-size: 18px;
  margin: 0 0 32px;
}

.row {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #475569;
  font-weight: 500;
}

input {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  background: #f8fafc;
  transition: all 0.2s;
}

input:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
  border-color: #667eea;
  background: #fff;
}

button {
  padding: 12px 20px;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

button:active {
  transform: translateY(0);
}

button.ghost {
  background: transparent;
  color: #64748b;
  border: 1px solid #cbd5e1;
  box-shadow: none;
}

button.ghost:hover {
  background: #f1f5f9;
  transform: none;
}

button.danger {
  background: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

button.danger:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

button.small {
  padding: 6px 12px;
  font-size: 12px;
}

.message {
  margin-top: 12px;
  font-size: 13px;
  padding: 10px;
  border-radius: 8px;
}

.message.error {
  background: #fee2e2;
  color: #b91c1c;
}

.message.success {
  background: #d1fae5;
  color: #065f46;
}

.links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  font-size: 14px;
}

.muted {
  color: #64748b;
  font-size: 14px;
}

.space-top {
  margin-top: 20px;
}

.admin-link {
  display: inline-block;
  margin-top: 24px;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
  text-decoration: none;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.table th {
  color: #475569;
  font-weight: 600;
  background: #f8fafc;
}

.table tr:hover {
  background: #f8fafc;
}

.gift-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  margin-bottom: 8px;
  padding: 6px 12px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 13px;
}

.gift-btn {
  padding: 4px 8px;
  font-size: 11px;
  margin-left: 4px;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.form-inline {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.form-inline input {
  flex: 1;
  max-width: 200px;
}
