:root {
  --ink: #2c2140;
  --muted: #766d82;
  --line: #e7dfef;
  --soft: #faf7fc;
  --panel: #ffffff;
  --blue: #7448d6;
  --blue-dark: #4b278f;
  --green: #e4aa35;
  --gold: #f2c75d;
  --danger: #e34256;
  --shadow: 0 20px 60px rgba(64, 34, 105, 0.14);
  --deep: #25113f;
  --aqua: #f4e3b0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #faf8fc;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  min-width: 1120px;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  height: 84px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(150, 170, 185, 0.18);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.header-inner {
  width: 1160px;
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr 230px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
}

.brand-logo {
  width: 210px;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
}

.main-nav a {
  font-size: 16px;
  color: #2f3a45;
  padding: 29px 0;
  border-bottom: 3px solid transparent;
}

.main-nav a.active {
  font-weight: 800;
  color: #111d26;
  border-bottom-color: var(--green);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
}

.text-btn,
.link-btn {
  border: 0;
  background: transparent;
  color: #1e2b36;
  font-weight: 700;
}

.text-btn.strong {
  color: var(--blue-dark);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #8aa0ac;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
}

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

.logout-btn {
  height: 32px;
  border: 1px solid #d6e5ec;
  border-radius: 999px;
  background: #f7fafb;
  color: #38505d;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.logout-btn:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.app-shell {
  background: #ffffff;
}

.hero-band {
  background:
    linear-gradient(180deg, #f6f0fb 0%, #ffffff 78%);
  padding: 30px 0 40px;
}

.hero-frame {
  width: min(1180px, calc(100% - 72px));
  height: 430px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(160, 184, 198, 0.26);
  box-shadow: 0 22px 70px rgba(18, 75, 103, 0.12);
}

.ghost-link {
  color: var(--blue-dark);
  font-weight: 800;
}

.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: hue-rotate(68deg) saturate(0.92) contrast(1.02);
}

.rate-circle {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 18px 40px rgba(116, 72, 214, 0.24);
}

