:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;

  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;

  --background: #f6f8fc;
  --surface: #ffffff;

  --text: #0f172a;
  --text-light: #64748b;

  --border: #e8edf5;

  --radius-xs: 12px;
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.03);

  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);

  --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.08);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;

  padding: 0;

  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;

  background: var(--background);

  color: var(--text);
}

.settings-app {
  min-height: 100vh;

  display: flex;

  flex-direction: column;
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);

  width: calc(100% - 40px);
  max-width: 1500px;
  height: 72px;

  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 24px;

  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;

  box-shadow:
    0 12px 35px rgba(15, 23, 42, 0.06),
    0 4px 12px rgba(15, 23, 42, 0.03);
}

.brand {
  display: flex;

  align-items: center;

  gap: 5px;

  text-decoration: none;
}

.brand-text {
  display: flex;

  flex-direction: column;
}

.brand-text h2 {
  font-size: 1rem;

  font-weight: 800;

  color: var(--text);
}

.brand-text span {
  margin-top: 2px;

  font-size: 0.8rem;

  color: var(--text-light);
}

.search {
  width: 420px;

  height: 48px;

  display: flex;

  align-items: center;

  gap: 12px;

  padding: 0 18px;

  border: 1px solid var(--border);

  border-radius: 16px;

  background: #ffffff;

  transition: var(--transition);
}

.search:hover {
  border-color: #d7e4ff;
}

.search:focus-within {
  border-color: #bdd4ff;

  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.05);
}

.search svg {
  color: #94a3b8;
}

.search input {
  flex: 1;

  height: 100%;

  border: none;

  outline: none;

  background: none;

  font-size: 0.92rem;

  color: var(--text);
}

.search input::placeholder {
  color: #94a3b8;
}

.dashboard-btn {
  height: 46px;

  padding: 0 24px;

  border: none;

  border-radius: 14px;

  background: #eef4ff;

  color: var(--primary);

  font-weight: 700;

  cursor: pointer;

  transition: var(--transition);
}

.dashboard-btn:hover {
  background: #dbeafe;
}
.settings-layout {
  width: 100%;
  max-width: 1500px;
  margin: 118px auto 36px;
  padding: 0 24px;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 34px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 105px;

  background: #ffffff;

  border: 1px solid var(--border);

  border-radius: 28px;

  padding: 24px;

  box-shadow: var(--shadow-md);
}

.profile-card {
  overflow: hidden;
  display: flex;

  flex-direction: column;

  align-items: center;

  text-align: center;

  padding-bottom: 26px;

  border-bottom: 1px solid var(--border);
}

