.screen-content {
  width: 100%;
  max-width: 420px;
  margin: auto;
  z-index: 1200000000000;
  padding: 0 16px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-sizing: border-box;
}

.registertitle {
  font-size: 30px;
  margin: 0 0 10px;

}

.registerdescription {
  text-align: center;
  max-width: 340px;
  margin: 0;
  line-height: 1.45;
}

#loginScreen[style*="display:none"],
#registerScreen[style*="display:none"],
#homeScreen[style*="display:none"] {
  display: none !important;
}

.registericon {
  width: 120px;
  height: 120px;
}

.light-mode .registericon {
  filter: invert(1) hue-rotate(200deg) saturate(1.2);
}

.registerplaceholder {
  width: 100%;
  height: 52px;
  box-sizing: border-box;
  border: none;
  outline: none;
  margin-bottom: 10px;
  border-radius: 40px;
  font-size: 16px;
  padding: 0 20px;
  font-family: inherit;
  color: #ffffff;
}

body.light-mode .registerplaceholder {
  color: #000000;
}

select.registerplaceholder {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 44px;
}

input[type="date"].registerplaceholder {
  color-scheme: dark;
}

body.light-mode input[type="date"].registerplaceholder {
  color-scheme: light;
}

#surveyForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.survey-field-wrap {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 40px;
}

.survey-field-wrap .registerplaceholder {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
}

.date-field-placeholder {
  position: absolute;
  left: 20px;
  top: 0;
  height: 52px;
  display: flex;
  align-items: center;
  pointer-events: none;
  opacity: 0.55;
  font-size: 16px;
}

#loginBtn,
#weiterBtn,
.google-btn {
  width: 100%;
  height: 55px;
  border-radius: 40px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

.verify-text {
  font-size: 18px;
}

.verify-email {
  font-size: 20px;
  color: #ea1e1e;
  font-weight: bold;

}

#loginForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#profileForm {
  gap: 10px;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 30px;

}

.login-subtitle {
  font-size: 28px;
  margin: 0 0 20px 0;
  font-weight: 550;
  opacity: 0.8;
  text-align: center;
  display: block;
}

.consent-agreement {
  display: flex;
  border-radius: 40px;
  height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0;
  width: 100%;
  padding: 0 30px;
  box-sizing: border-box;
}

.agreement-text {
  font-size: 16px;
  line-height: 1.4;
  flex: 1;
  padding-right: 10px;
}

.agreement-text .legal-link {
  text-decoration: none;
  font-weight: 500;
}

.agreement-text .legal-link:hover {
  text-decoration: underline;
}

.switch {
  position: relative;
  display: inline-block;
  width: 55px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ff0000;
  border-radius: 24px;
  transition: 0.3s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: rgb(255, 255, 255);
  border-radius: 50%;
  transition: 0.3s;
}

input:checked+.slider {
  background-color: #4CAF50;
}

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






.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}


.google-icon {
  width: 20px;
  height: 20px;
}





.verify-instructions {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 30px;
  line-height: 1.5;
}


.privacy-toggle {
  margin: 25px 0;
  width: 100%;
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.3s;
}

.toggle-container:hover {
  background: rgba(255, 255, 255, 0.05);
}

.toggle-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.otp-boxes {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.otp-box {
  width: 55px;
  height: 55px;
  flex-shrink: 0;
  flex-grow: 0;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  border-radius: 50%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}


.codesend {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
}

#verifyOTPBtn {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.otp-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.otp-buttons .allbtn {
  flex: 1;
  padding: 10px;
  border-radius: 50px;
  font-size: 14px;
  opacity: 0.85;
  background: transparent;
}


#emailInputArea,
#otpInputArea {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 12px;
}

#otpInputArea {
  gap: 16px;
}

.otp-boxes-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.otp-sublinks {
  display: flex;
  gap: 20px;
}

.otp-link-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
  padding: 0;
}







.login-screen-content {
  gap: 10px;
}

.login-icon-sm {
  width: 84px;
  height: 84px;
  margin-bottom: 0;
}

.login-title-sm {
  font-size: 25px;
  margin: 0 0 4px;
}

.auth-tabs {
  display: flex;
  width: 100%;
  gap: 6px;
  padding: 4px;
  border-radius: 40px;
  background: rgba(128, 128, 128, 0.12);
  box-sizing: border-box;
  margin-top: 4px;
}

.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  border-radius: 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  opacity: 0.6;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.auth-tab.active {
  background: #ea1e1e;
  color: #fff;
  opacity: 1;
}

