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

h1, h2, h3, h4, h5, h6 { font-family: 'Quicksand', sans-serif;  font-weight: inherit;
 font-size: inherit;
}
:root[data-theme="light"] {
  --bg: #f5f3ef;
  --bg2: #eceae5;
  --bg3: #e2dfd9;
  --text: #1a1816;
  --text2: #6b6762;
  --text3: #999590;
  --border: #d5d2cb;
  --accent: rgba(144,128,122,1);
  --accent-hover: rgba(124,108,102,1);
  --card: #ffffff;
  --input-bg: rgba(144,128,122,0.15);
  --sidebar-bg: #ffffff;
  --nav-bg: #ffffff;
  --tag-bg: rgba(144,128,122,0.15);
  --like-active: #e05555;
  --toggle-bg: #ccc;
  --toggle-active: var(--accent);
}

body {
  font-family: 'Quicksand', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}


.app-layout {
  display: flex;
  min-height: 100vh;
}


.page-topbar {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  background: var(--sidebar-bg);
  position: sticky;
  top: 0;
  z-index: 20;
}


.home-topbar {
  display: flex;
 align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 1.5rem;
  
  background: var(--sidebar-bg);
 position: sticky;
  top: 0;
  z-index: 20;
}
.home-search {
  width: 100%;
  max-width: 480px;
  align-content: right;
  margin-left: auto;
}
.top-logo { line-height: 0; }


.right-rail {
  width: 100px;
  flex-shrink: 0;
  background: black;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
}
.right-rail .rail-icon {
  width: 68px; height: 68px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 0.25rem;
}
.right-rail .rail-icon svg { width: 30px; height: 30px; }
.right-rail .rail-icon:hover, .right-rail .rail-icon.active {
  background: rgba(144, 128, 122, 1);
  color: var(--text);
}
.right-rail .rail-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}


.main-content {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  background-color: white;
}


.top-bar {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--sidebar-bg);
  gap: 1rem;
}
.search-wrap {
  display: flex;
  align-items: right;
  flex: 1;
  max-width: 380px;
  background: rgba(144, 128, 122, 1);
  border-radius: 3px;
  overflow: hidden;
}
.search-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.5rem 0.75rem;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.875rem;
  color:white;
}
.search-wrap input::placeholder { color: black; }
.search-btn {
  background-color: black;
  border: none;
  padding: 0.5rem 0.6rem;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
}
.search-btn:hover { color: var(--text); }


.blur-logo {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}
.blur-logo img { display: block; }


.photo-grid {
  columns: 3;
  column-gap: 6px;
padding: 25px;
}
.photo-grid.col2 { columns: 2; }
.photo-grid.col4 { columns: 4; }
@media(max-width:900px){ .photo-grid { columns: 1; } }

.photo-item {
  break-inside: avoid;
  margin-bottom: 6px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  
  display: block;
}
.photo-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s;
}
.photo-item:hover img { transform: scale(1.02); }
.photo-item .photo-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: flex-end;
  padding: 0.6rem;
  gap: 0.75rem;
  transition: background 0.2s;
}
.photo-item:hover .photo-overlay { background: rgba(0,0,0,0.35); }
.photo-item .photo-overlay .ov-icon {
  color: #fff;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.photo-item:hover .photo-overlay .ov-icon { opacity: 1; }

.action-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0.5rem 0;
}
.action-btn {
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex; align-items: center;
  transition: color 0.15s, transform 0.15s;
  padding: 0;
}
.action-btn:hover { color: var(--text); transform: scale(1.1); }
.action-btn.liked { color: var(--like-active); }
.action-btn.liked:hover { color: #ff6b6b; }


.tab-row {
  display: flex;
  
  background-color: rgba(144, 128, 122, 1);
  margin-left: 25px;
  margin-right: 25px;
}
.tab-btn {
  flex: 1;
  padding: 0.75rem;
  background: none;
  border: none;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem;
  color: white;
  cursor: pointer;
  
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn.active {
  color: white;
  
  background:black;
}


.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--accent);
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0.2rem 0.15rem;
}


.avatar {
  border-radius: 50%;
  background: var(--bg3);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}