.profile-card h3 {
  margin-top: 18px;
  font-size: 1.15rem;
  font-weight: 800;

  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-card p {
  margin-top: 6px;

  color: var(--text-light);

  font-size: 0.88rem;
}

.sidebar-nav {
  display: flex;

  flex-direction: column;

  gap: 6px;

  margin-top: 26px;
}
.sidebar-item {
  width: 100%;

  height: 54px;

  display: flex;

  align-items: center;

  gap: 14px;

  padding: 0 18px;

  border: none;

  border-radius: 16px;

  background: transparent;

  color: #475569;

  cursor: pointer;

  transition: var(--transition);

  font-size: 0.93rem;

  font-weight: 600;
}

.sidebar-item svg {
  width: 20px;

  height: 20px;

  flex-shrink: 0;
}

.sidebar-item:hover {
  background: #f8fbff;

  color: var(--primary);
}

.sidebar-item.active {
  background: #eef4ff;

  color: var(--primary);

  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.sidebar-item.active svg {
  transform: scale(1.05);
}

.sidebar-bottom {
  margin-top: 28px;

  padding-top: 24px;

  border-top: 1px solid var(--border);
}

.storage-card {
  padding: 18px;

  border-radius: 18px;

  background: #f8fbff;

  border: 1px solid #e6efff;
}

.storage-card span {
  display: block;

  font-weight: 700;

  color: var(--text);
}

.storage-card small {
  display: block;

  margin-top: 8px;

  line-height: 1.6;

  color: var(--text-light);
}

.content {
  display: flex;

  flex-direction: column;

  gap: 28px;
}

.content-header {
  display: flex;

  justify-content: space-between;

  align-items: flex-start;
}

.breadcrumb {
  display: flex;

  align-items: center;

  gap: 10px;

  font-size: 0.84rem;

  color: #94a3b8;
}

.breadcrumb span {
  color: #cbd5e1;
}

.content-header h1 {
  margin-top: 14px;

  font-size: 2.3rem;

  font-weight: 800;

  letter-spacing: -0.03em;
}

.content-header p {
  margin-top: 10px;

  max-width: 620px;

  line-height: 1.7;

  color: var(--text-light);
}

.save-all {
  height: 48px;

  padding: 0 24px;

  border: none;

  border-radius: 16px;

  background: var(--primary);

  color: #ffffff;

  font-weight: 700;

  cursor: pointer;

  transition: var(--transition);

  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.save-all:hover {
  background: var(--primary-hover);

  transform: translateY(-2px);
}

.page {
  display: none;

  animation: fadePage 0.28s ease;
}

.page.active {
  display: block;
}

@keyframes fadePage {
  from {
    opacity: 0;

    transform: translateY(12px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

.card {
  background: #ffffff;

  border: 1px solid var(--border);

  border-radius: 26px;

  padding: 30px;

  box-shadow: var(--shadow-sm);

  transition: var(--transition);

  position: relative;

  z-index: 1;
}

.card + .card {
  margin-top: 24px;
}

.card:hover {
  transform: translateY(-2px);

  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  margin-bottom: 28px;
}

.card-header h2 {
  font-size: 1.25rem;

  font-weight: 800;

  color: var(--text);
}

.card-header p {
  margin-top: 8px;

  color: var(--text-light);

  line-height: 1.6;
}
.profile-header {
  display: flex;

  align-items: center;

  gap: 30px;
}

.profile-information {
  flex: 1;
  min-width: 0;
}

.profile-information h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;

  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-information p {
  margin-top: 10px;

  color: var(--text-light);
}
.grid-2 {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 24px;

  overflow: visible;
}

.input-group {
  display: flex;

  flex-direction: column;

  position: relative;

  overflow: visible;

  z-index: 1;
}

.input-group label {
  margin-bottom: 10px;

  font-size: 0.82rem;

  font-weight: 700;

  color: #475569;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;

  height: 54px;

  padding: 0 18px;

  border: 1px solid var(--border);

  border-radius: 16px;

  background: #ffffff;

  font-size: 0.92rem;

  color: var(--text);

  transition: var(--transition);
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 16px;

  transform: translateY(-50%);

  width: 24px;
  height: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  background: transparent;

  color: #94a3b8;
  cursor: pointer;

  transition: 0.2s;
}

.password-toggle:hover {
  color: #2563eb;
}

.password-toggle i {
  font-size: 16px;
  pointer-events: none;
}

.input-group textarea {
  height: 150px;

  padding: 18px;

  resize: vertical;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #94a3b8;
}

.input-group input:hover,
.input-group select:hover,
.input-group textarea:hover {
  border-color: #d6e4ff;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;

  border-color: #bfd5ff;

  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.05);
}

.input-group select {
  appearance: none;

  cursor: pointer;

  padding-right: 56px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 8 9 11 12 8'/%3E%3C/svg%3E");

  background-repeat: no-repeat;

  background-position: right 18px center;
}
.switch {
  position: relative;

  width: 54px;

  height: 30px;

  flex-shrink: 0;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;

  inset: 0;

  background: #d8dee8;

  border-radius: 999px;

  cursor: pointer;

  transition: var(--transition);
}

.slider::before {
  content: "";

  position: absolute;

  left: 3px;

  top: 3px;

  width: 24px;

  height: 24px;

  border-radius: 50%;

  background: #ffffff;

  transition: var(--transition);

  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
}

.switch input:checked + .slider {
  background: var(--primary);
}

.switch input:checked + .slider::before {
  transform: translateX(24px);
}

.setting-row {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 24px;

  padding: 24px 0;
}

.setting-row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.setting-row-left {
  flex: 1;
}

.setting-row-left h3 {
  font-size: 1rem;

  font-weight: 700;

  color: var(--text);
}

.setting-row-left p {
  margin-top: 8px;

  color: var(--text-light);

  line-height: 1.6;
}

.info-card {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 22px;

  padding: 22px;

  border: 1px solid var(--border);

  border-radius: 20px;

  background: #ffffff;

  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-2px);

  border-color: #dbe8ff;

  box-shadow: var(--shadow-sm);
}

.info-left {
  display: flex;

  align-items: center;

  gap: 18px;
}

.info-icon {
  width: 52px;

  height: 52px;

  border-radius: 16px;

  background: #eef4ff;

  color: var(--primary);

  display: flex;

  align-items: center;

  justify-content: center;
}

.info-title {
  font-size: 1rem;

  font-weight: 700;
}

.info-description {
  margin-top: 6px;

  color: var(--text-light);

  font-size: 0.9rem;
}

.badge {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 8px 14px;

  border-radius: 999px;

  font-size: 0.78rem;

  font-weight: 700;
}

.badge-success {
  background: #ecfdf5;

  color: #15803d;
}

.badge-warning {
  background: #fff7ed;

  color: #c2410c;
}

.badge-primary {
  background: #eef4ff;

  color: var(--primary);
}

.toast {
  position: fixed;

  right: 30px;

  bottom: 30px;

  width: 360px;

  background: #ffffff;

  border: 1px solid var(--border);

  border-radius: 22px;

  padding: 18px 20px;

  display: flex;

  align-items: center;

  gap: 16px;

  box-shadow: var(--shadow-lg);

  transform: translateY(120px);

  opacity: 0;

  pointer-events: none;

  transition: 0.35s;

  z-index: 5000;
}

.toast.show {
  transform: translateY(0);

  opacity: 1;
}

.toast-icon {
  width: 48px;

  height: 48px;

  border-radius: 16px;

  background: #ecfdf5;

  color: #16a34a;

  display: flex;

  align-items: center;

  justify-content: center;
}

.toast h4 {
  font-size: 0.95rem;

  font-weight: 800;
}

.toast p {
  margin-top: 6px;

  color: var(--text-light);

  line-height: 1.5;

  font-size: 0.84rem;
}

.modal {
  position: fixed;

  inset: 0;

  display: flex;

  justify-content: center;

  align-items: center;

  background: rgba(15, 23, 42, 0.28);

  backdrop-filter: blur(12px);

  opacity: 0;

  visibility: hidden;

  transition: var(--transition);

  z-index: 9999;
}

.modal.show {
  opacity: 1;

  visibility: visible;
}

.modal-content {
  width: min(480px, calc(100% - 30px));

  background: #ffffff;

  border-radius: 26px;

  padding: 34px;

  box-shadow: var(--shadow-lg);

  transform: translateY(20px);

  transition: var(--transition);
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-content h2 {
  font-size: 1.45rem;

  font-weight: 800;
}

.modal-content p {
  margin-top: 14px;

  color: var(--text-light);

  line-height: 1.7;
}

.modal-actions {
  display: flex;

  justify-content: flex-end;

  gap: 14px;

  margin-top: 34px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f3f6fb;
}

::-webkit-scrollbar-thumb {
  background: #d5dce8;

  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #bcc7d8;
}
.page {
  display: none;
}

.page.active {
  display: block;
}

.save-all.loading {
  pointer-events: none;
  opacity: 0.9;
}

.save-all.loading::before {
  content: "";

  width: 16px;
  height: 16px;

  margin-right: 10px;

  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;

  display: inline-block;

  animation: spin 0.7s linear infinite;

  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.primary-button.pulse {
  animation: pulse 0.8s;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1);
  }
}

.search-match {
  outline: 2px solid rgba(37, 99, 235, 0.18);

  border-radius: 16px;

  animation: highlight 0.8s;
}

@keyframes highlight {
  0% {
    background: #eef5ff;
  }

  100% {
    background: #ffffff;
  }
}

button:disabled {
  cursor: not-allowed;

  opacity: 0.65;
}

input:disabled,
select:disabled {
  background: #f8fafc;
}

html,
body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
}

.settings-app {
  min-height: 100vh;

  display: flex;

  flex-direction: column;
}

.settings-layout {
  flex: 1;

  align-items: start;
}

.content {
  overflow: visible;

  min-height: 0;
}

.page {
  overflow: visible;
}

.sidebar {
  position: sticky;
  top: 105px;

  align-self: start;
}

.settings-layout {
  padding-bottom: 80px;
}

.content {
  padding-bottom: 60px;
}

.save-card {
  margin-bottom: 60px;
}

.card {
  animation: cardAppear 0.35s ease;
}

@keyframes cardAppear {
  from {
    opacity: 0;

    transform: translateY(14px);
  }

  to {
    opacity: 1;

    transform: none;
  }
}

.input-group input,
.input-group select {
  transition:
    border 0.25s,
    box-shadow 0.25s,
    transform 0.25s;
}

.input-group input:hover,
.input-group select:hover {
  transform: translateY(-1px);
}

.primary-button,
.dashboard-btn,
.save-all,
.sidebar-item {
  transition:
    transform 0.25s,
    background 0.25s,
    color 0.25s,
    box-shadow 0.25s;
}

.sidebar-item:hover {
  transform: translateX(3px);
}

.primary-button:hover,
.save-all:hover {
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.22);
}

.page {
  opacity: 1;

  transform: translateX(0);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.sidebar-item {
  position: relative;

  overflow: hidden;
}

.sidebar-item::before {
  content: "";

  position: absolute;

  left: 0;

  top: 10px;

  bottom: 10px;

  width: 3px;

  border-radius: 999px;

  background: #2563eb;

  opacity: 0;

  transition: 0.25s;
}

.sidebar-item.active::before {
  opacity: 1;
}

.sidebar-item svg {
  transition: 0.25s;
}

.sidebar-item:hover svg {
  transform: scale(1.08);
}

.card {
  position: relative;

  overflow: visible;
}

.card::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), transparent 45%);

  opacity: 0;

  transition: 0.35s;

  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.input-group input,
.input-group select {
  transition:
    border 0.25s,
    box-shadow 0.25s,
    transform 0.25s,
    background 0.25s;
}

.input-group input:hover,
.input-group select:hover {
  background: #fcfdff;
}

.input-group input:focus,
.input-group select:focus {
  transform: translateY(-2px);
}

.primary-button,
.dashboard-btn,
.save-all {
  position: relative;

  overflow: hidden;
}

.primary-button::after,
.dashboard-btn::after,
.save-all::after {
  content: "";

  position: absolute;

  width: 0;

  height: 0;

  left: 50%;

  top: 50%;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.18);

  transform: translate(-50%, -50%);

  transition: 0.45s;
}

