:root {
  --primary-color: #0a66c2;
  --primary-color-dark: #1650A0;
  --background-color: #ffffff;
  --theme-color: #ffffff;

  --text-color-success: #0abf53;
  --text-color-confirm: #f48924;
  --text-color-failure: #ff0000;

  --bg-color-success: #a7f3d0;
  --bg-color-confirm: #fed7aa;
  --bg-color-failure: #fecaca;

  --font-family-default:
    -apple-system,     /* macOS & iOS */
    BlinkMacSystemFont,/* Chrome on macOS */
    "Segoe UI",        /* Windows */
    Roboto,            /* Android */
    "Helvetica Neue",  /* Older iOS */
    Arial,             /* Fallbacks */
    sans-serif;        /* Generic fallback */

  --font-size-heading: 1.1rem;
  --font-size-title: 1rem;
  --font-size-label: 0.8rem;
  --font-size-content: 0.6rem;

  --text-color-white: #ffffff;
  --text-color-dark: #444444;
  --text-color-grey: #666666;
  --text-color-light-grey: #999999;
  --bg-color-grey: #d7d7d8;
  --bg-color-light: #efefef;
  --bg-color-white: #ffffff;
  --bg-color-light-grey: #f5f5f5;
  --border-color-light-grey: #f3f1f1;
  --toggle-switch-inactive: #e0e0e0;
  --toggle-switch-active: #0a66c2;
}

:root.dark {
  --primary-color: #0a66c2;
  --primary-color-dark: #1650A0;
  --background-color: #1f2937;
  --theme-color: #1f2937;

  --text-color-success: #0abf53;
  --text-color-confirm: #f48924;
  --text-color-failure: #ff0000;

  --bg-color-success: #a7f3d0;
  --bg-color-confirm: #fed7aa;
  --bg-color-failure: #fecaca;

  --text-color-white: #f9fafb;
  --text-color-dark: #9ca3af;
  --text-color-grey: #9ca3af;
  --text-color-light-grey: #6b7280;
  --bg-color-grey: #1f2e44;
  --bg-color-light: #1b2430;
  --bg-color-white: #1f2937;
  --bg-color-light-grey: #1f2e44;
  --border-color-light-grey: #1b3257;
  --toggle-switch-inactive: #1b2430;
  --toggle-switch-active: #0a66c2;
}

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

* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer and Edge */
}

*::-webkit-scrollbar {
    display: none;
}

body, 
html {
  block-size: 100%;
  inline-size: 100%;
  overflow: hidden;
  position: fixed;
}