.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.toggle {
  position: relative;
  width: 42px; height: 24px;
  cursor: pointer;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background:rgba(234, 226, 226, 1);
  border-radius: 24px;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle input:checked + .toggle-slider { background: rgba(144, 128, 122, 1); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }


.btn-pill {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.25rem 0.9rem;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text2);
  background: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.btn-pill:hover { background: black; color: white; }

.btn-dark {
  display: inline-block;
  background: black;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 0.5rem 1.25rem;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn-dark:hover { opacity: 0.85; }


.form-input {
  width: 100%;
  background: var(--input-bg);
  border: none;
  padding: 0.75rem 1rem;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: white;
  outline: none;
  margin-bottom: 0.75rem;
  transition: background 0.2s;
}
.form-input::placeholder { color: white; }
.form-input:focus { background: rgba(144,128,122,0.35); }
textarea.form-input { resize: vertical; min-height: 80px; }

.notif-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.notif-info { flex: 1; }
.notif-info .notif-user { font-weight: 700; font-size: 0.9rem; }
.notif-info .notif-action { font-size: 0.85rem; color: var(--text2); }
.notif-thumb { width: 52px; height: 40px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }


@media(max-width:768px) {
  .left-bar { display: none; }
  .right-rail { display: none; }
  .mobile-nav {
    display: flex !important;
  }
}
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: black;
  border-top: 1px solid var(--border);
  z-index: 200;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
  height: 56px;
}
.mobile-nav a {
  color: white;
  font-size: 1.15rem;
  text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 8px;
  transition: color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a.active { background-color: rgba(144, 128, 122, 1); }


@media(max-width:768px) {
  .main-content { padding-bottom: 60px; }
}


a.disabled, .disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: line-through;
}


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

:root[data-theme="light"] {
  --bg: #f5f3ef;
  --bg2: #eceae5;
  --bg3: #e2dfd9;
  --text: #1a1816;
  --text2: #6b6762;
  --text3: #999590;
  --border: #d5d2cb;
  --accent: rgba(144,128,122,1);
  --accent-hover: rgba(124,108,102,1);
  --card: #ffffff;
  --input-bg: rgba(144,128,122,0.15);
  --sidebar-bg: #ffffff;
  --tag-bg: rgba(144,128,122,0.15);
}

body {
  font-family: 'Quicksand', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.landing-top {
 flex: 1;
 background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
 justify-content: flex-end;
  padding: 3rem 2rem 2rem;
}

.landing-bottom {
 flex: 1;
  background: #000000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
  color: white;
}
.landing-logo {
  margin-bottom: 1rem;
}

.blur-logo {
  display: inline-block;
  line-height: 0;
}

.blur-logo img {
  display: block;
}

.landing-tagline {
  text-align: center;
  margin-bottom: 3rem;
}

.landing-tagline h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.landing-tagline p {
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 300;
  color: var(--text2);
}

.login-box {
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem 2.5rem 2.5rem;
  width: 100%;
  max-width: 420px;
}

.login-box h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.form-input {
  width: 100%;
  background: rgba(144, 128, 122, 1);
  border: none;
  padding: 1rem 1rem;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: white;
  outline: none;
  margin-bottom: 0.75rem;
  margin-top: 0.75rem;
  transition: background 0.2s;
}

.form-input::placeholder { color: white; }
.form-input:focus { background: rgba(144,128,122,0.35); }

.btn-submit {
  background: rgba(144, 128, 122, 1);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1.5rem;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
}

.btn-submit:hover { background: var(--accent-hover); transform: translateY(-1px); }

.create-link {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: white;
  text-decoration: underline;
  cursor: pointer;
}

.create-link:hover { color: var(--text); }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem 2.5rem;
  width: 100%;
  max-width: 400px;
  position: relative;
}

.modal-box h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.25rem; }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text2);
  font-size: 1.2rem;
  cursor: pointer;
}


.post-layout {
  display: flex;
  min-height: 100vh;
}

.post-image-side {
  flex: 1.1;
  min-width: 0;
  background: #000;
  display: flex;
  align-items: stretch;
}

.post-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 100vh;
  display: block;
}

.post-info-side {
  width: 320px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
}

.post-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.25rem 1.25rem 0.75rem;
 
}

.post-header-text { flex: 1; }

.post-username {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  display: block;
  margin-bottom: 0.2rem;
}

.post-username:hover { color: var(--accent); }

.post-caption {
  font-size: 0.85rem;
  color: var(--text2);
  font-weight: 400;
  line-height: 1.5;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 1.25rem;

}

.action-btn svg { pointer-events: none; }

.action-btn.liked svg { fill: var(--like-active); stroke: var(--like-active); }

.comments-section {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1.25rem;
  background-color: rgba(245, 245, 245, 1);
  margin-left: 10px;
  margin-right: 10px;
}

.comment-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
  border-bottom: solid 1px black;
}

.comment-body { flex: 1; }

.comment-user {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.comment-text {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.5;
}

.add-comment {
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.add-comment input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.875rem;
  color: var(--text);
}

.add-comment input::placeholder { color: var(--text3); }

.post-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.post-btn:hover { opacity: 0.7; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem 0;
  font-size: 0.82rem;
  color: var(--text3);
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover { color: var(--text); }

@media(max-width: 768px) {
  .post-layout { flex-direction: column; }
  .post-image-side { max-height: 55vw; }
  .post-info-side { width: 100%; border-left: none; border-top: 1px solid var(--border); }
}


.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 1.5rem 1.5rem;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--border);
  flex-shrink: 0;
  object-fit: cover;
}

.profile-info { flex: 1; }