.primary-button:active::after,
.dashboard-btn:active::after,
.save-all:active::after {
  width: 320px;

  height: 320px;
}

.sidebar-item {
  transition:
    background 0.25s,
    transform 0.25s,
    color 0.25s;
}

.sidebar-item:hover {
  transform: translateX(5px);
}

.sidebar-item.active {
  transform: translateX(4px);
}

.save-card {
  position: relative;
  bottom: auto;

  z-index: 20;

  backdrop-filter: blur(16px);
}

.info-card {
  cursor: pointer;
}

.info-card:hover {
  border-color: #bfd5ff;
}

.badge {
  transition: 0.25s;
}

.badge:hover {
  transform: translateY(-2px);
}

@keyframes ripple {
  from {
    transform: scale(0);

    opacity: 0.45;
  }

  to {
    transform: scale(4);

    opacity: 0;
  }
}

.select {
  position: relative;

  z-index: 100;
}

.select.open {
  z-index: 99999;
}

.select-trigger {
  width: 100%;

  height: 56px;

  padding: 0 18px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 18px;

  border: 1px solid #dbe5f2;

  border-radius: 16px;

  background: #fff;

  cursor: pointer;

  transition:
    border 0.25s,
    box-shadow 0.25s,
    transform 0.25s;
}

.select-trigger:hover {
  border-color: #c6d5ee;

  transform: translateY(-1px);
}

