/* Entry point for SCSS compilation*/
/* Uses PostCSS with SCSS syntax support*/
/* Order matters*/
/**
 * RESET v1.2.3 - Modern & Accessible
 * Feb 2, 2026 - Prevent double-tap zoom on interactive elements while allowing pinch zoom
 * 
 * Normalizes browser inconsistencies while preserving accessibility.
 * 
 * 1. Base - Universal resets, document settings
 * 2. Elements - Text, media, forms, tables
 * 3. Interactive - Links, focus states
 * 4. Custom - Custom styles
 */
/* Base */
:root {
  interpolate-size: allow-keywords;
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
div, section, article, aside, nav, header, footer, main {
  line-height: 1;
}
html, body {
  height: 100%;
}
html {
  font-family: sans-serif;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;

  /* Prevent iOS text size adjust after orientation change */
  -webkit-text-size-adjust: 100%;

  /* Font smoothing for better rendering */
  -webkit-text-stroke: rgba(255,255,255,0.01) 0.1px;
  -webkit-font-smoothing: antialiased;
  text-shadow: rgba(255,255,255,0.01) 0 0 1px;
  -moz-osx-font-smoothing: grayscale;
}
/* Elements */
/* Text */
hr {
  box-sizing: content-box;
  height: 0;
  border: 0;
}
small {
  font-size: 80%;
}
/* Prevent sub/sup affecting line-height */
sub, sup {
  font-size: 65%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup { top: -0.5em; }
sub { bottom: -0.25em; }
pre {
  overflow: auto;
}
code, kbd, pre, samp {
  font-family: monospace, monospace;
  font-size: 1em;
}
/* Media */
img, video {
  display: block;
  max-width: 100%;
  height: auto;
}
svg {
  max-width: 100%;
  height: auto;
}
audio, canvas, progress, video {
  vertical-align: baseline;
}
audio:not([controls]) {
  display: none;
  height: 0;
}
/* Forms */
button, input, optgroup, select, textarea {
  color: inherit;
  font: inherit;
  border: 0;
  background: none;
}
button, select {
  text-transform: none;
}
/* Clickable input types */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  -moz-appearance: button;
       appearance: button;
  cursor: pointer;
}
button[disabled],
input[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}
button::-moz-focus-inner, input::-moz-focus-inner {
  border: 0;
  padding: 0;
}
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
[role="button"] {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
/* Inputs */
input, textarea {
  line-height: normal;
  border-radius: 0;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
input[type="search"] {
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
       appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}
input[type="checkbox"], input[type="radio"] {
  box-sizing: border-box;
}
/* Remove Firefox validation styling */
input:required, input:invalid {
  box-shadow: none;
}
/* Firefox placeholder opacity fix */
input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  color: inherit;
}
input::placeholder, textarea::placeholder {
  opacity: 1;
  color: inherit;
}
/* Dialog */
dialog {
  border: 0;
  padding: 0;
  max-width: 100%;
  max-height: 100%;
  color: inherit;
}
dialog:not([open]) {
  display: none;
}
/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}
td, th {
  padding: 0;
  text-align: left;
}
/* Interactive */
a {
  text-decoration: none;
  color: inherit;
}
/* Accessible focus styles */
a:focus-visible, 
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 0px;
}
/* Remove focus outline for mouse users, keep for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}
/* Prevent double-tap zoom on interactive elements while allowing pinch zoom */
button,
a,
input,
select,
textarea,
[role="button"] {
  touch-action: manipulation;
}
/* Custom */
*:not(dialog) {
  background: none;
}
ul, ol {
  list-style-type: none;
}
a { 
  -webkit-text-stroke: currentColor; 
}
select {
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    line-height: 1.2;
    /** for the dropdown indicator */
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 1.25em !important;
}
html.night_mode select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bbb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  }
/* ============================================*/
/* VARIABLES*/
/* ============================================*/
/* Global design tokens*/
/* Colors*/
/* Spinner (for loading states)*/
/* Spacing*/
/* Border radius*/
/* Transitions*/
/* Z-index*/
/* Font families*/
/* $font-system: 'Nunito', sans-serif;*/
/* $font-system: 'Poppins', sans-serif;*/
/* $font-system: 'DM Sans', sans-serif;*/
/* $font-system: 'Quicksand', sans-serif;*/
/* Breakpoints - Modernized to CSS Custom Properties */
/* Last updated: December 2025 */
/* CUSTOM MEDIA QUERIES */
/* small-mobile (SE) */
/* mobile */
/* mobile-landscape */
/* tablet-portrait */
/* tablet-device */
/* tablet */
/* laptop */
/* large-laptop */
/* desktop (min-width) */
/* Footer specific */
/* MIN-WIDTH variants */
/* ============================================*/
/* TYPOGRAPHY*/
/* ============================================*/
/* Base typography and text styles*/
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }
p {
    margin: 0 0 16px 0;
    line-height: 1.3;
}
p:last-child {
        margin-bottom: 0;
    }
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
        text-decoration: underline;
    }
code, pre {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875em;
}
/* ============================================*/
/* UTILITY CLASSES*/
/* ============================================*/
.hidden {
    display: none !important;
}
.visible {
    display: block !important;
}
.flex {
    display: flex !important;
}
.inline-flex {
    display: inline-flex !important;
}
.inline-block {
    display: inline-block !important;
}
.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}
.text-left {
    text-align: left;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.text-secondary {
    color: #666666;
}
.font-mono {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}
/* ============================================*/
/* ANIMATIONS*/
/* ============================================*/
/* Global animations and keyframes*/
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
/* Body initialization loader*/
body {
    background: #f5f7fa;
    min-height: 100vh;
    margin: 0;
}
/* Prevent FOUC - hide wallet until JavaScript determines auth state*/
body:not(.initialized) .wallet-content > div {
            display: none;
        }
body:not(.initialized) .wallet-content::before {
            content: '';
            display: block;
            border: 3px solid #f3f3f3;
            border-top: 3px solid #0166FF;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 40px auto;
        }
/* ============================================*/
/* THEME SYSTEM*/
/* ============================================*/
/* CSS custom properties for light/dark mode switching*/
/* Dark mode is default for Pybara brand identity*/
/* Light mode (preserved for future use)*/
:root {

    /* Base colors (single source of truth)*/
    --color-accent: oklch(52.344% 0.13464 144.188);


    /* Semantic variables (reference base colors)*/
    --bg-primary: #f5f7fa;
    --bg-primary: #355546;



    --bg-secondary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #eaeaea;
    --link-color: #2e7d32;
    --card-bg: #ffffff;
    --card-border: #e0e0e0;
    --header-bg: #ffffff;
    --backdrop-color: rgba(0, 0, 0, 0.5);

    --btn-primary-bg: linear-gradient(135deg, #0166FF 0%, #0052CC 100%);
    --btn-primary-bg-hover: linear-gradient(135deg, #0166FF 0%, #0052CC 100%);
    --btn-primary-color: #ffffff;

    --btn-secondary-color: #666666;
    --btn-secondary-border: 1px solid #e0e0e0;
    
    --modal-bg: #ffffff;
    --text-color: #1a1a1a;
    --balance-hover-bg: rgba(0, 0, 0, 0.02);
    --balance-active-bg: rgba(0, 0, 0, 0.04);

    --item-bg: #f9fafb;
    --item-details-bg: rgba(0, 0, 0, 0.02);
    --item-hovered-bg: var(--card-bg);
    --item-hovered-border-color: oklch(from var(--color-accent) l c h / 0.5);
    --item-expanded-border-color: oklch(from var(--color-accent) l c h / 0.5);
}
/* Dark mode (DEFAULT)*/
html.dark {

    /* Base colors (single source of truth)*/
    /* --color-accent: oklch(69.848% 0.13278 232.4);*/
    --color-dark: #181d28;

    /* Semantic variables (reference base colors)*/
    /* --bg-primary: var(--color-dark);*/
    /* --bg-primary: #2c323e;*/
    
    --bg-secondary: #1e293b;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #6c6c6c6d;
    --link-color: var(--color-accent);
    --card-bg: #1e293b;
    --card-bg: #1a222e;  /* dark-green : #2a4141*/

    --card-border: transparent;
    --header-bg: var(--color-dark);
    --backdrop-color: rgba(0, 0, 0, 0.5);

    
    --btn-primary-bg: var(--color-accent);
    --btn-primary-bg-hover: var(--color-accent);
    --btn-primary-color: #0f172a;
    
    --btn-secondary-color: var(--color-accent);
    --btn-secondary-border: 2px solid var(--color-accent);
    
    --modal-bg: #1e293b;
    --text-color: #ffffff;
    --balance-hover-bg: rgba(255, 255, 255, 0.05);
    --balance-active-bg: rgba(255, 255, 255, 0.08);

    --item-bg: #1e293b;
}
/* Theme transition (smooth color changes)*/
:root,
.dark {
    transition: background-color 0.3s ease, color 0.3s ease;
}
html {
    overflow-x: hidden;
    overflow-y: scroll;
}
body {
    width: 100%;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg-primary);
    color: var(--text-primary);
}
/* Skeleton Animation Variables*/
:root {
    --skeleton-animation-duration: 5s;
}
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main.wallet-content {
    flex: 1;
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
@media (max-width: 567px) {
main.wallet-content {
        padding: 0;
        padding-top: 0.625rem
}
    }
.initial-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px); /* Full height minus header*/
}
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.logout-container {
    text-align: center;
}
/* Dashboard Grid - Desktop: side-by-side, Mobile: stacked*/
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 24px;
    gap: 24px;
    margin-bottom: 20px;
}
@media (max-width: 1226px) {
.dashboard-grid {
        grid-template-columns: 1fr 1fr
}
    }
@media (max-width: 820px) {
.dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px
}
    }
@media (max-width: 567px) {
.dashboard-grid {
        margin-bottom: 0
}
    }
@media (max-width: 820px) {
.tab-content {
        display: none
}
    }
.tab-content.active {
        display: block;
    }
@media (min-width: 1227px) {
#orders_card,
#activity_card {
        display: flex;
        flex-direction: column;
        height: var(--balances-height, auto)
}
    }
@media (max-width: 1024px) {
#activity_card {
        grid-column: 1 / -1
}
    }
/* Cards*/
.card {
    background: var(--card-bg);
    justify-content: flex-start;
    border-radius: 2.5rem;
    corner-shape: squircle;
    padding: 15px 20px;
    border: 1px solid var(--card-border);
    /* box-shadow: inset 0 5px 5px rgba(0, 0, 0, 0.05),*/
    /* 0 0px 3px 5px rgba(255, 255, 255, 1),*/
    /* 0 1px 0px 5px rgba(0, 0, 0, 0.5);*/
    min-height: 520px;
}
@media (min-width: 1227px) {
.card {
        align-self: start
}
    }