.profile-username {
  font-size: 3rem;
  color: var(--text);
  margin-bottom: 0.5rem;

}

.profile-bio {
  font-size: 0.875rem;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 0.85rem;
  max-width: 600px;
}

.profile-stats {
  display: flex;
  gap: 0.5rem;

}

.tab-content { display: none; }
.tab-content.active { display: block; }

@media(max-width: 768px) {
  .profile-header { padding: 1.25rem 1rem; gap: 1rem; }
  .profile-avatar { width: 56px; height: 56px; }
  .profile-username { font-size: 1rem; }
}


.explore-top {
  padding: 1.25rem 1.5rem;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
 align-items: center;
}

.filter-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-dropdown {
  position: relative;
  display: inline-block;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.35rem 0.85rem;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s, border-color 0.15s;
}

.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn::after { content: ' ▾'; font-size: 0.7rem; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: black;
  border: 1px solid var(--border);
  border-radius: 4px;
  min-width: 130px;
  z-index: 50;
  overflow: hidden;
}

.filter-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  color: white;
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
}

.dropdown-menu a:hover { background: var(--bg3); color: var(--text); }

.explore-search {
  display: flex;
  align-items: center;
  background: rgba(144, 128, 122, 1);
  border-radius: 3px;
  overflow: hidden;
  width: 100%;
  max-width: 800px;
}

.explore-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 0.65rem 1rem;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
}

.explore-search input::placeholder { color: var(--text3); }

.explore-search button {
  background: black;
  border: none;
  padding: 0.65rem 1rem;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s;
}

.explore-search button:hover { background: var(--accent-hover); }

.explore-grid { padding: 6px; }


.upload-page {
  padding: 2.5rem 3rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.upload-header { margin-bottom: 2rem; }

.upload-title {
  font-size: 3rem;
  
  margin-bottom: 0.25rem;
  text-align: center;
}

.upload-username {
  font-size: 2rem;
  color: black;
  margin-bottom: none;
}

.upload-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  flex: 1;
}

@media(max-width: 900px) {
  .upload-page { padding: 1.5rem 1.25rem; }
  .upload-body { grid-template-columns: 1fr; }
}

.drop-zone {
  width: 100%;
  aspect-ratio: 4/3;
  border: 2px dashed black;
  background-color:rgba(245, 245, 245, 1) ;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
  background: var(--bg2);
}

.drop-zone:hover { border-color: var(--accent); background: var(--bg3); }

.drop-zone .drop-label {
  font-size: 0.9rem;
  color: var(--text3);
  font-weight: 500;
  text-align: center;
}

.drop-zone .drop-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

#fileInput { display: none; }

#previewImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.upload-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: black;
  display: block;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tags-area {
  background: rgba(245, 245, 245, 1);
  border-radius: 3px;
  padding: 0.75rem;
  min-height: 70px;
}

.tags-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.tag-item {
  background: rgba(144, 128, 122, 1);
  color: white;
  border-radius: 20px;
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.tag-remove {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
}

.tag-remove:hover { opacity: 1; }

.tag-add-input {
  background: none;
  border: none;
  outline: none;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  min-width: 80px;
}

.tag-add-input::placeholder { color: var(--text3); }


.notif-page {
  padding: 2.5rem 3rem;
  width: 100%;
  max-width: 100%;
}

.notif-page-title {
  font-size: 3rem;
  margin-bottom: 0.3rem;
  text-align: center;
}

.notif-page-user {
  font-size: 2rem;
  color: var(--text2);
  margin-bottom: 2rem;
}

.notif-list {
  display: flex;
  flex-direction: column;
}

.notif-row {
  cursor: default;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid black;
  transition: background 0.15s, padding 0.15s;
}

.notif-row:last-child { border-bottom: none; }

.notif-row:hover {
  background: var(--bg2);
  border-radius: 6px;
  padding: 1rem 0.75rem;
  margin: 0 -0.75rem;
}

.notif-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.notif-info { flex: 1; }

.notif-thumb {
  width: 64px;
  height: 52px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

@media(max-width: 900px) {
  .notif-page { padding: 1.5rem 1.25rem; }
}


.settings-page {
  padding: 2rem 1.5rem;
  max-width: 1440px;
}

.settings-title {
  font-size: 3rem;
  margin-bottom: 2rem;
  text-align: center;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(144, 128, 122, 1);
  font-size: 1rem;
  font-weight: 500;
}

.settings-row:last-of-type { border-bottom: none; }

.settings-link {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid  rgba(144, 128, 122, 1);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.15s;
}

.settings-link:hover { color: var(--accent); }

.settings-link.disabled-link {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.settings-section { margin-bottom: 2rem; }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  position: relative;
}

.modal-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text2);
  font-size: 1.1rem;
  cursor: pointer;
}

.modal-close:hover { color: var(--text); }

.help-link {
  display: block;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--text2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.help-link:hover { color: var(--text); }