body.light-mode .auth-tab {
  color: #1a1a1a;
}

body.light-mode .auth-tab.active {
  color: #fff;
}

.code-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid rgba(234, 30, 30, 0.4);
}

.code-login-btn .material-symbols-outlined {
  font-size: 20px;
}

#forgotPasswordInputArea,
#otpEmailInputArea {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 10px;
}

.screen-bottom-cta {
  position: fixed;
  bottom: max(30px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 420px;
  height: 58px;
  border-radius: 30px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  z-index: 10051;
  background: #ea1e1e;
  color: #fff;
  border: none;
}

.screen-bottom-secondary-btn {
  position: fixed;
  bottom: max(30px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 420px;
  height: 52px;
  border-radius: 26px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  z-index: 10051;
  background: rgba(128, 128, 128, 0.16);
  color: inherit;
  border: none;
  opacity: 0.9;
}

.survey-label {
  font-weight: 600;
  align-self: flex-start;
  margin: 6px 0 -2px;
}

.interest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  padding-bottom: 60px;
}

.interest-chip {
  border: 1.5px solid rgba(234, 30, 30, 0.35);
  background: transparent;
  color: inherit;
  padding: 9px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.interest-chip.selected {
  background: #ea1e1e;
  border-color: #ea1e1e;
  color: #fff;
}

.permission-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: 20px;
  background: rgba(128, 128, 128, 0.1);
  box-sizing: border-box;
}

.permission-row-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(234, 30, 30, 0.15);
  color: #ea1e1e;
}

.permission-row-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.permission-row-text strong {
  font-size: 15px;
}

.permission-row-text span {
  font-size: 12.5px;
  opacity: 0.7;
}

.permission-enable-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #ea1e1e;
  color: #fff;
}

.permission-enable-btn.done {
  background: rgba(128, 128, 128, 0.25);
  color: inherit;
  opacity: 0.8;
}

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

.password-field-wrap .registerplaceholder {
  padding-right: 46px;
}

.toggle-password-btn {
  position: absolute;
  right: 8px;
  top: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0.6;
  padding: 0 8px;
}

.toggle-password-btn .material-symbols-outlined {
  font-size: 22px;
  color: #fff;
}

.toggle-password-btn {
  opacity: 0.9;
}

.login-topleft-back-btn {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  left: 14px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.15);
  color: inherit;
  border: 1px solid rgba(239, 68, 68, 0.35);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  z-index: 9999999999999999;
  opacity: 0;
  transform: scale(0.8) rotate(-90deg);
  transition: all 0.3s ease 0.2s;
}

.screen.active .login-topleft-back-btn {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.login-topleft-back-btn:active {
  transform: scale(0.88);
  background: rgba(239, 68, 68, 0.25);
}

.login-topleft-back-btn .material-symbols-outlined {
  font-size: 32px;
}

.forgot-password-btn {
  align-self: flex-end;
  font-size: 13px;
  text-decoration: none;
  opacity: 0.75;
  margin: -4px 0 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 4px 2px;
}

.forgot-password-btn:hover {
  opacity: 1;
  text-decoration: underline;
}

#emailAuthBtn {
  width: 100%;
  height: 55px;
  border-radius: 40px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 4px;
}

#useCodeInsteadBtn {
  margin-top: 2px;
}

#accountscreen {
  display: none;
  flex-direction: column;
  align-items: center;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 28px;
  color: rgb(255, 255, 255);
  user-select: none;
  box-sizing: border-box;
  border: 3px solid rgba(239, 68, 68, 0.5);
  background: radial-gradient(1000px circle at 25% 10%, rgba(255, 255, 255, 0.10), transparent 50%),
    radial-gradient(800px circle at 80% 20%, rgba(255, 0, 60, 0.15), transparent 55%),
    linear-gradient(135deg, #0b0b0d, #140a0a, #240b0b);
}

.avatar-edit-wrap {
  position: relative;
  display: inline-flex;
}

.avatar-edit-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ea1e1e;
  border: 3px solid #0a0a0a;
  color: #fff;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.avatar-edit-btn:active {
  transform: scale(0.9);
}

.avatar-edit-btn .material-symbols-outlined {
  font-size: 16px;
}

.avatar-edit-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

body.light-mode .avatar-edit-btn {
  border-color: #ffffff;
}

.account-container {
  width: 100%;
  margin: 0 auto;
  margin-top: 80px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 120px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}