@media (max-width: 567px) {
.card {
        border-radius:0;
        padding: 12px;
        padding-top: 0;
        background: transparent;
        border: none;
        min-height: auto
}
    }
.card .card_header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        flex-shrink: 0;
        height: 30px;
    }
.card .card_header h2 {
            font-size: 1.0625rem;
            font-weight: 800;
            color: var(--text-primary);
            -webkit-user-select: none;
               -moz-user-select: none;
                    user-select: none;
            line-height: 1;
        }
@media (max-width: 567px) {
.card .card_header h2 {
                font-size: 14px
        }
            }
@media (max-width: 567px) {
.card .card_header {
            display: none !important;
            margin-bottom: 12px;
            min-height: 25px
    }
        }
.card .card_summary {
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--card-border);
    }
@media (max-width: 567px) {
.card .card_summary {
            margin-bottom: 12px;
            padding-bottom: 0px;
            border-bottom: none
    }
        }
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.summary-item span:first-child {
        font-size: 0.875rem;
        color: var(--text-secondary);
    }
@media (max-width: 567px) {
.summary-item span:first-child {
            color: white;
            font-size: 13px
    }
        }
.total_balance {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}
@media (max-width: 567px) {
.total_balance {
        font-size: 1.125rem;
        color:white;
        padding-right:1px
}
    }
.refresh-button {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    width: 30px;
    height: 30px;
    padding: 0;
    flex-shrink: 0;
}
.refresh-button svg {
        width: 20px;
        height: 20px;
        fill: var(--btn-secondary-color);
        display: block;
    }
.refresh-button:hover {
        opacity: 1;
    }
.refresh-button.loading {
        pointer-events: none;
        opacity: 1;
    }
.refresh-button.loading svg {
            animation: spin 0.8s linear infinite;
        }
@media (max-width: 567px) {
.refresh-button {
        width: 25px;
        height: 25px
}
        
        .refresh-button svg {
            width: 18px;
            height: 18px;
        }
    }
.token-icon-small {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}
.order-tx-link {
    font-size: 11px;
    color: #0166FF;
    text-decoration: none;
    margin-top: 4px;
    display: inline-block;
}
.order-tx-link:hover {
        text-decoration: underline;
    }
/* Empty State*/
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}
.empty-state p {
        font-size: 14px;
        margin-bottom: 8px;
        text-wrap: balance;
    }
.empty-state p.error {
            color: #ff6b6b;
        }
.empty-hint {
    font-size: 13px;
    color: #999;
}
/* Loading State*/
.orders-loading {
    text-align: center;
    padding: 40px;
    color: #666666;
}
.orders-loading .spinner {
        width: 30px;
        height: 30px;
        margin: 0 auto 12px;
    }
.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}
.auth-content {
    max-width: 480px;
    width: 100%;
    text-align: center;
    padding-top: 10vh;
}
.auth-header .logo_container {
        width: 80px;
        margin: 0 auto 0.0625rem;
    }
.auth-header .logo_container img {
            width: 100%;
            height: auto;
        }
.auth-header h1 {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 0.9375rem;
        color:white;
        /* background: linear-gradient(135deg, $color-primary 0%, #4d94ff 100%);*/
        /* -webkit-background-clip: text;*/
        /* -webkit-text-fill-color: transparent;*/
        /* background-clip: text;*/
    }
@media (max-width: 567px) {
.auth-header h1 {
            font-size: 2.25rem
    }
        }
.auth-header .auth-tagline {
        font-size: 1.125rem;
        color: white;
        opacity: 0.6;
        margin: 0;
        font-weight: 300;
        margin-bottom: 1.875rem;
    }
@media (max-width: 567px) {
.auth-header .auth-tagline {
            font-size: 1rem
    }
        }
.auth-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
    margin: 0 auto 0.4375rem;
    
    background: linear-gradient(135deg, #000 0%, #161616 100%);
    color: #ffffff;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.auth-button .button-text {
        font-size: 1.375rem;
        font-weight: 700;
        line-height: 1.2;
    }
.auth-button .button-subtitle {
        font-size: 0.875rem;
        font-weight: 400;
        opacity: 0.9;
    }
.auth-button:hover {
        transform: translateY(2px);
        /* box-shadow: 0 12px 32px rgba(1, 102, 255, 0.4);*/
    }
.auth-button:active {
        transform: translateY(0);
    }
@media (max-width: 567px) {
.auth-button {
        padding: 1.125rem 1.75rem
}
        
        .auth-button .button-text {
            font-size: 1.125rem;
        }
        
        .auth-button .button-subtitle {
            font-size: 0.8125rem;
        }
    }
/* ============================================*/
/* INFO BOX*/
/* ============================================*/
.info-box {
    background: rgba(#0166FF, 0.04);
    border: 1px solid rgba(#0166FF, 0.1);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dark .info-box {
        background: rgba(#0166FF, 0.08);
        border-color: rgba(#0166FF, 0.15);
    }
.info-box .info-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 0.9375rem;
        color: white;
        line-height: 1.5;
    }
@media (max-width: 567px) {
.info-box .info-item {
            font-size: 0.875rem
    }
        }
.info-box .info-icon {
        font-size: 1.25rem;
        flex-shrink: 0;
        display: none !important;
    }
@media (max-width: 567px) {
.info-box .info-icon {
            font-size: 1.125rem
    }
        }
/* ============================================*/
/* WALLET HEADER*/
/* ============================================*/
.wallet-header {
    background: var(--bg-primary);
    /* color: var(--text-primary);*/
    color: white;
    padding: 16px 32px;
    /* border-bottom: 1px solid var(--border-color);*/
    align-items: center;
    grid-gap: 24px;
    gap: 24px;
    
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    
}
@media (max-width: 567px) {
.wallet-header {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 12px 12px 0px;
        gap: 8px;
        position: sticky;
        top: 0;
        z-index: 10
    
}
    }
.wallet-header .logo-button {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        color: inherit;
        flex-shrink: 0;
        justify-self: start;
    }
.wallet-header .logo-button:hover {
            opacity: 0.8;
        }
.wallet-header h1 {
        font-size: 20px;
        margin: 0;
        font-weight: 800;
        flex-shrink: 0;
    }
@media (max-width: 567px) {
.wallet-header h1 {
            font-size: 1.25rem;
            font-size: 6vw
    }
        }
.wallet-header .hamburger {
        display: none;
        background: transparent;
        border: none;
        padding: 8px;
        cursor: pointer;
        color: white;
        margin-left: auto;
    }
@media (max-width: 567px) {
.wallet-header .hamburger {
            display: flex;
            align-items: center;
            justify-content: center
    }
        }
.wallet-header .hamburger:hover {
            opacity: 0.8;
        }
.header-nav {
    display: flex;
    gap: 4px;
    flex: 0;
}
@media (max-width: 567px) {
.header-nav {
        flex: 1 1 100%;
        order: 3;
        gap: 0;
        padding-top: 0;
        border-top: 1px solid var(--color-border);
        margin-top: 0;
        /* justify-content: space-between;*/
        align-items: center;
        transition: color 0s
}
    }
.header-nav .nav-tab {
        background: none;
        border: none;
        padding: 8px 16px;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-color-secondary);
        cursor: pointer;
        border-radius: 6px;
        transition: color 0.2s;
        white-space: nowrap;
        
        /* &.active {*/
        /*     color: var(--color-accent);*/
    }
.header-nav .nav-tab:hover, .header-nav .nav-tab.active {
            /* background: var(--item-hovered-bg);*/
            /* transition: color 0s;*/
            /* color: var(--text-color);*/

            text-decoration: underline;
            text-decoration-color: white;
            text-decoration-thickness:1.5px;
            text-underline-offset: 8px;
        }
/* Target first mobile tab (directly after desktop tabs) */
.header-nav .nav-tab.desktop-only + .mobile-only {
            padding-left: 0 !important;
        }
/* }*/
@media (max-width: 567px) {
.header-nav .nav-tab {
            flex: 0 0 auto;
            padding: 15px 12px 20px;
            font-size: 0.875rem;
            font-size: 4vw;
            text-align: center;
            background: none;
            border-bottom: 2px solid transparent;
            border-radius: 0;
            color: white !important;
            background: none !important
    }
                .header-nav .nav-tab.active span {
                    color: white;
                    text-decoration: underline;
                    text-decoration-color: white;
                    text-decoration-thickness:1.5px;
                    text-underline-offset: 8px;
                }
        }
/*     background: var(--item-hovered-bg);*/
@media (max-width: 567px) {
.header-nav .nav-tab.desktop-only {
                display: none
        }
            }
/* Desktop: hide mobile tabs*/
.header-nav .nav-tab.mobile-only {
            display: none;
        }
@media (max-width: 567px) {
.header-nav .nav-tab.mobile-only {
                display: flex
        }
            }
.header-nav .gear-tab {
        flex: 0 0 auto !important;
        min-width: 40px;
        margin-left: auto;
    }
.header-nav .gear-tab svg {
            width: 18px;
            height: 18px;
            fill: currentColor;
        }
@media (max-width: 567px) {
.header-nav .gear-tab {
            border-radius: 50% !important;
            padding: 8px !important;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            display: none !important
    }
        }
.header-nav .gear-tab.active {
            background: var(--color-accent) !important;
            color: white !important;
        }
.header-nav .gear-tab.active svg {
                fill: white;
            }
@media (max-width: 567px) {
.header-nav .gear-tab.active {
                border-bottom: none !important
        }
            }
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.9375rem;
    height: 35px;
    justify-self: end;
}
@media (max-width: 567px) {
.header-actions {
        gap: 8px
}
    }
.header-actions button {
        height: 100%;
        border: 1px solid rgba(255,255,255,0.2);
        transition: border-color 0.2s;
        cursor: pointer;
        display: inline-flex;
        color: white;
    }
.header-actions button:hover {
            border: 1px solid rgba(255,255,255,1);
        }
.header-actions .theme-toggle {
        background: transparent;
        color: white;
        padding: 0.4375rem 0.9375rem 0.5625rem 0.8125rem;
        font-size: 13px;
        border-radius: 6px;
        align-items: center;
        gap: 8px;
    }
@media (max-width: 567px) {
.header-actions .theme-toggle {
            display: none !important;
            width: 48px;
            height: 48px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none
    }
            
            .header-actions .theme-toggle span {
                display: none;
            }
        }
.header-actions .theme-toggle svg {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
        }
.header-actions .receive-button {
        display: none;
        width: 48px;
        height: 48px;
        padding: 0;
        align-items: center;
        justify-content: center;
        margin-right: -4.5px;
        border: none;
    }
@media (max-width: 567px) {
.header-actions .receive-button {
            /* display: inline-flex;*/
    }
        }
.header-actions .receive-button .receive-text {
            display: none;
        }
.header-actions .receive-button .receive-icon {
            display: none;
            width: 20px;
            height: 20px;
            display: block;
        }
.header-actions .receive-button .receive-icon svg {
                width: 20px;
                height: 20px;
                fill: currentColor;
                transform: translateY(1px);
            }
@media (max-width: 567px) {
.header-actions .receive-button .receive-icon svg {
                    width: 100%;
                    height: 100%;
                    fill:white
            }
                }
.header-actions .logout-button {
        background: transparent;
        
        padding: 0.4375rem 0.9375rem 0.5625rem;
        font-size: 13px;
        border-radius: 6px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        transition: border-color 0.2s, background 0.2s;
    }
.header-actions .logout-button:hover {
            /* color: #ff4444;*/
            /* background: var(--border-color);*/
            border: 1px solid rgba(255,255,255,1);
        }
@media (max-width: 567px) {
.header-actions .logout-button {
            width: 48px;
            height: 48px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: -4.5px;
            border: none;
            display: none !important
    }
        }
@media (max-width: 567px) {
.header-actions .logout-button .logout-text {
                display: none
        }
            }
.header-actions .logout-button .logout-icon {
            display: none;
        }
@media (max-width: 567px) {
.header-actions .logout-button .logout-icon {
                width: 20px;
                height: 20px;
                display: block
        }
            }
.header-actions .logout-button svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
            transform: translateY(1px);
        }
