/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f0f2f5;
  --surface: #ffffff;
  --sidebar-bg: #ffffff;
  --accent: #e94560;
  --accent-dark: #c73652;
  --accent-light: #ffeef1;
  --purple: #6c63ff;
  --text-1: #1a1a2e;
  --text-2: #555570;
  --text-3: #9999b0;
  --border: #e8e8f0;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --sidebar-w: 240px;
  --bottom-nav-h: 64px;
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  overflow-x: hidden;
}

.hidden { display: none !important; }
.material-symbols-outlined { font-size: 22px; user-select: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===== LOGIN PAGE ===== */
#login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}

.login-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #e94560 100%);
  z-index: 0;
}

.login-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1200&q=60') center/cover;
  opacity: 0.15;
}

.login-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 420px;
}

.login-brand { text-align: center; color: #fff; }

.login-logo {
  width: 70px; height: 70px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 24px rgba(233,69,96,0.5);
}

.login-logo .material-symbols-outlined { font-size: 36px; color: #fff; }

.login-brand h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 6px; }
.login-brand p { font-size: 0.9rem; opacity: 0.8; }

.login-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.login-card h2 { font-size: 1.4rem; font-weight: 600; margin-bottom: 24px; color: var(--text-1); }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-1);
  background: var(--surface);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233,69,96,0.12);
}

.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.toggle-pass {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-3); padding: 4px;
}

.error-msg {
  background: #fff0f2; color: var(--accent); border: 1px solid #ffd0d8;
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.85rem;
  margin-bottom: 14px;
}

.login-hint { margin-top: 20px; text-align: center; }
.hint-title { font-size: 0.8rem; color: var(--text-3); margin-bottom: 10px; }
.hint-users { display: flex; flex-direction: column; gap: 8px; }

.hint-user-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px;
  cursor: pointer; transition: all var(--transition);
  text-align: left; width: 100%;
}

.hint-user-btn:hover { border-color: var(--accent); background: var(--accent-light); }
.hint-user-btn img { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.hint-user-btn div { display: flex; flex-direction: column; }
.hint-user-btn strong { font-size: 0.85rem; color: var(--text-1); }
.hint-user-btn span { font-size: 0.75rem; color: var(--text-3); }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(233,69,96,0.4); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg);
  color: var(--text-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

.full-width { width: 100%; }

/* ===== MAIN APP LAYOUT ===== */
#app {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
#sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  overflow-y: auto;
}

.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 20px 16px;
  font-size: 1rem; font-weight: 700; color: var(--text-1);
  border-bottom: 1px solid var(--border);
}

.sidebar-brand .material-symbols-outlined {
  color: var(--accent);
  font-size: 26px;
  background: var(--accent-light);
  padding: 6px; border-radius: 8px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 12px;
  display: flex; flex-direction: column; gap: 4px;
}

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.92rem; font-weight: 500;
  transition: all var(--transition);
}
.nav-item:hover { background: var(--bg); color: var(--text-1); }
.nav-item.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}
.nav-item.active .material-symbols-outlined { color: var(--accent); }

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}

.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}
.sidebar-user img {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.sidebar-user-info .user-name { font-size: 0.85rem; font-weight: 600; color: var(--text-1); }
.sidebar-user-info .user-handle { font-size: 0.75rem; color: var(--text-3); }

.btn-logout {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: none; background: none;
  color: var(--text-2); font-family: inherit;
  font-size: 0.9rem; cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  width: 100%;
}
.btn-logout:hover { background: #fff0f2; color: var(--accent); }

/* ===== MAIN CONTENT ===== */
#content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  overflow-y: auto;
}

/* ===== BOTTOM NAV (MOBILE) ===== */
#bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}

.bottom-nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  color: var(--text-3);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 500;
  transition: color var(--transition);
  padding: 8px 0;
}
.bottom-nav-item .material-symbols-outlined { font-size: 24px; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--accent); }
.bottom-nav-item.active .material-symbols-outlined { font-variation-settings: 'FILL' 1; }

/* ===== HOME PAGE ===== */
.page-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
}
.page-header h2 { font-size: 1.3rem; font-weight: 700; }
.page-header p { font-size: 0.85rem; color: var(--text-3); }

.photo-grid-container { padding: 20px; }

.photo-grid {
  columns: 4;
  column-gap: 14px;
}

.photo-card {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--surface);
}

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

.photo-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.photo-card:hover img { transform: scale(1.03); }

.photo-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.65) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex; align-items: flex-end;
  padding: 12px;
}

.photo-card:hover .photo-card-overlay { opacity: 1; }

.photo-card-user {
  display: flex; align-items: center; gap: 7px;
  flex: 1;
}

.photo-card-user img {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}