body {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  touch-action: manipulation;
  font-optical-sizing: auto;
  color: var(--text-color-grey);
  font-family: var(--font-family-default);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
.main-content {
  background-color: var(--background-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.root {
  block-size: 100%;
  inline-size: 100%;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
}

a, 
input, 
button, 
textarea {
  outline: none;
}

a {
  text-decoration: none;
  color: var(--text-color-grey);
}

h1, 
h2, 
h3, 
h4, 
h5, 
h6 {
  margin-top: 0;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul {
  list-style: none;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

label {
  display: block;
  margin-block-end: 0.4rem;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}

input::placeholder {
  opacity: 1;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0rem 62.5rem inherit inset;
  -webkit-text-fill-color: inherit;
  transition: background-color 5000s ease-in-out 0s;
}

input:-moz-autofill,
input:-moz-autofill:focus {
  background-color: inherit !important;
}

.hidden {
  display: none !important;
}

.btn {
  display: inline-block;
  inline-size: 100%;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 0.0625rem solid transparent;
  padding: 1rem 1rem;
  margin-block-start: 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color-grey);
}

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

.btn-primary {
  color: var(--text-color-white);
  background-color: var(--primary-color);
}

@supports (padding: env(safe-area-inset-bottom)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

:host {
  display: block;
  block-size: 100%;
  overflow: hidden;
}

.page-header {
  padding: 1rem 0.8rem;
  box-shadow: none;
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  text-align: center;
  block-size: 4.375rem;
  background-color: var(--background-color);
}

.main-content {
  position: absolute;
  top: 4.375rem;
  bottom: 4.375rem;
  left: 0;
  right: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.main-content-no-bottom-nav {
  block-size: calc(100vh - 4.375rem);
  overflow-y: auto;
}

.bottom-nav {
  box-shadow: 0 -0.125rem 0.3125rem rgba(0, 0, 0, 0.1);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  block-size: 4.375rem;
  z-index: 10;
  box-sizing: border-box;
  background-color: var(--background-color);
}

@supports (padding: env(safe-area-inset-bottom)) {
  .bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
    block-size: calc(4.375rem + env(safe-area-inset-bottom));
  }
  
  .main-content {
    bottom: calc(4.375rem + env(safe-area-inset-bottom));
  }
}

.nav-container {
  display: flex;
  justify-content: space-around;
  block-size: 100%;
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-inline-size: 4rem;
  padding: 0.5rem;
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
  color: var(--text-color-light-grey);
}

.nav-item.active {
  opacity: 1;
  color: var(--primary-color);
}

.nav-icon {
  inline-size: 1.5rem;
  block-size: 1.5rem;
  margin-block-end: 0.25rem;
  transition: transform 0.2s ease;
}

.nav-label {
  transition: all 0.2s ease;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  inline-size: 0;
  block-size: 0.2rem;
  transition: all 0.2s ease;
  transform: translateX(-50%);
}

.nav-item.active::after {
  inline-size: 1.85rem;
  background-color: var(--primary-color);
}

.section-template {
  opacity: 0;
  -webkit-transform: translateX(12.5rem);
  -moz-transform: translateX(12.5rem);
  transform: translateX(12.5rem);
  -webkit-transition: opacity 0.4s ease, transform 0.2s ease;
  -moz-transition: opacity 0.4s ease, transform 0.2s ease;
  transition: opacity 0.4s ease, transform 0.2s ease;
}

.section-template.add-animation {
  opacity: 1;
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  transform: translateX(0);
}

.section-template.remove-animation {
  -webkit-transition: none;
  -moz-transition: none;
  transition: none;
  opacity: 1;
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  transform: translateX(0);
}

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

.grid {
  block-size: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  inline-size: 100%;
  block-size: 100%;
  border: 0;
  margin: 0 !important;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.5);
}

.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.bottom-sheet {
  inline-size: 100%;
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
  box-shadow: 0 -0.25rem 10.125rem rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  background-color: var(--bg-color-white);
}

.bottom-sheet.active {
  transform: translateY(0);
}

.sheet-content {
  text-align: center;
  padding: 1.25rem;
}

.sheet-icon {
  inline-size: 3.75rem;
  block-size: 3.75rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color-light);
}

.sheet-icon.sheet-icon-success {
  color: var(--text-color-success);
  background-color: var(--bg-color-success);
}

.sheet-icon.sheet-icon-confirm {
  color: var(--text-color-confirm);
  background-color: var(--bg-color-confirm);
}

.sheet-icon.sheet-icon-failure {
  color: var(--text-color-failure);
  background-color: var(--bg-color-failure);
}

.sheet-message {
  font-size: 0.96rem;
  color: var(--text-color-dark);
  margin-bottom: 1.25rem;
}

.otp-container {
  display: flex;
  gap: 0.5rem;
  margin-block-end: 1.5rem;
}

.otp-input {
  inline-size: calc((100% - 2.5rem) / 6);
  block-size: 3.125rem;
  border: 0.0925rem solid transparent;
  border-radius: 0.75rem;
  text-align: center;
  background-color: var(--bg-color-light);
}

.otp-input:focus {
  outline: none;
}

.auth-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  background-color: var(--bg-color-white);
}

.auth-page.auth-page-has-auth-back-button-section .auth-form {
  margin-block-start: 2rem;
}

.auth-back-button-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 0 0 0.875rem 0;
  margin: 0;
  width: 100%;
  z-index: 1;
}

.auth-carousel-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  margin: 0;
  width: 100%;
  z-index: 1;
  visibility: hidden;
}