@media (max-width: 567px) {
.header-actions .logout-button svg {
                width: 100%;
                height: 100%;
                fill:white
        }
            }
/* Activity List*/
.activity-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 430px;
    padding-right: 10px;
}
@media(max-width: 567px) {
.activity-list {
        max-height: none;
        padding-right: 0
}
    }
.activity-list::-webkit-scrollbar {
        width: 8px;
    }
.activity-list::-webkit-scrollbar-track {
        background: transparent;
        border-radius: 4px;
    }
.activity-list::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 4px;
    }
.activity-list::-webkit-scrollbar-thumb:hover {
            background: #9ca3af;
        }
.activity-list .activity-item {
        display: flex;
        flex-direction: column;
        background: var(--item-bg);
        border-radius: 6px;
        border: 1px solid transparent;
        transition: border-color 0.2s, box-shadow 0.2s;
        
        /* GPU acceleration for smoother animations*/
        transform: translateZ(0);
        backface-visibility: hidden;
    }
.activity-list .activity-item.expanded {
            border-color: var(--item-expanded-border-color);
            box-shadow: 0 2px 8px rgba(1, 102, 255, 0.1);
        }
.activity-list .activity-item:hover .activity-row, .activity-list .activity-item.expanded .activity-row {
                background: var(--item-hovered-bg);
            }
.activity-list .activity-item:hover:not(.expanded) {
            border-color: var(--item-hovered-border-color);
        }
.activity-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
    transition: background 0.2s;
}
.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}
.activity-icon svg {
        width: 20px;
        height: 20px;
    }
.activity-icon.receive {
        /* background: #e8f5e9;*/
        background: rgba(76, 175, 80, 0.1);
    }
.activity-icon.receive svg { fill: #4caf50; }
.activity-icon.send {
        /* background: #fff3e0;*/
        background: rgba(255, 152, 0, 0.1);
    }
.activity-icon.send svg { fill: #ff9800; }
.activity-icon.swap {
        /* background: #e3f2fd;*/
        background: rgba(33, 150, 243, 0.1);
        padding: 6px;
    }
.activity-icon.swap svg { 
            fill: #2196f3;
            width: 20px;
            height: 20px;
        }
.activity-details {
    flex: 1;
    min-width: 0;
}
.activity-details.swap-details {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
.swap-detail-line {
    display: flex;
    align-items: center;
    gap: 6px;
}
.activity-main {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}
.swap-main {
    display: flex;
    align-items: center;
    gap: 5px;
}
.swap-icon {
    font-size: 14px;
    opacity: 0.7;
}
.swap-arrow {
    font-size: 14px;
    color: #666666;
    opacity: 0.6;
}
.swap-token-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    -o-object-fit: cover;
       object-fit: cover;
}
.swap-token-icon.from {
        display: none !important;
    }
.swap-received {
    font-size: 14px;
    font-weight: 600;
}
.swap-time {
    padding-top: 1px;
}
.swap-fiat-value {
    font-size: 0.75rem;
    font-weight: 400;
    color: #999;
    margin-left: auto;
}
.activity-type {
    font-size: 14px;
    font-weight: 500;
}
.activity-token {
    font-size: 11px;
    color: #666666;
    padding-top: 2.5px;
}
.activity-time {
    font-size: 12px;
    color: #999;
}
.activity-amount {
    font-weight: 600;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-end;
}
.activity-amount.positive {
        color: #34a853;
    }
.activity-amount.negative {
    }
.activity-amount.swap {
        font-size: 12px;
        color: #666666;
        gap: 6px;
    }
.activity-amount.swap .amount-with-fiat {
            display: flex;
            flex-direction: column;
            gap: 2px;
            align-items: flex-end;
        }
.activity-amount.swap .swap-out {
            font-size: 11px;
            color: #666;
        }
.activity-amount.swap .swap-in {
            font-size: 11px;
            color: #2ecc71;
        }
.activity-amount .amount-with-fiat {
        display: flex;
        flex-direction: column;
        gap: 2px;
        align-items: flex-end;
    }
.activity-amount .token-amount {
        font-size: 14px;
    }
.activity-amount .amount-fiat {
        font-size: 11px;
        color: #999;
        font-weight: 400;
    }
.activity-amount .usd-value {
        font-size: 11px;
        color: #999;
        margin-top: 2px;
        text-align: right;
    }
/* Expanded activity details*/
.activity-details-expanded {
    padding: 0.3125rem 16px 0.3125rem 16px;
    background: var(--item-details-bg);
    
    /* Performance optimizations for smooth animation*/
    will-change: height;
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout;
}
.activity-details-expanded .swap-expanded-details {
        padding: 0.75rem 0.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.625rem;
        text-align: right;
    }
.activity-details-expanded .swap-expanded-details .swap-spent {
            font-size: 0.8125rem;
            color: var(--text-color);
            margin-bottom: -1px;
        }
.activity-details-expanded .swap-expanded-details .swap-spent .swap-detail-token-icon {
                width: 16px;
                height: 16px;
                border-radius: 50%;
                -o-object-fit: cover;
                   object-fit: cover;
                vertical-align: middle;
                margin: 0 4px;
                margin-top: -1px;
                transform: translateY(-1px);
                display: inline-block;
                /* display: none !important;*/
            }
.activity-details-expanded .swap-expanded-details .swap-spent .swap-spent-fiat {
                color: #999;
                margin-left: 0.25rem;
            }
.activity-details-expanded .swap-expanded-details .swap-rate {
            font-size: 0.8125rem;
            color: var(--text-secondary);
        }
.activity-details-expanded .swap-expanded-details .swap-meta {
            font-size: 0.75rem;
            display: flex;
            gap: 0.375rem;
            align-items: center;
            justify-content: flex-end;
            color: var(--text-secondary);
        }
.activity-details-expanded .swap-expanded-details .swap-meta .swap-via {
                font-weight: 400;
                position: relative;
            }
.activity-details-expanded .swap-expanded-details .swap-meta .swap-via .dex-logo {
                    width: 0.875rem;
                    height: 0.875rem;
                    display: inline-block;
                    margin-right: 3px;
                    transform: translateY(2px);
                    position: absolute;
                    top: -2.5px;
                    left: -20px;
                    display: none !important;
                }
.activity-details-expanded .swap-expanded-details .swap-meta .swap-separator {
                opacity: 0.5;
            }
.activity-details-expanded .detail-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        gap: 16px;
    }
.activity-details-expanded .detail-row.detail-full-date {
            padding: 0.5625rem 0.6875rem 0.3125rem 0.5rem;
            justify-content: flex-end;
            opacity: 0.5;
        }
.activity-details-expanded .detail-row.detail-full-date span {
                font-size: 0.75rem;
                color: var(--text-secondary);
            }
.activity-details-expanded .detail-row.detail-links {
            padding-top: 0;
            padding-bottom: 0;
            justify-content: flex-start;
        }
.activity-details-expanded .detail-row.detail-links .detail-link:last-child {
                margin-left: auto;
            }
.activity-details-expanded .detail-value {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-color);
        text-align: right;
    }
.activity-details-expanded .detail-link {
        font-size: 0.75rem;
        color: var(--link-color);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
        text-align: right;
        padding: 0.625rem;
        padding-left: 8px;
    }
.activity-details-expanded .detail-link:hover {
            color: darken(#0166FF, 10%);
            text-decoration: underline;
        }
/* ============================================*/
/* BALANCE CARDS & ITEMS*/
/* ============================================*/
#balances_card .card_summary .label {

        }
#balances_card .card_summary .summary-item {
            
        }
.balance-list {
    margin-top: 24px;
}
.balance-list .balance-item {
        display: flex;
        flex-direction: column;
        background: var(--item-bg);
        position: relative;
        /* overflow: hidden;*/
        border-radius: 6px;
        border: 1px solid transparent;
        margin-bottom: 12px;
        transition: border-color 0.2s, box-shadow 0.2s;
        
        /* GPU acceleration for smoother animations*/
        transform: translateZ(0);
        backface-visibility: hidden;
    }
.balance-list .balance-item:hover:not(.empty-balance) .balance-row, .balance-list .balance-item.expanded .balance-row {
                background: var(--item-hovered-bg);
            }
.balance-list .balance-item:hover:not(.empty-balance):not(.expanded) {
            border-color: var(--item-hovered-border-color);
        }
.balance-list .balance-item.expanded {
            border-color: var(--item-expanded-border-color);
            box-shadow: 0 2px 8px rgba(1, 102, 255, 0.1);
            z-index: 10;
        }
@media (max-width: 567px) {
.balance-list .balance-item.empty-balance {
                background: rgba(255, 255, 255, 0.1)
        }
            }
.balance-list .balance-item.empty-balance .balance-row {
                cursor: default;
                opacity: 0.15;
            }
@media (max-width: 567px) {
.balance-list .balance-item.empty-balance .balance-row {
                    opacity: 0.3;
                    color:white
            }
                }
.balance-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.625rem;
    padding-right: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
    transition: background 0.2s;
}
.balance-row:hover:not(.empty-balance) {
        background: var(--balance-hover-bg);
    }
@media (max-width: 567px) {
.balance-row {
        padding: 12px
}
    }
.balance-row .token-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }
@media (max-width: 567px) {
.balance-row .token-info {
            gap: 8px
    }
        }
.balance-row .token-info .token-amount {
            font-size: 0.75rem;
           
        }
.balance-row .token-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }
@media (max-width: 567px) {
.balance-row .token-icon {
            width: 32px;
            height: 32px
    }
        }