.select.open .select-trigger {
  border-color: #2563eb;

  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.select-trigger span {
  font-size: 0.95rem;

  font-weight: 600;

  color: #1e293b;
}

.select-arrow {
  color: #64748b;

  transition: 0.3s;

  flex-shrink: 0;
}

.select.open .select-arrow {
  transform: rotate(180deg);
}

.select-dropdown {
  position: absolute;

  top: calc(100% + 10px);

  left: 0;

  width: 100%;

  background: #fff;

  border: 1px solid #e7edf5;

  border-radius: 18px;

  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.12);

  opacity: 0;

  visibility: hidden;

  transform: translateY(8px);

  transition: 0.25s;

  overflow: hidden;

  z-index: 9999;
}

.select.open .select-dropdown {
  top: calc(100% + 12px);

  bottom: auto;
}

.select.open-up .select-dropdown {
  top: auto;

  bottom: calc(100% + 12px);
}

.select.open .select-dropdown {
  opacity: 1;

  visibility: visible;

  transform: translateY(0);
}

.select-search {
  padding: 14px;

  border-bottom: 1px solid #eef2f8;

  background: #fff;
}

.select-search input {
  width: 100%;

  height: 46px;

  padding: 0 15px;

  border: 1px solid #dbe5f2;

  border-radius: 12px;

  background: #fafcff;

  font-size: 0.88rem;

  transition: 0.25s;
}

.select-search input:focus {
  border-color: #2563eb;

  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);

  background: #fff;
}

.select-list {
  max-height: 360px;

  overflow: auto;

  padding: 10px;
}

.select-list::-webkit-scrollbar {
  width: 8px;
}

.select-list::-webkit-scrollbar-thumb {
  background: #d7dfeb;

  border-radius: 999px;
}

.select-group {
  display: flex;

  flex-direction: column;

  gap: 4px;
}

.select-title {
  padding: 12px 14px 6px;

  font-size: 0.72rem;

  font-weight: 800;

  letter-spacing: 0.08em;

  color: #94a3b8;

  text-transform: uppercase;
}

.select-divider {
  height: 1px;

  margin: 10px 0;

  background: #edf2f7;
}

.select-option {
  width: 100%;

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 13px 14px;

  border: none;

  border-radius: 12px;

  background: transparent;

  cursor: pointer;

  font-size: 0.9rem;

  font-weight: 500;

  color: #334155;

  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}

.select-option:hover {
  background: #f4f8ff;

  color: #2563eb;
}

.select-option.active {
  background: #eef4ff;

  color: #2563eb;

  font-weight: 700;
}

.select-option.active::after {
  content: "";

  width: 8px;

  height: 8px;

  border-radius: 50%;

  background: #2563eb;
}

.card:has(.select.open) {
  z-index: 1000;
}

.about-grid {
  display: grid;

  gap: 24px;

  margin-top: 28px;
}

.about-hero {
  display: flex;

  align-items: center;

  gap: 24px;

  padding: 34px;
}

.about-logo {
  width: 52px;
  height: 52px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.about-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 14px;
  display: block;

  transition:
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.9s ease;
}

.about-hero h2 {
  margin: 0;

  font-size: 2rem;

  font-weight: 800;

  color: #0f172a;
}

.about-hero p {
  margin-top: 10px;

  max-width: 760px;

  color: #64748b;

  line-height: 1.8;

  font-size: 1rem;
}

.about-stats {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 18px;
}

