/* Auth pages layout - 40% illustration, 60% form */
.auth-container {
  display: flex;
  min-height: calc(100vh - 80px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.auth-illustration {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-illustration img,
.auth-illustration svg {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.auth-form-container {
  flex: 0 0 60%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.auth-form__title {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 8px;
}

.auth-form__subtitle {
  font-size: 14px;
  color: var(--input-label);
  margin-bottom: 32px;
}

.auth-form__field {
  margin-bottom: 20px;
}

.auth-form__field--inline {
  display: flex;
  gap: 16px;
}

.auth-form__field--inline .auth-form__field {
  flex: 1;
  margin-bottom: 0;
}

.auth-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  margin-bottom: 16px;
}

.auth-form__link {
  font-size: 14px;
  color: var(--primary-500);
}

.auth-form__submit {
  width: 100%;
  margin-top: 8px;
}

.auth-form__secondary-action {
  margin-top: 16px;
  text-align: center;
}

/* Logout page styles (themed) */
.auth-container.logout-page {
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 8px;
}

.logout-illustration {
  width: min(360px, 80vw);
  height: min(360px, 55vh);
  border-radius: 12px;
  background: var(--surface-input);
  box-shadow: var(--btn-elevation);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 12px;
  margin-top: 8px;
  overflow: hidden;
}

.logout-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.logout-confirm {
  width: min(360px, 92%);
  padding: 18px;
  margin: 12px auto 0;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--input-border);
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.logout-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 16px auto 0;
}

@media (min-width: 768px) {
  .logout-illustration { width: 420px; height: 420px; }
  .logout-confirm { width: 420px; font-size: 20px; }
  .btn { min-width: 140px; }
} 

/* Responsive auth pages */
@media (max-width: 768px) {
  .auth-container {
    flex-direction: column;
    padding: 16px;
  }

  .auth-illustration {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
    padding: 16px;
  }

  .auth-form-container {
    flex: 1 1 auto;
    width: 100%;
    padding: 16px;
  }

  .auth-form__field--inline {
    flex-direction: column;
    gap: 0;
  }

  .auth-form__field--inline .auth-form__field {
    margin-bottom: 20px;
  }

  /* KYC mobile layout */
  .kyc-grid {
    display: block;
  }

  .kyc-controls {
    width: 100%;
    margin-bottom: 12px;
  }

  .kyc-form-area {
    width: 100%;
  }
}

/* layout for page content, blog/grid style that scales down on smaller screens */





/* Layout for bottom navbar and dropdown */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 50;
  width: min(520px, 100% - 32px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--nav-radius, 22px);
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--nav-border-color);
  box-shadow: var(--nav-shadow);
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--nav-label-color);
  text-decoration: none;
  font-size: 11px;
  transition: color var(--transition), transform var(--transition), background-color var(--transition);
  border-radius: 12px;
  padding: 4px 8px;
  position: relative;
  cursor: pointer;
}

/* Google Material Design hover effect */
.bottom-nav__item:hover {
  color: var(--nav-label-color-hover);
  background-color: var(--nav-item-hover-bg);
  transform: scale(var(--nav-item-hover-scale));
}

.bottom-nav__item:hover .bottom-nav__item-icon {
  color: var(--nav-icon-color-hover);
  transform: scale(1.1);
}

.bottom-nav__item-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nav-icon-bg);
  color: var(--nav-icon-color);
  font-size: 14px;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

.bottom-nav__item--active {
  color: var(--nav-label-color-active);
}

.bottom-nav__item--active .bottom-nav__item-icon {
  background: var(--nav-icon-bg-active);
  color: var(--nav-icon-color-active);
}

.bottom-nav__item:active {
  transform: translateY(1px) scale(0.96);
}

.bottom-nav__item:active .bottom-nav__item-icon {
  transform: scale(0.95);
}

/* Profile item */
.bottom-nav__profile-item {
  position: relative;
  cursor: pointer;
}

.bottom-nav__profile-item:hover {
  background-color: var(--nav-item-hover-bg);
}

.bottom-nav__profile {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--nav-profile-bg);
  border: 1px solid var(--nav-profile-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nav-icon-color);
  font-size: 16px;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.bottom-nav__profile-item:hover .bottom-nav__profile {
  color: var(--nav-icon-color-hover);
  transform: scale(1.1);
  border-color: var(--primary-500);
}

.bottom-nav__item--active .bottom-nav__profile {
  background: var(--nav-icon-bg-active);
  border-color: var(--primary-500);
  color: var(--nav-icon-color-active);
  transform: scale(1.05);
}

/* Apps dropdown menu */
.bottom-nav__apps {
  position: relative;
}

.bottom-nav__apps:hover {
  background-color: var(--nav-item-hover-bg);
}