.balance-row .token-details h3 {
            font-size: 1rem;
            font-weight: 600;
        }
@media (max-width: 567px) {
.balance-row .token-details h3 {
                font-size: 0.875rem
        }
            }
.balance-row .token-details p {
            font-size: 12px;
            color: #666666;
        }
.balance-row .token-balance {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
.balance-row .balance-amount {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
.balance-row .balance-amount .fiat-value {
            font-size: 18px;
            font-weight: 600;
        }
@media (max-width: 567px) {
.balance-row .balance-amount .fiat-value {
                font-size: 16px
        }
            }
.balance-row .balance-amount .price-change {
            font-size: 12px;
            font-weight: 500;
            padding-top: 2px;
        }
.balance-row .balance-amount .price-change.positive {color: #10b981;}
.balance-row .balance-amount .price-change.negative {color: #ef4444;}
@media (max-width: 567px) {
.balance-row .balance-amount .price-change {
                font-size: 11px
        }
            }
.usd-value {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    margin-left: 8px;
}
.balance-total {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e0e0e0;
}
.total-label {
    font-size: 14px;
    color: #666666;
    font-weight: 500;
}
.total-amount {
    font-size: 15px;
    font-weight: 700;
    color: #34a853;
}
.balance-actions {
    display: flex;
    gap: 8px;
    padding: 16px 16px;
    background: var(--item-details-bg);
    /* border-top: 1px solid var(--border-color);*/
}
.balance-actions .action-btn {
        flex: 1;
        background: var(--modal-bg);
        color: var(--text-color);
        border: 1px solid var(--border-color);
        padding: 10px 20px;
        font-size: 14px;
        font-weight: 500;
        
        cursor: pointer;
        border-radius: 4px;
        transition: all 0.15s ease;
    }
.balance-actions .action-btn:hover {
            background: var(--balance-hover-bg);
            border-color: var(--text-color);
        }
.balance-actions .action-btn:active {
            background: var(--balance-active-bg);
            transform: scale(0.98);
        }
@media (max-width: 567px) {
.balance-actions .action-btn {
            padding: 12px 20px;
            font-size: 15px
    }
        }
/* Inline Send Form & Swap Form*/
.balance-send-form,
.balance-swap-form {
    padding: 15px;
    background: var(--item-details-bg);
}
.balance-send-form form, .balance-swap-form form {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
.balance-send-form .swap-field .label-wrapper, .balance-swap-form .swap-field .label-wrapper {
            min-width: 100px;
        }
.balance-send-form .send-field .label-wrapper, .balance-swap-form .send-field .label-wrapper {
            min-width: 70px;
        }
.balance-send-form .swap-field,
    .balance-send-form .send-field,
    .balance-swap-form .swap-field,
    .balance-swap-form .send-field {
        display: flex;
        align-items: flex-start;
    }
/* gap: $spacing-sm;*/
.balance-send-form .swap-field .label-wrapper, .balance-send-form .send-field .label-wrapper, .balance-swap-form .swap-field .label-wrapper, .balance-swap-form .send-field .label-wrapper {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            justify-content: center;
            gap: 2px;
            flex-shrink: 0;
            padding-right: 0.625rem;
            min-height: 44px;
        }
.balance-send-form .swap-field .label-wrapper.label-wrapper-amount, .balance-send-form .send-field .label-wrapper.label-wrapper-amount, .balance-swap-form .swap-field .label-wrapper.label-wrapper-amount, .balance-swap-form .send-field .label-wrapper.label-wrapper-amount {
            min-height: 40px;
        }
.balance-send-form .swap-field label, .balance-send-form .send-field label, .balance-swap-form .swap-field label, .balance-swap-form .send-field label {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-color);
            text-align: right;
            -webkit-user-select: none;
               -moz-user-select: none;
                    user-select: none;
        }
.balance-send-form .swap-field .input-fiat-value, .balance-send-form .send-field .input-fiat-value, .balance-swap-form .swap-field .input-fiat-value, .balance-swap-form .send-field .input-fiat-value {
            font-size: 12px;
            color: var(--text-color-secondary);
            font-weight: 400;
            text-align: right;
        }
.balance-send-form .swap-field .swap-field-input:not(.amount-grid),
        .balance-send-form .swap-field .send-field-input:not(.amount-grid),
        .balance-send-form .send-field .swap-field-input:not(.amount-grid),
        .balance-send-form .send-field .send-field-input:not(.amount-grid),
        .balance-swap-form .swap-field .swap-field-input:not(.amount-grid),
        .balance-swap-form .swap-field .send-field-input:not(.amount-grid),
        .balance-swap-form .send-field .swap-field-input:not(.amount-grid),
        .balance-swap-form .send-field .send-field-input:not(.amount-grid) {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
/* Align ContactSelect width with send actions*/
.balance-send-form .swap-field .swap-field-input:not(.amount-grid) :global(.contact-select-input-wrapper), .balance-send-form .swap-field .send-field-input:not(.amount-grid) :global(.contact-select-input-wrapper), .balance-send-form .send-field .swap-field-input:not(.amount-grid) :global(.contact-select-input-wrapper), .balance-send-form .send-field .send-field-input:not(.amount-grid) :global(.contact-select-input-wrapper), .balance-swap-form .swap-field .swap-field-input:not(.amount-grid) :global(.contact-select-input-wrapper), .balance-swap-form .swap-field .send-field-input:not(.amount-grid) :global(.contact-select-input-wrapper), .balance-swap-form .send-field .swap-field-input:not(.amount-grid) :global(.contact-select-input-wrapper), .balance-swap-form .send-field .send-field-input:not(.amount-grid) :global(.contact-select-input-wrapper) {
                width: 100%;
            }
/* Recipient input with paste button*/
.balance-send-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper, .balance-send-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper, .balance-send-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper, .balance-send-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper, .balance-swap-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper, .balance-swap-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper, .balance-swap-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper, .balance-swap-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper {
                position: relative;
                width: 100%;
            }
.balance-send-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input, .balance-send-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input, .balance-send-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input, .balance-send-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input, .balance-swap-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input, .balance-swap-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input, .balance-swap-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input, .balance-swap-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input {
                    width: 100%;
                    padding: 12px;
                    padding-right: 48px;
                    border: 1px solid var(--border-color);
                    border-radius: 4px;
                    background: var(--modal-bg);
                    color: var(--text-color);
                    font-size: 14px;
                    transition: border-color 0.2s;
                }
.balance-send-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input:focus, .balance-send-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input:focus, .balance-send-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input:focus, .balance-send-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input:focus, .balance-swap-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input:focus, .balance-swap-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input:focus, .balance-swap-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input:focus, .balance-swap-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input:focus {
                        outline: none;
                        border-color: var(--color-accent);
                        box-shadow: 0 0 0 3px rgba(1, 102, 255, 0.1);
                    }
.balance-send-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input::-moz-placeholder, .balance-send-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input::-moz-placeholder, .balance-send-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input::-moz-placeholder, .balance-send-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input::-moz-placeholder, .balance-swap-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input::-moz-placeholder, .balance-swap-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input::-moz-placeholder, .balance-swap-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input::-moz-placeholder, .balance-swap-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input::-moz-placeholder {
                        color: #666666;
                        font-size:90%;
                    }
.balance-send-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input::placeholder, .balance-send-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input::placeholder, .balance-send-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input::placeholder, .balance-send-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input::placeholder, .balance-swap-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input::placeholder, .balance-swap-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input::placeholder, .balance-swap-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input::placeholder, .balance-swap-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .recipient-input::placeholder {
                        color: #666666;
                        font-size:90%;
                    }
.balance-send-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste, .balance-send-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste, .balance-send-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste, .balance-send-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste, .balance-swap-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste, .balance-swap-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste, .balance-swap-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste, .balance-swap-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste {
                    position: absolute;
                    right: 8px;
                    top: 50%;
                    transform: translateY(-50%);
                    width: 32px;
                    height: 32px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border: none;
                    background: none;
                    color: var(--color-accent);
                    cursor: pointer;
                    border-radius: 4px;
                    transition: background 0.2s;
                }
.balance-send-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste:hover, .balance-send-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste:hover, .balance-send-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste:hover, .balance-send-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste:hover, .balance-swap-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste:hover, .balance-swap-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste:hover, .balance-swap-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste:hover, .balance-swap-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste:hover {
                        background: rgba(1, 102, 255, 0.1);
                    }
.balance-send-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste svg, .balance-send-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste svg, .balance-send-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste svg, .balance-send-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste svg, .balance-swap-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste svg, .balance-swap-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste svg, .balance-swap-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste svg, .balance-swap-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .btn-paste svg {
                        fill: currentColor;
                    }
.balance-send-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown, .balance-send-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown, .balance-send-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown, .balance-send-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown, .balance-swap-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown, .balance-swap-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown, .balance-swap-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown, .balance-swap-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown {
                    position: absolute;
                    top: calc(100% + 4px);
                    left: 0;
                    right: 0;
                    max-height: 200px;
                    overflow-y: auto;
                    background: #ffffff;
                    border: 1px solid var(--border-color);
                    border-radius: 4px;
                    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
                    z-index: 1000;
                }
.balance-send-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item, .balance-send-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item, .balance-send-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item, .balance-send-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item, .balance-swap-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item, .balance-swap-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item, .balance-swap-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item, .balance-swap-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item {
                        width: 100%;
                        display: block;
                        padding: 0.75rem 1rem;
                        border: none;
                        background: none;
                        text-align: left;
                        cursor: pointer;
                        transition: background 0.15s;
                        border-bottom: 1px solid var(--border-color);
                    }
.balance-send-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item:last-child, .balance-send-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item:last-child, .balance-send-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item:last-child, .balance-send-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item:last-child, .balance-swap-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item:last-child, .balance-swap-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item:last-child, .balance-swap-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item:last-child, .balance-swap-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item:last-child {
                            border-bottom: none;
                        }
.balance-send-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item:hover, .balance-send-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item:hover, .balance-send-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item:hover, .balance-send-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item:hover, .balance-swap-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item:hover, .balance-swap-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item:hover, .balance-swap-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item:hover, .balance-swap-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item:hover {
                            background: var(--balance-hover-bg);
                        }
.balance-send-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item .contact-nickname, .balance-send-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item .contact-nickname, .balance-send-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item .contact-nickname, .balance-send-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item .contact-nickname, .balance-swap-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item .contact-nickname, .balance-swap-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item .contact-nickname, .balance-swap-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item .contact-nickname, .balance-swap-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item .contact-nickname {
                            font-size: 14px;
                            font-weight: 500;
                            color: var(--text-color);
                            margin-bottom: 0.25rem;
                        }
.balance-send-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item .contact-principal, .balance-send-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item .contact-principal, .balance-send-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item .contact-principal, .balance-send-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item .contact-principal, .balance-swap-form .swap-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item .contact-principal, .balance-swap-form .swap-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item .contact-principal, .balance-swap-form .send-field .swap-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item .contact-principal, .balance-swap-form .send-field .send-field-input:not(.amount-grid) .recipient-input-wrapper .contacts-dropdown .contact-item .contact-principal {
                            font-size: 12px;
                            color: var(--text-secondary);
                            font-family: monospace;
                        }
.balance-send-form .swap-field .amount-row, .balance-send-form .send-field .amount-row, .balance-swap-form .swap-field .amount-row, .balance-swap-form .send-field .amount-row {
            display: flex;
            gap: 6px;
        }
.balance-send-form .swap-field input, .balance-send-form .send-field input, .balance-swap-form .swap-field input, .balance-swap-form .send-field input {
            flex: 1;
            padding: 12px;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            background: var(--modal-bg);
            color: var(--text-color);
            font-size: 14px;
            transition: border-color 0.2s;
        }
.balance-send-form .swap-field input:focus:not(.amount-slider), .balance-send-form .send-field input:focus:not(.amount-slider), .balance-swap-form .swap-field input:focus:not(.amount-slider), .balance-swap-form .send-field input:focus:not(.amount-slider) {
                outline: none;
                border-color: var(--color-accent);
            }
.balance-send-form .swap-field input::-moz-placeholder, .balance-send-form .send-field input::-moz-placeholder, .balance-swap-form .swap-field input::-moz-placeholder, .balance-swap-form .send-field input::-moz-placeholder {
                color: #666666;
            }
.balance-send-form .swap-field input::placeholder, .balance-send-form .send-field input::placeholder, .balance-swap-form .swap-field input::placeholder, .balance-swap-form .send-field input::placeholder {
                color: #666666;
            }
.balance-send-form .amount-grid, .balance-swap-form .amount-grid {
        /* display: grid;*/
        grid-template-columns: 1fr auto;
        -moz-column-gap: 8px;
             column-gap: 8px;
        row-gap: 8px;
        align-items: start;
        width: 100%;
    }
.balance-send-form .amount-grid .amount-text-input, .balance-swap-form .amount-grid .amount-text-input {
            padding: 10px;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            background: var(--modal-bg);
            color: var(--text-color);
            font-size: 14px;
            transition: border-color 0.2s;
            width: 135px;
            /* max-width: 150px;*/
        }
.balance-send-form .amount-grid .amount-text-input:focus, .balance-swap-form .amount-grid .amount-text-input:focus {
                outline: none;
                border-color: var(--color-accent);
            }
.balance-send-form .amount-grid .amount-text-input::-moz-placeholder, .balance-swap-form .amount-grid .amount-text-input::-moz-placeholder {
                color: #666666;
            }
.balance-send-form .amount-grid .amount-text-input::placeholder, .balance-swap-form .amount-grid .amount-text-input::placeholder {
                color: #666666;
            }
.balance-send-form .amount-grid .btn-max, .balance-swap-form .amount-grid .btn-max {
            padding: 12px 20px;
            background: var(--modal-bg);
            color: var(--color-accent);
            border: 1px solid var(--color-accent);
            border-radius: 4px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
            justify-self: end;
        }
.balance-send-form .amount-grid .btn-max:hover, .balance-swap-form .amount-grid .btn-max:hover {
                background: var(--color-accent);
                color: var(--modal-bg);
            }
.balance-send-form .amount-grid .alternative-slider, .balance-swap-form .amount-grid .alternative-slider {
            margin-top: 0.875rem;
            padding: 8px 0;
            
        }
.balance-send-form .amount-grid .alternative-slider .rangeSlider, .balance-swap-form .amount-grid .alternative-slider .rangeSlider {
                margin-top: 0;
                margin-bottom: 0;
                margin-left: 0.3125rem;
                font-size: 0.5rem;
                --slider-accent: var(--color-accent) !important;
                --handle: var(--color-accent) !important;
                /* @media (--m) {*/
                /*     width: 100%;*/
                /*     min-width: 200px;*/
                /* }*/
                /*    --range-range: var(--color-accent) !important;*/
                /*    --handle-focus: var(--color-accent) !important;*/
            }
/* aura*/
.balance-send-form .amount-grid .alternative-slider .rangeSlider .rangeFloat, .balance-swap-form .amount-grid .alternative-slider .rangeSlider .rangeFloat { 
                    font-size: 0.75rem;
                    translate: -150% 120% 0.01px !important;
                }
.balance-send-form .amount-grid .alternative-slider .rangeSlider .rangeHandle:hover::before, .balance-swap-form .amount-grid .alternative-slider .rangeSlider .rangeHandle:hover::before {
                    box-shadow: 0 0 0 6px var(--color-accent) !important;
                }
.balance-send-form .amount-grid .alternative-slider .rangeSlider .rangeHandle.rsPress:hover::before, .balance-swap-form .amount-grid .alternative-slider .rangeSlider .rangeHandle.rsPress:hover::before {
                    box-shadow: 0 0 0 8px var(--color-accent) !important;
                }
/* Make the clickable zone taller than the visual bar */
.balance-send-form .amount-grid .alternative-slider .rangeSlider::before, .balance-swap-form .amount-grid .alternative-slider .rangeSlider::before {
                    content: '';
                    position: absolute;
                    top: -12px;      /* Expand upward */
                    bottom: -12px;   /* Expand downward */
                    left: 0;
                    right: 0;
                    /* Invisible but clickable */
                }
.balance-send-form .send-error, .balance-swap-form .send-error {
        padding: 8px;
        background: rgba(244, 67, 54, 0.1);
        border: 1px solid rgba(244, 67, 54, 0.3);
        border-radius: 4px;
        color: #f44336;
        font-size: 13px;
    }
.balance-send-form .swap-available, .balance-swap-form .swap-available {
        font-size: 13px;
        color: var(--text-color-secondary);
        margin-top: -4px;
        padding-left: 80px;
    }
.balance-send-form .swap-to-section, .balance-swap-form .swap-to-section {
        padding: 0.3125rem 16px 0.3125rem;
        background: var(--modal-bg);
        border: 1px solid var(--border-color);
        border-radius: 4px;
        position: relative;
    }
.balance-send-form .swap-to-section .swap-detail-row, .balance-swap-form .swap-to-section .swap-detail-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.625rem 0;
            margin-bottom: 0;
        }
.balance-send-form .swap-to-section .swap-detail-row:not(:last-child), .balance-swap-form .swap-to-section .swap-detail-row:not(:last-child) {
                border-bottom: 1px solid var(--border-color);
            }
.balance-send-form .swap-to-section .swap-detail-row.swap-to-row, .balance-swap-form .swap-to-section .swap-detail-row.swap-to-row {
                display: flex;
                align-items: center;
                gap: 8px;
                margin-bottom: 2px;
                position: relative;
            }
.balance-send-form .swap-to-section .swap-detail-row.swap-to-row .label, .balance-swap-form .swap-to-section .swap-detail-row.swap-to-row .label {
                    font-size: 13px;
                    color: var(--text-color-secondary);
                    min-width: auto;
                    flex-shrink: 0;
                }
.balance-send-form .swap-to-section .swap-detail-row.swap-to-row .swap-estimate-values, .balance-swap-form .swap-to-section .swap-detail-row.swap-to-row .swap-estimate-values {
                    display: flex;
                    flex-direction: column;
                    padding-left: 10px;
                    padding-right: 0px;
                    gap: 3px;
                    flex: 1;
                }
.balance-send-form .swap-to-section .swap-detail-row.swap-to-row .swap-estimate-values .value, .balance-swap-form .swap-to-section .swap-detail-row.swap-to-row .swap-estimate-values .value {
                        font-size: 14px;
                        font-weight: 500;
                        color: var(--text-color);
                        text-align: right;
                    }
.balance-send-form .swap-to-section .swap-detail-row.swap-to-row .swap-estimate-values .value-fiat, .balance-swap-form .swap-to-section .swap-detail-row.swap-to-row .swap-estimate-values .value-fiat {
                        font-size: 12px;
                        color: var(--text-color-secondary);
                        text-align: right;
                    }
.balance-send-form .swap-to-section .swap-detail-row.swap-to-row .value, .balance-swap-form .swap-to-section .swap-detail-row.swap-to-row .value {
                    font-size: 14px;
                    font-weight: 500;
                    color: var(--text-color);
                    flex: 1;
                }
.balance-send-form .swap-to-section .swap-detail-row .label, .balance-swap-form .swap-to-section .swap-detail-row .label {
                font-size: 13px;
                color: var(--text-color-secondary);
                min-width: 100px;
                flex-shrink: 0;
            }
.balance-send-form .swap-to-section .swap-detail-row .value, .balance-swap-form .swap-to-section .swap-detail-row .value {
                font-size: 14px;
                font-weight: 500;
                color: var(--text-color);
                
            }
.balance-send-form .swap-to-section .swap-detail-row .value.fee, .balance-swap-form .swap-to-section .swap-detail-row .value.fee {
                    color: var(--text-color-secondary);
                }
.balance-send-form .swap-to-section .swap-detail-row .price-impact, .balance-swap-form .swap-to-section .swap-detail-row .price-impact {
                color: var(--color-accent);
            }
.balance-send-form .swap-to-section .swap-detail-row .price-impact.rate-warning, .balance-swap-form .swap-to-section .swap-detail-row .price-impact.rate-warning {
                    color: #ff9800;
                }
.balance-send-form .swap-to-section .swap-detail-row .price-impact.rate-critical, .balance-swap-form .swap-to-section .swap-detail-row .price-impact.rate-critical {
                    color: #dc3545;
                    font-weight: 600;
                }
.balance-send-form .swap-to-section .swap-detail-row .price-impact .summary-toggle, .balance-swap-form .swap-to-section .swap-detail-row .price-impact .summary-toggle {
                    margin-left: 8px;
                    font-size: 10px;
                    opacity: 0.6;
                    transition: opacity 0.2s;
                }
.balance-send-form .swap-to-section .swap-summary-wrapper, .balance-swap-form .swap-to-section .swap-summary-wrapper {
            padding-top: 0.625rem;
            padding-bottom: 0.625rem;
        }
.balance-send-form .swap-to-section .swap-summary-wrapper .swap-summary-box, .balance-swap-form .swap-to-section .swap-summary-wrapper .swap-summary-box {
                padding: 0.375rem 0.75rem 0.3125rem;
                background: var(--item-details-bg);
                border: 1px solid var(--border-color);
                border-radius: 4px;
            }
.balance-send-form .swap-to-section .summary-dex-winner-line, .balance-swap-form .swap-to-section .summary-dex-winner-line {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: var(--text-secondary);
            padding: 4px 0 12px;
        }
.balance-send-form .swap-to-section .summary-dex-winner-line .dex-icon-label, .balance-swap-form .swap-to-section .summary-dex-winner-line .dex-icon-label {
                display: flex;
                align-items: center;
                gap: 6px;
            }
.balance-send-form .swap-to-section .summary-dex-winner-line .dex-icon-label img, .balance-swap-form .swap-to-section .summary-dex-winner-line .dex-icon-label img {
                    width: 15px;
                    height: 15px;
                }
.balance-send-form .swap-to-section .summary-dex-winner-line .dex-difference, .balance-swap-form .swap-to-section .summary-dex-winner-line .dex-difference {
                margin-left: 8px;
                font-weight: 500;
                color:var(--color-accent);
                align-self: center;
            }
.balance-send-form .swap-to-section .kongswap-pool-and-hops-wrapper, .balance-swap-form .swap-to-section .kongswap-pool-and-hops-wrapper {

        }
.balance-send-form .swap-to-section .kongswap-hops, .balance-swap-form .swap-to-section .kongswap-hops {
            font-size: 10px;
            font-weight: 500;
            opacity: 0.5;
            color: var(--text-color-secondary);
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-color);
        }
.balance-send-form .swap-to-section .kongswap-hops span:not(:first-child)::before, .balance-swap-form .swap-to-section .kongswap-hops span:not(:first-child)::before {
                content: "▾";
                margin-right: 0.3125rem;
                margin-left: 0.3125rem;
            }
.balance-send-form .swap-to-section .kongswap-pool-fee,
        .balance-send-form .swap-to-section .icpswap-pool-fee,
        .balance-send-form .swap-to-section .summary-transfer-fees,
        .balance-swap-form .swap-to-section .kongswap-pool-fee,
        .balance-swap-form .swap-to-section .icpswap-pool-fee,
        .balance-swap-form .swap-to-section .summary-transfer-fees {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 0;
            margin: 0.5rem 0;
            border-bottom: 1px solid var(--border-color);
            font-size: 11px;
        }
.balance-send-form .swap-to-section .kongswap-pool-fee .fee-label, .balance-send-form .swap-to-section .icpswap-pool-fee .fee-label, .balance-send-form .swap-to-section .summary-transfer-fees .fee-label, .balance-swap-form .swap-to-section .kongswap-pool-fee .fee-label, .balance-swap-form .swap-to-section .icpswap-pool-fee .fee-label, .balance-swap-form .swap-to-section .summary-transfer-fees .fee-label {
                color: var(--text-color-secondary);
                font-weight: 500;
            }
.balance-send-form .swap-to-section .kongswap-pool-fee .fee-value, .balance-send-form .swap-to-section .icpswap-pool-fee .fee-value, .balance-send-form .swap-to-section .summary-transfer-fees .fee-value, .balance-swap-form .swap-to-section .kongswap-pool-fee .fee-value, .balance-swap-form .swap-to-section .icpswap-pool-fee .fee-value, .balance-swap-form .swap-to-section .summary-transfer-fees .fee-value {
                color: var(--text-color);
                font-family: monospace;
            }
.balance-send-form .swap-to-section .summary-total, .balance-swap-form .swap-to-section .summary-total {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.625rem 0;
            margin-top: 0rem;
            padding-top: 0.625rem;
            padding-bottom: 0;
            border-top: 1px solid var(--border-color);
            font-size: 12px;
        }
.balance-send-form .swap-to-section .summary-total .total-label, .balance-swap-form .swap-to-section .summary-total .total-label {
                color: var(--text-color);
                font-weight: 600;
            }
.balance-send-form .swap-to-section .summary-total .total-value, .balance-swap-form .swap-to-section .summary-total .total-value {
                color: var(--text-color);
                font-weight: 600;
                font-family: monospace;
            }
.send-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.send-actions button {
        /* flex: 1;*/
        padding: 12px 10px;
        font-size: 14px;
        font-weight: 500;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.2s;
    }
.send-actions button:disabled,
        .send-actions button[aria-disabled="true"] {
            opacity: 0.6;
            cursor: not-allowed;
        }
.send-actions .btn-cancel {
        min-width: 80px;
        background: var(--modal-bg);
        color: var(--text-color);
        border: 1px solid var(--border-color);
    }
.send-actions .btn-cancel:hover:not(:disabled) {
            background: var(--balance-hover-bg);
            border-color: var(--text-color);
        }
.send-actions .btn-send {
        flex:1;
        background: var(--color-accent);
        color: #ffffff;
        border: 1px solid var(--color-accent);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
.send-actions .btn-send:hover:not(:disabled):not([aria-disabled="true"]) {
            background: oklch(from var(--color-accent) calc(l * 0.9) c h);
        }
.send-actions .btn-send.error {
            background: #dc3545;
            border-color: #dc3545;
            cursor: not-allowed;
        }
.send-actions .btn-send .button-spinner {
            display: inline-block;
            width: 14px;
            height: 14px;
            flex-shrink: 0;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: #ffffff;
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
        }
.send-actions .btn-save-contact {
        flex: 1;
        background: var(--modal-bg);
        color: var(--text-color);
        border: 1px solid var(--border-color);
    }
.send-actions .btn-save-contact:hover:not(:disabled) {
            background: var(--balance-hover-bg);
            border-color: var(--text-color);
        }
.send-actions .btn-done {
        flex: 1;
        background: var(--color-accent);
        color: #ffffff;
        border: 1px solid var(--color-accent);
    }
.send-actions .btn-done:hover:not(:disabled) {
            background: oklch(from var(--color-accent) calc(l * 0.9) c h);
        }
.send-success {
    padding: 1.25rem 0;
    text-align: center;
}
.send-success .success-icon {
        font-size: 48px;
        color: #28a745;
        margin-bottom: 0.75rem;
        line-height: 1;
    }
.send-success .success-message {
        font-size: 14px;
        color: var(--text-color);
        line-height: 1.5;
        word-break: break-all;
    }
/* glob: no files matched */
/* Orders List*/
.orders-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
.orders-list .order-item {
        width: 100%;
        display: flex;
        flex-direction: column;
        background: var(--item-bg);
        border-radius: 6px;
        overflow: hidden;
        border: 1px solid transparent;
        margin-bottom: 12px;
        transition: border-color 0.2s, box-shadow 0.2s;
        
        /* GPU acceleration for smoother animations*/
        transform: translateZ(0);
        backface-visibility: hidden;
        
    }
.orders-list .order-item:hover .order-row, .orders-list .order-item.expanded .order-row {
                background: var(--item-hovered-bg);
            }
.orders-list .order-item:hover {
            border-color: var(--item-hovered-border-color);
        }
.orders-list .order-item.expanded {
            border-color: var(--item-expanded-border-color);
            box-shadow: 0 2px 8px rgba(1, 102, 255, 0.1);
        }
.orders-list .order-row {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 12px;
        cursor: pointer;
        background: transparent;
        border: none;
        text-align: left;
        transition: background 0.2s;
    }
.order-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.order-number {
    font-size: 14px;
    font-weight: 600;
}
.order-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}
.order-status.status-pending {
        background: #fff3e0;
        color: #f57c00;
    }
.order-status.status-confirmed {
        background: #e8f5e9;
        color: #2e7d32;
    }
.order-status.status-refunded {
        background: #fce4ec;
        color: #c2185b;
    }
.order-details {
    font-size: 13px;
    color: #666666;
    margin-bottom: 4px;
    text-align: left;
}
.order-time {
    font-size: 12px;
    color: #999;
    text-align: left;
}
.order-amount {
    text-align: right;
}
.order-total {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}
.order-fiat-value {
    font-size: 13px;
    color: #999;
}
.order-site {
    display: inline-block;
    margin-bottom: 1px;
}
/* Expanded order details*/
.order-details-expanded {
    padding: 0.3125rem 16px 0.3125rem 16px;
    background: var(--item-details-bg);
    
    /* Performance optimizations for smooth animation*/
    will-change: height;
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout;
}
.order-details-expanded .detail-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        gap: 16px;
    }
.order-details-expanded .detail-row.detail-full-date {
            padding: 0.5625rem 0.6875rem 0.3125rem 0.5rem;
            justify-content: flex-end;
            opacity: 0.5;
        }
.order-details-expanded .detail-row.detail-full-date span {
                font-size: 0.75rem;
                color: var(--text-secondary);
            }
.order-details-expanded .detail-row.detail-row-full {
            padding-top: 0rem;
            flex-direction: column;
            align-items: flex-start;
        }
.order-details-expanded .detail-row.detail-links {
            padding-top: 0;
            padding-bottom: 0;
            justify-content: flex-start;
        }
.order-details-expanded .detail-row.detail-links .detail-link:last-child {
                margin-left: auto;
            }
.order-details-expanded .detail-label {
        font-size: 12px;
        font-weight: 500;
        color: #666666;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
.order-details-expanded .detail-value {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-color);
        text-align: right;
    }
.order-details-expanded .detail-link {
        font-size: 0.75rem;
        color: var(--link-color);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
        text-align: right;
        padding: 0.625rem;
        padding-left: 8px;
        -webkit-user-select: none;
           -moz-user-select: none;
                user-select: none;
    }
.order-details-expanded .detail-link:hover {
            color: darken(#0166FF, 10%);
            text-decoration: underline;
        }
.order-details-expanded .line-items-list {
        width: 100%;
        margin-top: 8px;
    }
.order-details-expanded .line-items-list .line-item {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 8px;
            background: var(--modal-bg);
            border-radius: 4px;
            margin-bottom: 8px;
        }
.order-details-expanded .line-items-list .line-item:last-child {
                margin-bottom: 0;
            }
.order-details-expanded .line-items-list .line-item-details {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
.order-details-expanded .line-items-list .line-item-name {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-color);
        }
.order-details-expanded .line-items-list .line-item-variant,
        .order-details-expanded .line-items-list .line-item-sku {
            font-size: 12px;
            color: #666666;
        }
.order-details-expanded .line-items-list .line-item-pricing {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 500;
        }
.order-details-expanded .line-items-list .line-item-qty {
            color: #666666;
        }
.order-details-expanded .line-items-list .line-item-price {
            color: var(--text-color);
        }
/* glob: no files matched */
.currency-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 12px;
    gap: 12px;
    margin-bottom: 24px;
  }
@media (max-width: 1024px) {
.currency-options {
      grid-template-columns: repeat(3, 1fr)
  }
    }
@media (max-width: 567px) {
.currency-options {
      grid-template-columns: repeat(2, 1fr)
  }
    }
.currency-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--item-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    /* min-height: 100px;*/
  }
.currency-option:hover {
      background: var(--item-hovered-bg);
      border-color: var(--accent-color);
    }
.currency-option.active {
      background: var(--item-hovered-bg);
      border-color: var(--accent-color);
      box-shadow: 0 0 0 1px var(--accent-color);
    }
.currency-flag {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
.currency-flag img {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      -o-object-fit: cover;
         object-fit: cover;
    }
.currency-info {
    width: 100%;
  }
.currency-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 2px;
  }
.more-currencies-toggle {
    width: 100%;
    padding: 12px 4px;
    margin-top: 32px;
    margin-bottom: 10px;
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
  }
.more-currencies-toggle:hover {
      color: var(--color-text);
    }
.more-currencies-toggle .chevron {
      width: 12px;
      height: 12px;
      opacity: 0.6;
      transition: transform 0.2s ease;
      display: flex;
      align-items: center;
      transform: translateY(1px);

    }
.more-currencies-toggle .chevron.rotated {
        transform: translateY(1px) rotate(180deg);
      }
.region-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 4px;
  }
