:root {
  --ink: #35212d;
  --muted: #7d6873;
  --paper: #fff8fb;
  --line: #f0d5e0;
  --lime: #ffd0e0;
  --lime-dark: #f7abc8;
  --orange: #e85a91;
}

body {
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 210, 226, .42), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(226, 207, 255, .34), transparent 28%),
    var(--paper);
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.customer-dashboard {
  --dashboard-blue: #e6538b;
  --dashboard-blue-dark: #a85cdb;
  --dashboard-ink: #382330;
  --dashboard-muted: #806a76;
  max-width: 1080px;
  margin: 22px auto 74px;
  padding: 0 18px;
  color: var(--dashboard-ink);
}

.dashboard-alert { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 20px; border: 1px solid var(--surface-border-strong); border-radius: var(--surface-radius-md); background: linear-gradient(135deg, #eaf7ff, #f8fcff); box-shadow: var(--surface-highlight), var(--surface-shadow-sm); }
.dashboard-alert-icon { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 35px; border-radius: 50%; background: linear-gradient(135deg, #59b0de, #4a7fc2); color: #fff; }
.dashboard-alert strong { display: block; font-size: 14px; }
.dashboard-alert p { margin: 0; color: var(--dashboard-muted); font-size: 12px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr); gap: 32px; align-items: start; }
.dashboard-main { min-width: 0; }

.dashboard-create-card { padding: 22px 20px 20px; border: 1px solid var(--surface-border-strong); border-radius: var(--surface-radius-lg); background: linear-gradient(125deg, #ecf8ff 0%, #fff 100%); box-shadow: var(--surface-highlight), var(--surface-shadow); }
.dashboard-create-card h1 { margin: 0 0 6px; font-size: 20px; line-height: 1.2; letter-spacing: -.03em; }
.dashboard-create-card > p { margin: 0 0 16px; color: #5d778c; font-size: 14px; line-height: 1.5; }
.dashboard-create-card input { width: 100%; height: 54px; padding: 0 15px; border: 2px solid #abd9f1; border-radius: 15px; outline: none; background: #fff; color: var(--dashboard-ink); font-family: inherit; font-size: 15px; }
.dashboard-create-card input:focus { border-color: var(--dashboard-blue); box-shadow: 0 0 0 4px rgba(76, 166, 216, .14); }
.dashboard-create-card input::placeholder { color: #85b8d5; }
.dashboard-create-card .url-status { min-height: 20px; margin: 7px 0 10px; color: var(--dashboard-muted); font-size: 12px; }
.dashboard-create-card .url-status[data-state=success] { color: #287958; }
.dashboard-create-card .url-status[data-state=error] { color: #bf4d61; }

.dashboard-create-button, .affiliate-buy-button { border: 0; border-radius: 999px; background: linear-gradient(100deg, #45a5d9, #5a7fc5); color: #fff; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.dashboard-create-button { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: 8px; }
.dashboard-create-button:hover, .affiliate-buy-button:hover { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(53, 116, 177, .24); }

.dashboard-section-heading { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 10px; }
.dashboard-section-heading h2 { margin: 0; color: #58768d; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-section-heading a, .dashboard-text-link { color: #397ab8; font-size: 13px; font-weight: 700; text-decoration: none; }
.affiliate-link-list { display: grid; gap: 11px; }

.affiliate-link-card { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; column-gap: 13px; align-items: center; overflow: hidden; padding: 12px 13px 8px; border: 1px solid var(--surface-border); border-left: 4px solid #70b9e6; border-radius: var(--surface-radius-md); background: #fff; box-shadow: var(--surface-highlight), var(--surface-shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s; }
.affiliate-link-card:hover { border-color: #a8d3e8; box-shadow: var(--surface-highlight), 0 10px 24px rgba(35, 94, 136, .1); transform: translateY(-1px); }
.affiliate-link-card.is-new { border-color: #6e98db; box-shadow: 0 0 0 3px rgba(88, 139, 205, .14), 0 8px 18px rgba(35, 94, 136, .1); }
.affiliate-product-image { display: grid; width: 76px; height: 76px; place-items: center; overflow: hidden; border: 1px solid #d9eaf3; border-radius: var(--surface-radius-sm); background: #eaf6ff; color: #438bbd; font-size: 27px; }
.affiliate-product-image img { width: 100%; height: 100%; object-fit: cover; }
.affiliate-link-details { min-width: 0; }
.affiliate-link-details h3 { display: -webkit-box; margin: 0; overflow: hidden; font-size: 14px; line-height: 1.35; font-weight: 700; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.affiliate-store, .affiliate-estimate { margin: 2px 0 0; font-size: 12px; }
.affiliate-store { color: #6d879a; }
.affiliate-estimate { color: #28789e; font-weight: 700; }
.affiliate-estimate.unavailable { color: #8299a9; font-weight: 500; }
.affiliate-buy-button { padding: 10px 16px; white-space: nowrap; }
.affiliate-link-card footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding-top: 7px; color: #7690a2; font-size: 11px; }
.affiliate-copy-button { border: 0; padding: 0; background: transparent; color: #397ab8; font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }

.dashboard-empty { padding: 28px 20px; border: 1px dashed #9dcee8; border-radius: var(--surface-radius-md); background: rgba(255, 255, 255, .84); box-shadow: var(--surface-highlight); text-align: center; }
.dashboard-empty h3 { margin: 0 0 4px; font-size: 16px; }
.dashboard-empty p { margin: 0 0 10px; color: var(--dashboard-muted); font-size: 13px; }

.cashback-summary { position: relative; overflow: hidden; padding: 18px 20px; border: 1px solid #93cce9; border-radius: var(--surface-radius-lg); background: linear-gradient(132deg, #d9f2ff 0%, #b7e2fa 60%, #edfaff 100%); box-shadow: var(--surface-highlight), var(--surface-shadow); }
.cashback-summary::after { content: '₫'; position: absolute; top: -20px; right: 14px; color: rgba(255, 255, 255, .48); font-size: 120px; font-weight: 800; line-height: 1; }
.cashback-summary > span, .cashback-summary > strong, .cashback-summary > div { position: relative; z-index: 1; }
.cashback-summary > span { display: block; color: #39718e; font-size: 13px; }
.cashback-summary > strong { display: block; color: #1f668b; font-size: 34px; line-height: 1.1; letter-spacing: -.05em; }
.cashback-summary > div { display: flex; align-items: center; justify-content: space-between; margin: 18px -20px -18px; padding: 11px 20px; background: rgba(255, 255, 255, .74); color: #5d788d; font-size: 12px; }
.cashback-summary b { color: #2f7dab; font-size: 16px; }

.affiliate-guide { margin-top: 24px; padding: 18px 16px; border: 1px solid var(--surface-border); border-radius: var(--surface-radius-lg); background: #fff; box-shadow: var(--surface-highlight), var(--surface-shadow-sm); }
.affiliate-guide h2 { margin: 0 0 15px; font-size: 15px; line-height: 1.35; }
.affiliate-guide ol { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.affiliate-guide li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; }
.affiliate-guide li > span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #e7f5ff; color: #397ab8; font-size: 11px; font-weight: 800; }
.affiliate-guide li p { margin: 0; color: #587187; font-size: 12px; line-height: 1.5; }
.affiliate-guide-note { margin: 15px 0 0; padding-top: 12px; border-top: 1px solid #d9e9f3; color: #2d7195; font-size: 12px; line-height: 1.5; }

.commission-rate-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, .45fr) auto; gap: 14px 18px; align-items: end; margin-bottom: 22px; }
.commission-rate-form h2 { margin: 4px 0; font-size: 22px; }
.commission-rate-form p { margin: 0; color: var(--muted); font-size: 13px; }
.commission-rate-form label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.commission-rate-input { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fbfcf8; }
.commission-rate-input input { width: 100%; min-width: 0; border: 0; padding: 13px 14px; background: transparent; font: inherit; outline: none; }
.commission-rate-input:focus-within { border-color: #6baed6; box-shadow: 0 0 0 3px rgba(76, 166, 216, .14); }
.commission-rate-input span { padding-right: 14px; color: var(--muted); font-weight: 700; }
.commission-rate-form .field-error { grid-column: 2; margin-top: -9px; }

@media (max-width: 800px) {
  .customer-dashboard { margin-top: 12px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .affiliate-guide { margin-top: 0; }
  .commission-rate-form { grid-template-columns: 1fr; }
  .commission-rate-form .field-error { grid-column: auto; }
}

@media (max-width: 560px) {
  .dashboard-alert { align-items: flex-start; }
  .dashboard-grid { gap: 20px; }
  .dashboard-sidebar { grid-template-columns: 1fr; gap: 0; }
  .affiliate-link-card { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 10px; padding: 10px 10px 7px; }
  .affiliate-product-image { width: 60px; height: 60px; }
  .affiliate-buy-button { padding: 9px 12px; font-size: 12px; }
  .affiliate-link-details h3 { font-size: 12px; }
  .dashboard-create-card { padding: 18px 15px; }
  .customer-dashboard { padding: 0 12px; }
}

.install-app-button { display: none; border-color: #9bcbe7; color: #2f709b; }
.pwa-install-help { position: fixed; z-index: 10000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(3, 30, 69, .68); backdrop-filter: blur(4px); }
.pwa-install-help[hidden] { display: none; }
.pwa-install-card { position: relative; width: min(100%, 390px); padding: 28px 24px 24px; border: 1px solid rgba(180, 207, 211, .88); border-radius: 24px; background: #fff; box-shadow: inset 0 1px 0 #fff, 0 24px 70px rgba(3, 30, 69, .3); }
.pwa-install-card h2 { margin: 12px 34px 9px; color: #031e45; font-size: 21px; font-weight: 800; line-height: 1.3; text-align: center; }
.pwa-install-card p { margin: 0; color: #57606c; font-size: 14px; line-height: 1.55; }
.pwa-install-close { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #e8f1f3; color: #031e45; font-size: 24px; line-height: 1; cursor: pointer; }
.pwa-install-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto; border-radius: 18px; background: linear-gradient(135deg, #068e94, #2eb9be); color: #fff; box-shadow: 0 10px 24px rgba(6, 142, 148, .25); font-size: 31px; font-weight: 800; line-height: 1; }
.pwa-install-intro { text-align: center; }
.pwa-install-steps { display: grid; gap: 11px; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: pwa-install-step; }
.pwa-install-steps li { position: relative; min-height: 30px; padding: 4px 0 4px 42px; color: #263b52; font-size: 14px; font-weight: 600; line-height: 1.5; counter-increment: pwa-install-step; }
.pwa-install-steps li::before { position: absolute; top: 0; left: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #e5f7f6; color: #068e94; content: counter(pwa-install-step); font-size: 13px; font-weight: 800; }
.pwa-install-note { margin-top: 15px !important; padding: 11px 13px; border-radius: 13px; background: #fff7da; color: #76550b !important; font-size: 12px !important; }
.pwa-install-confirm { width: 100%; min-height: 50px; margin-top: 20px; padding: 12px 20px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #068e94, #0a9fa5); color: #fff; box-shadow: 0 10px 24px rgba(6, 142, 148, .22); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
body.pwa-install-open { overflow: hidden; }

@media (max-width: 480px) {
  .pwa-install-help { align-items: end; padding: 12px; }
  .pwa-install-card { width: 100%; padding: 24px 18px 18px; border-radius: 24px; }
  .pwa-install-card h2 { font-size: 19px; }
}

@media (min-width: 641px) and (max-width: 800px) {
  .install-app-button:not([hidden]) { display: inline-flex; padding: 9px 12px; font-size: 12px; }
  .site-header nav > a.account-summary { display: inline-flex; }
}

@media (max-width: 640px) {
  .site-header { display: flex; align-items: center; gap: 8px; min-height: 66px; padding: 10px 16px; }
  .site-header .brand { flex: 1 1 auto; min-width: 0; white-space: nowrap; }
  .site-header nav { width: auto; flex: 0 0 auto; justify-content: flex-end; gap: 6px; }
  .site-header nav > .button { min-height: 40px; padding: 8px 11px; font-size: 12px; white-space: nowrap; }
  .site-header .install-app-button:not([hidden]) { display: inline-flex; }
  .site-header .brand-authenticated .brand-name { display: none; }
  .site-header .brand-user-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-header nav > a.account-summary { display: none; }
  .site-header .logout-button { padding: 8px 11px; }
  .site-header .logout-label { display: inline; }
  .site-header .logout-icon { display: none; }
}

@media (max-width: 360px) {
  .site-header { gap: 5px; padding-right: 10px; padding-left: 10px; }
  .site-header .brand { gap: 6px; font-size: 14px; }
  .site-header .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .site-header nav { gap: 4px; }
  .site-header nav > .button { min-height: 38px; padding: 8px 8px; font-size: 11px; }
  .site-header .brand-user-name { max-width: 82px; font-size: 13px; }
  .site-header .logout-button { padding: 8px 9px; }
}

.brand-mark { overflow: hidden; background: linear-gradient(135deg, #dff8ef, #d5efff); }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; transform: scale(1.14); }
.brand-user-name { display: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.account-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 180px;
  min-height: 42px;
  padding: 6px 10px 6px 7px;
  border: 1px solid #c7e2f2;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #285d7c;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s;
}

.account-summary:hover {
  border-color: #83bfdf;
  background: #fff;
  transform: translateY(-1px);
}

.account-summary-initial {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #4aa7d9, #647ec3);
  color: #fff;
  font-size: 12px;
}

.account-summary-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-icon { display: none; font-size: 18px; line-height: 1; }

.install-app-button:not([hidden]) {
  position: relative;
  overflow: hidden;
  border-color: #43a7da;
  background: linear-gradient(115deg, #e4f8ff, #fff 45%, #dff6e8);
  color: #17668e;
  box-shadow: 0 0 0 0 rgba(55, 156, 214, .32), 0 7px 16px rgba(55, 156, 214, .16);
  animation: install-app-pulse 2.4s ease-in-out infinite;
}

.install-app-button:not([hidden])::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .78) 50%, transparent 70%);
  transform: translateX(-130%);
  animation: install-app-shimmer 2.8s ease-in-out infinite;
}

.install-app-button.is-installed:disabled {
  border-color: #9bcbb0;
  background: #eef9f1;
  color: #28744b;
  box-shadow: none;
  opacity: 1;
}

.install-app-button.is-installed:disabled::before { display: none; }

@keyframes install-app-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(55, 156, 214, .26), 0 7px 16px rgba(55, 156, 214, .16); transform: translateY(0); }
  50% { box-shadow: 0 0 0 7px rgba(55, 156, 214, 0), 0 10px 20px rgba(55, 156, 214, .24); transform: translateY(-1px); }
}

@keyframes install-app-shimmer {
  0%, 45% { transform: translateX(-130%); }
  75%, 100% { transform: translateX(130%); }
}

@media (prefers-reduced-motion: reduce) {
  .install-app-button:not([hidden]), .install-app-button:not([hidden])::before { animation: none; }
}

/* CatBack pink dashboard */
.dashboard-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
  gap: 24px;
  overflow: hidden;
  padding: 26px;
  margin-bottom: 24px;
  border: 1px solid #f1bfd3;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 241, 246, .98), rgba(248, 237, 255, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 18px 42px rgba(145, 62, 102, .11);
}

.dashboard-hero::before,
.dashboard-hero::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.dashboard-hero::before {
  width: 220px;
  height: 220px;
  top: -120px;
  left: 33%;
  background: rgba(255, 151, 191, .18);
}

.dashboard-hero::after {
  width: 180px;
  height: 180px;
  right: -90px;
  bottom: -100px;
  background: rgba(181, 117, 230, .13);
}

.dashboard-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.dashboard-hero-mascot {
  width: 156px;
  height: 156px;
  flex: 0 0 156px;
  object-fit: contain;
  filter: drop-shadow(0 14px 14px rgba(190, 65, 120, .18));
}

.dashboard-greeting {
  display: block;
  margin-bottom: 6px;
  color: #b53b70;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dashboard-hero-copy h1 {
  max-width: 390px;
  margin: 0 0 14px;
  color: #35212d;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.dashboard-trust-badge {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid #f1bfd2;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 7px 18px rgba(156, 68, 107, .08);
  color: #9f315f;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-trust-badge span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #ffe0eb;
}

.dashboard-promo-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 18px 20px 16px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 24px;
  background: linear-gradient(135deg, #f15b91 0%, #db4c9d 50%, #9b66df 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 30px rgba(179, 62, 124, .22);
  color: #fff;
}

.dashboard-promo-card::after {
  position: absolute;
  width: 190px;
  height: 190px;
  top: -95px;
  right: -60px;
  border: 28px solid rgba(255, 255, 255, .11);
  border-radius: 50%;
  content: "";
}

.dashboard-promo-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #a93367;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-promo-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 102px;
}

.dashboard-promo-visual strong {
  color: #fff;
  font-size: clamp(52px, 6vw, 78px);
  line-height: 1;
  letter-spacing: -.06em;
  text-shadow: 0 5px 0 rgba(113, 34, 90, .16);
}

.dashboard-promo-visual strong.is-text {
  max-width: 250px;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-align: center;
}

.dashboard-promo-bag {
  display: grid;
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  place-items: center;
  border: 5px solid rgba(255, 255, 255, .85);
  border-radius: 20px 20px 25px 25px;
  background: linear-gradient(145deg, #ffb7d0, #fff0bd);
  box-shadow: 0 10px 20px rgba(116, 31, 83, .2);
  color: #c33b75;
  font-size: 38px;
  font-weight: 800;
  transform: rotate(4deg);
}

.dashboard-promo-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.dashboard-promo-benefits span {
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 11px;
  background: rgba(255, 255, 255, .14);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.dashboard-promo-card > p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  text-align: center;
}

.dashboard-create-card {
  border-color: #f0bfd2;
  border-radius: 26px;
  background: rgba(255, 255, 255, .93);
  box-shadow: inset 0 1px 0 #fff, 0 14px 32px rgba(139, 65, 101, .09);
}

.dashboard-create-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.dashboard-create-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #ffe1ec, #f0ddff);
  color: #d94781;
  font-size: 23px;
  font-weight: 800;
}

.dashboard-create-heading h2 {
  margin: 0 0 3px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.dashboard-create-heading p,
.dashboard-create-card .dashboard-create-heading > div > p {
  margin: 0;
  color: var(--dashboard-muted);
  font-size: 12px;
}

.dashboard-input-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 15px;
  border: 1.5px solid #efbdd1;
  border-radius: 17px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.dashboard-input-shell:focus-within {
  border-color: #e0568c;
  box-shadow: 0 0 0 4px rgba(228, 83, 140, .11);
}

.dashboard-input-shell > span {
  color: #dd4d86;
  font-size: 21px;
  font-weight: 800;
}

.dashboard-create-card .dashboard-input-shell input {
  height: 52px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-create-card .dashboard-input-shell input:focus { box-shadow: none; }
.dashboard-create-card input::placeholder { color: #c69aaa; }

.dashboard-link-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 14px;
}

.dashboard-link-benefits span {
  color: #7c6370;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

.dashboard-create-button,
.affiliate-buy-button {
  background: linear-gradient(105deg, #ea548b, #d64ca0 52%, #9b62df);
  box-shadow: 0 8px 18px rgba(204, 70, 137, .2);
}

.dashboard-create-button { min-height: 52px; }
.dashboard-create-button:hover,
.affiliate-buy-button:hover { box-shadow: 0 11px 22px rgba(183, 60, 133, .28); }

.dashboard-section-heading h2 { color: #8a5f72; }
.dashboard-section-heading a,
.dashboard-text-link,
.affiliate-copy-button { color: #c64078; }

.affiliate-link-card {
  border-color: #efd2dd;
  border-left-color: #ee6c9c;
  border-radius: 20px;
  box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(121, 57, 88, .07);
}

.affiliate-link-card:nth-child(3n + 2) { border-left-color: #b470dd; }
.affiliate-link-card:nth-child(3n) { border-left-color: #f0a050; }
.affiliate-link-card:hover { border-color: #e8b8ca; box-shadow: inset 0 1px 0 #fff, 0 12px 26px rgba(121, 57, 88, .11); }
.affiliate-link-card.is-new { border-color: #e46d9d; box-shadow: 0 0 0 3px rgba(232, 83, 145, .12), 0 10px 24px rgba(121, 57, 88, .1); }
.affiliate-product-image { border-color: #f0d4df; background: #fff3f7; color: #d94e84; }
.affiliate-store { color: #8b7480; }
.affiliate-estimate { color: #248866; }
.affiliate-buy-button { padding: 10px 17px; }
.affiliate-link-card footer { border-top: 1px solid #f5e2e9; }

.dashboard-empty {
  border-color: #e9bcd0;
  background: rgba(255, 255, 255, .78);
}

.cashback-summary {
  border-color: #efb8ce;
  background: linear-gradient(135deg, #ffe2ed 0%, #f5ddff 58%, #fff4f8 100%);
  box-shadow: inset 0 1px 0 #fff, 0 12px 28px rgba(151, 67, 108, .11);
}

.cashback-summary::after { color: rgba(255, 255, 255, .62); }
.cashback-summary > span { color: #9d4f70; }
.cashback-summary > strong { color: #a93669; }
.cashback-summary > div { color: #846b77; }
.cashback-summary b { color: #bd3b73; }

.affiliate-guide {
  border-color: #efd4df;
  background: rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px rgba(126, 62, 94, .07);
}

.affiliate-guide li > span { background: #ffe7f0; color: #cc4178; }
.affiliate-guide li p { color: #755f6a; }
.affiliate-guide-note { border-top-color: #f2dce5; color: #a13d68; }

.dashboard-create-card .url-status[data-state=success] { color: #237b5c; }
.dashboard-create-card .url-status[data-state=error] { color: #b93662; }

@media (max-width: 900px) {
  .dashboard-hero { grid-template-columns: 1fr; }
  .dashboard-hero-copy { justify-content: center; }
  .dashboard-hero-copy h1 { max-width: 520px; }
}

@media (max-width: 560px) {
  .customer-dashboard { margin-top: 10px; padding: 0 10px; }
  .dashboard-hero { gap: 16px; padding: 17px; border-radius: 25px; }
  .dashboard-hero::before { left: 45%; }
  .dashboard-hero-copy { align-items: center; gap: 10px; }
  .dashboard-hero-mascot { width: 96px; height: 96px; flex-basis: 96px; }
  .dashboard-greeting { margin-bottom: 4px; font-size: 10px; }
  .dashboard-hero-copy h1 { margin-bottom: 9px; font-size: 25px; }
  .dashboard-trust-badge { min-height: 32px; padding: 6px 9px; font-size: 10px; }
  .dashboard-promo-card { padding: 15px 13px 13px; border-radius: 20px; }
  .dashboard-promo-visual { min-height: 86px; gap: 13px; }
  .dashboard-promo-visual strong { font-size: 55px; }
  .dashboard-promo-visual strong.is-text { font-size: 23px; }
  .dashboard-promo-bag { width: 62px; height: 62px; flex-basis: 62px; border-width: 4px; border-radius: 17px; font-size: 31px; }
  .dashboard-promo-benefits { gap: 5px; }
  .dashboard-promo-benefits span { padding: 7px 4px; font-size: 9px; }
  .dashboard-promo-card > p { font-size: 10px; }
  .dashboard-create-card { padding: 17px 14px; border-radius: 22px; }
  .dashboard-create-heading { gap: 10px; }
  .dashboard-create-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 13px; }
  .dashboard-create-heading h2 { font-size: 18px; }
  .dashboard-input-shell { min-height: 54px; padding: 0 13px; border-radius: 15px; }
  .dashboard-link-benefits { gap: 4px; }
  .dashboard-link-benefits span { font-size: 9px; }
  .affiliate-link-card { grid-template-columns: 72px minmax(0, 1fr) auto; border-radius: 18px; }
  .affiliate-product-image { width: 72px; height: 72px; }
  .affiliate-buy-button { padding: 9px 13px; }
}

@media (max-width: 380px) {
  .dashboard-hero-copy h1 { font-size: 22px; }
  .dashboard-hero-mascot { width: 82px; height: 82px; flex-basis: 82px; }
  .dashboard-promo-benefits { grid-template-columns: 1fr; }
  .dashboard-link-benefits { grid-template-columns: 1fr; }
  .dashboard-link-benefits span { text-align: left; }
  .affiliate-link-card { grid-template-columns: 62px minmax(0, 1fr); }
  .affiliate-product-image { width: 62px; height: 62px; }
  .affiliate-buy-button { grid-column: 1 / -1; width: 100%; }
}
