/* ── Variables ── */
:root {
  --bg: #fdf8f4;
  --bg2: #f7f0e8;
  --bg3: #f0e6d8;
  --surface: #ffffff;
  --surface2: #faf5ef;
  --border: rgba(0,0,0,0.08);
  --border2: rgba(0,0,0,0.14);
  --text: #1a1208;
  --text2: #6b5c48;
  --text3: #a8967e;
  --accent: #f25623;
  --accent2: #d4410d;
  --accent-glow: rgba(242,86,35,0.15);
  --gold: #e08c20;
  --gold-glow: rgba(224,140,32,0.18);
  --danger: #e03535;
  --success: #2a9d60;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select {
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Background blobs ── */
.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.07;
  animation: blobFloat 12s ease-in-out infinite;
}
.blob-1 {
  width: 500px; height: 500px;
  background: var(--accent);
  top: -150px; left: -150px;
  animation-delay: 0s;
}
.blob-2 {
  width: 400px; height: 400px;
  background: #f2a023;
  bottom: -100px; right: -100px;
  animation-delay: -4s;
}
.blob-3 {
  width: 300px; height: 300px;
  background: var(--gold);
  top: 40%; left: 50%;
  animation-delay: -8s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── Noise texture overlay ── */
.bg-blobs::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ── Layout ── */
.page { position: relative; z-index: 1; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 520px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(253,248,244,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.nav-logo span { font-style: italic; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}
.nav-links a, .nav-links button {
  color: var(--text2);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links button:hover {
  color: var(--text);
  background: var(--surface);
}
.nav-links .active { color: var(--text); }
.nav-links .btn-primary,
.nav-links .btn-primary:hover {
  color: #1a1208;
}
.nav-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: var(--transition);
}
.nav-avatar:hover { transform: scale(1.1); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text2);
  border-radius: 99px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #1a1208;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent2);
}
.btn-ghost {
  color: var(--text2);
  padding: 0.5rem 1rem;
}
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.85; }
.btn-google {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border2);
  width: 100%;
  justify-content: center;
  padding: 0.8rem;
  font-size: 0.95rem;
}
.btn-google:hover {
  border-color: var(--accent);
  background: var(--surface);
}
.btn-google svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.82rem; }
.btn-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  background: var(--surface2);
  border: 1px solid var(--border);
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-icon:hover { color: var(--text); border-color: var(--accent); }
.btn-icon.active { color: var(--accent2); border-color: var(--accent); background: var(--accent-glow); }
.btn-icon.liked { color: #f07090; border-color: #f07090; background: rgba(240,112,144,0.1); }
.btn-icon.faved { color: var(--gold); border-color: var(--gold); background: var(--gold-glow); }

/* ── Forms ── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 0.45rem;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}
textarea.form-input {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}
select.form-input { cursor: pointer; }
select.form-input option { background: var(--surface); color: var(--text); }
.form-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text3);
  font-size: 0.85rem;
}
.form-divider::before, .form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.form-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--text2);
}
.form-footer a { color: var(--accent2); font-weight: 500; }
.form-footer a:hover { text-decoration: underline; }

/* ── Alert ── */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideDown 0.3s ease;
}
.alert-error { background: rgba(224,53,53,0.08); border: 1px solid rgba(224,53,53,0.25); color: #c02020; }
.alert-success { background: rgba(42,157,96,0.08); border: 1px solid rgba(42,157,96,0.25); color: #1e7a48; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Cards ── */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.4s ease both;
}
.quote-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.8rem; }
.card-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.card-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border2);
  flex-shrink: 0;
}
.card-author-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text2);
}
.card-author-name span { color: var(--text3); font-weight: 400; }
.card-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  flex: 1;
  position: relative;
  padding-left: 1rem;
}
.card-quote::before {
  content: '"';
  position: absolute;
  left: -4px;
  top: -8px;
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}
.card-attribution {
  font-size: 0.82rem;
  color: var(--text3);
  font-style: italic;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  background: var(--surface2);
  color: var(--text3);
  border: 1px solid var(--border);
}
.tag-accent {
  background: var(--accent-glow);
  color: var(--accent2);
  border-color: rgba(242,86,35,0.25);
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.action-count {
  font-size: 0.8rem;
  color: var(--text3);
  min-width: 16px;
}
.card-actions .spacer { flex: 1; }

/* ── Quote of Day ── */
.qod-section {
  margin: 2.5rem 0;
}
.qod-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid rgba(240,192,96,0.2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(240,192,96,0.05);
}
.qod-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.04;
  filter: blur(40px);
}
.qod-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.qod-label::before {
  content: '✦';
  font-size: 0.7rem;
}
.qod-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1rem;
}
.qod-text::before {
  content: '"';
  color: var(--gold);
  opacity: 0.5;
}
.qod-text::after {
  content: '"';
  color: var(--gold);
  opacity: 0.5;
}
.qod-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.qod-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.qod-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