.region-button {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: var(--item-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
  }
.region-button:hover {
      background: var(--item-hovered-bg);
      border-color: var(--accent-color);
      color: var(--color-text);
    }
.region-button.active {
      background: var(--item-hovered-bg);
      border-color: var(--accent-color);
      color: var(--accent-color);
      font-weight: 600;
      box-shadow: 0 0 0 1px var(--accent-color);
    }
.checkmark {
    color: var(--accent-color);
    position: absolute;
    top: 8px;
    right: 8px;
  }
/* ============================================*/
/* SETTINGS PAGE*/
/* ============================================*/
.settings-page {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-gap: 32px;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
    min-height: calc(100vh - 120px);
}
@media (max-width: 1226px) {
.settings-page {
        grid-template-columns: 200px 1fr;
        gap: 24px;
        padding: 24px
}
    }
@media (max-width: 567px) {
.settings-page {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 0
}
    }
/* Sidebar Navigation*/
@media (max-width: 567px) {
.settings-sidebar {
        display: none
}
    }
.settings-nav {
    padding-top: 0.9375rem;
    padding-bottom: 0.9375rem;
    position: sticky;
    top: 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--card-bg);
    border: 1px solid var(--color-border);
    border-radius: 2.5rem;
    corner-shape: squircle;
    overflow: hidden;
}
@media (max-width: 567px) {
.settings-nav {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px
}
    }