.info-card {
  background: #fff;

  border: 1px solid #e5edf7;

  border-radius: 18px;

  padding: 24px;

  transition: 0.25s;
}

.info-card:hover {
  transform: translateY(-4px);

  border-color: #bfd5ff;

  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
}

.info-card span {
  display: block;

  color: #64748b;

  font-size: 0.82rem;

  margin-bottom: 10px;
}

.info-card strong {
  font-size: 1.05rem;

  font-weight: 700;

  color: #0f172a;
}

.feature-list {
  display: grid;

  gap: 14px;

  margin-top: 20px;
}

.feature-item {
  display: flex;

  align-items: center;

  gap: 14px;

  padding: 16px 18px;

  border: 1px solid #edf2f8;

  border-radius: 14px;

  transition: 0.25s;
}

.feature-item:hover {
  background: #f8fbff;

  border-color: #c8dafb;
}

.feature-item::before {
  content: "";

  width: 10px;

  height: 10px;

  border-radius: 50%;

  background: #2563eb;

  flex-shrink: 0;
}

.about-table {
  display: grid;

  gap: 14px;

  margin-top: 20px;
}

.about-table div {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 16px 0;

  border-bottom: 1px solid #edf2f7;
}

.about-table div:last-child {
  border-bottom: none;
}

.about-table span {
  color: #64748b;
}

.about-table strong {
  color: #0f172a;

  font-weight: 700;
}

.about-quote {
  text-align: center;

  padding: 50px 40px;
}

.about-quote blockquote {
  margin: 0;

  font-size: 2rem;

  font-weight: 800;

  color: #0f172a;

  line-height: 1.4;
}

.about-quote span {
  display: block;

  margin-top: 18px;

  color: #64748b;

  font-size: 0.95rem;
}

@media (max-width: 1100px) {
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-hero {
    flex-direction: column;

    text-align: center;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .about-table div {
    flex-direction: column;

    align-items: flex-start;

    gap: 8px;
  }

  .about-quote blockquote {
    font-size: 1.5rem;
  }
}
.about-hero {
  position: relative;

  overflow: hidden;
}

.about-hero::before {
  content: "";

  position: absolute;

  top: -120px;

  right: -120px;

  width: 260px;

  height: 260px;

  border-radius: 50%;

  background: radial-gradient(rgba(37, 99, 235, 0.08), transparent 70%);

  pointer-events: none;
}

.about-hero::after {
  content: "";

  position: absolute;

  left: -70px;

  bottom: -70px;

  width: 170px;

  height: 170px;

  border-radius: 50%;

  background: radial-gradient(rgba(37, 99, 235, 0.05), transparent 70%);

  pointer-events: none;
}

.about-logo {
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-hero:hover .about-logo {
  transform: rotate(-6deg) scale(1.05);
}

.info-card {
  position: relative;

  overflow: hidden;
}

.info-card::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), transparent 55%);

  opacity: 0;

  transition: 0.3s;
}

.info-card:hover::before {
  opacity: 1;
}

.feature-item {
  position: relative;

  overflow: hidden;
}

.feature-item::after {
  content: "";

  position: absolute;

  left: 0;

  top: 0;

  width: 3px;

  height: 100%;

  background: #2563eb;

  transform: scaleY(0);

  transition: 0.25s;
}

.feature-item:hover::after {
  transform: scaleY(1);
}

.about-table div {
  transition: 0.25s;
}

.about-table div:hover {
  padding-left: 10px;
}

.about-table strong {
  transition: 0.25s;
}

.about-table div:hover strong {
  color: #2563eb;
}

.about-quote {
  position: relative;

  overflow: hidden;
}

.about-quote::before {
  content: "“";

  position: absolute;

  top: -45px;

  left: 35px;

  font-size: 9rem;

  font-weight: 800;

  color: rgba(37, 99, 235, 0.06);

  line-height: 1;

  pointer-events: none;
}

.about-quote blockquote {
  max-width: 650px;

  margin: auto;
}

.about-quote span {
  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.card:hover .card-header h2 {
  color: #2563eb;

  transition: 0.25s;
}

.search-highlight {
  border-color: #2563eb;

  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.08),
    0 18px 45px rgba(15, 23, 42, 0.08);

  animation: searchPulse 0.5s ease;
}

@keyframes searchPulse {
  0% {
    transform: scale(0.98);
  }

  100% {
    transform: scale(1);
  }
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.settings-app {
  width: 100%;
  overflow: hidden;
}

.settings-layout {
  overflow: visible;
}

.content {
  width: 100%;
  min-width: 0;
}

.sidebar {
  min-width: 0;
}

#profileAvatarLetter,
#sidebarAvatarLetter {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  font-size: 3rem;
  font-weight: 700;

  color: #fff;
}

#sidebarAvatarLetter,
#profileAvatarLetter {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;

  user-select: none;
}

.change-avatar-btn {
  position: absolute;
  left: 50%;
  bottom: -10px;

  transform: translateX(-50%);

  z-index: 10;
}

