/* ===== Base ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color: #f9fafb;
  background: #050510;
}

.bg-gradient {
  min-height: 100vh;
  background: radial-gradient(circle at top, #4f46e5 0, #020617 45%, #000 100%);
}

/* ===== LINKTREE STYLE (PUBLIC PAGE) ===== */

.lt-page {
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lt-header {
  text-align: center;
  margin-bottom: 28px;
}

.lt-avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #fde68a, #f97316 40%, #7c2d12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  font-size: 42px;
}

.lt-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
}

.lt-subtitle {
  margin: 0;
  font-size: 14px;
  color: #e5e7eb;
}

/* Список кнопок */

.lt-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lt-link-form {
  width: 100%;
  margin: 0;
}

.lt-link-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  border-radius: 16px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.96);
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.8);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.lt-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.95);
  background: rgba(15, 23, 42, 1);
}

.lt-link-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lt-link-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 20%, #22c55e, #16a34a 40%, #064e3b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.lt-link-texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lt-link-title {
  font-size: 15px;
  font-weight: 600;
}

.lt-link-sub {
  font-size: 12px;
  color: #9ca3af;
}

.lt-link-chevron {
  font-size: 20px;
  color: #9ca3af;
}

/* Footer */

.lt-footer {
  margin-top: 24px;
  font-size: 11px;
  color: #6b7280;
  text-align: center;
}

/* ===== ADMIN CARD STYLE (залишаємо) ===== */

.page-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 20px;
  padding: 24px 24px 20px;
  max-width: 960px;
  width: 100%;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.card-admin {
  max-width: 1024px;
}

.title {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 700;
}

.subtitle {
  margin: 0;
  font-size: 14px;
  color: #9ca3af;
}

.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-32 { margin-top: 32px; }

/* Inputs, таблиці, флеші – як було */

.input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.95);
  color: #f9fafb;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder {
  color: #6b7280;
}

.input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3);
}

.label {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 4px;
  display: block;
}

.form-vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-row-inline {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #e5e7eb;
}

/* Buttons for admin */

.btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #f9fafb;
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(79, 70, 229, 0.7);
}

.btn-danger {
  background: #ef4444;
  color: #f9fafb;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-xs {
  padding: 4px 10px;
  font-size: 12px;
}

.full-width {
  width: 100%;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th,
.table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(55, 65, 81, 0.7);
  text-align: left;
}

.table th {
  font-weight: 600;
  color: #9ca3af;
  background: rgba(15, 23, 42, 0.9);
}

.table tr:hover td {
  background: rgba(15, 23, 42, 0.8);
}

.cell-url {
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flash-wrapper {
  margin-bottom: 12px;
}

.flash {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 6px;
}

.flash-ok {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.6);
}

.flash-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.7);
}

.empty-text {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

/* Responsive */

@media (max-width: 640px) {
  .card {
    padding: 20px 16px 18px;
  }

  .form-row-inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cell-url {
    max-width: 220px;
  }
}