.rate-circle-main {
  top: 54px;
  right: 200px;
  width: 92px;
  height: 92px;
  background: linear-gradient(145deg, #e4aa35, #7448d6);
  font-size: 34px;
}

.rate-circle-small {
  top: 118px;
  right: 80px;
  width: 48px;
  height: 48px;
  background: #25113f;
  font-size: 20px;
}

.trade-card {
  position: absolute;
  z-index: 4;
  width: 220px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(180, 198, 209, 0.46);
  box-shadow: 0 20px 45px rgba(16, 44, 61, 0.14);
}

.trade-card small,
.trade-card strong {
  display: block;
}

.trade-card small {
  color: var(--muted);
  margin-bottom: 8px;
}

.trade-card strong {
  font-size: 19px;
}

.card-a {
  left: 18px;
  top: 104px;
}

.card-b {
  right: 56px;
  bottom: 74px;
}

.mountain {
  position: absolute;
  bottom: 0;
  height: 235px;
  background: linear-gradient(180deg, #20a8d8 0%, #138fbd 100%);
}

.mountain-one {
  left: -4%;
  width: 70%;
  clip-path: polygon(0 58%, 35% 15%, 100% 96%, 100% 100%, 0 100%);
}

.mountain-two {
  right: -5%;
  width: 72%;
  background: linear-gradient(180deg, #1fc4a0 0%, #129fcf 70%);
  clip-path: polygon(0 100%, 0 92%, 58% 20%, 100% 74%, 100% 100%);
}

.narrow {
  width: 900px;
  margin: 0 auto;
}

.content-section,
.gift-section {
  width: 1040px;
  margin: 0 auto;
  padding: 70px 0 120px;
}

.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading h1 {
  margin: 0;
  font-size: 30px;
}

.section-heading p {
  width: 560px;
  margin: 34px auto 0;
  color: var(--muted);
  line-height: 1.6;
}

.sell-overview {
  padding: 64px 0 78px;
  text-align: center;
}

.primary-pill,
.secondary-btn,
.submit-btn {
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  border-radius: 6px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(31, 166, 223, 0.22);
}

.primary-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  margin-top: 0;
}

.steps-grid {
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: left;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.go-sell-btn {
  margin-top: 30px;
  height: 46px;
  padding: 0 34px;
}

.metric-row div {
  min-height: 112px;
  border: 1px solid #deedf2;
  border-radius: 8px;
  background: #f8fbfc;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
}

.metric-row strong {
  color: var(--blue-dark);
  font-size: 34px;
}

.metric-row span {
  color: var(--muted);
}

.step-item {
  border: 1px solid #dfebf0;
  border-radius: 8px;
  background: #fff;
  padding: 26px;
  box-shadow: 0 14px 34px rgba(34, 71, 91, 0.06);
}

.step-item span {
  display: block;
  color: #67737f;
  font-size: 15px;
  margin-bottom: 18px;
}

.step-item span::before {
  content: "";
  width: 6px;
  height: 18px;
  display: inline-block;
  margin-right: 8px;
  background: linear-gradient(180deg, var(--gold), #f2d373);
}

.step-item strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
}

.step-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.split-section,
.service-row {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 44px;
  align-items: center;
  padding: 34px 0;
}

.split-section h2,
.service-row h2,
.about-section h2 {
  font-size: 18px;
  margin: 0 0 32px;
}

.split-section p,
.service-row p,
.lead-copy {
  color: #4f5b65;
  line-height: 1.65;
}

.visual-tile {
  height: 210px;
  border: 1px solid #d9e8ee;
  border-radius: 8px;
  background: linear-gradient(145deg, #f7fbfd, #ffffff);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 44px rgba(33, 71, 92, 0.1);
}

.visual-tile.compact {
  height: 230px;
}

.visual-tile img {
  width: 88%;
  max-height: 84%;
  object-fit: contain;
  filter: hue-rotate(68deg) saturate(0.92);
}

.supported-section {
  position: relative;
  padding: 70px 90px 120px;
  text-align: center;
}

.supported-section h2 {
  font-size: 26px;
  margin: 0 0 44px;
}

.card-carousel {
  width: 100%;
  overflow: hidden;
}

.supported-loading {
  height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f7fafb;
  border: 1px dashed #c9dbe4;
  border-radius: 8px;
}

.card-strip {
  display: flex;
  gap: 18px;
  will-change: transform;
}

.supported-card,
.value-grid article,
.reason-grid article,
.team-card {
  background: #f7fafb;
  border: 1px solid #e1ecf1;
  border-radius: 8px;
}

.supported-card {
  flex: 0 0 calc((100% - 54px) / 4);
  height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0;
  color: #56616b;
  box-shadow: 0 12px 34px rgba(34, 71, 91, 0.06);
}

.supported-card img {
  width: 88%;
  max-height: 132px;
  object-fit: contain;
}

.carousel-arrow {
  position: absolute;
  top: 190px;
  width: 44px;
  height: 44px;
  border: 1px solid #d5e3e9;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(34, 71, 91, 0.1);
}

.carousel-arrow::before {
  content: "";
  width: 13px;
  height: 13px;
  border: solid #6d7a86;
  border-width: 0 3px 3px 0;
}

.carousel-arrow.left {
  left: 26px;
}

.carousel-arrow.left::before {
  transform: rotate(135deg);
  margin-left: 5px;
}

.carousel-arrow.right {
  right: 26px;
}

.carousel-arrow.right::before {
  transform: rotate(-45deg);
  margin-right: 5px;
}

.service-list {
  display: grid;
  gap: 36px;
}

.service-row {
  grid-template-columns: 1fr 360px;
}

.service-row.reverse {
  grid-template-columns: 360px 1fr;
}

.service-row.reverse .visual-tile {
  order: -1;
}

.about-section {
  text-align: center;
}

.lead-copy {
  width: 820px;
  margin: 0 auto 52px;
  text-align: left;
}

.about-feature,
.about-visual-band {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 54px;
  align-items: center;
  text-align: left;
  margin: 0 0 72px;
}

.about-feature {
  padding: 34px 38px;
  border: 1px solid #dce9ef;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f4fbfb);
  box-shadow: 0 20px 54px rgba(33, 71, 92, 0.08);
}

.about-feature span,
.about-visual-band span {
  display: inline-flex;
  margin-bottom: 14px;
  color: #0b7c60;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.about-feature h2,
.about-visual-band h2 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.2;
}

.about-feature p {
  margin: 0 0 14px;
  color: #4f5b65;
  line-height: 1.65;
}

.about-feature img,
.about-visual-band img {
  width: 100%;
  display: block;
  filter: hue-rotate(68deg) saturate(0.92);
}

.about-visual-band {
  grid-template-columns: 310px 1fr;
  margin-bottom: 34px;
  padding: 22px 32px;
  border-radius: 8px;
  background: #f7fafb;
  border: 1px solid #e1ecf1;
}

.about-visual-band.reverse {
  grid-template-columns: 1fr 310px;
}

.about-visual-band.reverse img {
  order: 2;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 48px 0 76px;
}

.value-grid article {
  min-height: 250px;
  padding: 28px 22px;
  box-shadow: 0 18px 44px rgba(36, 80, 98, 0.07);
  text-align: left;
}

.value-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 8px;
  filter: hue-rotate(68deg) saturate(0.92);
}

.value-grid h3,
.reason-grid h3 {
  margin: 0 0 16px;
  font-size: 16px;
}

.value-grid p,
.reason-grid p {
  color: #4f5b65;
  line-height: 1.45;
  margin: 0;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 48px 0 80px;
  text-align: left;
}

.reason-grid article {
  min-height: 154px;
  padding: 22px;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 20px;
  align-items: center;
  box-shadow: 0 18px 44px rgba(36, 80, 98, 0.07);
}

.reason-grid article img {
  width: 104px;
  height: 82px;
  object-fit: contain;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.team-card {
  height: 260px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 38px rgba(34, 71, 91, 0.08);
  position: relative;
}

.team-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 24%;
}

.team-card div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 14px;
  color: #fff;
  text-align: left;
  background: linear-gradient(180deg, transparent, rgba(16, 44, 61, 0.88));
}

.team-card strong,
.team-card span {
  display: block;
}

.team-card strong {
  font-size: 16px;
  margin-bottom: 5px;
}

.team-card span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.gift-section {
  width: 1040px;
  position: relative;
}

.gift-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 42px;
}

.gift-title-row h1 {
  text-align: center;
  margin: 0 0 0 96px;
  font-size: 22px;
}

.secondary-btn {
  height: 36px;
  padding: 0 18px;
}

.gift-form {
  width: 900px;
  margin: 0 auto;
  padding: 34px 40px 48px;
  border-radius: 8px;
  border: 1px solid #dce9ef;
  background: #fff;
  box-shadow: 0 24px 70px rgba(21, 72, 99, 0.1);
}

.field-block {
  margin-bottom: 26px;
}

.field-block label {
  display: block;
  margin-bottom: 8px;
  color: #33414d;
}

.field-block label span {
  color: var(--danger);
}

.option-grid {
  display: grid;
  gap: 16px;
}

.option-grid.cards {
  grid-template-columns: repeat(6, 1fr);
}

.option-grid.currency {
  grid-template-columns: repeat(6, 1fr);
}

.option-tile {
  height: 68px;
  border: 1px solid transparent;
  background: #f2f7f9;
  color: #33414d;
  display: grid;
  place-items: center;
  border-radius: 8px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  gap: 6px;
}

.option-grid.cards .option-tile {
  height: 82px;
  padding: 10px 8px;
  align-content: center;
}

.option-tile img {
  width: 30px;
  height: 22px;
  object-fit: contain;
}

.option-grid.cards .option-tile img {
  width: 38px;
  height: 28px;
}

.option-grid.cards .option-tile span {
  width: 100%;
  color: #33414d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.option-grid.currency .option-tile {
  height: 62px;
  font-weight: 800;
}

.option-tile.active {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 191, 141, 0.14);
  transform: translateY(-1px);
}