.photo-card-user span {
  color: #fff; font-size: 0.78rem; font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.photo-card-info-btn {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.9);
  border: none; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.photo-card-info-btn:hover { background: #fff; transform: scale(1.1); }
.photo-card-info-btn .material-symbols-outlined { font-size: 17px; color: var(--text-1); }

.photo-card-title {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 12px 10px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
}

.photo-card-title span {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  display: block;
}

/* Always visible bottom bar on card */
.photo-card-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 12px 10px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.72));
  display: flex; align-items: flex-end; justify-content: space-between;
}

.photo-card-bottom .card-user-info {
  display: flex; align-items: center; gap: 7px;
}
.photo-card-bottom .card-user-info img {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.8);
  object-fit: cover;
}
.photo-card-bottom .card-username {
  color: rgba(255,255,255,0.9); font-size: 0.72rem; font-weight: 500;
}

.info-circle {
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.88);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.info-circle:hover { background: #fff; transform: scale(1.1); }
.info-circle .material-symbols-outlined { font-size: 16px; color: var(--text-1); }

/* Empty state */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; text-align: center; color: var(--text-3);
}
.empty-state .material-symbols-outlined { font-size: 56px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.empty-state p { font-size: 0.88rem; max-width: 300px; }

/* ===== TIPS PAGE ===== */
.tips-container { padding: 20px; }

.tips-hero {
  background: linear-gradient(135deg, #1a1a2e, #e94560);
  border-radius: var(--radius);
  padding: 36px 28px;
  color: #fff;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.tips-hero::after {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.tips-hero h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.tips-hero p { opacity: 0.85; font-size: 0.95rem; max-width: 500px; }

.tips-section-title {
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 16px; margin-top: 28px;
  display: flex; align-items: center; gap: 8px;
  color: var(--text-1);
}
.tips-section-title .material-symbols-outlined { color: var(--accent); }

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.tip-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.tip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.tip-card-img {
  width: 100%; height: 180px;
  object-fit: cover;
}

.tip-card-body { padding: 16px; }

.tip-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.tag-iso { background: #e3f2fd; color: #1565c0; }
.tag-aperture { background: #f3e5f5; color: #6a1b9a; }
.tag-shutter { background: #e8f5e9; color: #2e7d32; }
.tag-composition { background: #fff3e0; color: #e65100; }
.tag-lighting { background: #fce4ec; color: #c62828; }
.tag-tips { background: #e0f2f1; color: #00695c; }

.tip-card-body h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-1); }
.tip-card-body p { font-size: 0.83rem; color: var(--text-2); line-height: 1.55; }

.tip-values {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.tip-value-chip {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.76rem; font-weight: 500;
  background: var(--bg);
  color: var(--text-2);
  border: 1px solid var(--border);
}

/* Photo Example Embed */
.tip-example-link {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px;
  color: var(--accent); font-size: 0.82rem; font-weight: 500;
  text-decoration: none;
}
.tip-example-link:hover { text-decoration: underline; }

/* ===== UPLOAD PAGE ===== */
.upload-container { padding: 24px 28px; max-width: 680px; margin: 0 auto; }
.upload-container h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.upload-container > p { color: var(--text-3); font-size: 0.9rem; margin-bottom: 24px; }

.drop-zone {
  border: 2.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface);
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-light);
}
.drop-zone .material-symbols-outlined { font-size: 48px; color: var(--text-3); margin-bottom: 12px; display: block; }
.drop-zone h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.drop-zone p { color: var(--text-3); font-size: 0.85rem; }
.drop-zone .btn-primary { margin-top: 14px; }

.upload-preview-section { display: none; }
.upload-preview-section.visible { display: block; }

.upload-preview-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  margin-bottom: 20px;
  max-height: 380px;
  display: flex; align-items: center; justify-content: center;
}

.upload-preview-wrap img {
  max-width: 100%;
  max-height: 380px;
  display: block;
  object-fit: contain;
}

.upload-change-btn {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,0.9);
  border: none; border-radius: 20px;
  padding: 6px 14px; cursor: pointer;
  font-size: 0.8rem; font-weight: 600;
  display: flex; align-items: center; gap: 5px;
  transition: all var(--transition);
}
.upload-change-btn:hover { background: #fff; }

.upload-filter-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.preset-btn {
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.8rem; font-weight: 500;
  color: var(--text-2);
  transition: all var(--transition);
}
.preset-btn:hover, .preset-btn.active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

.upload-sliders { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.upload-submit-row { display: flex; gap: 10px; }
.upload-submit-row .btn-primary { flex: 1; }

/* ===== PROFILE PAGE ===== */
.profile-container { padding: 0 0 80px; }

.profile-header {
  background: var(--surface);
  padding: 32px 28px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-end; gap: 20px;
  flex-wrap: wrap;
}

.profile-avatar-wrap { position: relative; }
.profile-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--surface);
  box-shadow: var(--shadow);
}

.profile-info { flex: 1; min-width: 200px; }
.profile-info h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.profile-info .handle { color: var(--text-3); font-size: 0.9rem; margin-bottom: 8px; }
.profile-info .bio { color: var(--text-2); font-size: 0.88rem; max-width: 420px; }

.profile-stats {
  display: flex; gap: 24px;
  margin-top: 14px;
}
.stat { text-align: center; }
.stat-value { font-size: 1.2rem; font-weight: 700; color: var(--text-1); display: block; }
.stat-label { font-size: 0.75rem; color: var(--text-3); }

.profile-photos-section { padding: 20px; }
.profile-photos-section h3 {
  font-size: 1rem; font-weight: 600; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}

.profile-grid {
  columns: 3;
  column-gap: 12px;
}

.profile-photo-card {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.profile-photo-card:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.profile-photo-card img { width: 100%; height: auto; display: block; }

.profile-empty { padding: 40px 20px; text-align: center; color: var(--text-3); }
.profile-empty .material-symbols-outlined { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }

/* ===== PHOTO MODAL ===== */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
}

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative; z-index: 1;
  background: var(--surface);
  border-radius: 20px;
  width: 90vw;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-close {
  width: 36px; height: 36px;
  border: none; background: var(--bg);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); color: var(--text-2);
}
.modal-close:hover { background: #ffe0e6; color: var(--accent); }

.modal-like-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: 1.5px solid var(--border);
  border-radius: 20px; padding: 6px 14px;
  cursor: pointer; font-family: inherit;
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-2); transition: all var(--transition);
}
.modal-like-btn:hover { border-color: var(--accent); color: var(--accent); }
.modal-like-btn.liked { background: #fff0f2; border-color: var(--accent); color: var(--accent); }
.modal-like-btn.liked .material-symbols-outlined { font-variation-settings: 'FILL' 1; color: var(--accent); }

.modal-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.modal-image-wrap {
  flex: 1;
  background: #0f0f0f;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  min-width: 0;
}

.modal-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: filter 0.15s ease;
}

.modal-info {
  width: 300px;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 20px 18px;
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}

.modal-author {
  display: flex; align-items: center; gap: 10px;
}
.modal-author img {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border);
}
.modal-author-text .author-name { font-size: 0.9rem; font-weight: 600; color: var(--text-1); }
.modal-author-text .author-handle { font-size: 0.78rem; color: var(--text-3); }

.modal-title { font-size: 1.05rem; font-weight: 700; color: var(--text-1); }
.modal-desc { font-size: 0.85rem; color: var(--text-2); line-height: 1.55; }

.modal-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.meta-chip {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 10px;
  font-size: 0.75rem; color: var(--text-2);
  font-family: 'Courier New', monospace;
}

.filters-heading {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.88rem; font-weight: 600; color: var(--text-1);
  margin-top: 4px;
}
.filters-heading .material-symbols-outlined { font-size: 18px; color: var(--accent); }

.filter-presets {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 12px;
}

.filter-sliders { display: flex; flex-direction: column; gap: 10px; }

.slider-group label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; font-weight: 500; color: var(--text-2);
  margin-bottom: 4px;
}
.slider-group label span { color: var(--accent); font-weight: 600; }