#account,
#userProfileScreen .account-container {
  margin-top: 30px;
}

#account-profile {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 28px 16px 24px;
  box-sizing: border-box;
}


#accountscreen #account-profile,
#userProfileScreen #account-profile {
  align-items: stretch;
  gap: 10px;
  padding-left: 2px;
  padding-right: 2px;
}

#account-profile .avatar {
  width: 120px;
  height: 120px;
  font-size: 34px;
  border: 3px solid rgba(239, 68, 68, 0.6);
  background: linear-gradient(135deg, #2c2c30, #17171a);
}


#accountscreen #account-profile .avatar,
#userProfileScreen #account-profile .avatar {
  width: 110px;
  height: 110px;
  font-size: 30px;
}

.account-section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin: 0 0 -10px 10px;
}

.account-group {
  width: 100%;
  background: rgba(176, 5, 5, 0.303);
  border: 1px solid rgba(239, 68, 68, 0.35);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  outline: none;
  height: auto;
  border-radius: 30px;
  overflow: hidden;
  box-sizing: border-box;
}

body.light-mode .account-group {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.account-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  text-decoration: none;
  border-radius: 0;
  background: transparent;
  border: none;
  color: inherit;
  transition: background 0.15s ease;
}

.account-row:active {
  background: rgba(255, 255, 255, 0.05);
}

.account-row-label {
  flex: 1;
  min-width: 0;
}

.account-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(239, 68, 68, 0.18);
}

.account-row-icon .material-symbols-outlined {
  font-size: 20px;
  opacity: 0.9;
}

.account-row-arrow {
  opacity: 0.3;
  font-size: 20px;
  flex-shrink: 0;
}

.account-row-danger .account-row-label {
  color: #ff5555;
}

.account-row-danger .account-row-icon {
  background: rgba(255, 0, 0, 0.22);
}

.account-row-danger .account-row-icon .material-symbols-outlined {
  color: #ff5555;
  opacity: 1;
}

.account-row-value {
  font-size: 14px;
  opacity: 0.55;
  flex-shrink: 0;
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.account-row-static {
  cursor: default;
}

.account-row-static:active {
  background: transparent;
}

.account-row-check {
  opacity: 0;
  font-size: 20px;
  flex-shrink: 0;
  color: #ef4444;
}

.report-reason-row.selected .account-row-check {
  opacity: 1;
}

.report-reason-row.selected {
  background: rgba(239, 68, 68, 0.1);
}

.appearance-card {
  padding: 20px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.appearance-preview-row {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.appearance-preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.appearance-preview-thumb {
  width: 104px;
  height: 176px;
  border-radius: 20px;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.appearance-preview-thumb:active {
  transform: scale(0.96);
}

.appearance-preview-light {
  background: #f2f2f2;
}

.appearance-preview-dark {
  background: #1c1c1e;
}

.appearance-preview-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin: 16px auto 8px;
  background: rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.appearance-preview-dark .appearance-preview-dot {
  background: rgba(255, 255, 255, 0.18);
}

.appearance-preview-lines {
  width: 46px;
  height: 4px;
  border-radius: 2px;
  margin: 0 auto 14px;
  background: rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.appearance-preview-dark .appearance-preview-lines {
  background: rgba(255, 255, 255, 0.18);
}

.appearance-preview-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
}

.appearance-preview-card {
  height: 18px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.appearance-preview-dark .appearance-preview-card {
  background: rgba(176, 5, 5, 0.4);
  border-color: rgba(239, 68, 68, 0.45);
}

.appearance-preview-card-accent {
  background: rgba(239, 68, 68, 0.55);
  border-color: rgba(239, 68, 68, 0.7);
}

.appearance-preview-dark .appearance-preview-card-accent {
  background: rgba(239, 68, 68, 0.65);
  border-color: rgba(239, 68, 68, 0.8);
}

.appearance-preview-navbar {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  height: 26px;
  flex-shrink: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.appearance-preview-dark .appearance-preview-navbar {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.appearance-preview-navbar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
}

.appearance-preview-dark .appearance-preview-navbar span {
  background: rgba(255, 255, 255, 0.22);
}

.appearance-preview-navbar .appearance-preview-nav-active {
  width: 9px;
  height: 9px;
  background: #ff3b30;
}

.appearance-preview-label {
  font-size: 14px;
  font-weight: 600;
}

.appearance-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease;
}

body.light-mode .appearance-radio {
  border-color: rgba(0, 0, 0, 0.25);
}

.appearance-radio.appearance-radio-active {
  border-color: #ff3b30;
}

.appearance-radio.appearance-radio-active::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #ff3b30;
}

.appearance-device-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(239, 68, 68, 0.25);
}

.appearance-device-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.appearance-device-title {
  font-size: 15px;
  font-weight: 600;
}

.appearance-device-sub {
  font-size: 12px;
  opacity: 0.55;
  line-height: 1.4;
}

.chip-grid {
  display: grid;
  gap: 10px;
  width: 100%;
}

.chip-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.chip-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.chip-btn {
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 6px;
  border-radius: 16px;
  background: rgba(176, 5, 5, 0.303);
  border: 1px solid rgba(239, 68, 68, 0.35);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-sizing: border-box;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  color: inherit;
  font: inherit;
  text-align: center;
}

.chip-btn:active {
  transform: scale(0.96);
}

.chip-btn .material-symbols-outlined {
  font-size: 22px;
  opacity: 0.75;
}

.chip-btn-label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.7;
}

.chip-btn-danger {
  border-color: rgba(255, 0, 0, 0.4);
}

.chip-btn-danger .material-symbols-outlined,
.chip-btn-danger .chip-btn-label {
  color: #ff5555;
  opacity: 1;
}

body.light-mode .chip-btn {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
}

.account-version-footer {
  width: 100%;
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  opacity: 0.7;
  margin: 20px 0 0;
  padding: 16px 20px;
  border-radius: 30px;
  background: rgba(176, 5, 5, 0.303);
  border: 1px solid rgba(239, 68, 68, 0.35);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-sizing: border-box;
}

body.light-mode .account-version-footer {
  color: #000000;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
}


#onboarding {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
}
.onboard-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
  box-sizing: border-box;
}