.profile-avatar-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
}

.profile-avatar {
  position: relative;

  width: 140px;
  height: 140px;

  flex-shrink: 0;

  border-radius: 50%;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #2563eb, #4f8cff);

  color: #fff;
}
.avatar-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
}

.profile-avatar-large {
  position: relative;

  width: 150px;
  height: 150px;

  flex-shrink: 0;

  border-radius: 50%;
  overflow: hidden;

  background: linear-gradient(135deg, #2563eb, #4f8cff);

  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 8px;

  background: rgba(15, 23, 42, 0.55);

  color: white;

  opacity: 0;

  transition: 0.3s;

  cursor: pointer;

  backdrop-filter: blur(4px);
}

.profile-avatar-large:hover .avatar-overlay {
  opacity: 1;
}

.avatar-overlay span {
  font-size: 0.9rem;
  font-weight: 700;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding-right: 42px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;

  transform: translateY(-50%);

  border: none;
  background: none;

  width: 20px;
  height: 20px;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  color: #94a3b8;
}

.password-toggle:hover {
  color: #64748b;
}

.password-toggle:focus {
  outline: none;
}

.password-toggle i {
  font-size: 15px;
}

.toast-success .toast-icon {
  background: #ecfdf5;
  color: #16a34a;
}

.toast-error .toast-icon {
  background: #fef2f2;
  color: #ef4444;
}

.logo-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 14px;
}

.logo__icon {
  width: 42px;

  height: 42px;

  border-radius: 14px;

  background: #2563eb;

  color: var(--surface);

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 1.05rem;

  font-weight: 800;

  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.18);
}

.select-option.field-disabled {
  color: #b8c1cf;
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.select-option.field-disabled:hover {
  background: transparent;
}

.select-option:disabled {
  color: #b8c1cf;
  cursor: not-allowed;
}

html.dark {
  color-scheme: dark;

  --background: #080d14;
  --surface: #0c1118;
  --text: #f8fafc;
  --text-light: #94a3b8;
  --border: #263445;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.45);
}

html.dark body {
  background: #080d14;
  color: #f8fafc;
}

html.dark .settings-app {
  background: #080d14;
}

html.dark .topbar {
  background: rgba(12, 17, 24, 0.88);
  border-color: #263445;
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.18);
}

html.dark .brand-text h2 {
  color: #f8fafc;
}

html.dark .brand-text span {
  color: #94a3b8;
}

html.dark .logo-icon img,
html.dark .about-logo img {
  content: url("../assets/logo-white.svg");
  filter: none;
}

html.dark .search {
  background: #101923;
  border-color: #263445;
}

html.dark .search input {
  color: #f8fafc;
}

html.dark .search input::placeholder {
  color: #64748b;
}

html.dark .dashboard-btn {
  background: #111c2b;
  color: #60a5fa;
}

html.dark .dashboard-btn:hover {
  background: #17253a;
}