.rate-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-y: auto;
  max-height: 340px;
  padding: 10px 14px;
}

.inline-loading {
  height: 62px;
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f6fafb;
  border: 1px dashed #c9dbe4;
  border-radius: 8px;
}

.rate-placeholder {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.rate-placeholder.empty {
  align-content: center;
  gap: 14px;
}

.rate-placeholder img {
  width: 120px;
  opacity: 0.72;
}

.rate-row {
  width: 100%;
  height: 72px;
  border: 1px solid transparent;
  display: grid;
  grid-template-columns: 48px 1fr 250px 48px;
  gap: 12px;
  align-items: center;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, transparent, transparent) border-box;
  color: #2c3944;
  text-align: left;
  border-radius: 8px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.rate-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(34, 71, 91, 0.08);
}

.rate-row.active {
  background:
    linear-gradient(135deg, #f0fffb, #ffffff) padding-box,
    linear-gradient(135deg, var(--green), var(--blue)) border-box;
  box-shadow: 0 16px 36px rgba(31, 191, 141, 0.18);
}

.rate-row.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(180deg, var(--green), var(--blue));
}

.seller-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  font-weight: 900;
}

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

.rate-name strong,
.rate-name small {
  display: block;
}

.rate-name small {
  color: #697681;
  margin-top: 6px;
}

