
:root {
      --bg: #070B18;
      --bg2: #0B1020;
      --panel: rgba(17, 24, 39, 0.92);
      --panel2: rgba(26, 34, 56, 0.95);
      --primary: #00D4FF;
      --secondary: #7B61FF;
      --text: #F8FAFC;
      --muted: #94A3B8;
      --line: rgba(255, 255, 255, 0.08);
      --success: #00E5A8;
      --danger: #FF5C7A;
      --warning: #FBBF24;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: Arial, sans-serif;
      background:
        radial-gradient(circle at top left, rgba(0, 212, 255, 0.16), transparent 34%),
        radial-gradient(circle at bottom right, rgba(123, 97, 255, 0.20), transparent 35%),
        linear-gradient(135deg, var(--bg), var(--bg2));
      color: var(--text);
      min-height: 100vh;
    }

    .topbar {
      height: 58px;
      border-bottom: 1px solid rgba(123, 97, 255, 0.22);
      display: flex;
      align-items: center;
      padding: 0 24px;
      gap: 24px;
      background: rgba(8, 13, 30, 0.86);
      backdrop-filter: blur(14px);
      position: sticky;
      top: 0;
      z-index: 10;
    }

    .logo {
      font-weight: bold;
      color: var(--primary);
      font-size: 20px;
      letter-spacing: 0.4px;
    }

    .logo::before {
      content: "◆";
      margin-right: 8px;
      color: var(--secondary);
    }

    .tabs {
      margin-left: auto;
      display: flex;
      gap: 22px;
      font-size: 14px;
      align-items: center;
    }

    .tab {
      cursor: pointer;
      padding: 20px 0 18px;
      border-bottom: 2px solid transparent;
      color: var(--muted);
      transition: 0.18s;
    }

    .tab:hover,
    .tab.active {
      border-bottom-color: var(--primary);
      color: var(--primary);
    }

    .lang-wrap {
      position: relative;
      margin-left: 8px;
    }

    .lang-button {
      padding: 8px 11px;
      margin: 0;
      border-radius: 9px;
      font-size: 16px;
    }

    .theme-toggle-button {
      padding: 8px 11px;
      margin: 0 0 0 8px;
      border-radius: 9px;
      font-size: 16px;
      min-width: 42px;
      line-height: 1;
    }

    .lang-menu {
      display: none;
      position: absolute;
      right: 0;
      top: 42px;
      background: var(--panel);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 12px;
      overflow: hidden;
      min-width: 150px;
      z-index: 100;
    }

    .lang-menu.show {
      display: block;
    }

    .lang-item {
      padding: 12px 14px;
      cursor: pointer;
      color: var(--text);
      font-size: 14px;
    }

    .lang-item:hover {
      background: rgba(255, 255, 255, 0.08);
      color: var(--primary);
    }

    .center-card {
      width: 840px;
      min-height: 560px;
      margin: 60px auto;
      background: var(--panel);
      border-radius: 18px;
      box-shadow:
        0 0 38px rgba(0, 212, 255, 0.18),
        0 0 70px rgba(123, 97, 255, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(123, 97, 255, 0.26);
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 40px;
    }

    button {
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      border: none;
      color: white;
      padding: 14px 22px;
      border-radius: 10px;
      cursor: pointer;
      font-weight: bold;
      font-size: 15px;
      margin: 8px;
      transition: 0.18s ease;
      box-shadow:
        0 0 18px rgba(0, 212, 255, 0.25),
        0 0 28px rgba(123, 97, 255, 0.18);
    }

    button:hover {
      transform: translateY(-2px);
    }

    button.secondary {
      background: rgba(255, 255, 255, 0.08);
      color: var(--text);
      border: 1px solid rgba(255, 255, 255, 0.10);
      box-shadow: none;
    }

    button.danger {
      background: rgba(255, 92, 122, 0.14);
      color: var(--danger);
      border: 1px solid rgba(255, 92, 122, 0.30);
      box-shadow: none;
    }

    textarea,
    input,
    select {
      width: 100%;
      padding: 13px;
      margin: 8px 0;
      border: 1px solid rgba(255, 255, 255, 0.10);
      border-radius: 10px;
      font-size: 14px;
      background: var(--panel2);
      color: var(--text);
      outline: none;
    }

    textarea:focus,
    input:focus,
    select:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
    }


    .password-wrap {
      position: relative;
      width: 100%;
      margin: 8px 0;
    }

    .password-wrap input {
      margin: 0;
      padding-right: 46px;
    }

    .password-eye {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      width: 30px;
      height: 30px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--muted);
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.08);
      user-select: none;
      font-size: 15px;
    }

    .password-eye:hover {
      color: var(--primary);
      border-color: rgba(0, 212, 255, 0.28);
    }

    .copy-button.copied {
      background: rgba(0, 229, 168, 0.18);
      color: var(--success);
      border: 1px solid rgba(0, 229, 168, 0.34);
      box-shadow: 0 0 18px rgba(0, 229, 168, 0.16);
    }

    .seed-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
      text-align: left;
      margin: 24px 0;
    }

    .seed-word {
      border: 1px solid rgba(255, 255, 255, 0.08);
      padding: 10px;
      border-radius: 10px;
      background: rgba(15, 23, 42, 0.9);
      font-size: 14px;
      color: var(--text);
    }

    .protected-seed {
      user-select: none;
      -webkit-user-select: none;
      -webkit-touch-callout: none;
    }

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

    .wallet-layout {
      display: grid;
      grid-template-columns: 330px 760px;
      gap: 70px;
      padding: 54px 0 70px;
      justify-content: center;
      align-items: start;
    }

    #mainPanel {
      width: 760px;
      max-width: 760px;
    }

    .balance {
      font-size: 38px;
      margin: 8px 0;
      line-height: 1.08;
      color: var(--text);
    }

    .balance.flash {
      animation: balanceFlash 0.5s ease;
    }

    .muted {
      color: var(--muted);
      font-size: 14px;
    }

    .address {
      color: var(--primary);
      word-break: break-all;
      font-size: 14px;
      margin: 10px 0;
    }

    .qr {
      width: 180px;
      height: 180px;
      border: 1px solid rgba(255, 255, 255, 0.10);
      padding: 10px;
      margin-top: 20px;
      background: white;
      border-radius: 12px;
    }

    .history-panel {
      max-height: calc(100vh - 220px);
      min-height: 560px;
      overflow-y: auto;
      padding-right: 10px;
      scroll-behavior: auto;
    }

    .history-panel::-webkit-scrollbar {
      width: 8px;
    }

    .history-panel::-webkit-scrollbar-thumb {
      background: rgba(0, 212, 255, 0.35);
      border-radius: 20px;
    }

    .tx-list {
      border-top: 1px solid var(--line);
      margin-top: 18px;
      width: 100%;
    }

    .lazy-hint {
      padding: 12px 0;
      text-align: center;
      color: var(--muted);
      font-size: 12px;
    }

    .lazy-hint.loading {
      color: var(--primary);
    }

    .tx {
      padding: 10px 0;
      border-bottom: 1px solid var(--line);
      display: grid;
      grid-template-columns: 115px 1fr 165px;
      gap: 16px;
      align-items: center;
      font-size: 13px;
      min-height: 54px;
    }

    .tx.new {
      animation: newTx 0.7s ease;
    }

    .tx b {
      font-size: 13px;
    }

    .tx .status {
      font-size: 11px;
      line-height: 1.25;
      margin-top: 3px;
    }

    .plus {
      color: var(--success);
      font-weight: bold;
    }

    .minus {
      color: var(--danger);
      font-weight: bold;
    }

    .status {
      font-size: 12px;
      color: var(--muted);
      margin-top: 3px;
    }

    .network-card {
      width: 430px;
      margin: 0 auto;
      text-align: left;
    }

    .network-row {
      display: grid;
      grid-template-columns: 160px 1fr;
      gap: 18px;
      padding: 8px 0;
      border-bottom: 1px solid var(--line);
      font-size: 15px;
    }

    .network-row span:first-child {
      color: var(--muted);
    }

    .network-row span:last-child {
      color: var(--text);
      word-break: break-all;
    }

    .bottom-bar {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      height: 34px;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      color: white;
      display: flex;
      align-items: center;
      padding-left: 18px;
      font-size: 13px;
      z-index: 20;
    }

    .modal-bg {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.58);
      display: none;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(8px);
      z-index: 50;
    }

    .modal {
      width: 440px;
      background: var(--panel);
      color: var(--text);
      border-radius: 16px;
      padding: 24px;
      border: 1px solid rgba(123, 97, 255, 0.24);
    }


    .modal.large-modal {
      width: min(760px, calc(100vw - 36px));
      padding: 0;
      overflow: hidden;
    }

    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 14px 18px;
      border-bottom: 1px solid rgba(0, 212, 255, 0.28);
      font-weight: bold;
      color: var(--text);
    }

    .modal-body {
      padding: 24px 28px 28px;
    }

    .send-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px 28px;
    }

    .send-grid .full {
      grid-column: 1 / -1;
    }

    .field-label {
      display: block;
      color: var(--text);
      font-size: 13px;
      margin-bottom: 4px;
    }

    .amount-label-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 4px;
    }

    .max-btn {
      padding: 4px 9px;
      margin: 0;
      border-radius: 7px;
      font-size: 11px;
      line-height: 1.1;
      box-shadow: none;
      background: rgba(0, 212, 255, 0.13);
      color: var(--primary);
      border: 1px solid rgba(0, 212, 255, 0.30);
    }

    .max-btn:hover {
      transform: none;
      background: rgba(0, 212, 255, 0.22);
    }

    .available-balance,
    .send-format-hint {
      margin-top: 6px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }

    .checkbox-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 10px 0;
      color: var(--text);
    }

    .checkbox-row input {
      width: 18px;
      height: 18px;
      margin: 0;
      accent-color: var(--primary);
    }

    .modal-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 28px;
    }

    .close-x {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255,255,255,0.12);
      color: var(--muted);
      padding: 6px 10px;
      margin: 0;
      box-shadow: none;
    }

    .detail-grid {
      display: grid;
      grid-template-columns: 150px 1fr;
      gap: 10px 16px;
      font-size: 13px;
    }

    .detail-grid .label {
      color: var(--muted);
    }

    .detail-grid .value {
      color: var(--text);
      word-break: break-all;
    }

    .copy-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      padding: 0;
      margin: 0 0 0 8px;
      border-radius: 8px;
      font-size: 14px;
      vertical-align: middle;
      background: rgba(255,255,255,0.08);
      box-shadow: none;
    }

    .copy-icon.copied {
      color: var(--success);
      background: rgba(0, 229, 168, 0.12);
      border-color: rgba(0, 229, 168, 0.35);
      box-shadow: 0 0 14px rgba(0, 229, 168, 0.16);
      transform: scale(1.08);
    }

    .tx {
      cursor: pointer;
    }

    .tx:hover {
      background: rgba(255, 255, 255, 0.025);
    }

    .wallet-section {
      border-top: 1px solid var(--line);
      padding-top: 18px;
      margin-top: 18px;
    }

    .version-list {
      display: grid;
      gap: 8px;
      max-width: 420px;
    }

    .version-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 14px;
      padding: 8px 0;
      border-bottom: 1px solid var(--line);
    }



    #sendResult {
      min-height: 20px;
      font-weight: 600;
    }

    #sendResult.error {
      color: var(--danger);
    }

    #sendResult.success {
      color: var(--success);
    }

    #sendTo.input-error {
      border-color: var(--danger);
      box-shadow: 0 0 0 3px rgba(255, 92, 122, 0.14);
    }

    #sendTo::placeholder {
      color: rgba(248, 250, 252, 0.52);
      opacity: 1;
    }

    @media (max-width: 900px) {
      .send-grid, .detail-grid, .version-row {
        grid-template-columns: 1fr;
      }
    }

    .import-box {
      margin-top: 18px;
      padding-top: 18px;
      border-top: 1px solid var(--line);
      text-align: left;
    }

    h1 {
      color: var(--primary);
    }

    pre {
      color: var(--text);
      background: rgba(15, 23, 42, 0.85);
      padding: 14px;
      border-radius: 10px;
      border: 1px solid var(--line);
      overflow: auto;
    }

    .small-note {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
    }

    .warning {
      color: var(--warning);
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(4px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes newTx {
      0% {
        background: rgba(0, 229, 168, 0.18);
        transform: translateY(-4px);
      }

      100% {
        background: transparent;
        transform: translateY(0);
      }
    }

    @keyframes balanceFlash {
      0% {
        color: var(--success);
      }

      100% {
        color: var(--text);
      }
    }



    #sendResult {
      min-height: 20px;
      font-weight: 600;
    }

    #sendResult.error {
      color: var(--danger);
    }

    #sendResult.success {
      color: var(--success);
    }

    #sendTo.input-error {
      border-color: var(--danger);
      box-shadow: 0 0 0 3px rgba(255, 92, 122, 0.14);
    }

    #sendTo::placeholder {
      color: rgba(248, 250, 252, 0.52);
      opacity: 1;
    }

    @media (max-width: 900px) {
      .wallet-layout {
        grid-template-columns: 1fr;
        padding: 30px 22px 70px;
      }

      #mainPanel {
        width: 100%;
        max-width: 100%;
      }

      .center-card {
        width: calc(100% - 36px);
        margin: 30px auto;
      }

      .seed-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .verify-grid {
        grid-template-columns: 1fr;
      }

      .tabs {
        gap: 12px;
        font-size: 12px;
      }

      .tx {
        grid-template-columns: 1fr;
      }

      .network-card {
        width: 100%;
      }
    }

