.site-shell {
  min-height: 100vh;
  padding: 28px 18px 54px;
  color: #f5f7ff;
  background-color: #050b17;
  background-image: linear-gradient(rgba(2, 7, 17, 0.2), rgba(2, 7, 17, 0.62)), url("../images/network-background.png");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

.dashboard {
  width: min(960px, 100%);
  margin: 0 auto;
}

.dashboard-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px 12px 20px;
  border: 1px solid rgba(139, 158, 207, 0.28);
  border-radius: 22px;
  background: rgba(8, 12, 25, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 22px 55px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.brand-lockup,
.header-actions,
.panel-status {
  display: flex;
  align-items: center;
}

.brand-lockup { gap: 10px; font-size: 21px; letter-spacing: -0.03em; }
.brand-symbol { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(114, 175, 255, 0.32); border-radius: 11px; color: #72b4ff; background: #0c172a; font-size: 25px; }
.header-actions { gap: 10px; }
.dashboard-pill,
.lang-toggle { min-height: 42px; padding: 0 20px; border: 1px solid rgba(156, 171, 212, 0.3); border-radius: 999px; color: #ecf2ff; background: rgba(13, 17, 32, 0.9); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.lang-toggle { min-width: 64px; color: #79baff; }
.lang-toggle:hover,
.lang-toggle:focus-visible { border-color: #67aefc; background: #102442; outline: none; }

.function-panel {
  margin-top: 20px;
  padding: 28px;
  border: 1px solid rgba(110, 131, 184, 0.22);
  border-radius: 28px;
  background: rgba(5, 9, 21, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 28px 70px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
}

.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.panel-kicker { margin: 0 0 5px; color: #65abff; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; }
.panel-heading h1 { margin: 0; color: #f7f9ff; font-size: clamp(25px, 4vw, 36px); font-weight: 700; letter-spacing: -0.04em; }
.panel-status { gap: 7px; padding: 8px 12px; border: 1px solid rgba(75, 202, 178, 0.22); border-radius: 999px; color: #7de1cb; background: rgba(22, 100, 88, 0.12); font-size: 12px; white-space: nowrap; }

.searchbox { position: relative; margin-bottom: 22px; }
.searchbox i { position: absolute; top: 50%; left: 17px; color: #64789d; transform: translateY(-50%); pointer-events: none; }
.searchbox input { width: 100%; height: 48px; padding: 0 18px 0 46px; border: 1px solid rgba(109, 134, 190, 0.26); border-radius: 14px; color: #eaf1ff; background: rgba(7, 13, 28, 0.76); outline: none; }
.searchbox input::placeholder { color: #667493; }
.searchbox input:focus { border-color: #58a2f6; box-shadow: 0 0 0 3px rgba(88, 162, 246, 0.12); }

.wallet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 18px; }
.wallet-card {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(119, 138, 189, 0.24);
  border-radius: 18px;
  color: #e8edf9;
  background: rgba(9, 12, 25, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 12px 25px rgba(0, 0, 0, 0.18);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.wallet-card:hover,
.wallet-card:focus-visible { transform: translateY(-2px); border-color: rgba(91, 165, 251, 0.66); background: rgba(12, 24, 46, 0.96); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3), 0 0 22px rgba(56, 145, 245, 0.08); outline: none; }
.wallet-card:active { transform: translateY(0); }
.wallet-icon { flex: 0 0 auto; }
.wallet-icon-frame { width: 62px; height: 62px; position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(126, 148, 204, 0.28); border-radius: 14px; color: #84a4d7; background: #0b1326; box-shadow: inset 0 0 15px rgba(74, 115, 183, 0.08); }
.wallet-icon-frame img { width: 100%; height: 100%; object-fit: cover; }
.wallet-fallback { display: none; font-size: 27px; line-height: 1; }
.wallet-fallback.is-visible { display: inline-block; }
.wallet-name { color: #edf1fb; font-size: 17px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.empty-state { margin: 32px 0 8px; color: #8ca0c6; text-align: center; }

.modal-icon { flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: #4073b6; background: linear-gradient(145deg, #eef6ff, #dfefff); font-weight: 800; }
.modal-icon img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.modal-overlay { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 22px; background: rgba(10, 15, 24, 0.74); }
.import-modal { width: min(820px, 100%); max-height: calc(100vh - 44px); overflow: auto; border-radius: 8px; color: #f0e4d4; background: #1b1c1e; box-shadow: var(--shadow-modal); text-align: left; }
.modal-body { padding: 30px 84px 26px; }
.modal-heading { display: flex; align-items: center; gap: 28px; margin-bottom: 30px; }
.modal-icon { width: 58px; height: 58px; }
.modal-heading h2 { margin: 0; color: #f0e4d4; font-size: 28px; font-weight: 600; line-height: 1.3; }
.safety-banner { display: grid; gap: 6px; margin-bottom: 26px; padding: 16px 18px; border: 1px solid rgba(43, 121, 219, 0.9); border-radius: 12px; color: #78b5ff; background: #202224; font-size: 14px; }
.customer-tabs { margin-bottom: 22px; }
.import-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 2px solid #8733b2; }
.import-tab { position: relative; padding: 12px 8px 16px; border-bottom: 3px solid transparent; color: #af9f8e; background: transparent; font-size: 19px; font-weight: 500; }
.import-tab.active { color: #f0e4d4; border-bottom-color: #2f6cab; }
.customer-form { display: grid; gap: 0; }
.field-group { display: grid; gap: 12px; color: #f0e4d4; font-size: 17px; font-weight: 700; }
.form-control { width: 100%; min-height: 60px; padding: 14px 22px; border: 1px solid #4d525a; border-radius: 16px; color: #f0e4d4; background: #1b1c1e; font-size: 18px; outline: none; }
.form-control::placeholder { color: #8b8175; }
.form-control:focus { border-color: var(--color-blue); box-shadow: 0 0 0 3px rgba(47, 108, 171, 0.16); }
.textarea-control { min-height: 160px; resize: vertical; }
.hint { margin: 22px 0 0; color: #f0e4d4; font-size: 16px; }
.json-import-row { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.json-import-button { min-height: 44px; padding: 0 18px; border-radius: 10px; color: #f0e4d4; background: #2b4f75; font-size: 15px; font-weight: 700; }
.json-import-tip { color: #af9f8e; font-size: 14px; }
.safe-result { margin-top: 16px; padding: 13px 15px; border: 1px solid rgba(43, 121, 219, 0.9); border-radius: 12px; color: #78b5ff; background: #202224; font-size: 14px; }
.safe-result.error { border-color: rgba(194, 53, 53, 0.9); color: #f5b0b0; background: #291d1d; }
.safe-result.success { border-color: rgba(46, 164, 94, 0.9); color: #9ce5b0; background: #1d2620; }
.modal-actions { display: flex; gap: 12px; padding: 22px 84px 30px; background: #202224; }
.proceed-button,
.cancel-button { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; padding: 9px 24px; color: #fff; font-size: 22px; font-weight: 500; }
.proceed-button { flex: 1; gap: 8px; background: #3773b1; }
.proceed-button svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cancel-button { min-width: 136px; background: #b71c1c; }
.modal-overlay.result-mode-overlay { background: rgba(241, 251, 251, 0.94); backdrop-filter: blur(12px); }
.import-modal.result-mode { width: min(500px, 100%); max-height: calc(100vh - 32px); overflow: auto; border: 0; color: #183037; background: transparent; box-shadow: none; }
.import-modal.result-mode .result-view { display: grid; gap: 30px; padding: 10px; }
.result-card { padding: 30px 24px 0; overflow: hidden; border: 1px solid rgba(189, 223, 222, 0.44); border-radius: 24px; color: #253234; background: rgba(255, 255, 255, 0.97); box-shadow: 0 18px 45px rgba(45, 109, 109, 0.13); text-align: center; }
.result-card h2 { margin: 0 0 14px; color: #1f292b; font-size: 25px; font-weight: 700; }
.result-card p { margin: 6px 0; color: #435456; font-size: 17px; line-height: 1.5; }
.result-card strong { display: block; margin: 22px -24px 0; padding: 16px 20px; border-top: 1px solid #edf3f3; color: #21a49e; background: #fbfefe; font-size: 18px; }
.result-options { display: grid; gap: 14px; padding: 0 12px 18px; }
.result-option { min-height: 56px; padding: 13px 20px; border: 1px solid rgba(84, 226, 219, 0.45); border-radius: 999px; color: #fff; background: linear-gradient(100deg, #75e4df 0%, #08bec0 100%); box-shadow: 0 13px 24px rgba(12, 190, 190, 0.2); text-align: center; font-size: 18px; font-weight: 700; }
.result-option:hover, .result-option:focus-visible { border-color: #18aaa8; color: #fff; background: linear-gradient(100deg, #5bdad5 0%, #00aeb1 100%); outline: none; transform: translateY(-1px); }

@media (max-width: 640px) {
  .site-shell { padding: 14px 12px 34px; }
  .dashboard-header { min-height: 62px; padding: 9px 10px 9px 13px; border-radius: 18px; }
  .brand-lockup { gap: 7px; font-size: 17px; }
  .brand-symbol { width: 32px; height: 32px; font-size: 21px; }
  .header-actions { gap: 6px; }
  .dashboard-pill, .lang-toggle { min-height: 36px; padding: 0 12px; font-size: 10px; }
  .lang-toggle { min-width: 48px; }
  .function-panel { margin-top: 12px; padding: 15px; border-radius: 20px; }
  .panel-heading { align-items: center; margin-bottom: 15px; }
  .panel-kicker { font-size: 9px; }
  .panel-heading h1 { font-size: 23px; }
  .panel-status { padding: 6px 8px; font-size: 10px; }
  .searchbox { margin-bottom: 15px; }
  .searchbox input { height: 42px; border-radius: 12px; font-size: 14px; }
  .wallet-grid { gap: 11px; }
  .wallet-card { min-height: 86px; gap: 10px; padding: 10px; border-radius: 15px; }
  .wallet-icon-frame { width: 48px; height: 48px; border-radius: 12px; }
  .wallet-fallback { font-size: 22px; }
  .wallet-name { font-size: 13px; }
  .modal-overlay { padding: 12px; }
  .import-modal { max-height: calc(100vh - 24px); border-radius: 16px; }
  .modal-body, .modal-actions { padding-left: 18px; padding-right: 18px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-heading { gap: 14px; margin-bottom: 21px; }
  .modal-heading h2 { font-size: 20px; }
  .modal-icon { width: 44px; height: 44px; }
  .import-tab { padding-inline: 3px; font-size: 15px; }
  .form-control { min-height: 50px; padding: 11px 14px; font-size: 15px; }
  .textarea-control { min-height: 130px; }
  .json-import-row { align-items: stretch; flex-direction: column; gap: 9px; }
  .cancel-button { width: 100%; }
  .import-modal.result-mode .result-view { gap: 24px; padding: 6px; }
  .result-card { padding: 26px 18px 0; border-radius: 22px; }
  .result-card h2 { font-size: 23px; }
  .result-card p { font-size: 16px; }
  .result-card strong { margin: 20px -18px 0; font-size: 17px; }
  .result-options { padding-inline: 8px; }
  .result-option { min-height: 52px; font-size: 16px; }
}

@media (max-width: 390px) {
  .dashboard-pill { display: none; }
  .wallet-card { min-height: 80px; }
  .wallet-icon-frame { width: 42px; height: 42px; }
  .wallet-name { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .wallet-card { transition: none; }
}