.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--text-color-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
}
.settings-nav-item .nav-icon {
        flex-shrink: 0;
        opacity: 0.7;
        transition: opacity 0.2s;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
    }
.settings-nav-item .nav-icon svg {
            width: 100%;
            height: 100%;
        }
.settings-nav-item span {
        flex: 1;
    }
.settings-nav-item:hover {
        background: var(--item-hovered-bg);
        border-color: var(--color-accent);
        color: var(--text-color);
    }
.settings-nav-item:hover .nav-icon {
            opacity: 1;
        }
.settings-nav-item.active {
        background: var(--item-hovered-bg);
        border-color: var(--color-accent);
        color: var(--color-accent);
    }
.settings-nav-item.active .nav-icon {
            opacity: 1;
        }
.settings-nav-item.active .nav-icon svg {
                stroke: var(--color-accent);
                fill: var(--color-accent);
            }
@media (max-width: 567px) {
.settings-nav-item {
        padding: 10px 14px;
        font-size: 13px
}
    }
.btn-add-contact,
.btn-add-invite {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-add-contact:hover, .btn-add-invite:hover {
        opacity: 0.9;
    }
/* Main Content*/
.settings-content {
    min-width: 0;
}
.settings-section {
    background: var(--card-bg);
    border: 1px solid var(--color-border);
    border-radius: 2.5rem;
    corner-shape: squircle;
    padding: 32px;
}
@media (max-width: 567px) {
.settings-section {
        padding: 24px
}
    }
.section-header {
    margin-bottom: 32px;
    /* padding-bottom: $spacing-lg;*/
    border-bottom: 1px solid var(--color-border);
}
.section-header h2 {
        font-size: 24px;
        font-weight: 600;
        margin: 0 0 4px 0;
        color: var(--text-color);
    }
@media (max-width: 567px) {
.section-header {
        margin-bottom: 24px
        /* padding-bottom: $spacing-md;*/
}
        
        .section-header h2 {
            font-size: 20px;
        }
    }
.section-description {
    font-size: 14px;
    color: var(--text-color-secondary);
    margin: 0;
    line-height: 1.5;
}
/* Add Contact Section*/
.add-contact-section {
    margin-bottom: 32px;
    /* padding-bottom: $spacing-lg;*/
    border-bottom: 1px solid var(--color-border);
}
/* Contact List*/
.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.contact-item-wrapper {
    background: var(--item-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
}
.contact-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    gap: 16px;
}
.contact-item .btn-edit {
        order: -1;
        margin-right: 8px;
    }
@media (max-width: 567px) {
.contact-item {
        flex-wrap: wrap
}
        
        .contact-item .btn-edit {
            order: 0;
        }
        
        .contact-item .btn-delete {
            margin-left: auto;
        }
    }
.contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.contact-icon {
    font-size: 16px;
    color: var(--color-accent);
    flex-shrink: 0;
}
.contact-nickname {
    font-weight: 500;
    color: var(--text-color);
    min-width: 120px;
}
.contact-principal {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-color-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
}
.contact-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
@media (max-width: 567px) {
.contact-actions {
        width: 100%
}
    }
/* Form Elements*/
.contact-edit-form {
    width: 100%;
    padding: 16px;
    background: #f8f9fa;
    border-top: 1px solid var(--color-border);
}
.contact-add-form {
    width: 100%;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 8px;
}
.form-group {
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
    align-items: center;
}
.form-group label {
        font-size: 13px;
        font-weight: 600;
        color: var(--text-color);
        min-width: 140px;
        flex-shrink: 0;
    }
.form-group input {
        flex: 1;
        padding: 12px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        font-size: 14px;
        background: var(--modal-bg);
        color: var(--text-color);
    }
.form-group input:focus {
            outline: none;
            border-color: #0166FF;
        }
.form-group input::-moz-placeholder {
            color: var(--text-color-secondary);
        }
.form-group input::placeholder {
            color: var(--text-color-secondary);
        }
.form-group input.principal-input {
            font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
        }
@media (max-width: 567px) {
.form-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px
}
        
        .form-group label {
            min-width: 0;
        }
        
        .form-group input {
            width: 100%;
        }
    }