.auth-carousel-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  animation: auth-carousel-float 20s linear infinite;
}

@keyframes auth-carousel-float {
  0% { transform: translateY(0rem); }
  100% { transform: translateY(-.6rem); }
}

.auth-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
}

.auth-carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}

.auth-carousel-slide.active {
  display: block;
  animation: auth-carousel-slide-in 0.5s ease-in-out;
}

@keyframes auth-carousel-slide-in {
  from { opacity: 0; transform: translateX(1.25rem); }
  to { opacity: 1; transform: translateX(0); }
}

.auth-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-carousel-slide .auth-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.4rem 1.25rem 0.6rem;
}

.auth-carousel-slide h3 {
  margin-bottom: 0.5rem;
  font-size: var(--font-size-heading);
}

.auth-carousel-slide p {
  opacity: 0.9;
  font-size: var(--font-size-title);
}

.auth-carousel-indicators {
  position: absolute;
  bottom: .4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 10;
}

.auth-carousel-indicator {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--bg-color-light);
}

.auth-carousel-indicator.active {
  transform: scale(1.2);
  background-color: var(--bg-color-grey);
}

.auth-form {
  height: 100%;
  width: 100%;
  border-radius: 30rem 30rem 0 0;
  margin-top: -1.25rem;
  z-index: 2;
}

.auth-form form {
  block-size: 100%;
  inline-size: 100%;
  border-start-start-radius: 1.8rem;
  border-start-end-radius: 1.8rem;
  overflow: hidden;
  padding: 3rem 1.25rem;
  display: flex;
  flex-direction: column;
}

.auth-form form .auth-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: .2rem;
  margin-block-end: 2rem;
}

.auth-form form .auth-title {
  text-align: center;
  font-size: var(--font-size-heading);
  font-weight: normal;
}

.auth-form form .auth-subtitle {
  text-align: center;
  font-size: var(--font-size-title);
}

.auth-back-button {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 3rem;
  block-size: 3rem;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  margin: 1.4rem 0 2rem 0.6rem;
  padding: 0;
  background-color: var(--bg-color-light);
}

.auth-back-button svg {
  inline-size: 1.5rem;
  block-size: 1.75rem;
}

.auth-input-icon {
  inline-size: 1.0625rem;
  block-size: 1.0625rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.auth-form-group {
  position: relative;
  border-radius: 0.65rem;
  padding: 0.98rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  border: 0.0925rem solid transparent;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--bg-color-light);
}

.auth-form-group input {
  border: none;
  width: 100%;
  outline: none;
  margin: 0;
  padding: 0;
  color: var(--text-color-grey);
  background-color: inherit;
  font-size: 1rem;
  font-weight: normal;
}

.auth-form-group input::placeholder {
  font-size: 0.875rem;
  font-weight: normal;
  letter-spacing: 0.02125rem;
}

.auth-form-group input[type="password"] {
  letter-spacing: 0.125rem;
}

.auth-password-input-toggle-icon {
  inline-size: 0.9rem;
  block-size: 0.9rem;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.auth-checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-block: .2rem 1.1rem;
}

.auth-checkbox-container input[type="checkbox"] {
  appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 0.25rem;
  position: relative;
  cursor: pointer;
  outline: none;
  margin: 0;
  background-color: var(--bg-color-light);
}

.auth-checkbox-container input[type="checkbox"]::after {
  content: "";
  position: absolute;
  display: none;
  left: 50%;
  top: 40%;
  width: 0.4rem;
  height: 0.7rem;
  border-width: 0 0.15rem 0.15rem 0;
  border-style: solid;
  border-color: var(--primary-color);
  transform: translate(-50%, -50%) rotate(45deg);
}

.auth-checkbox-container input[type="checkbox"]:checked::after {
  display: block;
}


.auth-checkbox-container label {
  cursor: pointer;
  margin: 0;
  color: var(--text-color-grey);
  font-size: 0.9rem;
}

.auth-checkbox-container .terms-link {
  cursor: pointer;
  margin: 0;
  color: var(--primary-color);
}