.bottom-nav__apps-menu {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--nav-apps-bg);
  border-radius: 16px;
  padding: 10px 0;
  border: 1px solid var(--nav-apps-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--nav-apps-shadow);
  display: none;
}

.bottom-nav__apps-menu--open {
  display: block;
}

.bottom-nav__apps-item {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--nav-apps-item-text);
  text-decoration: none;
  display: block;
  white-space: nowrap;
}

.bottom-nav__apps-item span {
  display: block;
  font-size: 11px;
  color: var(--nav-apps-item-subtext);
}

.bottom-nav__apps-item:hover {
  background: var(--nav-apps-item-hover-bg);
}

/* Profile dropdown menu */
.bottom-nav__profile-menu {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--nav-profile-menu-bg);
  border-radius: 16px;
  padding: 10px 0;
  border: 1px solid var(--nav-profile-menu-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--nav-profile-menu-shadow);
  display: none;
}

.bottom-nav__profile-menu--open {
  display: block;
}

.bottom-nav__profile-item-link {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--nav-profile-item-text);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  transition: background var(--transition);
}

.bottom-nav__profile-item-link span {
  display: block;
  font-size: 11px;
  color: var(--nav-profile-item-subtext);
  margin-top: 2px;
}

.bottom-nav__profile-item-link:hover {
  background: var(--nav-profile-item-hover-bg);
}

.bottom-nav__profile-item-link:last-child {
  border-top: 1px solid var(--nav-profile-menu-border);
  margin-top: 4px;
  padding-top: 12px;
  color: #dc2626;
}

.bottom-nav__profile-item-link:last-child:hover {
  background: rgba(220, 38, 38, 0.1);
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .bottom-nav {
    bottom: 8px;
    padding: 8px 10px;
    border-radius: 18px;
  }

  .bottom-nav__item {
    font-size: 10px;
    gap: 2px;
  }

  .bottom-nav__item-icon {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }
}

@media (min-width: 768px) {
  .bottom-nav {
    bottom: 16px;
    width: min(560px, 100% - 64px);
  }

  .bottom-nav__item {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
  }
}

/* Profile page styles */
/* We reuse the auth layout (auth-container / auth-form) so the profile feels like login/register */
.profile-page {
  max-width: 1200px;
  margin: 16px auto 92px; /* room for bottom nav */
}

.profile-form {
  max-width: 680px; /* wider than auth forms but still centred */
}

.profile-summary {
  align-items: flex-start;
}

.profile-avatar-col {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.profile-avatar img {
  width: 100%;
  height: auto;
  max-width: 200px; /* Match illustration size */
  object-fit: contain;
  border-radius: 50%; /* Optional: circular avatar */
}

.profile-avatar img {
  width: 140px;
  height: 140px;
  border-radius: 18px;
  object-fit: cover;
  border: 4px solid rgba(250,204,21,0.06);
  box-shadow: 0 8px 24px rgba(43, 64, 183, 0.06);
}

.profile-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.profile-balances-col {
  flex: 1;
}

/* Keep existing balances styling but slightly larger within auth form */
.balances {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 12px;
}

.balance-item {
  background: var(--surface-nav);
  padding: 12px;
  border-radius: 12px;
  box-shadow: var(--nav-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.balance-item:hover {
  transform: scale(1.05); /* Slightly enlarge */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
}

.profile-grid {
  margin-top: 18px;
}

.profile-card {
  padding: 16px;
  border-radius: 18px;
  border: 2px solid rgba(250, 204, 21, 0.18);
  min-height: 220px;
}

/* KYC layout - match auth container (40% illustration style / 60% form) */
.kyc-grid {
  display: grid;
  grid-template-columns: 40% 1fr; /* align with register/login layout */
  gap: 36px;
  align-items: center; /* vertically align the form like auth pages */
}

/* Left controls: stacked boxed items, behave like the illustration column */
.kyc-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start; /* keep boxes left-aligned like other pages */
  position: static; /* remove sticky behaviour */
  width: auto; /* keep column width controlled by grid */
}

.kyc-controls label {
  font-weight: 700;
  color: var(--input-label);
  font-size: 13px;
}

.kyc-uncompleted select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
}

/* Boxed list for uncompleted entries (site Material card style) */
.kyc-box {
  border-radius: 12px;
  border: 1px solid var(--input-border);
  padding: 12px;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface-input);
  box-shadow: var(--btn-elevation);
}

/* Completed details dropdown styled as subtle card */
.kyc-completed details.kyc-box {
  padding: 12px;
}

.kyc-completed summary {
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
  background: transparent;
  font-weight: 600;
}

.kyc-completed[open] summary {
  border-bottom: 1px dashed rgba(0,0,0,0.06);
}