.onboard-next,
.onboard-finish {
  position: fixed;
  bottom: max(30px, env(safe-area-inset-bottom));
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 90%;
  max-width: none;
  height: 60px;
  border-radius: 30px;
  font-size: 17px;
  cursor: pointer;
  z-index: 10051;
}


.registerimg{
  all: unset;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 18px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 20px 50px -12px rgba(234, 30, 30, 0.45);
}

.registerimg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.light-mode .registerimg video {
  filter: invert(1) hue-rotate(200deg) saturate(1.2);
}

.onboard-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(1000px circle at 25% 10%, rgba(255, 255, 255, 0.08), transparent 50%),
    radial-gradient(800px circle at 80% 20%, rgba(255, 0, 60, 0.18), transparent 55%),
    linear-gradient(135deg, #1a0a0a, #240b0b);
  border: 1px solid rgba(234, 30, 30, 0.35);
}

.onboard-icon {
  font-size: 92px;
  color: #ea1e1e;
}

.onboard-title-big {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
}

.onboard-text-big {
  font-size: 16.5px;
  line-height: 1.55;
  opacity: 0.85;
}

.onboard-skip-btn {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  bottom: auto;
  left: auto;
  right: 5%;
  z-index: 10052;
  width: auto;
  max-width: none;
  height: 40px;
  padding: 0 18px;
  background: rgba(128, 128, 128, 0.16);
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
  opacity: 0.9;
}

.onboard-skip-btn:hover {
  opacity: 1;
}

.light-mode .onboard-icon-wrap {
  filter: none;
  background: radial-gradient(1000px circle at 25% 10%, rgba(0, 0, 0, 0.04), transparent 50%),
    linear-gradient(135deg, #fff0f0, #ffe3e3);
  border: 1px solid rgba(234, 30, 30, 0.25);
}

@media (orientation: landscape) {
  .onboard-icon {
    font-size: 80px;
  }
}
.legal-link {
  color: #ea1e1e;
  font-weight: 700;
  text-decoration: none;
}
.legal-link:hover {
  text-decoration: underline;
}
@media (orientation: landscape) {
.registerimg {
    width: 190px;
    height: 190px;
    margin-bottom: 6px;
  }
 
}

.story-progress {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 100px);
  max-width: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 1000000;
}

.story-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(128, 128, 128, 0.3);
  transition: background 0.3s ease;
}

.story-bar.active {
  background: #ea1e1e;
}

.username-setup-field-wrap {
  position: relative;
  width: 100%;
}

.username-setup-field-wrap .username-setup-input {
  padding-left: 42px;
}

.username-setup-at {
  position: absolute;
  left: 20px;
  top: 0;
  height: 52px;
  display: flex;
  align-items: center;
  opacity: 0.75;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  z-index: 2;
  pointer-events: none;
}