.auth-submit-btn {
  display: inline-block;
  inline-size: 100%;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 0.0625rem solid transparent;
  padding: 1rem 1rem;
  margin-block-start: 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color-white);
  background-color: var(--primary-color);
}

.auth-submit-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.auth-submit-btn:active {
  transform: scale(0.96);
  color: var(--text-color-white);
  background-color: var(--primary-color-dark);
}

.auth-submit-btn .spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: .6rem;
  height: .6rem;
  margin-right: 0.6rem;
  animation: auth-submit-btn-container-rotate 2s linear infinite;
}

.auth-submit-btn .spinner div {
  position: absolute;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  animation: auth-submit-btn-spinner-fade 1.2s linear infinite;
  background-color: var(--bg-color-white);
}

.auth-submit-btn .spinner div:nth-child(1) {
  animation-delay: -1.1s;
  transform: rotate(0deg) translateX(0.625rem);
}

.auth-submit-btn .spinner div:nth-child(2) {
  animation-delay: -1s;
  transform: rotate(40deg) translateX(0.625rem);
}

.auth-submit-btn .spinner div:nth-child(3) {
  animation-delay: -0.9s;
  transform: rotate(80deg) translateX(0.625rem);
}

.auth-submit-btn .spinner div:nth-child(4) {
  animation-delay: -0.8s;
  transform: rotate(120deg) translateX(0.625rem);
}

.auth-submit-btn .spinner div:nth-child(5) {
  animation-delay: -0.7s;
  transform: rotate(160deg) translateX(0.625rem);
}

.auth-submit-btn .spinner div:nth-child(6) {
  animation-delay: -0.6s;
  transform: rotate(200deg) translateX(0.625rem);
}

.auth-submit-btn .spinner div:nth-child(7) {
  animation-delay: -0.5s;
  transform: rotate(240deg) translateX(0.625rem);
}

.auth-submit-btn .spinner div:nth-child(8) {
  animation-delay: -0.4s;
  transform: rotate(280deg) translateX(0.625rem);
}

.auth-submit-btn .spinner div:nth-child(9) {
  animation-delay: -0.3s;
  transform: rotate(320deg) translateX(0.625rem);
}

@keyframes auth-submit-btn-container-rotate {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
}

@keyframes auth-submit-btn-spinner-fade {
  0% {
      opacity: 1;
  }
  100% {
      opacity: 0;
  }
}

.auth-bottom-links {
  text-align: center;
  display: flex;
  justify-content: space-between;
  margin-block: 1rem 1rem;
  width: 100%;
}

.auth-bottom-links a {
  text-decoration: none;
}

.auth-biometric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.auth-biometric-icon {
  block-size: 54px;
  inline-size: 54px;
}

.auth-biometric-icon:hover {
  stroke: #0a66c2;
  transform: scale(1.1);
  transition: all 0.2s ease;
}

.auth-biometric-icon.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-biometric-icon.loading {
  opacity: 0.5;
  cursor: progress;
}

.home-page-header-container {
  block-size: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.other-page-header-container {
  display: flex;
  align-items: center;
  gap: .4rem;
  inline-size: 100%;
  margin: 0 auto;
  block-size: 100%;
  inline-size: 100%;
}

.page-header .sidebar-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  min-inline-size: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}

.page-header .page-header-avatar {
  inline-size: 3rem;
  block-size: 3rem;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-color-white);
  background-color: var(--primary-color);
}

.page-header .avatar img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.page-header .user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-inline-size: 0;
  flex: 1;
}

.page-header .user-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-inline-size: 9.375rem;
  text-align: left;
}

.page-header .user-handle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-inline-size: 9.375rem;
  text-align: left;
}