/* ===================== RGRAM THEMES ===================== */
body.theme-classic {
  background:
    radial-gradient(circle at top left, rgba(0, 212, 255, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(123, 97, 255, 0.20), transparent 35%),
    linear-gradient(135deg, var(--bg), var(--bg2));
}

body.theme-white {
  --bg: #F8FAFC;
  --bg2: #FFFFFF;
  --panel: rgba(255, 255, 255, 0.96);
  --panel2: #F1F5F9;
  --text: #0F172A;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.12);
  background: linear-gradient(135deg, #F8FAFC, #FFFFFF);
  color: var(--text);
}

body.theme-white .topbar {
  background: rgba(8, 13, 30, 0.96);
  border-bottom: 1px solid rgba(0, 212, 255, 0.28);
}

body.theme-white .topbar .tab {
  color: #94A3B8;
}

body.theme-white .topbar .tab:hover,
body.theme-white .topbar .tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

body.theme-white .logo {
  color: var(--primary);
}

body.theme-white .bottom-bar {
  color: white;
}

body.theme-white .address,
body.theme-white .plus,
body.theme-white .copy-icon {
  color: #0284C7;
}

body.theme-white input,
body.theme-white textarea,
body.theme-white select {
  background: #FFFFFF;
  color: #0F172A;
  border-color: rgba(15, 23, 42, 0.16);
}

body.theme-white .modal,
body.theme-white .center-card,
body.theme-white .lang-menu {
  background: rgba(255, 255, 255, 0.98);
  color: #0F172A;
  border-color: rgba(0, 212, 255, 0.25);
}

body.theme-white .tx:hover {
  background: rgba(2, 132, 199, 0.06);
}

body.theme-white button {
  box-shadow: none !important;
}

body.theme-white button:hover {
  transform: none;
}

body.theme-white .theme-toggle-button,
body.theme-white .lang-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
}

.theme-switcher {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.theme-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  cursor: pointer;
  font-weight: bold;
}

.theme-pill.active {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

  

.theme-toggle-btn {
  min-width: 42px;
  height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

body.theme-white button {
  box-shadow: none !important;
}

body.theme-white .theme-toggle-btn,
body.theme-white .lang-button {
  border: 1px solid rgba(15, 23, 42, 0.16);
}


/* ===================== RGRAM POLISHED DASHBOARD UI ===================== */
:root {
  --brand-purple: #8b5cf6;
  --brand-pink: #ff3fd4;
  --brand-orange: #ff8a00;
  --brand-yellow: #eaff00;
  --brand-green: #4ade80;
  --brand-blue: #38bdf8;
  --card-radius: 18px;
}

body {
  overflow-x: hidden;
}

body.theme-classic {
  background:
    radial-gradient(circle at 18% 12%, rgba(139, 92, 246, 0.16), transparent 30%),
    radial-gradient(circle at 82% 0%, rgba(0, 212, 255, 0.11), transparent 28%),
    linear-gradient(135deg, #020617 0%, #06101f 48%, #070b18 100%);
}

body.theme-white {
  background:
    radial-gradient(circle at 20% 12%, rgba(139, 92, 246, 0.10), transparent 32%),
    radial-gradient(circle at 90% 3%, rgba(0, 212, 255, 0.10), transparent 32%),
    linear-gradient(135deg, #fbfdff 0%, #ffffff 100%);
}

.topbar,
body.theme-white .topbar {
  height: 66px;
  background: rgba(2, 6, 23, 0.96) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.logo,
body.theme-white .logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: transparent !important;
  background: linear-gradient(90deg, #8b5cf6 0%, #d946ef 18%, #ff4fd8 35%, #ff8a00 55%, #eaff00 76%, #4ade80 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: brandRainbow 6s linear infinite alternate;
}

.logo::before,
body.theme-white .logo::before {
  content: "R";
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fdf4ff;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,0.18), transparent 34%),
    radial-gradient(circle at 50% 50%, #1a102f 0%, #070b18 66%, #020617 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 2px rgba(168, 85, 247, 0.98),
    0 0 0 4px rgba(14, 165, 233, 0.18),
    0 0 18px rgba(217, 70, 239, 0.82),
    0 0 28px rgba(56, 189, 248, 0.34),
    inset 0 0 16px rgba(255, 255, 255, 0.12);
  text-shadow:
    0 0 9px rgba(255, 255, 255, 0.72),
    0 0 16px rgba(217, 70, 239, 0.72);
  animation: rgramLogoSpin 9s linear infinite;
}

.logo::after,
body.theme-white .logo::after {
  content: "";
  position: absolute;
}

@keyframes brandRainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes rgramLogoSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.wallet-app-shell {
  min-height: calc(100vh - 34px);
}

.wallet-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
}

.top-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #e2e8f0;
}

.top-status {
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.9;
}

.menu-dot,
.theme-toggle-btn,
.lang-button {
  height: 38px;
  min-width: 38px;
  padding: 0 10px;
  margin: 0;
  border-radius: 12px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: none;
}

.wallet-shell-body {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 22px 70px;
  width: 100%;
  max-width: none;
  margin: 0;
  justify-content: start;
}

.wallet-sidebar {
  min-height: calc(100vh - 120px);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.74));
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.22);
}