.form-error {
    color: #ff4444;
    font-size: 13px;
    margin-bottom: 8px;
    min-height: 18px;
}
.form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    margin-top: 8px;
    margin-left: calc(140px + 16px);
}
@media (max-width: 567px) {
.form-actions {
        margin-left: 0
}
    }
/* Buttons*/
.btn-edit,
.btn-delete,
.btn-save,
.btn-cancel-edit {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid;
    white-space: nowrap;
}
.btn-edit {
    background: var(--color-card);
    color: var(--text-color);
    border-color: var(--color-border);
}
.btn-edit:hover {
        background: var(--item-hovered-bg);
    }
.btn-delete {
    background: var(--color-card);
    color: #d32f2f;
    border-color: var(--color-border);
}
.btn-delete:hover {
        background: #ffebee;
        border-color: #d32f2f;
    }
.btn-save {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}
.btn-save:hover {
        opacity: 0.9;
    }
.btn-cancel-edit {
    background: var(--color-card);
    color: var(--text-color-secondary);
    border-color: var(--color-border);
}
.btn-cancel-edit:hover {
        background: var(--item-hovered-bg);
    }
/* Messages*/
.loading-text,
.empty-text {
    color: var(--text-color-secondary);
    font-size: 14px;
    padding: 16px 0;
}
.error-text {
    color: #d32f2f;
    font-size: 13px;
    margin: 4px 0;
}
/* Team Section*/
.team-placeholder {
    padding: 40px 24px;
    background: var(--item-bg);
    border-radius: 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.team-placeholder .placeholder-icon {
        color: var(--text-color-secondary);
        opacity: 0.4;
        margin-bottom: 8px;
    }
.team-placeholder h3 {
        font-size: 18px;
        font-weight: 600;
        margin: 0;
        color: var(--text-color);
    }
.team-placeholder p {
        margin: 0;
        color: var(--text-color-secondary);
        font-size: 14px;
        line-height: 1.6;
        max-width: 400px;
    }
.team-placeholder .coming-soon {
        color: var(--color-accent);
        font-weight: 500;
        font-size: 13px;
        padding: 4px 16px;
        background: var(--item-hovered-bg);
        border-radius: 4px;
        margin-top: 4px;
    }
@media (max-width: 567px) {
.team-placeholder {
        padding: 32px 16px
}
    }
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease-out;
    padding: 20px;
}
@media (max-width: 567px) {
.modal-overlay {
        padding: 16px
}
    }
.modal {
    background: var(--bg-primary);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    animation: scaleIn 0.25s ease-out;
}
@media (max-width: 567px) {
.modal {
        max-width: 100%;
        max-height: 85vh
}
    }
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.modal-header h2 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
    }
.close-button {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.close-button:hover {
        background: var(--border-color);
        color: var(--text-primary);
    }
.modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.15s ease-out;
}
@media (min-width: 768px) {
.drawer-overlay {
        display: none
}
    }
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg-primary);
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.2s ease-out;
    overflow-y: auto;
}
.drawer-header {
    display: flex;
    justify-content: flex-end;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.close-button {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.close-button:hover {
        background: var(--border-color);
        color: var(--text-primary);
    }
.drawer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.drawer-nav {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}
.drawer-nav-item {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}
.drawer-nav-item:hover {
        background: var(--item-hovered-bg);
    }
.drawer-nav-item.active {
        color: var(--color-accent);
        background: var(--item-hovered-bg);
    }
.drawer-settings {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
}
.drawer-settings-item {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.drawer-settings-item:hover {
        background: var(--item-hovered-bg);
    }
.drawer-settings-item .chevron {
        transition: transform 0.2s ease-out;
        flex-shrink: 0;
        opacity: 0.6;
    }
.drawer-settings-item.expanded .chevron {
        transform: rotate(90deg);
    }
.drawer-settings-content {
    padding: 12px 16px 12px 40px;
    animation: slideDown 0.2s ease-out;
}
.drawer-settings-content .placeholder-text {
        margin: 0;
        font-size: 14px;
        color: var(--text-secondary);
        font-style: italic;
    }
.drawer-actions {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}
.drawer-action-item {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}
.drawer-action-item:hover {
        background: var(--item-hovered-bg);
        border-color: var(--text-secondary);
    }
.drawer-action-item svg {
        flex-shrink: 0;
    }
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}
/* glob: no files matched */
/* glob: no files matched */
/* ============================================*/
/* BUTTONS*/
/* ============================================*/
.send-button {
    background: transparent;
    color: #999;
    border: 1px solid #e0e0e0;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.send-button:hover {
        border-color: #3b00b9;
        color: #3b00b9;
    }
@media (max-width: 567px) {
.send-button {
        font-size: 12px;
        padding: 3px 10px
}
    }
.swap-button {
    background: transparent;
    color: #999;
    border: 1px solid #e0e0e0;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.swap-button:hover {
        border-color: #3b00b9;
        color: #3b00b9;
    }
/* ============================================*/
/* ERROR MESSAGES*/
/* ============================================*/
.error:not(.btn-send) {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
}
/* ============================================*/
/* PAYMENT CONFIRMATION UI*/
/* ============================================*/
/* Used in payment popup mode (send-manager.ts)*/
.payment-confirmation {
    padding: 24px;
}
.payment-title {
    margin: 0 0 24px 0;
    font-size: 24px;
    text-align: center;
}
.order-context {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}
.merchant-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f5f5f5;
}
.merchant-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}
.merchant-info .merchant-name {
        font-weight: 600;
        font-size: 18px;
        color: #333;
    }
