/*
 * Deposit — the Wallet pane's first tab (`DepositPane`), rendered inside the profile
 * screen on both shells. These rules used to hang off `.dep-modal`, the window it had
 * to itself; they hang off the pane's own `.dep-*` classes now, so the same markup
 * styles inside the desktop profile pane and the mobile profile spoke alike.
 */
.dep-body {
  background:
    radial-gradient(520px 220px at 12% -10%, var(--accent-a12), transparent 70%),
    radial-gradient(420px 260px at 100% 30%, var(--blue-a14), transparent 72%);
}

.dep-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 108px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(240px 160px at 88% 50%, var(--accent-a22), transparent 70%),
    linear-gradient(120deg, var(--panel-2), var(--bg-deep));
}

.dep-hero > img {
  position: absolute;
  right: 10px;
  bottom: -6px;
  height: 118px;
  filter: drop-shadow(0 10px 22px var(--black-a50));
  pointer-events: none;
}

.dep-hero > div {
  position: relative;
  max-width: 62%;
}

.dep-hero h3 {
  margin: 4px 0 4px;
  color: var(--text);
  font-size: var(--fs-2xl);
}

.dep-hero p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-base);
  line-height: 1.45;
}

.dep-regions {
  display: grid;
  /* Yontemler | Bilgi — iki sekme. Ulke secici kalkti (yontemler artik BO'dan
     geliyor ve API ulke tasimiyor), satir da onunla birlikte daraldi. */
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  margin-bottom: 12px;
}

.dep-regions .ps-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 10px 8px;
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.dep-regions .ps-tab img,
.dep-regions .ps-tab svg {
  flex: none;
  width: 17px;
  height: 17px;
}

.dep-regions .ps-tab span {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
}

.dep-kinds {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  margin-bottom: 12px;
}

.dep-kinds .ps-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 12px;
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.dep-kinds .ps-tab svg {
  flex: none;
  width: 14px;
  height: 14px;
}

.dep-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.dep-prov {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 8px 10px;
  border-radius: var(--r-xl);
  background: var(--panel-2);
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.dep-prov:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
}

.dep-prov-art {
  position: relative;
  overflow: hidden;
  display: block;
  height: 88px;
  border-radius: var(--r-md);
  background:
    radial-gradient(120px 80px at 78% 90%, var(--accent-a25), transparent 70%),
    linear-gradient(140deg, var(--panel-3-a90), var(--bg-deep));
}

.dep-prov-art img {
  position: absolute;
  right: 4px;
  bottom: -4px;
  height: 92px;
  filter: drop-shadow(0 6px 14px var(--black-a45));
}

.dep-prov-name {
  flex: 1 0 auto;
  margin-top: 6px;
  color: var(--text);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.25;
}

.dep-prov-kind {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: var(--accent-a12);
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dep-prov-kind svg {
  flex: none;
  width: 12px;
  height: 12px;
}

.dep-prov-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.dep-prov-meta > span {
  padding: 3px 7px;
  border-radius: var(--r-pill);
  background: var(--bg-deep);
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.35;
}


.dep-prov-lim {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.dep-prov-lim > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.dep-prov-lim b {
  overflow: hidden;
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dep-pv {
  animation: dep-rise 0.25s ease;
}

.dep-pv-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.dep-pv-head .dep-prov-art {
  flex: 0 0 152px;
  height: 104px;
}

.dep-pv-head .dep-prov-art img {
  height: 112px;
}

.dep-pv-head h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: var(--fs-2xl);
}

.dep-pv-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 0 14px;
}

.dep-pv-facts .dep-fact-wide {
  grid-column: 1 / -1;
}

.dep-pv-facts > div {
  padding: 9px 10px;
  border-radius: var(--r-md);
  background: var(--bg-deep);
}

.dep-pv-facts dt {
  color: var(--muted);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dep-pv-facts dd {
  margin: 3px 0 0;
  color: var(--text);
  font-size: var(--fs-md);
  font-weight: 700;
}

/* The quick-amount chips under the amount field — one tap instead of a keypad.
   They carry the same ground as the input, so the -4px that used to pull them
   over its bottom edge made them read as being INSIDE the box. */
.dep-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  margin: 10px 0 12px;
}

.dep-quick .ps-tab {
  min-width: 0;
  padding: 8px 6px;
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.dep-pv-go {
  padding: 12px;
  font-size: var(--fs-lg);
}

.dep-pv-back {
  display: inline-block;
  margin-top: 12px;
  border: 0;
  background: none;
  cursor: pointer;
}

@keyframes dep-rise {
  from {
    transform: translateY(8px);
  }}

.dep-info-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  margin-bottom: 12px;
}

.dep-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  font-size: var(--fs-lg);
  line-height: 1.25;
  table-layout: fixed;
}

