:root {
  --brand: #d9480f;
  --brand-light: #ff6b35;
  --brand-dark: #b83e0a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--gray-800);
  min-height: 100vh;

  background:
    radial-gradient(circle at 15% 20%, rgba(255,107,53,.18), transparent 35%),
    radial-gradient(circle at 85% 25%, rgba(255,209,102,.15), transparent 40%),
    radial-gradient(circle at 75% 80%, rgba(217,72,15,.10), transparent 45%),
    linear-gradient(
      135deg,
      #fff7f0 0%,
      #fff3e8 25%,
      #fffaf5 50%,
      #fff3e8 75%,
      #fff7f0 100%
    );

  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(217,72,15,.02) 0px,
      rgba(217,72,15,.02) 2px,
      transparent 2px,
      transparent 40px
    );

  opacity: .5;
}

.page {
  padding: 32px 24px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.card {
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-800);
  padding-left: 0px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.hint {
  font-size: 0.7rem;
  color: var(--gray-500);
  margin-left: 4px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.row.single {
  grid-template-columns: 1fr;
}

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-600);
  margin-bottom: 6px;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="file"] {
  width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  background: white;
  font-size: 0.9rem;
  transition: all 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(217, 72, 15, 0.1);
}

.btn {
  border: none;
  border-radius: 40px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background: white;
  border: 1px solid var(--red-500);
  color: var(--red-600);
}

.btn-danger:hover {
  background: var(--red-500);
  color: white;
  border-color: transparent;
}

.card:last-child {
  background: rgb(255, 136, 136);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  background: var(--gray-800);
  color: white;
  padding: 12px 20px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 768px) {

  .page {
    padding: 20px 16px 48px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pfp {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pfp > div {
    width: 100%;
  }

  .actions {
    justify-content: center;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .settings-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card:last-child {
    grid-column: span 2;
  }
}

/* File input styling */
input[type="file"] {
  padding: 10px 12px;
  background: var(--gray-50);
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  background: var(--gray-200);
  border: none;
  border-radius: 30px;
  padding: 6px 14px;
  margin-right: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

input[type="file"]::file-selector-button:hover {
  background: var(--gray-300);
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 2px;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--gray-800);
  min-height: 100vh;

  background:
    radial-gradient(circle at 15% 20%, rgba(255,107,53,.18), transparent 35%),
    radial-gradient(circle at 85% 25%, rgba(255,209,102,.15), transparent 40%),
    radial-gradient(circle at 75% 80%, rgba(217,72,15,.10), transparent 45%),
    linear-gradient(
      135deg,
      #f99c4a 0%,
      #ffa046 25%,
      #ffa54b 50%,
      #fea14b 75%,
      #ff983e 100%
    );

  background-attachment: fixed;
}