.merchant-info .order-id {
        font-size: 12px;
        color: #666;
    }
.order-items {
    margin-bottom: 12px;
}
/* .order-item {*/
/*     display: flex;*/
/*     justify-content: space-between;*/
/*     padding: 8px 0;*/
/*     border-bottom: 1px solid #eee;*/
/* }*/
.item-details {
    flex: 1;
}
.item-details .item-name {
        font-weight: 500;
        color: #333;
    }
.item-details .item-qty {
        font-size: 12px;
        color: #666;
    }
.item-price {
    font-weight: 500;
    color: #333;
}
.order-summary {
    padding-top: 12px;
    border-top: 2px solid #f5f5f5;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}
.summary-row .label {
        color: #666;
    }
.summary-row .value {
        color: #333;
    }
.summary-row.total {
        padding-top: 8px;
        border-top: 1px solid #e0e0e0;
        margin-top: 8px;
    }
.summary-row.total .label,
        .summary-row.total .value {
            font-weight: 600;
            color: #333;
        }
.payment-amount-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    text-align: center;
}
.payment-amount-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}
.payment-amount-value {
    font-size: 32px;
    font-weight: 600;
    color: #0166FF;
}
.payment-recipient {
    text-align: left;
    margin-bottom: 24px;
}
.recipient-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}
.recipient-address {
    font-size: 12px;
    word-break: break-all;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    background: #f5f5f5;
    padding: 8px;
    border-radius: 4px;
}
.payment-actions {
    display: flex;
    gap: 12px;
}
.btn-cancel-payment {
    flex: 1;
    padding: 12px 24px;
    border: 1px solid #ddd;
    background: #ffffff;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s, border-color 0.2s;
}
.btn-cancel-payment:hover {
        background: #f5f5f5;
        border-color: #ccc;
    }
.btn-confirm-payment {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: #0166FF;
    color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}
.btn-confirm-payment:hover {
        background: #0052CC;
    }
/* Skeleton Loading*/
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer var(--skeleton-animation-duration) infinite;
    border-radius: 4px;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-order,
.skeleton-activity {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--item-bg);
    border-radius: 6px;
    margin-bottom: 8px;
}
.skeleton-order-info,
.skeleton-activity-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer var(--skeleton-animation-duration) infinite;
    border-radius: 4px;
}
.skeleton-line.short {
        width: 60%;
    }
.skeleton-line.medium {
        width: 80%;
    }
.skeleton-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer var(--skeleton-animation-duration) infinite;
}
.skeleton-amount {
    width: 80px;
    text-align: right;
}
.skeleton-amount .skeleton-line.short {
        margin-top: 4px;
    }
.skeleton-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.625rem;
    background: var(--item-bg);
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid transparent;
}
.skeleton-token-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.skeleton-token-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer var(--skeleton-animation-duration) infinite;
}
.skeleton-token-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.skeleton-balance-amount {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
/* ============================================*/
/* LOADING SPINNER*/
/* ============================================*/
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0166FF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}
.button-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
/* Generic modal overlay and content structure for ALL <dialog> modals*/
/* Specific modal styles belong in their own files (contacts.scss, send.scss, order-detail.scss, etc.)*/
dialog {
    border: none;
    padding: 0;
    margin: 0;
    max-width: none;
    max-height: none;
    width: 100vw;
    height: 100vh;
    background: transparent;
}
dialog:not([open]) {
        display: none;
    }
dialog[open] {
        display: flex;
        align-items: center;
        justify-content: center;
        animation: dialog-fade-in 0.15s ease-out 0.05s both;
    }
dialog.closing {
        animation: dialog-fade-out 0.15s ease-out forwards;
    }
dialog.closing::backdrop {
            animation: backdrop-fade-out 0.15s ease-out 0.05s forwards;
        }
dialog::backdrop {
        background: var(--backdrop-color);
        animation: backdrop-fade-in 0.15s ease-out;
        backdrop-filter: blur(50px);
    }
@keyframes dialog-fade-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes dialog-fade-out {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.96);
    }
}
@keyframes backdrop-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes backdrop-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}
/* MODAL CONTENT ===============================*/
.modal-content {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    max-width: 500px;
    width: calc(100% - 40px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
/* Overlay-based modals (send, swap, contacts)*/
.modal-overlay .modal-content {
        border-radius: 16px;
        max-width: 400px;
        width: 90%;
        padding: 24px;
    }
.modal-content h2 {
        margin: 0 0 20px 0;
        font-size: 20px;
    }
@media (max-width: 567px) {
.modal-content {
        margin: 0;
        max-height: 100vh;
        border-radius: 0
}
    }
/* MODAL HEADER ================================*/
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    position: relative;
}
.modal-header h3 {
        font-size: 18px;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0;
        padding-top: 5  px;
        -webkit-user-select: none;
           -moz-user-select: none;
                user-select: none;
    }
.modal-header .modal-close {
        position: absolute;
        top: 0;
        right: 0;
        background: transparent;
        border: none;
        outline:none;
        font-size: 32px;
        color: #999;
        cursor: pointer;
        padding: 0;
        width: 5rem;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s, color 0.2s;
    }
.modal-header .modal-close:hover {
            background: #f5f5f5;
            color: #333;
        }
.modal-body {
    padding: 2.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.modal-body::-webkit-scrollbar {
        width: 8px;
    }
.modal-body::-webkit-scrollbar-track {
        background: transparent;
    }
.modal-body::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 4px;
    }
.modal-body::-webkit-scrollbar-thumb:hover {
            background: #9ca3af;
        }
/* MODAL FORM FIELDS ===========================*/
.modal-field {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}
.modal-field label {
        display: block;
        font-size: 14px;
        color: var(--text-secondary);
        margin-bottom: 6px;
        -webkit-user-select: none;
           -moz-user-select: none;
                user-select: none;
    }
.modal-field input {
        width: 100%;
        padding: 10px;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        font-size: 14px;
    }
.modal-field input[type="text"] {
            font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
        }
.modal-field-hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
.modal-error {
    display: none;
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}
.modal-actions {
    display: flex;
    gap: 10px;
}
.modal-actions button {
        flex: 1;
        padding: 12px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 6px;
        cursor: pointer;
    }
.modal-cancel {
    background: transparent;
    border: var(--btn-secondary-border);
    color: var(--btn-secondary-color);

}
.modal-confirm {
    background: var(--btn-primary-bg);
    border: 2px solid var(--btn-primary-bg);
    color: var(--btn-primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.modal-confirm:hover {
        background: var(--btn-primary-bg-hover);
    }
.modal-confirm.loading {
        pointer-events: none;
        opacity: 0.7;
        
    }
.modal-confirm .button-spinner {
        display: none;
    }
.btn-max {
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    width: 50px;
    min-width: 50px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* transition: background 0.2s;*/
}
.btn-max:hover {
        background: var(--btn-primary-bg);
        color: #ffffff;
    }
.btn-max span {
        padding-top: 1px;
    }
/* AUTHORIZATION MODAL =========================*/
/* Merchant connection authorization screen*/
.authorization-modal {
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    z-index: 10000;
}
.authorization-modal .authorization-content {
        background: #ffffff;
        border-radius: 16px;
        max-width: 480px;
        width: 90%;
        padding: 32px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    }
.authorization-modal .authorization-title {
        margin: 0 0 24px 0;
        font-size: 24px;
        color: #333;
    }
.authorization-modal .authorization-site-info {
        background: #f5f5f5;
        padding: 16px;
        border-radius: 8px;
        margin-bottom: 20px;
    }
.authorization-modal .site-info-row {
        font-size: 14px;
        color: #666;
        margin-bottom: 8px;
    }
.authorization-modal .site-info-row:last-child {
            margin-bottom: 0;
        }
.authorization-modal .site-info-row strong {
            font-weight: 600;
        }
.authorization-modal .authorization-permissions {
        margin-bottom: 20px;
    }
.authorization-modal .permissions-intro {
        font-size: 14px;
        color: #666;
        margin-bottom: 12px;
    }
.authorization-modal .permissions-intro strong {
            font-weight: 600;
        }
.authorization-modal .permissions-list {
        font-size: 14px;
        color: #666;
        margin-left: 20px;
    }
.authorization-modal .permissions-list li {
            margin-bottom: 8px;
        }
.authorization-modal .authorization-principal-box {
        background: #e3f2fd;
        border: 1px solid #90caf9;
        padding: 12px;
        border-radius: 6px;
        margin-bottom: 20px;
    }
.authorization-modal .principal-label {
        font-size: 12px;
        color: #1565c0;
        font-weight: 600;
        margin-bottom: 4px;
    }
.authorization-modal .principal-value {
        font-size: 11px;
        color: #0d47a1;
        font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
        word-break: break-all;
    }
.authorization-modal .authorization-actions {
        display: flex;
        gap: 12px;
    }
.authorization-modal .btn-cancel-connection {
        flex: 1;
        background: transparent;
        border: 1px solid #e0e0e0;
        padding: 12px 24px;
        font-size: 16px;
        font-weight: 500;
        color: #666;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s;
    }
.authorization-modal .btn-cancel-connection:hover {
            background: #f5f5f5;
            border-color: #999;
        }
.authorization-modal .btn-authorize-connection {
        flex: 1;
        background: linear-gradient(135deg, #0166FF 0%, #0052CC 100%);
        border: none;
        padding: 12px 24px;
        font-size: 16px;
        font-weight: 600;
        color: #ffffff;
        border-radius: 8px;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(1, 102, 255, 0.3);
        transition: all 0.2s;
    }
.authorization-modal .btn-authorize-connection:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(1, 102, 255, 0.4);
        }
.authorization-modal .btn-authorize-connection:active {
            transform: translateY(0);
        }
/* glob: no files matched */
/*# sourceMappingURL=main.css.map */