.dep-table thead th {
  position: sticky;
  /* Sticks to whatever pane is scrolling it — the profile screen's body on
     desktop, the mobile profile window on a phone. */
  top: 0;
  z-index: 1;
  padding: 22px 8px 7px;
  background: var(--bg-deep);

  box-shadow: 0 4px 0 var(--bg-deep);
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.dep-table thead th:first-child {
  border-radius: var(--r-md) 0 0 var(--r-md);
}

.dep-table thead th:last-child {
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.dep-table th:first-child {
  width: 33%;
}

.dep-table .dep-num {
  width: 19%;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.dep-table tbody tr {
  background: var(--bg-deep);
}

.dep-table tbody tr:nth-of-type(odd) {
  background: var(--panel-2);
}

.dep-table tbody th,
.dep-table tbody td {
  padding: 8px;
  color: var(--text);
  font-weight: 700;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.dep-table tbody tr > *:first-child {
  border-radius: var(--r-md) 0 0 var(--r-md);
}

.dep-table tbody tr > *:last-child {
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.dep-table-name {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  max-width: 100%;
  vertical-align: middle;
}

.dep-table tbody tr.dep-row-pick {
  cursor: pointer;
  transition: background 0.14s ease;
}

.dep-table tbody tr.dep-row-pick:hover {
  background: var(--chip);
}

.dep-row-btn {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dep-table tbody th:first-child {
  font-size: var(--fs-lg);
}

.dep-table-name small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.dep-table-name small svg {
  flex: none;
  opacity: 0.8;
}

.dep-info-tabs {
  margin-bottom: 12px;
}

.dep-info-tabs .ps-tab.is-on {
  font-weight: 700;
}

.dep-info-note {
  margin-top: 12px;
}

@media (min-width: 769px) {
  .dep-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .dep-kinds {
    grid-template-columns: repeat(4, 1fr);
  }

  .dep-pv-facts {
    grid-template-columns: repeat(4, 1fr);
  }}

@media (max-width: 768px) {
  .dep-table {
    font-size: var(--fs-base);
  }

  .dep-table th:first-child {
    width: 34%;
  }

  .dep-table thead th {
    padding: 25px 4px 6px;
    font-size: var(--fs-2xs);
    letter-spacing: 0.03em;
  }

  .dep-table tbody th,
  .dep-table tbody td {
    padding: 7px 5px;
  }

  .dep-table tbody th:first-child {
    font-size: var(--fs-base);
  }

  .dep-table-name small {
    font-size: var(--fs-xs);
  }}

@media (max-width: 480px) {
  .dep-regions {
    grid-template-columns: repeat(2, 1fr);
  }

  .dep-table {
    font-size: var(--fs-sm);
  }

  .dep-table th:first-child {
    width: 36%;
  }

  .dep-table .dep-num {
    width: 16%;
    padding-right: 3px;
    padding-left: 3px;
  }

  .dep-table .dep-num:last-child {
    width: 23%;
  }

  .dep-table tbody th,
  .dep-table tbody td {
    padding: 7px 4px;
  }

  .dep-table tbody th:first-child {
    font-size: var(--fs-base);
  }

  .dep-table-name small {
    font-size: var(--fs-2xs);
  }

  .dep-pv-head {
    flex-direction: column;
    align-items: stretch;
  }

  .dep-pv-head .dep-prov-art {
    flex: 0 0 auto;
  }}

@media (prefers-reduced-motion: reduce) {
  .dep-pv {
    animation: none;
  }

  .dep-prov:hover {
    transform: none;
  }}

/* BILGI TABLOSU, DAR EKRANDA KART. Dort sutun (ad · sure · min · max) 360px'te
   ~53px'lik para sutunlarina dusuyordu ve `overflow-wrap: anywhere` tutari
   rakamin ortasindan boluyordu. Satir artik bir kart: ad basligi, altinda
   etiketli uc satir. Etiketler `data-label`dan, islem gecmisinin kullandigi
   kalibin ayni (`wallet-tx-cell[data-label]`, base.css).

   560px, 480 degil: kirilma sutun sayisindan geliyor, telefonun kucuk olanindan
   degil -- dar bir tarayici penceresi de ayni sayilari boluyordu. */
@media (max-width: 560px) {
  .dep-table,
  .dep-table tbody,
  .dep-table tr,
  .dep-table th,
  .dep-table td {
    display: block;
    width: auto;
  }

  /* Basliklar her satirin icine tasindi (`data-label`); ustte ikinci kez
     durmalarina gerek yok. */
  .dep-table thead {
    display: none;
  }

  .dep-table {
    border-spacing: 0;
  }

  .dep-table tbody tr,
  .dep-table tbody tr:nth-of-type(odd) {
    margin-bottom: 8px;
    padding: 12px 14px;
    border-radius: var(--r-md);
    background: var(--panel-2);
  }

  /* Kart artik satirin kendisi: hucre koselerinin yuvarlanacak bir sey yok. */
  .dep-table tbody tr > *:first-child,
  .dep-table tbody tr > *:last-child {
    border-radius: 0;
  }

  .dep-table tbody th,
  .dep-table tbody td {
    padding: 0;
  }

  .dep-table tbody th:first-child {
    margin-bottom: 6px;
    font-size: var(--fs-lg);
  }

  .dep-table tbody td[data-label] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 4px 0;
    color: var(--text);
    /* Tutar artik tam genislige sahip: bolunecek bir sey kalmadi. */
    overflow-wrap: normal;
    text-align: right;
  }

  .dep-table tbody td[data-label]::before {
    content: attr(data-label);
    flex: none;
    color: var(--muted);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
  }

  /* Secilebilir satirda vurgu artik butun kartta. */
  .dep-table tbody tr.dep-row-pick:hover {
    background: var(--chip);
  }
}