.rate-value {
  color: #31414c;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

.rate-value strong,
.rate-value small {
  display: block;
}

.rate-value small {
  margin-top: 4px;
  color: #697681;
  font-size: 12px;
  font-weight: 700;
}

.check-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #d5e3e9;
  background: #f7fafb;
  opacity: 1;
  justify-self: center;
}

.check-mark::before {
  content: "";
  width: 13px;
  height: 8px;
  border: solid #9aa8b2;
  border-width: 0 0 3px 3px;
  transform: rotate(-45deg) translate(1px, -1px);
}

.rate-row.active .check-mark {
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 8px 18px rgba(31, 191, 141, 0.28);
}

.rate-row.active .check-mark::before {
  border-color: #fff;
}

.field-block input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
}

.amount-line {
  position: relative;
}

.amount-line output {
  position: absolute;
  right: 0;
  top: 27px;
  width: 148px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 14px;
  color: #4d5963;
  font-weight: 700;
}

.amount-line input {
  padding-right: 168px;
}

.field-error {
  height: 20px;
  margin: 6px 0 0;
  color: var(--danger);
}

.upload-box {
  width: 156px;
  height: 132px;
  border: 2px dashed #aeb8c1;
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  color: #485661;
  background: #f8fbfc;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.upload-box:hover {
  border-color: var(--green);
  background: #f2fcf9;
  box-shadow: 0 12px 28px rgba(31, 191, 141, 0.12);
}

.upload-box input {
  display: none;
}

.upload-box strong {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8f7f3;
  color: var(--green);
  font-size: 34px;
  line-height: 1;
  font-weight: 400;
}

.upload-box span {
  font-size: 13px;
  max-width: 126px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #485661 !important;
}

.upload-preview {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.submit-btn {
  height: 42px;
  padding: 0 38px;
  display: block;
  margin: 36px auto 0;
}

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  box-shadow: none;
}

