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

:root {
  --black:   #0a0a0a;
  --white:   #ffffff;
  --gray-50: #fafafa;
  --gray-100:#f4f4f5;
  --gray-200:#e4e4e7;
  --gray-300:#d1d5db;
  --gray-400:#9ca3af;
  --gray-500:#6b7280;
  --gray-600:#4b5563;
  --gray-700:#374151;
  --gray-800:#1f2937;
  --gray-900:#111827;
  --accent:  #0a0a0a;
  --radius:  12px;
}

html, body {
  min-height: 100vh;
  background: var(--gray-50);
  color: var(--gray-900);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  background: var(--black);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.topbar-logo svg { width: 20px; height: 20px; fill: var(--white); opacity: 0.9; }
.topbar-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.topbar-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero {
  background: var(--black);
  color: var(--white);
  padding: 48px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(24px, 5vw, 36px); font-weight: 800;
  line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 12px;
}
.hero h1 span { color: rgba(255,255,255,0.45); }
.hero-sub {
  font-size: 14px; color: rgba(255,255,255,0.45);
  max-width: 340px; margin: 0 auto; line-height: 1.6;
}

.container { max-width: 480px; margin: 0 auto; padding: 32px 16px 64px; }

.section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gray-400); margin-bottom: 12px;
}

.manager-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 20px; margin-bottom: 28px;
  display: flex; align-items: center; gap: 16px;
}
.manager-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--black); display: flex; align-items: center;
  justify-content: center; font-size: 20px; font-weight: 800;
  color: var(--white); flex-shrink: 0; letter-spacing: -1px;
}
.manager-meta { flex: 1; min-width: 0; }
.manager-name {
  font-size: 16px; font-weight: 700; color: var(--gray-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.manager-status {
  display: flex; align-items: center; gap: 6px;
  margin-top: 3px; font-size: 12px; color: var(--gray-500);
}
.status-dot {
  width: 7px; height: 7px; background: #22c55e;
  border-radius: 50%; flex-shrink: 0; animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.manager-tag {
  flex-shrink: 0; background: var(--gray-100);
  border: 1px solid var(--gray-200); border-radius: 6px;
  padding: 4px 10px; font-size: 11px; font-weight: 600;
  color: var(--gray-600); letter-spacing: 0.3px;
}

.messengers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 32px; }
.messengers.single { grid-template-columns: 1fr; }
.btn-messenger {
  display: flex; align-items: center; justify-content: center;
  gap: 9px; padding: 15px 12px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; color: var(--white);
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
  letter-spacing: 0.2px;
}
.btn-messenger:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn-messenger:active { transform: scale(0.97); }
.btn-messenger svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }
.btn-tg { background: #000; box-shadow: 0 2px 12px rgba(0,0,0,0.18); }
.btn-wa { background: #111; box-shadow: 0 2px 12px rgba(0,0,0,0.15); border: 1px solid rgba(255,255,255,0.06); }
.btn-tg:hover { background: #0088cc; box-shadow: 0 4px 18px rgba(0,136,204,0.3); }
.btn-wa:hover { background: #128c7e; box-shadow: 0 4px 18px rgba(18,140,126,0.3); }

.divider { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.divider-line { flex: 1; height: 1px; background: var(--gray-200); }
.divider-text {
  font-size: 11px; font-weight: 600; color: var(--gray-400);
  letter-spacing: 1px; text-transform: uppercase; white-space: nowrap;
}

.form-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 28px 24px; }
.form-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-100); }
.form-header h2 { font-size: 17px; font-weight: 800; color: var(--gray-900); letter-spacing: -0.3px; }
.form-header p { font-size: 13px; color: var(--gray-500); margin-top: 4px; line-height: 1.5; }

.form-group { margin-bottom: 16px; }
label { display: block; font-size: 12px; font-weight: 700; color: var(--gray-700); margin-bottom: 6px; letter-spacing: 0.2px; text-transform: uppercase; }
label .req { color: #ef4444; margin-left: 2px; }
input, select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-200);
  border-radius: 9px; font-size: 14px; color: var(--gray-900);
  background: var(--white); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s; -webkit-appearance: none;
}
input::placeholder { color: var(--gray-400); }
input:focus, select:focus { border-color: var(--black); box-shadow: 0 0 0 3px rgba(0,0,0,0.07); }
input.error, select.error { border-color: #ef4444; }
.field-error { font-size: 11px; color: #ef4444; margin-top: 4px; display: none; font-weight: 500; }
.field-error.show { display: block; }

.amount-wrap { position: relative; }
.amount-prefix {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 14px; color: var(--gray-400); pointer-events: none; font-weight: 600;
}
.amount-wrap input { padding-left: 26px; }

.btn-submit {
  width: 100%; padding: 15px; background: var(--black); color: var(--white);
  border: none; border-radius: 10px; font-size: 15px; font-weight: 700;
  cursor: pointer; margin-top: 8px; letter-spacing: 0.2px;
  transition: opacity 0.15s, transform 0.12s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover   { opacity: 0.85; }
.btn-submit:active  { transform: scale(0.99); }
.btn-submit:disabled { opacity: 0.45; cursor: not-allowed; }

.loader {
  display: none; width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.state-message { display: none; text-align: center; padding: 36px 16px; }
.state-message.show { display: block; }
.state-icon { font-size: 48px; margin-bottom: 14px; }
.state-message h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.3px; }
.state-message p { font-size: 13px; color: var(--gray-500); line-height: 1.7; }
.state-success h3 { color: var(--gray-900); }
.state-error   h3 { color: #c53030; }
.btn-retry { margin-top: 20px; padding: 10px 24px; background: var(--black); color: var(--white); border: none; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }

.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-name { height: 16px; width: 55%; margin-bottom: 7px; }
.sk-role { height: 12px; width: 38%; }
.sk-btn  { height: 50px; border-radius: 10px; }

.not-found { display: none; text-align: center; padding: 64px 20px; }
.not-found.show { display: block; }
.not-found .nf-icon { font-size: 56px; margin-bottom: 16px; }
.not-found h2 { font-size: 18px; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; }
.not-found p { font-size: 13px; color: var(--gray-500); line-height: 1.7; }

.footer-note {
  text-align: center; margin-top: 28px; font-size: 11px;
  color: var(--gray-400); line-height: 1.7;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.footer-note svg { width: 12px; height: 12px; fill: var(--gray-400); flex-shrink: 0; }

.trust-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; padding: 14px 16px; background: var(--white); border-bottom: 1px solid var(--gray-200);
}
.trust-item { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--gray-500); letter-spacing: 0.3px; }
.trust-item svg { width: 13px; height: 13px; fill: var(--gray-400); }