/* Make left column sticky on wide screens to mirror auth page layout */
.kyc-controls {
  width: 240px;
  padding-right: 16px;
  position: sticky;
  top: 96px;
  align-self: start;
}

/* Align stacked boxes visually like site cards */
.kyc-completed .muted,
.kyc-box .muted {
  padding: 8px 6px;
  text-align: left;
}

/* Ensure the form area expands and keeps same centering as auth forms */
.kyc-form-area {
  display: flex;
  align-items: flex-start;
}

.kyc-form-card {
  width: 100%;
  max-width: 820px;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 24px;
  min-height: 420px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(43,64,183,0.04);
}

.kyc-form-card h2 {
  font-size: 20px;
  text-align: left;
  margin-bottom: 12px;
  font-weight: 600;
}

/* Mobile: left column stacks above form area and controls center like other pages */
@media (max-width: 768px) {
  .kyc-grid {
    display: block;
  }

  .kyc-controls {
    position: static;
    width: 100%;
    padding-right: 0;
    gap: 12px;
    align-items: center;
  }

  .kyc-controls .kyc-box { width: min(320px, 92%); margin: 0 auto; }

  .kyc-form-card { max-width: 100%; min-height: 360px; padding: 20px; border-radius: 14px; }
}

/* Available items use subtle primary selection */
.kyc-available {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.kyc-available:hover {
  background: rgba(43,64,183,0.02);
  transform: translateY(-2px) scale(1.01);
}

.kyc-available--selected {
  border-color: var(--primary-300);
  background: linear-gradient(180deg, rgba(59,130,246,0.02), rgba(59,130,246,0.01));
}

.kyc-available__title { font-weight: 600; }
.kyc-available__meta { font-size: 13px; color: var(--input-label); }

/* Larger submit button for accessible touch targets but full width to match form style */
.btn--lg {
  padding: 16px 22px;
  font-size: 16px;
  border-radius: 12px;
}

/* KYC submit button: full-width primary button that matches other forms */
.kyc-actions { margin-top: 12px; }
.kyc-actions .btn--submit {
  width: 100%;
  border: none;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  padding: 14px 18px;
  border-radius: 8px;
  box-shadow: var(--btn-elevation);
}

/* Adjust left column spacing */
.kyc-controls { width: 240px; padding-right: 16px; }
@media (max-width: 768px) {
  .kyc-controls { width: 100%; padding-right: 0; }
}

.kyc-form-card {
  /* min-height kept in the block above */
  min-height: 420px;

}

.kyc-item {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.04);
  margin-bottom: 6px;
}

.kyc-item__title { font-weight: 600; }
.kyc-item__meta { font-size: 12px; color: var(--input-label); }

/* Mobile: place back button inline and submit in-flow (match auth look) */
@media (max-width: 520px) {
  .kyc-back { position: static; left: auto; bottom: auto; z-index: auto; }
  .kyc-back .btn--icon { width: 40px; height: 40px; min-width: 0; border-radius: 8px; border: 1px solid var(--input-border); background: var(--surface); box-shadow: 0 8px 18px rgba(0,0,0,0.06); }

  .kyc-controls { gap: 12px; align-items: center; }
  .kyc-controls .kyc-box { width: min(320px, 92%); margin: 0 auto; }

  .kyc-form-card { max-width: 92%; min-height: 380px; padding: 20px; border-radius: 14px; margin: 12px auto; }
  .kyc-form-card h2 { font-size: 18px; }

  .kyc-actions { display: flex; justify-content: center; margin: 18px 0 72px; }
  .kyc-actions .btn--submit { position: static; width: min(420px, 92%); }
}

@media (max-width: 768px) {
  .profile-form {
    max-width: 100%;
  }

  .profile-summary {
    flex-direction: column;
  }

  .profile-avatar-col {
    flex-direction: row;
    gap: 12px;
    align-items: center;
  }
} 

.profile-top {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.profile-avatar {
  flex: 0 0 140px;
}

.profile-avatar img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 18px;
  border: 4px solid rgba(255, 193, 7, 0.06);
}

.balances {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 12px;
  flex: 1;
}

.balance-item {
  background: var(--surface-nav);
  padding: 12px;
  border-radius: 12px;
  box-shadow: var(--nav-shadow);
}

.balance-item .label {
  font-size: 12px;
  color: var(--input-label);
}

.balance-item .value {
  font-size: 18px;
  font-weight: 600;
  margin-top: 6px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.profile-card {
  padding: 18px;
  border-radius: 18px;
  border: 2px solid rgba(250, 204, 21, 0.3);
  min-height: 220px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.9));
}

.profile-card h2 {
  font-size: 16px;
  margin-bottom: 12px;
}

.compact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compact-list li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.04);
}

@media (min-width: 900px) {
  .profile-grid {
    grid-template-columns: 1fr 1fr;
  }
}