.page-header .caret {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.page-header .sidebar-trigger.active .caret {
  transform: rotate(180deg);
}

.page-header .notification-btn {
  position: relative;
  padding: 0.5rem 0.7rem;
  border: none;
  cursor: pointer;
  border-radius: 0.8rem;
  transition: all 0.2s ease;
  background-color: var(--bg-color-light);
}

.back-button {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  background-color: inherit;
}

.back-button svg {
  color: var(--text-color-grey);
}

.page-title {
  margin: 0;
  font-size: var(--font-size-heading);
}

.sidebar {
  position: fixed;
  top: 0;
  left: -0.0625rem;
  bottom: 0;
  inline-size: 70%;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0.625rem 0.9375rem -0.1875rem rgba(0, 0, 0, 0.1);
  background-color: var(--bg-color-light);
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar-header {
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.sidebar-avatar {
  inline-size: 4rem;
  block-size: 4rem;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-color-white);
  background-color: var(--primary-color);
}

.sidebar-avatar-info {
  min-inline-size: 0;
}

.sidebar-avatar-name {
  margin-block-end: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--font-size-title);
  color: var(--text-color-dark);
}

.sidebar-avatar-username {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  color: var(--text-color-grey);
}

.sidebar-content {
  block-size: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

.sidebar-nav-group {
  padding: 0;
  margin-block-end: 0.5rem;
}

.sidebar-nav-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.675rem 0;
  margin-block-end: 0.4rem;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  inline-size: 100%;
  font-size: 0.9rem;
}

.sidebar-nav-item-danger {
  text-decoration: none;
  font-size: 0.89rem;
}

.sidebar-nav-item-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-nav-icon {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  flex-shrink: 0;
  opacity: 0.9;
  color: inherit;
}

.dashboard {
  block-size: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: space-between;
}

.transactions-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .761rem 1.042rem;
  border: none;
  border-radius: 0.65rem;
  margin-block-end: 1rem; 
  box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1);
  background-color: var(--bg-color-white);
}

.transactions-header .header-title {
  margin: 0;
  font-size: 0.9rem;
}

.transactions-header .filter-btn {
  border: none;
  cursor: pointer;
  border-radius: 0.5rem;
  position: relative;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
  color: var(--text-color-grey);
  background-color: inherit;
}

.transactions-header .filter-active-dot {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-radius: 50%;
  display: none;
  background-color: var(--primary-color-dark);
}

.transactions-header .filter-dropdown {
  position: absolute;
  top: calc(100% + 0.125rem);
  right: 0;
  inline-size: 60%;
  border-radius: 0.65rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 100;
}

.transactions-header .filter-dropdown.show {
  display: block;
}

.filter-dropdown .filter-menu {
  padding: 0.5rem;
  border-radius: 0.65rem;
  background-color: var(--bg-color-white);
}

.filter-dropdown .filter-option {
  inline-size: 100%;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  cursor: pointer;
  border-radius: 0.5rem;
  text-align: left;
}

.filter-dropdown .filter-check {
  inline-size: .568rem;
  block-size: .568rem;
  border-radius: 50%;
  display: none;
  background-color: var(--primary-color-dark);
}

.filter-dropdown .filter-option.selected .filter-check {
  display: block;
}

.no-transactions-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  padding-block-end: 4rem;
}

.no-transactions-message .message-icon {
  margin-block-end: .4rem;
}

.transactions-content {
  margin: 0 auto;
}

.transactions-section {
  display: none;
  opacity: 0;
  transform: translateY(0.625rem);
  transition: all 0.3s ease;
  inline-size: 100%;
}

.transactions-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.transaction-group {
  margin-block-end: 1.5rem;
}

.transactions {
  border-radius: 0.6rem;
  overflow: hidden;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.transactions-date-header {
  padding: .8rem 1rem;
  background-color: var(--bg-color-light-grey);
}

.transaction {
  display: flex;
  align-items: center;
  background-color: var(--bg-color-white);
  border-block-end: 1px solid var(--border-color-light-grey);
}

.transaction:last-child {
  border-bottom: none;
}

.last-transaction {
  border-radius: 0 0 0.3125rem 0.3125rem;
}

.transaction-card-has-caret {
  position: relative;
  padding: .86rem .4rem;
  transition: all 0.3s ease;
  inline-size: 100%;
  display: block;
  justify-content: space-between;
}

.transaction-icon {
  inline-size: 3rem;
  block-size: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 0;
}

.transaction-card-header,
.transaction-actions,
.expanded-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.transaction-card-has-caret .transaction-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-left: 0;
}