/* ── Grid ── */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* ── Search bar ── */
.search-wrap {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.search-input-wrap {
  flex: 1;
  position: relative;
  min-width: 220px;
}
.search-input-wrap svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  pointer-events: none;
  width: 16px; height: 16px;
}
.search-input-wrap input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
}
.filter-select {
  padding: 0.7rem 1rem;
  min-width: 140px;
}

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: var(--shadow-lg);
}
.modal-backdrop.open .modal {
  transform: scale(1) translateY(0);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
}
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  font-size: 1.2rem;
  transition: var(--transition);
}
.modal-close:hover { background: var(--surface2); color: var(--text); }

/* ── Image upload preview ── */
.image-upload-area {
  border: 2px dashed var(--border2);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.image-upload-area:hover { border-color: var(--accent); background: var(--accent-glow); }
.image-upload-area.has-image { padding: 0; border-style: solid; }
.image-upload-area img {
  width: 100%; max-height: 200px;
  object-fit: cover; border-radius: 8px;
}
.upload-icon { color: var(--text3); font-size: 2rem; margin-bottom: 0.5rem; }
.upload-text { font-size: 0.85rem; color: var(--text3); }
.upload-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ── Comments ── */
.comments-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.75rem; }
.comment-item {
  display: flex;
  gap: 0.65rem;
  animation: fadeUp 0.3s ease;
}
.comment-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 2px;
}
.comment-bubble {
  background: var(--surface2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm);
  padding: 0.6rem 0.85rem;
  flex: 1;
}
.comment-user {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent2);
  margin-bottom: 0.2rem;
}
.comment-text { font-size: 0.88rem; color: var(--text2); line-height: 1.5; }
.comment-time { font-size: 0.75rem; color: var(--text3); margin-top: 0.2rem; }
.comment-input-wrap {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  align-items: center;
  min-width: 0;
}
.comment-input-wrap input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
}
.comment-input-wrap .btn {
  flex-shrink: 0;
}

/* ── Profile ── */
.profile-hero {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.profile-pic-wrap { position: relative; flex-shrink: 0; }
.profile-pic {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}
.profile-pic-edit {
  position: absolute;
  bottom: 0; right: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  border: 2px solid var(--bg);
}
.profile-info { flex: 1; min-width: 200px; }
.profile-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.profile-bio { color: var(--text2); font-size: 0.9rem; margin-bottom: 0.75rem; }
.profile-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: 1.3rem; font-weight: 700; color: var(--accent2); display: block; }
.stat-lbl { font-size: 0.75rem; color: var(--text3); }

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.tab-btn {
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent2); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Spinner ── */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-wrap { display: flex; justify-content: center; padding: 3rem 0; }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text3);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state p { font-size: 0.9rem; margin-top: 0.5rem; }

/* ── Section header ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
}

/* ── Page header ── */
.page-header {
  padding: 3.5rem 0 2rem;
  text-align: center;
}
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--text) 0%, var(--text2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}
.page-subtitle { color: var(--text2); font-size: 1rem; }

/* ── Toast ── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text);
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease;
  pointer-events: all;
  max-width: 300px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toast.success { border-color: rgba(96,208,144,0.4); }
.toast.error { border-color: rgba(240,112,112,0.4); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(20px); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: rgba(253,248,244,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-bottom: 1px solid var(--border2);
    gap: 0.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links button {
    padding: 0.8rem 1rem;
    text-align: left;
    font-size: 1rem;
    color: var(--text2);
  }
  .nav-links a:hover, .nav-links button:hover {
    color: var(--accent);
    background: var(--bg2);
  }
  .nav-links .btn-primary {
    color: #1a1208;
    background: var(--accent);
  }
  .nav-hamburger { display: flex; }
  .quotes-grid { grid-template-columns: 1fr; }
  .profile-hero { flex-direction: column; text-align: center; }
  .profile-stats { justify-content: center; }
  .form-card { padding: 1.75rem 1.25rem; }
  .qod-card { padding: 1.75rem; }
  .search-wrap { flex-direction: column; }
  .filter-select { width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .modal { padding: 1.5rem 1.25rem; }
  .page-header { padding: 2rem 0 1.5rem; }
}