html.dark .sidebar {
  background: #0c1118;
  border-color: #263445;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

html.dark .profile-card {
  border-color: #263445;
}

html.dark .profile-card h3 {
  color: #f8fafc;
}

html.dark .profile-card p {
  color: #94a3b8;
}

html.dark .sidebar-item {
  color: #cbd5e1;
}

html.dark .sidebar-item:hover {
  background: #111c27;
  color: #60a5fa;
}

html.dark .sidebar-item.active {
  background: #111f35;
  color: #60a5fa;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

html.dark .sidebar-bottom {
  border-color: #263445;
}

html.dark .storage-card {
  background: #101923;
  border-color: #263445;
}

html.dark .storage-card span {
  color: #f8fafc;
}

html.dark .storage-card small {
  color: #94a3b8;
}

html.dark .breadcrumb {
  color: #64748b;
}

html.dark .breadcrumb span {
  color: #475569;
}

html.dark .content-header h1 {
  color: #f8fafc;
}

html.dark .content-header p {
  color: #94a3b8;
}

html.dark .card {
  background: #0c1118;
  border-color: #263445;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

html.dark .card:hover {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

html.dark .card-header h2 {
  color: #f8fafc;
}

html.dark .card-header p {
  color: #94a3b8;
}

html.dark .profile-information h2 {
  color: #f8fafc;
}

html.dark .profile-information p {
  color: #94a3b8;
}

html.dark .input-group label {
  color: #cbd5e1;
}

html.dark .input-group input,
html.dark .input-group select,
html.dark .input-group textarea {
  background: #101923;
  color: #f8fafc;
  border-color: #314155;
}

html.dark .input-group input::placeholder,
html.dark .input-group textarea::placeholder {
  color: #64748b;
}

html.dark .input-group input:hover,
html.dark .input-group select:hover,
html.dark .input-group textarea:hover {
  background: #121c27;
  border-color: #3b4c62;
}

html.dark .input-group input:focus,
html.dark .input-group select:focus,
html.dark .input-group textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

html.dark .select-trigger {
  background: #101923;
  color: #f8fafc;
  border-color: #314155;
}

html.dark .select-dropdown {
  background: #0c1118;
  border-color: #263445;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

html.dark .select-search {
  background: #101923;
  border-color: #263445;
}

html.dark .select-search input {
  background: transparent;
  color: #f8fafc;
}

html.dark .select-option {
  color: #cbd5e1;
  background: transparent;
}

html.dark .select-option:hover {
  background: #111f35;
  color: #60a5fa;
}

html.dark .select-title {
  color: #64748b;
}

html.dark .select-divider {
  background: #263445;
}

html.dark .password-toggle {
  color: #64748b;
}

html.dark .password-toggle:hover {
  color: #60a5fa;
}

html.dark .setting-row:not(:last-child) {
  border-color: #263445;
}

html.dark .setting-row-left h3 {
  color: #f8fafc;
}

html.dark .setting-row-left p {
  color: #94a3b8;
}

html.dark .slider {
  background: #334155;
}

html.dark .switch input:checked + .slider {
  background: #2563eb;
}

html.dark .info-card {
  background: #101923;
  border-color: #263445;
}

html.dark .info-card:hover {
  border-color: #31558c;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

html.dark .info-title {
  color: #f8fafc;
}

html.dark .info-description {
  color: #94a3b8;
}

html.dark .info-icon {
  background: #111f35;
  color: #60a5fa;
}

html.dark .about-hero h2,
html.dark .about-hero p,
html.dark .about-table strong,
html.dark .feature-item strong {
  color: #f8fafc;
}

html.dark .about-hero p,
html.dark .about-table span,
html.dark .feature-item p {
  color: #94a3b8;
}

html.dark .toast {
  background: #0c1118;
  border-color: #263445;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

html.dark .toast h4 {
  color: #f8fafc;
}

html.dark .toast p {
  color: #94a3b8;
}

html.dark .toast-icon {
  background: #111f35;
}

html.dark ::-webkit-scrollbar-track {
  background: #080d14;
}

html.dark ::-webkit-scrollbar-thumb {
  background: #263445;
}

html.dark ::-webkit-scrollbar-thumb:hover {
  background: #34465c;
}

html.dark input:disabled,
html.dark select:disabled {
  background: #0a1017;
  color: #64748b;
}

html.dark .search-highlight {
  border-color: #2563eb;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.12),
    0 18px 45px rgba(0, 0, 0, 0.3);
}

html.dark .topbar {
  background: rgba(12, 17, 24, 0.97);
}

html.dark .info-card span {
  color: #94a3b8;
}

html.dark .info-card strong {
  color: #f8fafc;
}

html.dark .info-card:hover {
  background: #101923;
}

html.dark .feature-item {
  background: #0c1118;
  border-color: #263445;
  color: #f8fafc;
}

html.dark .feature-item:hover {
  background: #101923;
  border-color: #31558c;
}

html.dark .about-table div {
  border-bottom-color: #263445;
}

html.dark .about-table div:last-child {
  border-bottom: none;
}

html.dark .about-table span {
  color: #94a3b8;
}

html.dark .about-table strong {
  color: #f8fafc;
}

html.dark .about-quote blockquote {
  color: #f8fafc;
}

html.dark .about-quote span {
  color: #94a3b8;
}

html.dark .school-info-card,
html.dark .card {
  background: #0f1724;
  border-color: #24344a;
}

html.dark .school-info-card h2,
html.dark .school-info-card h3,
html.dark .school-info-card label {
  color: #f5f7fb;
}

html.dark .school-info-card p {
  color: #8fa0b8;
}

html.dark .select {
  background: transparent;
}

html.dark .select-trigger {
  background: #111b28;
  border: 1px solid #30445d;
  color: #f5f7fb;
}

html.dark .select-trigger span,
html.dark .select-trigger .selected,
html.dark .select-trigger .selected-value {
  color: #f5f7fb;
}

html.dark .select-trigger svg,
html.dark .select-trigger i {
  color: #8fa0b8;
  stroke: #8fa0b8;
}

html.dark .select-trigger:hover {
  border-color: #3d5a7c;
  background: #142031;
}

html.dark .select-menu,
html.dark .select-options,
html.dark .select-dropdown {
  background: #111b28;
  border: 1px solid #30445d;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

html.dark .select-option {
  color: #dbe4f0;
  background: transparent;
}

html.dark .select-option:hover {
  color: #ffffff;
  background: #18263a;
}

html.dark .select-option.active {
  color: #ffffff;
  background: #172b49;
}

html.dark .select-option.disabled,
html.dark .field-disabled {
  color: #52657d;
}

html.dark #selectedLevel,
html.dark #selectedField,
html.dark #profileLevel,
html.dark #profileField {
  color: #f5f7fb;
}

html.dark .select-trigger::after {
  color: #8fa0b8;
}



html.settings-loading,
body.settings-loading {
  overflow: hidden;
}

body.settings-loading > .settings-app {
  visibility: hidden !important;
}

#settingsPageLoader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  overflow: auto;
  background: #f6f8fc;
  color: #0f172a;
}

.settings-loader-shell {
  min-height: 100vh;
  padding: 18px 20px 36px;
}

.settings-loader-topbar {
  width: min(1500px, calc(100% - 0px));
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(15,23,42,.06);
}

.settings-loader-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-loader-brand-text {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.settings-loader-skeleton {
  position: relative;
  overflow: hidden;
  background: #e9eef6;
  border-radius: 10px;
}

.settings-loader-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.62) 50%,
    transparent 100%
  );
  animation: settingsLoaderShimmer 1.45s ease-in-out infinite;
}

@keyframes settingsLoaderShimmer {
  100% { transform: translateX(100%); }
}

.settings-loader-logo { width: 38px; height: 38px; border-radius: 11px; }
.settings-loader-brand-title { width: 78px; height: 13px; }
.settings-loader-brand-subtitle { width: 68px; height: 10px; }
.settings-loader-back { width: 92px; height: 46px; border-radius: 14px; }

.settings-loader-layout {
  width: min(1500px, 100%);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 310px minmax(0,1fr);
  gap: 34px;
  align-items: start;
}

.settings-loader-sidebar {
  min-height: 640px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
}

.settings-loader-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 26px;
  border-bottom: 1px solid #e8edf5;
}

.settings-loader-avatar { width: 82px; height: 82px; border-radius: 50%; }
.settings-loader-name { width: 130px; height: 17px; margin-top: 18px; }
.settings-loader-subtitle { width: 165px; height: 12px; margin-top: 9px; }

.settings-loader-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 26px;
}

.settings-loader-nav-item { width: 100%; height: 54px; border-radius: 16px; }

.settings-loader-storage {
  margin-top: 28px;
  padding: 18px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #e6efff;
}

.settings-loader-storage-title { width: 105px; height: 13px; }
.settings-loader-storage-text { width: 90%; height: 10px; margin-top: 9px; }

.settings-loader-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.settings-loader-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.settings-loader-breadcrumb { width: 150px; height: 11px; }
.settings-loader-page-title { width: 185px; height: 31px; margin-top: 14px; border-radius: 9px; }
.settings-loader-save { width: 118px; height: 48px; border-radius: 16px; }

.settings-loader-card {
  padding: 30px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 26px;
  box-shadow: 0 2px 8px rgba(15,23,42,.03);
}

.settings-loader-card-heading {
  margin-bottom: 28px;
}

.settings-loader-card-title { width: 155px; height: 19px; }
.settings-loader-card-description { width: 300px; max-width: 80%; height: 12px; margin-top: 9px; }

.settings-loader-profile-row {
  display: flex;
  align-items: center;
  gap: 30px;
}

.settings-loader-large-avatar { width: 112px; height: 112px; border-radius: 50%; }
.settings-loader-profile-lines { flex: 1; }
.settings-loader-profile-title { width: 190px; height: 25px; }
.settings-loader-profile-line { width: 250px; height: 12px; margin-top: 10px; }

.settings-loader-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 24px;
}

.settings-loader-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-loader-label { width: 100px; height: 11px; }
.settings-loader-input { width: 100%; height: 54px; border-radius: 16px; }

@media (max-width: 900px) {
  .settings-loader-layout { grid-template-columns: 1fr; }
  .settings-loader-sidebar { display: none; }
}

@media (max-width: 600px) {
  .settings-loader-shell { padding: 12px; }
  .settings-loader-topbar { height: 64px; padding: 0 16px; border-radius: 20px; }
  .settings-loader-back { width: 76px; height: 42px; }
  .settings-loader-layout { margin-top: 20px; }
  .settings-loader-heading { align-items: stretch; }
  .settings-loader-save { width: 96px; height: 44px; }
  .settings-loader-card { padding: 20px; border-radius: 22px; }
  .settings-loader-grid { grid-template-columns: 1fr; }
  .settings-loader-profile-row { gap: 18px; }
  .settings-loader-large-avatar { width: 82px; height: 82px; }
}

html.dark #settingsPageLoader {
  background: #0b0b0b;
  color: #f8fafc;
}

html.dark .settings-loader-topbar,
html.dark .settings-loader-sidebar,
html.dark .settings-loader-card {
  background: #111923;
  border-color: #263445;
}

html.dark .settings-loader-skeleton {
  background: #263445;
}

html.dark .settings-loader-skeleton::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.08) 50%,
    transparent 100%
  );
}

html.dark .settings-loader-storage {
  background: #151f2b;
  border-color: #263445;
}


button, input, select, textarea { font-family: "Inter", sans-serif; }


/* =========================================================
   BAC TRUTH — UNIVERSAL PAGE SCROLLBAR
   Matches the Quran page exactly.
   ========================================================= */
html,
body {
  scrollbar-width: thin;
  scrollbar-color: #b8bec8 transparent;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 5px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: #b8bec8;
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: #aab1bc;
}