.transaction-card-has-caret .transaction-card-header {
  inline-size: 100%;
  flex: 1;
}

.transaction-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-left: 0.125rem;
}

.transaction-subtitle {
  margin-block-end: 0 !important;
}

.transaction-caret {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 2rem;
  block-size: 2rem;
  transition: transform 0.3s ease;
}

.transaction-caret svg {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  transition: transform 0.3s ease;
}

.transaction-caret.active svg {
  transform: rotate(180deg);
}

.transaction-expanded-details {
  max-block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  border-radius: 0.5625rem;
  background-color: var(--bg-color-light);
}

.transaction-card.expanded .transaction-expanded-details {
  max-block-size: fit-content;
  opacity: 1;
  padding: 0.6rem;
}

.expanded-detail-label {
  font-size: 0.7rem;
  color: var(--text-color-light-grey);
}

.expanded-detail-value {
  font-size: 0.7rem;
  color: var(--text-color-grey);
}

.transaction-item-skeleton {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.86rem 0.4rem;
  border-block-end: 0.0925rem solid var(--border-color-light-grey);
  background-color: rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.transaction-item-skeleton::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  inline-size: 100%;
  block-size: 100%;
  background: linear-gradient(90deg, var(--bg-color-light) 25%, var(--bg-color-light) 50%, var(--bg-color-light) 75%);
  animation: loading 1.5s infinite;
}

.transaction-item-skeleton .skeleton-icon {
  inline-size: 3rem;
  block-size: 3rem;
  border-radius: 50%;
  background-color: var(--bg-color-grey);
  flex-shrink: 0;
  margin-right: 0.125rem;
}

.transaction-item-skeleton .skeleton-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.transaction-item-skeleton .skeleton-description,
.transaction-item-skeleton .skeleton-date {
  background-color: var(--bg-color-grey);
  block-size: 0.5625rem;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
}

.transaction-item-skeleton .skeleton-description {
  inline-size: 60%;
}

.transaction-item-skeleton .skeleton-date {
  inline-size: 40%;
}

.transaction-item-skeleton .skeleton-amount {
  background-color: var(--bg-color-grey);
  block-size: 0.5625rem;
  inline-size: 5rem;
  border-radius: 0.25rem;
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.logout-loading-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1002;
  block-size: 100vh;
  inline-size: 100vw;
  background-color: rgba(0, 0, 0, 0.5);
}

.logout-spinner {
  border: 0.25rem solid rgba(80, 80, 80, 0.3);
  border-top: 0.25rem solid var(--primary-color-dark);
  border-radius: 50%;
  inline-size: 2rem;
  block-size: 2rem;
  animation: logout-spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes logout-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.data-container {
  block-size: 100%;
  inline-size: 100%;
  overflow: hidden;
}

.data-content-wrapper {
  block-size: 100%;
  overflow-y: auto;
  padding: 1.25rem;
  background-color: var(--bg-color-light);
  color: var(--text-color-grey);
}

.data-content-wrapper.settings-wrapper {
  background-color: var(--bg-color-white);
  padding-block-start: 0.6rem;
}

.data-content-wrapper.user-agreement h2, 
.data-content-wrapper.user-agreement h3, 
.data-content-wrapper.user-agreement p, 
.data-content-wrapper.user-agreement li {
  margin: 0;
}

.data-content-wrapper.user-agreement h2 {
  font-size: 1rem;
}

.data-content-wrapper.user-agreement h2,
.data-content-wrapper.user-agreement h3 {
  color: var(--text-color-dark);
}

.data-content-wrapper.user-agreement h2, 
.data-content-wrapper.user-agreement h3,
.data-content-wrapper.user-agreement p {
  margin-block: 0.2rem;
  font-weight: normal;
}

.data-content-wrapper.user-agreement h3 {
  margin-block: 0.6rem 0;
}

.data-content-wrapper.user-agreement p,
.data-content-wrapper.user-agreement li {
  line-height: 1.3;
}

.data-form label {
  margin: 0;
}

.data-form .avatar-container {
  display: flex;
  justify-content: center;
  margin-block-end: 2rem;
}

.data-form .avatar {
  inline-size: 4.6rem;
  block-size: 4.6rem;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-color-white);
  background-color: var(--primary-color);
}