body.light-mode .username-setup-at {
  color: #000;
}

.username-setup-error {
  color: #ef4444;
  font-size: 13px;
  text-align: center;
  margin: -4px 0 0;
}

/* Own profile header — shows the username (not the name), left-aligned
   instead of the centered title every other screen uses. */
#accountscreen .header {
  justify-content: flex-start;
  padding-left: 16px;
}

#accountscreen .header .title {
  text-align: left;
}

#profBio {
  font-size: 14px;
  margin: 14px 0 0;
  color: #fff;
  text-align: left;
  width: 100%;
  max-width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
}

body.light-mode #profBio {
  color: #000;
}

.username-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: -6px;
}

.username-suggestion-chip {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(176, 5, 5, 0.15);
  color: #ef4444;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.username-suggestion-chip:active {
  transform: scale(0.96);
}

body.light-mode .username-suggestion-chip {
  background: rgba(239, 68, 68, 0.12);
}

.ig-top-row {
  display: flex;
  align-items: center;
  gap: 26px;
  width: 100%;
  margin-top: 12px;
}

.ig-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
}

.ig-top-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.account-name-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0;
}

.account-name {
  margin: 0;
  font-size: 18px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.light-mode .account-name {
  color: #000;
}


#accountscreen .up-stats-row,
#userProfileScreen .up-stats-row {
  justify-content: flex-start;
  gap: 30px;
  min-width: 0;
}

#accountscreen .up-stat,
#userProfileScreen .up-stat {
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 2px;
  min-width: 0;
}

#accountscreen .up-stat-num,
#userProfileScreen .up-stat-num {
  font-size: 16px;
  font-weight: 700;
}

#accountscreen .up-stat+.up-stat,
#userProfileScreen .up-stat+.up-stat {
  border-left: none;
}

.account-actions-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 20px;
}

.account-action-btn {
  flex: 1;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(176, 5, 5, 0.303);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.account-action-btn:active {
  transform: scale(0.97);
}

body.light-mode .account-action-btn {
  background: rgba(239, 68, 68, 0.15);
  color: #000;
}

/* .account-container (register.css) is display:flex + gap:22px, meant for
   loosely-spaced settings rows elsewhere in the app. Every field here also
   carries its own margin-bottom (10px input->count, etc.) for tight
   label/counter pairing — stacked on TOP of that 22px flex gap, every gap
   became 22px+10px≈32px, which is the broken oversized spacing between
   each field and its own character counter. Killing the gap for just this
   screen lets the fields' own margins (already tuned) do the spacing. */
#profileEditScreen .account-container {
  gap: 0;
}

.profile-edit-avatar-row {
  position: relative;
  width: 132px;
  margin: 0 auto 30px;
}

.profile-edit-avatar {
  width: 132px;
  height: 132px;
  font-size: 40px;
}

.profile-edit-avatar-row .avatar-edit-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 40px;
  height: 40px;
}

.profile-edit-avatar-row .avatar-edit-btn .material-symbols-outlined {
  font-size: 20px;
}

#profileEditScreen #profileEditSave {
  width: calc(100% - 40px);
  max-width: none;
  left: 20px;
  transform: none;
}

#profileEditScreen .username-setup-field-wrap {
  margin-bottom: 10px;
}

#profileEditScreen .username-setup-at {
  height: 64px;
  font-size: 17px;
}

.profile-edit-input {
  width: 100%;
  box-sizing: border-box;
  height: 64px;
  border-radius: 999px;
  padding: 0 20px;
  margin-bottom: 12px;
  font-size: 17px;
  font-family: inherit;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(176, 5, 5, 0.303);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  color: #fff;
  outline: none;
}

body.light-mode .profile-edit-input {
  background: rgba(239, 68, 68, 0.15);
  color: #000;
}

.username-setup-field-wrap .profile-edit-input {
  padding-left: 46px;
  margin-bottom: 0;
}

.profile-edit-input:focus {
  border-color: rgba(239, 68, 68, 0.6);
}

.profile-edit-bio {
  height: auto;
  min-height: 110px;
  border-radius: 22px;
  padding: 16px 18px;
  resize: none;
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 2px;
}

.profile-edit-bio-count {
  text-align: right;
  font-size: 11px;
  opacity: 0.5;
  margin-bottom: 10px;
}

#profileEditScreen .username-suggestions {
  margin-bottom: 14px;
}