.submit-btn.loading {
  background: linear-gradient(135deg, #7ebdd7, #76cbb0);
}

.submit-btn.wide {
  width: 100%;
}

.site-footer {
  padding: 26px 0 24px;
  color: #3c4852;
  background: #f7f8fa;
  border-top: 1px solid rgba(157, 176, 190, 0.2);
}

.footer-inner {
  width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  justify-content: center;
  column-gap: 36px;
}

.footer-brand {
  justify-self: end;
  display: flex;
  align-items: center;
}

.footer-logo {
  width: 230px;
  height: auto;
  display: block;
}

.footer-content {
  min-width: 0;
  width: 520px;
}

.footer-content h2 {
  margin: 0 0 10px;
  color: #303741;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0.4px;
}

.footer-copy {
  margin: 0;
  color: #56636d;
  font-size: 12px;
  line-height: 1.4;
}

.modal-root {
  display: none;
}

.modal-root.open {
  display: block;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(35, 66, 63, 0.52);
}

.modal-card {
  position: fixed;
  z-index: 90;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 540px;
  max-height: 82vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  padding: 34px 48px 42px;
  box-shadow: var(--shadow);
}

.modal-card.small {
  width: 460px;
}

.modal-card h2 {
  margin: 0 0 34px;
  text-align: center;
  font-size: 20px;
}

.modal-intro {
  color: var(--muted);
  text-align: center;
  margin-top: -18px;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 30px;
}

.secondary-action {
  height: 42px;
  border: 1px solid #d6e5ec;
  border-radius: 6px;
  background: #fff;
  color: #38505d;
  font-weight: 800;
}

.submit-btn.danger {
  width: 100%;
  margin: 0;
  background: linear-gradient(135deg, #e34256, #d17835);
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 1px;
  width: 2px;
  height: 20px;
  background: #6d7a86;
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.input-line {
  height: 50px;
  border: 1px solid #d6dde4;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 14px;
}

.input-line span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.input-line span img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.62;
}

.input-line input {
  border: 0;
  outline: 0;
  height: 100%;
}

.input-line.with-action {
  grid-template-columns: 28px 1fr 72px;
}

.input-line.with-action button {
  border: 0;
  color: #0075ff;
  background: transparent;
}

.input-line.with-action button:disabled {
  color: #8aa0ac;
  cursor: not-allowed;
}

.agree-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b9299;
  margin: 8px 0 18px;
  font-size: 13px;
}

.agree-line a,
.link-btn {
  color: #0075ff;
  text-decoration: underline;
}

.link-btn.right {
  display: block;
  margin: 18px 0 0 auto;
}

.orders-modal {
  width: 620px;
  padding: 28px 24px;
}

.orders-list {
  display: grid;
  gap: 12px;
}

.order-wrap {
  position: relative;
  background: #f1f1f1;
  border-radius: 5px;
  padding: 10px;
}

.order-head {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 12px;
  align-items: center;
}

.order-icon {
  width: 74px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dce9ef;
  color: #fff;
  font-weight: 900;
  overflow: hidden;
}

.order-icon img {
  width: 66px;
  height: 44px;
  object-fit: contain;
}

.order-head small,
.order-head strong,
.order-head span {
  display: block;
}

.order-head small {
  color: #4d5963;
}

.order-head strong {
  margin: 4px 0;
}

.order-head em {
  font-style: normal;
  font-size: 18px;
}

.details-toggle {
  position: absolute;
  right: 18px;
  top: 54px;
  border: 0;
  background: #fff;
  color: #0078b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(34, 71, 91, 0.08);
}

.toggle-icon {
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.details-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.order-detail {
  display: none;
  background: #fff;
  border-radius: 6px;
  margin-top: 12px;
  padding: 18px 22px;
}

.order-item.expanded .order-detail {
  display: block;
}

.order-detail dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 60px;
}

.order-image-row {
  grid-column: 1 / -1;
}

.order-detail dt {
  color: #5f6b75;
  margin-bottom: 10px;
}

.order-detail dd {
  margin: 0;
}

.order-image-row dd {
  display: flex;
  align-items: center;
  gap: 14px;
}

.order-image {
  width: 132px;
  height: 92px;
  border-radius: 8px;
  border: 1px solid #dce9ef;
  object-fit: cover;
  background: #f7fafb;
  box-shadow: 0 10px 24px rgba(34, 71, 91, 0.08);
}

.empty-state {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
}

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 38px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  min-width: 220px;
  padding: 12px 18px;
  border-radius: 6px;
  color: #fff;
  background: rgba(26, 40, 52, 0.92);
  text-align: center;
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  background: rgba(205, 55, 73, 0.96);
}