.form-description {
  font-size: 0.9rem;
  color: var(--text-color-dark);
}

.form-group {
  position: relative;
  margin-block-end: 1rem;
}

.form-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 1.0625rem;
  height: 1.0625rem;
}

.form-input {
  display: block;
  width: 100%;
  padding: 1.125rem 1rem 1.125rem 3rem;
  border-radius: 0.65rem;
  border: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  margin: 0.4rem 0;
  outline: none;
  color: var(--text-color-grey);
  background-color: var(--bg-color-light);
  font-size: 1rem;
  font-weight: normal;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-input::placeholder {
  font-size: 0.875rem;
  font-weight: normal;
  letter-spacing: 0.02125rem;
}

.form-input:focus + .form-icon {
  color: var(--primary-color);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-block-start: .68rem;
}

.search-container {
  position: relative;
  margin-block-end: 1rem;
  border-radius: 1rem;  
  box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.search-container:focus-within {
  box-shadow: 0 0.0625rem 0.375rem rgba(0, 0, 0, 0.12);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-input {
  inline-size: 100%;
  padding: 1.042rem 1rem 1.042rem 3rem;
  border: none;
  border-radius: 0.65rem;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  background-color: var(--bg-color-white);
}

.search-input:focus {
  outline: none;
}

.contact-list {
  margin-block-start: 0.68rem;
}

.contact-item {
  inline-size: 100%;
  padding: 1.2rem 1rem;
  border: 0;
  background-color: var(--bg-color-white);
}

.contact-item:first-child {
  border-start-start-radius: 0.75rem;
  border-start-end-radius: 0.75rem;
}

.contact-item:last-child {
  border-end-start-radius: 0.75rem;
  border-end-end-radius: 0.75rem;
  border-block-end: 0;
}

.contact-caret-icon svg {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  opacity: 0.9;
}

.contact-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-content .contact-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-content .avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  inline-size: 2.6rem;
  block-size: 2.6rem;
  border-radius: 50%;
  text-transform: uppercase;
  color: var(--text-color-white);
  background-color: var(--primary-color);
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .2rem;
  color: var(--text-color-grey);
}

.settings-section {
  margin-block: 1.5rem;
}

.settings-section:first-child {
  margin-block-start: 0;
}

.settings-section:last-child {
  margin-block-end: 80rem;
}

.settings-section-title {
  margin-bottom: 0.5rem;
}

.settings-section-card {
  border-radius: .6rem;
  box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid var(--border-color-light-grey);
}

.setting-item {
  display: flex;
  align-items: center;
  padding: 1rem 1rem 1rem 1rem;
  cursor: pointer;
  text-decoration: none;
  background-color: var(--bg-color-white);
  border-block-end: 1px solid var(--border-color-light-grey);
}

.setting-item:active {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}

.setting-item:last-child {
  border-block-end: none;
}

.setting-item-content {
  flex: 1;
}

.setting-item-label {
  margin-block-end: .4rem;
  display: block;
  color: var(--text-color-light-grey);
}

.setting-action {
  margin-left: 0.75rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  inline-size: 2.75rem;
  block-size: 1.5rem;
}

.toggle-switch input {
  opacity: 0;
  inline-size: 0;
  block-size: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--toggle-switch-inactive);
  transition: .4s;
  border-radius: 1.5rem;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  block-size: 1.25rem;
  inline-size: 1.25rem;
  left: 0.125rem;
  bottom: 0.125rem;
  background-color: var(--bg-color-white);
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--toggle-switch-active);
}

input:checked + .toggle-slider:before {
  transform: translateX(1.25rem);
}

.about-app-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about-app-info .app-name {
  margin: 0;
}