input[type="range"] {
  width: 100%;
  height: 4px;
  background: var(--bg);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  appearance: none;
  accent-color: var(--accent);
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(233,69,96,0.4);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a2e;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.88rem; font-weight: 500;
  z-index: 300;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { background: #1b5e20; }
.toast.error { background: #b71c1c; }

/* ===== SKELETON LOADER ===== */
.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, #e8e8f0 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== RESPONSIVE ===== */

/* 3-column grid at ~1200px */
@media (max-width: 1400px) {
  .photo-grid { columns: 3; }
}

/* Tablet */
@media (max-width: 1024px) {
  .photo-grid { columns: 2; }
  .profile-grid { columns: 2; }
  .modal-info { width: 260px; }
}

/* Mobile */
@media (max-width: 768px) {
  #sidebar { display: none; }
  #bottom-nav { display: flex; }

  #content {
    margin-left: 0;
    padding-bottom: var(--bottom-nav-h);
  }

  .photo-grid { columns: 2; column-gap: 10px; }
  .photo-grid-container { padding: 12px; }

  .profile-grid { columns: 2; }

  .page-header { padding: 16px 16px 12px; }
  .page-header h2 { font-size: 1.1rem; }

  .modal-container {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    flex-direction: column;
  }

  .modal-body { flex-direction: column; overflow-y: auto; }

  .modal-image-wrap {
    height: 260px;
    flex: none;
  }

  .modal-info {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 16px;
  }

  .upload-container { padding: 16px; }
  .upload-submit-row { flex-direction: column; }

  .profile-header { padding: 20px 16px; gap: 14px; }
  .profile-avatar { width: 70px; height: 70px; }

  .tips-container { padding: 12px; }
  .tips-hero { padding: 24px 18px; }
  .tips-hero h2 { font-size: 1.3rem; }
  .tips-grid { grid-template-columns: 1fr; }

  .toast { bottom: calc(var(--bottom-nav-h) + 12px); font-size: 0.82rem; }
}

@media (max-width: 400px) {
  .photo-grid { columns: 1; }
  .login-card { padding: 24px 20px; }
}