.side-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-nav-item {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 9px;
  background: transparent;
  border: 1px solid transparent;
  color: #e5e7eb;
  box-shadow: none;
  font-size: 15px;
  text-align: left;
  justify-content: flex-start;
}

.side-nav-item:hover,
.side-nav-item.active {
  transform: none;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.45), rgba(59, 130, 246, 0.18));
  border-color: rgba(139, 92, 246, 0.35);
  color: #fff;
}

.side-nav-icon {
  width: 20px;
  display: inline-flex;
  justify-content: center;
  color: #dbeafe;
}

.sidebar-lock {
  margin-top: auto;
  width: calc(100% - 12px);
  align-self: center;
  background: rgba(139, 92, 246, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.65);
  box-shadow: none;
}

.wallet-main-panel,
#mainPanel {
  width: 100%;
  max-width: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.18fr) repeat(3, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.dash-card,
.dash-panel {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--card-radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.68));
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
}

.dash-card {
  min-height: 122px;
  padding: 20px;
  display: flex;
  gap: 18px;
  align-items: center;
}

.dash-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
}

.dash-card.purple .dash-icon { background: rgba(139, 92, 246, 0.25); color: #a855f7; }
.dash-card.green .dash-icon { background: rgba(34, 197, 94, 0.22); color: #22c55e; }
.dash-card.red .dash-icon { background: rgba(244, 63, 94, 0.22); color: #fb7185; }
.dash-card.blue .dash-icon { background: rgba(59, 130, 246, 0.22); color: #60a5fa; }

.dash-card > div:last-child {
  min-width: 0;
  max-width: 100%;
}

.dash-label {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}

.dash-value {
  color: var(--text);
  font-size: 26px;
  line-height: 1.08;
  font-weight: 900;
}

.dash-value small {
  display: block;
  font-size: 16px;
  margin-top: 2px;
}

.dash-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.dashboard-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 14px;
}

.dash-panel {
  padding: 18px;
  min-height: 285px;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.panel-title-row h3 {
  margin: 0;
}

.text-link {
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  color: #c084fc;
  box-shadow: none;
  font-size: 13px;
}

.mini-tx-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-tx {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  cursor: pointer;
}

.mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.mini-icon.in { background: rgba(34, 197, 94, 0.22); color: #22c55e; }
.mini-icon.out { background: rgba(244, 63, 94, 0.22); color: #fb7185; }

.mini-main b,
.mini-main span {
  display: block;
}

.mini-main span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.mini-amount {
  text-align: right;
  font-weight: 900;
}

.mini-amount small {
  color: var(--muted);
  font-weight: 600;
  margin-left: 4px;
}

.address-center {
  text-align: center;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.big-qr {
  width: 160px;
  height: 160px;
  margin-top: 0;
}

.mono {
  font-family: Consolas, Monaco, monospace;
}

.history-panel {
  max-height: calc(100vh - 190px);
  min-height: 560px;
}

.tx {
  cursor: pointer;
}

.tx:hover {
  background: rgba(139, 92, 246, 0.07);
}

body.theme-white .wallet-sidebar,
body.theme-white .dash-card,
body.theme-white .dash-panel {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: none;
}

body.theme-white .side-nav-item {
  color: #0f172a;
}

body.theme-white .side-nav-item:hover,
body.theme-white .side-nav-item.active {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.13), rgba(59, 130, 246, 0.08));
  color: #6d28d9;
}

body.theme-white .sidebar-lock {
  background: rgba(139, 92, 246, 0.05);
  color: #7c3aed;
}

body.theme-white .dash-value,
body.theme-white .field-label,
body.theme-white .modal-header {
  color: #0f172a;
}

body.theme-white .top-actions,
body.theme-white .top-status {
  color: #e2e8f0;
}

body.theme-white .modal-header {
  color: #0f172a;
}

@media (max-width: 1280px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 1100px) {
  .wallet-shell-body {
    grid-template-columns: 1fr;
  }
  .wallet-sidebar {
    min-height: unset;
  }
  .side-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .dashboard-grid,
  .dashboard-lower {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .topbar {
    padding: 0 12px;
  }
  .logo {
    font-size: 18px;
    gap: 8px;
  }
  .logo::before {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 21px;
  }
  .side-menu {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .wallet-shell-body {
    padding: 14px 12px 70px;
  }
}


/* Stable clickable controls: icons and text links must not jump on hover/click */
.copy-icon,
.copy-icon:hover,
.copy-icon:active,
.copy-icon:focus,
.text-link,
.text-link:hover,
.text-link:active,
.text-link:focus,
.lang-button,
.lang-button:hover,
.theme-toggle-btn,
.theme-toggle-btn:hover {
  transform: none !important;
}

.copy-icon.copied {
  transform: none !important;
}

.text-link:hover {
  text-decoration: underline;
}

.copy-icon {
  will-change: auto;
}

/* Dashboard language/copy polish */
.text-link.stable-link,
.text-link.copy-link {
  min-width: 92px;
  text-align: right;
  white-space: nowrap;
}

.text-link.copy-link.copied,
.copy-button.copied,
.copy-icon.copied {
  color: var(--success) !important;
  border-color: rgba(0, 229, 168, 0.36) !important;
}

.text-link.copy-link.copied {
  background: rgba(0, 229, 168, 0.10) !important;
  border-radius: 8px;
  padding: 5px 8px;
}

body.theme-white .text-link.copy-link.copied,
body.theme-white .copy-button.copied,
body.theme-white .copy-icon.copied {
  color: #00a87a !important;
  border-color: rgba(0, 168, 122, 0.36) !important;
}


/* Final layout polish: keep wallet layout attached to the left and show 10 recent TX */
.wallet-app-shell {
  width: 100%;
}

.wallet-shell-body {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
  align-items: start;
}

.wallet-sidebar {
  width: 250px;
  min-width: 250px;
}

.wallet-main-panel,
#mainPanel {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
}

.dashboard-lower {
  grid-template-columns: minmax(520px, 1.25fr) minmax(420px, 0.75fr) !important;
  align-items: stretch;
}

.recent-panel,
.address-panel {
  min-height: 410px;
}

.recent-panel .mini-tx-list {
  gap: 4px;
}

.recent-panel .mini-tx {
  min-height: 34px;
  padding: 5px 0;
  grid-template-columns: 38px 1fr auto;
}

.recent-panel .mini-icon {
  width: 32px;
  height: 32px;
  font-size: 15px;
}

.recent-panel .mini-main b {
  font-size: 13px;
}

.recent-panel .mini-main span,
.recent-panel .mini-amount small {
  font-size: 11px;
}

.recent-panel .mini-amount {
  font-size: 13px;
}

.dash-card .dash-icon {
  flex: 0 0 52px;
  min-width: 52px;
  overflow: hidden;
}

@media (min-width: 1600px) {
  .wallet-shell-body {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(280px, 1.1fr) repeat(3, minmax(230px, 1fr));
  }
}


/* Final interaction and dashboard polish */
.dash-card.r-card .dash-icon {
  background: conic-gradient(from 220deg, #7c3aed, #ec4899, #f97316, #a3e635, #22d3ee, #7c3aed) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 10px rgba(255,255,255,0.55);
  box-shadow: 0 0 22px rgba(168,85,247,0.35);
  font-family: Arial Black, Arial, sans-serif;
  font-size: 25px;
  flex: 0 0 52px;
}
.text-link.copy-link.copied,
.copy-button.copied,
.copy-icon.copied {
  color: var(--success) !important;
  background: rgba(0, 229, 168, 0.12) !important;
  border-color: rgba(0, 229, 168, 0.46) !important;
  text-decoration: none !important;
}
.text-link.stable-link,
.text-link.copy-link,
.text-link.stable-link:hover,
.text-link.copy-link:hover {
  transform: none !important;
  min-width: 116px;
}
.text-link.stable-link:hover { text-decoration: underline; }
body.theme-white .dash-card.r-card .dash-icon {
  box-shadow: none;
}


/* Final mainnet transaction/fee/send/copy polish */
#sendResult.error,
.error {
  color: var(--danger) !important;
  font-weight: 700;
}

.text-link.copy-link.copied,
.copy-button.copied,
.copy-icon.copied {
  color: var(--success) !important;
  background: rgba(0, 229, 168, 0.12) !important;
  border-color: rgba(0, 229, 168, 0.44) !important;
  box-shadow: none !important;
  transform: none !important;
}

.text-link.copy-link {
  min-width: 120px;
  width: 120px;
  text-align: right;
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.dashboard-lower {
  grid-template-columns: minmax(580px, 1.45fr) minmax(360px, 0.55fr) !important;
  gap: 16px !important;
}

.address-panel {
  max-width: 520px;
  justify-self: stretch;
}

.recent-panel .mini-tx {
  grid-template-columns: 38px minmax(150px, 1fr) minmax(160px, auto) minmax(145px, auto) !important;
  gap: 10px !important;
}

.mini-fee {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
}

.tx {
  grid-template-columns: 112px minmax(220px, 1fr) minmax(180px, auto) minmax(200px, auto) !important;
  gap: 16px !important;
}

.tx-amount {
  text-align: right;
  font-weight: 900;
  white-space: nowrap;
}

.tx-fee {
  text-align: right;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  line-height: 1.25;
}

.tx-fee span,
.tx-fee b {
  display: block;
}

.tx-fee b {
  color: var(--text);
  font-size: 14px;
  margin-top: 4px;
  font-weight: 900;
}

body.theme-white .text-link.copy-link.copied,
body.theme-white .copy-button.copied,
body.theme-white .copy-icon.copied {
  color: #008f68 !important;
  background: rgba(0, 168, 122, 0.12) !important;
  border-color: rgba(0, 168, 122, 0.35) !important;
}

body.theme-white .tx-fee b {
  color: #0f172a;
}


/* Final fee/signing UI polish */
.tx-amount {
  text-align: right;
  font-weight: 800;
  white-space: nowrap;
  color: inherit;
}
.tx-amount .tx-unit {
  font-weight: 600;
  opacity: .9;
  margin-left: 4px;
}
.tx-fee {
  text-align: right;
  min-width: 165px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  line-height: 1.15;
}
.tx-fee .fee-label {
  font-size: 13px;
  font-weight: 900;
  color: var(--muted);
  margin-bottom: 5px;
  letter-spacing: .01em;
}
.tx-fee b {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  white-space: nowrap;
}
.tx-fee .fee-number {
  font-weight: 900;
}
.tx-fee .fee-unit {
  font-weight: 600;
  opacity: .9;
  margin-left: 4px;
}
body.theme-white .tx-fee b,
body.theme-white .tx-fee .fee-number,
body.theme-white .tx-fee .fee-unit {
  color: #0f172a;
}

/* 2026-06-05 final transaction column polish: amount left, Life Fees inline */
.tx {
  grid-template-columns: 112px minmax(240px, 1fr) minmax(170px, 190px) minmax(190px, 220px) !important;
  column-gap: 22px !important;
  align-items: center !important;
}

.tx-amount {
  text-align: left !important;
  justify-self: start !important;
  min-width: 170px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.tx-amount.minus,
.minus .tx-amount-num,
.tx-amount.minus .tx-amount-num,
.tx-amount.minus .tx-unit {
  color: var(--danger) !important;
}

.tx-amount.plus,
.plus .tx-amount-num,
.tx-amount.plus .tx-amount-num {
  color: var(--success) !important;
}

.tx-amount .tx-unit {
  font-weight: 500 !important;
  opacity: .88 !important;
  color: currentColor !important;
}

.tx-fee {
  justify-self: start !important;
  text-align: left !important;
  align-items: flex-start !important;
  min-width: 190px !important;
  max-width: 220px !important;
  line-height: 1.18 !important;
  color: var(--muted) !important;
}

.tx-fee .fee-label {
  display: block !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: var(--primary) !important;
  margin: 0 0 4px 0 !important;
  letter-spacing: .01em !important;
}

.tx-fee b {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  gap: 4px !important;
  color: var(--text) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.tx-fee .fee-number,
.tx-fee .fee-unit {
  display: inline !important;
  white-space: nowrap !important;
}

.tx-fee .fee-number {
  font-weight: 900 !important;
}

.tx-fee .fee-unit {
  font-weight: 500 !important;
  opacity: .86 !important;
}

body.theme-white .tx-fee .fee-label {
  color: #7c3aed !important;
}

body.theme-white .tx-fee b,
body.theme-white .tx-fee .fee-number,
body.theme-white .tx-fee .fee-unit {
  color: #0f172a !important;
}

.recent-panel .mini-tx {
  grid-template-columns: 38px minmax(170px, 1fr) minmax(155px, 175px) minmax(165px, 190px) !important;
  column-gap: 14px !important;
}

.recent-panel .mini-amount,
.recent-panel .mini-fee {
  text-align: left !important;
  justify-self: start !important;
}

.recent-panel .mini-fee {
  color: var(--muted) !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

/* 2026-06-05 final mainnet accounting + icon polish */
.side-nav-item {
  font-size: 15px !important;
  font-weight: 800 !important;
}
.side-nav-icon {
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  line-height: 1 !important;
  color: #e0f2fe !important;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.45) !important;
  opacity: 1 !important;
}
body.theme-white .side-nav-icon {
  color: #1e3a8a !important;
  text-shadow: none !important;
  opacity: 1 !important;
}
body.theme-white .side-nav-item {
  color: #0f172a !important;
}
body.theme-white .side-nav-item.active,
body.theme-white .side-nav-item:hover {
  color: #6d28d9 !important;
}
body.theme-white .side-nav-item.active .side-nav-icon,
body.theme-white .side-nav-item:hover .side-nav-icon {
  color: #7c3aed !important;
}

.dash-card.r-card .dash-icon {
  position: relative !important;
  isolation: isolate !important;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  flex: 0 0 58px !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 42% 42%, #ffffff 0 12%, #f8fafc 13% 24%, transparent 25%),
    radial-gradient(circle at center, #1b1236 0 52%, #070b18 53% 72%, transparent 73%),
    conic-gradient(from 225deg, #7c3aed, #2563eb, #22d3ee, #a855f7, #ff3fd4, #7c3aed) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  box-shadow: 0 0 18px rgba(168,85,247,.55), 0 0 34px rgba(59,130,246,.25) !important;
  font-family: Arial Black, Arial, sans-serif !important;
  font-size: 25px !important;
  font-weight: 900 !important;
  text-shadow: 0 0 12px rgba(255,255,255,.80), 0 0 20px rgba(255,63,212,.35) !important;
}
.dash-card.r-card .dash-icon::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: conic-gradient(from 250deg, #7c3aed, #38bdf8, #a855f7, #ff3fd4, #7c3aed) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  filter: drop-shadow(0 0 6px rgba(168,85,247,.65));
}
body.theme-white .dash-card.r-card .dash-icon {
  box-shadow: none !important;
  border-color: rgba(124, 58, 237, .22) !important;
}

/* Keep fee paid by sender readable and theme-matched. */
.tx-amount.minus,
.tx-amount.minus .tx-amount-num,
.tx-amount.minus .tx-unit,
.mini-amount.minus,
.mini-amount.minus small {
  color: var(--danger) !important;
}
.tx-fee .fee-label {
  color: var(--primary) !important;
  font-weight: 900 !important;
}
body.theme-white .tx-fee .fee-label {
  color: #7c3aed !important;
}
.tx-fee b {
  white-space: nowrap !important;
}
.tx-fee .fee-number,
.tx-fee .fee-unit {
  display: inline !important;
  white-space: nowrap !important;
}

/* Dashboard mini transaction line: keep amount and Life Fees compact. */
.recent-panel .mini-amount {
  justify-self: start !important;
  text-align: left !important;
  white-space: nowrap !important;
}
.recent-panel .mini-fee {
  justify-self: start !important;
  text-align: left !important;
  color: var(--muted) !important;
  white-space: nowrap !important;
}
body.theme-white .recent-panel .mini-fee {
  color: #64748b !important;
}


/* === FINAL FIX: visible close buttons, stable dashboard copy, polished R logo #9 style === */
.close-x,
.modal-header .close-x,
body.theme-white .close-x,
body.theme-classic .close-x {
  color: #ff5c7a !important;
  background: rgba(255, 92, 122, 0.12) !important;
  border: 1px solid rgba(255, 92, 122, 0.48) !important;
  box-shadow: none !important;
  opacity: 1 !important;
  text-shadow: none !important;
  font-size: 20px !important;
  font-weight: 900 !important;
}
.close-x:hover,
body.theme-white .close-x:hover,
body.theme-classic .close-x:hover {
  color: #ffffff !important;
  background: #ff4164 !important;
  border-color: #ff4164 !important;
  transform: none !important;
}

.text-link.copy-link,
.text-link.copy-link:hover,
.text-link.copy-link:focus,
.text-link.copy-link:active {
  pointer-events: auto !important;
  cursor: pointer !important;
  user-select: none !important;
  transform: none !important;
  transition: color .12s ease, background .12s ease, border-color .12s ease !important;
  min-width: 132px !important;
  width: auto !important;
  padding: 6px 9px !important;
  border-radius: 9px !important;
  border: 1px solid transparent !important;
  justify-content: flex-end !important;
}
.text-link.copy-link.copied,
body.theme-classic .text-link.copy-link.copied {
  color: #00e5a8 !important;
  background: rgba(0, 229, 168, .14) !important;
  border-color: rgba(0, 229, 168, .52) !important;
}
body.theme-white .text-link.copy-link.copied {
  color: #008f68 !important;
  background: rgba(0, 168, 122, .13) !important;
  border-color: rgba(0, 168, 122, .42) !important;
}

.dash-card.r-card .dash-icon {
  position: relative !important;
  isolation: isolate !important;
  overflow: visible !important;
  width: 62px !important;
  height: 62px !important;
  min-width: 62px !important;
  flex: 0 0 62px !important;
  border-radius: 999px !important;
  color: transparent !important;
  background:
    radial-gradient(circle at 50% 50%, #211036 0%, #100722 48%, #050711 72%, #020617 100%) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow:
    0 0 0 2px rgba(168,85,247,.65),
    0 0 20px rgba(217,70,239,.52),
    0 0 32px rgba(59,130,246,.28),
    inset 0 0 18px rgba(255,255,255,.08) !important;
  transform: none !important;
}
.dash-card.r-card .dash-icon::before {
  content: "" !important;
  position: absolute !important;
  inset: -4px !important;
  border-radius: 999px !important;
  background: conic-gradient(from 215deg, #7c3aed 0%, #38bdf8 28%, #8b5cf6 53%, #ff3fd4 78%, #7c3aed 100%) !important;
  z-index: -1 !important;
  filter: drop-shadow(0 0 8px rgba(217,70,239,.75)) !important;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)) !important;
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)) !important;
}
.dash-card.r-card .dash-icon::after {
  content: "R" !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff7ff !important;
  font-family: Arial Black, Arial, sans-serif !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -2px !important;
  text-shadow:
    0 0 8px rgba(255,255,255,.85),
    0 0 16px rgba(217,70,239,.72),
    0 0 24px rgba(56,189,248,.38) !important;
}
body.theme-white .dash-card.r-card .dash-icon {
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f8fafc 45%, #eef2ff 72%, #e0e7ff 100%) !important;
  border-color: rgba(124, 58, 237, .22) !important;
  box-shadow: 0 0 0 2px rgba(124,58,237,.18), inset 0 0 14px rgba(124,58,237,.10) !important;
}
body.theme-white .dash-card.r-card .dash-icon::after {
  color: #111827 !important;
  text-shadow: 0 0 10px rgba(168,85,247,.20) !important;
}

/* Receive card embedded in dashboard */
.receive-card-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.receive-card-content {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 18px;
}

.receive-card-title {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
}

.receive-card-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.receive-full-address {
  width: min(100%, 560px);
  color: var(--primary);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  text-align: center;
}

.dashboard-copy-button {
  margin: 0;
  min-width: 96px;
}

.dashboard-copy-button.copied {
  background: rgba(0, 229, 168, 0.18) !important;
  color: var(--success) !important;
  border: 1px solid rgba(0, 229, 168, 0.42) !important;
  box-shadow: 0 0 18px rgba(0, 229, 168, 0.18) !important;
}

.receive-card-qr {
  margin-top: 22px;
}

body.theme-white .receive-card-panel {
  background: rgba(255, 255, 255, 0.92);
}

body.theme-white .receive-card-title {
  color: #0f172a;
}

/* === FINAL OVERRIDE: keep small copy icons small; only Receive RGRAM big Copy button is stable === */
.copy-icon,
button.copy-icon,
.wallet-copy-icon,
button.wallet-copy-icon {
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding: 0 !important;
  margin-left: 8px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  line-height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.copy-icon:hover,
.copy-icon:focus,
.copy-icon:active,
.wallet-copy-icon:hover,
.wallet-copy-icon:focus,
.wallet-copy-icon:active {
  transform: none !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
}

.copy-icon.copied,
.wallet-copy-icon.copied {
  transform: none !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  color: var(--success) !important;
  background: rgba(0, 229, 168, 0.12) !important;
  border-color: rgba(0, 229, 168, 0.42) !important;
}

.receive-card-panel .copy-button,
.receive-card-panel .copy-button:hover,
.receive-card-panel .copy-button:focus,
.receive-card-panel .copy-button:active {
  width: 112px !important;
  min-width: 112px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 18px !important;
  margin: 14px auto 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
  white-space: nowrap !important;
}

.receive-card-panel .copy-button.copied {
  width: 112px !important;
  min-width: 112px !important;
  height: 46px !important;
  min-height: 46px !important;
  color: #ffffff !important;
  background: linear-gradient(90deg, #00e5a8, #00b894) !important;
  border-color: rgba(0, 229, 168, 0.55) !important;
  box-shadow: none !important;
  transform: none !important;
}