.about-app-info .app-version {
  margin: 0;
}

.info-card {
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 1rem 0 0 0;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background-color: var(--bg-color-white);
  border: 1px solid var(--border-color-light-grey);
}

.info-card svg {
  inline-size: 1rem;
  block-size: 1rem;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color-grey);
}

.info-card-content {
  font-size: var(--font-size-label);
  color: var(--text-color-grey);
}

.info-card-content ul {
  margin: 0;
  padding: 0;
}

.info-card-content ul li {
  margin: 0;
}

.snackbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: .14rem 0;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: var(--text-color-white);
  transform: translateY(100%);
}

.snackbar.show {
  transform: translateY(0);
}

.error-snackbar {
  opacity: 1;
  z-index: 1000;
  background-color: var(--text-color-failure);
}

.success-snackbar {
  opacity: 1;
  z-index: 1000;
  background-color: var(--text-color-success);
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.key {
  background: var(--bg-color-white);
  border: 1px solid var(--card-border-color);
  padding: 1.6rem 0.6rem;
  font-size: 1.6rem;
  border-radius: 1.2rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-color-grey);
  box-shadow: 0px 0px 10px 6px rgba(172, 171, 171, 0.1);
  transition: all 0.2s;
}

.key:active {
  background: var(--bg-color-grey);
  transform: scale(0.95);
}

.actions-container {
  background-color: var(--bg-color-white);
  border-start-start-radius: 1.8rem;
  border-start-end-radius: 1.8rem;
  padding: 2rem 1.8rem 0 1.8rem;
  flex: 1;
}

.action-buttons {
  padding-block: 1.8rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.action-btn {
  padding: 1rem;
  border: none;
  border-radius: 0.75rem;
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.collect-btn {
  background: var(--primary-color);
}

.amount-display {  
  padding-inline: 1.5rem;
  text-align: center;
  margin-block: 1.4rem 0.4rem;
}

.amount-display .amount-label {
  color: var(--text-primary);
  font-size: 0.875rem;
  margin-bottom: 0.2rem;
}

.amount-display .amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-color-dark);
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-color-white);
  inline-size: 90%;
  max-inline-size: 21.25rem;
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 0.25rem 1.5rem rgba(0, 0, 0, 0.1);
  animation: slideUp 0.3s ease-out;
  z-index: 1000;
}

.modal-content .content {
  text-align: center;
  position: relative;
}

.modal-content .content .modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
}

.modal-content .content .modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.modal-content .content .modal-text {
  color: #6b7280;
  font-size: 0.96rem;
}

.modal-content .content p {
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.5;
}

.modal-content .content .modal-btn {
  width: 100%;
  padding: 0.75rem;
  background: #f3f4f6;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  font-weight: 500;
}

.loader {
  inline-size: 40px;
  block-size: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #2563eb;
  border-radius: 50%;
  margin: .4rem auto 0 auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.lottie {
  block-size: 40px;
  inline-size: 40px;
}

.content {
  position: relative;
}

.content-alert-icon {
  inline-size: 40px;
  block-size: 40px;
  margin-block-end: 16px;
  background-color: #2563eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-alert-icon::after {
  content: "!";
  color: white;
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
}

.content p {
  color: #333;
  font-size: 15px;
  line-height: 1.5;
  margin-block-end: 12px;
}

.content p:last-of-type {
  margin-block-end: 0;
}

.amount {
  color: #2563eb;
  font-weight: 600;
}

.content-ctas {
  margin-block-start: 24px;
  display: flex;
  justify-content: flex-end;
  gap: .4rem;
}

.cancel-btn,
.continue-btn {
  min-inline-size: 50%;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.57rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cancel-btn:active,
.continue-btn:active {
  transform: translateY(0.125rem) scale(0.98);
  background: #1d4ed8;
  box-shadow: 0 0 0.125rem rgba(37, 99, 235, 0.2);
}

@keyframes slideUp {
  from {
      transform: translate(-50%, -40%);
      opacity: 0;
  }
  to {
      transform: translate(-50%, -50%);
      opacity: 1;
  }
}