:root {
    --bg-dark: #070707;
    --bg-card: rgba(20, 20, 20, 0.6);
    --gold: #E8B923;
    --gold-hover: #f1cd55;
    --cyan: #00e5ff;
    --text-primary: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100svh;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Aceternity Auras */
.aura {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.aura-gold {
    background: var(--gold);
    top: -200px;
    right: -100px;
}

.aura-cyan {
    background: var(--cyan);
    bottom: -200px;
    left: -100px;
}

.app-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

/* Glassmorphism */
.glass {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
}

.glass-premium {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 32px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
}

.glass-panel {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.glass-panel:hover {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.swap-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.swap-input-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.swap-input-field {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    outline: none;
}

.swap-input-field::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.swap-currency-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    /* Hide default arrow to allow custom styling if needed */
    -webkit-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='white' 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");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
    max-width: 45%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.swap-currency-select:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.swap-currency-select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

/* Style the native dropdown options to dark theme */
.swap-currency-select option {
    background-color: rgba(20, 20, 20, 0.95);
    color: white;
    font-weight: 500;
    padding: 12px;
    font-size: 1rem;
}

.swap-icon-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -12px 0;
    position: relative;
    z-index: 10;
}

.swap-icon {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--cyan);
}

.swap-icon:hover {
    transform: rotate(180deg);
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.active-swap-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 229, 255, 0.05);
    border-left: 3px solid var(--cyan);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.active-swap-card:hover {
    transform: translateY(-2px);
    background: rgba(0, 229, 255, 0.1);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-radius: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--gold);
}

.network-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 20px;
    color: var(--cyan);
}

/* Typography & Utilities */
.text-center {
    text-align: center;
}

.text-gold {
    color: var(--gold);
}

.text-cyan {
    color: var(--cyan);
}

.text-muted {
    color: var(--text-muted);
}

.text-sm {
    font-size: 0.85rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.w-full {
    width: 100%;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: 1rem;
}

.hidden {
    display: none !important;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

h3 {
    font-size: 1.2rem;
    font-weight: 500;
    font-weight: 600;
}

p {
    line-height: 1.6;
    color: var(--text-muted);
}

.glow-text {
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.subtitle {
    font-size: 1.1rem;
    margin-top: 16px;
}

/* Cards */
.card {
    border-radius: 24px;
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.border-glow {
    position: relative;
}

.border-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 25px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    -webkit-mask: linear-gradient(rgba(0, 0, 0, 1), transparent);
    mask: linear-gradient(rgba(0, 0, 0, 1), transparent);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.border-gold {
    border-color: rgba(232, 185, 35, 0.3);
    box-shadow: 0 0 20px rgba(232, 185, 35, 0.05);
}

.border-cyan {
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.05);
}

/* Buttons */
.btn {
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gold);
    color: #000;
    box-shadow: 0 4px 14px rgba(232, 185, 35, 0.3);
}

.btn-primary:hover {
    background: var(--gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(232, 185, 35, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Inputs */
.input-field {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    color: white;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    outline: none;
}

.input-field:focus {
    border-color: var(--gold);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-muted);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 10px;
    font-size: 0.8rem;
}

/* Dashboard Elements */
.balance-display {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(232, 185, 35, 0.2);
}

.address-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.address-item {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.address-item .addr {
    font-family: monospace;
    color: var(--gold);
}

.mnemonic-box {
    background: rgba(0, 0, 0, 0.5);
    border: 1px dashed var(--gold);
    border-radius: 10px;
    font-family: monospace;
    font-size: 1.1rem;
    line-height: 1.8;
}

.qr-container {
    background: white;
    padding: 16px;
    border-radius: 16px;
    display: inline-block;
}

.address-text {
    font-family: monospace;
    font-size: 1.2rem;
    margin-top: 16px;
    word-break: break-all;
    color: var(--gold);
}

.view {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.success-icon {
    font-size: 4rem;
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.select-all {
    user-select: all;
    cursor: pointer;
}

.p-3 {
    padding: 0.75rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.p-4 {
    padding: 1rem;
}

.mr-4 {
    margin-right: 1rem;
}

/* Loading Shimmer Skeleton */
.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 25%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

.skeleton-line {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 6px;
}

.skeleton-line-short {
    width: 40%;
}

.skeleton-line-medium {
    width: 65%;
}

.skeleton-line-long {
    width: 90%;
}

.skeleton-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ===== Footer Branding ===== */
footer {
    padding: 32px 0 16px;
    width: 100%;
    margin-top: auto;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    font-weight: 700;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-content:hover {
    opacity: 1;
}

.footer-content img {
    filter: grayscale(1) brightness(1.5);
    transition: filter 0.3s ease;
}

.footer-content:hover img {
    filter: none;
}

/* Tx direction badges */
.tx-badge-sent {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.tx-badge-received {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.text-right {
    text-align: right;
}

/* ===== Premium 2027 Aesthetic ===== */

/* Animated gradient border on gold cards */
.card.glass {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.4s ease, border-color 0.3s ease;
}

.card.glass:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(232, 185, 35, 0.08), 0 0 0 1px rgba(232, 185, 35, 0.15);
}

/* Subtle glow pulse on balance */
.balance-display {
    animation: balanceGlow 3s ease-in-out infinite;
}

@keyframes balanceGlow {

    0%,
    100% {
        text-shadow: 0 0 30px rgba(232, 185, 35, 0.2);
    }

    50% {
        text-shadow: 0 0 50px rgba(232, 185, 35, 0.35), 0 0 80px rgba(232, 185, 35, 0.1);
    }
}

/* Premium button press effect */
.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, #E8B923 0%, #d4a51a 50%, #E8B923 100%);
    background-size: 200% 200%;
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Card stagger entrance */
.card.glass {
    animation: cardEntrance 0.4s ease-out both;
}

.card.glass:nth-child(1) {
    animation-delay: 0s;
}

.card.glass:nth-child(2) {
    animation-delay: 0.05s;
}

.card.glass:nth-child(3) {
    animation-delay: 0.1s;
}

.card.glass:nth-child(4) {
    animation-delay: 0.15s;
}

.card.glass:nth-child(5) {
    animation-delay: 0.2s;
}

.card.glass:nth-child(6) {
    animation-delay: 0.25s;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tx badges micro-animation */
.tx-badge-sent,
.tx-badge-received {
    transition: transform 0.15s ease;
}

.tx-badge-sent:hover,
.tx-badge-received:hover {
    transform: scale(1.08);
}

/* Network badge pulse */
.network-badge {
    animation: netPulse 4s ease-in-out infinite;
}

@keyframes netPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.15);
    }

    50% {
        box-shadow: 0 0 12px 4px rgba(0, 229, 255, 0.1);
    }
}

/* ===== Mobile Responsive ===== */

/* Fluid typography base */
html {
    font-size: 16px;
}

@media (max-width: 640px) {
    html {
        font-size: 15px;
    }

    .app-container {
        padding: 0 12px;
    }

    .navbar {
        padding: 14px 16px;
        border-radius: 16px;
        margin-top: 12px;
        margin-bottom: 24px;
    }

    .logo {
        font-size: 1.1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .balance-display {
        font-size: 2.2rem;
    }

    .card {
        padding: 20px;
        border-radius: 18px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 0.95rem;
        border-radius: 12px;
        min-height: 48px;
        /* Touch-friendly */
    }

    .input-field {
        padding: 14px;
        font-size: 16px;
        /* Prevents iOS zoom */
        border-radius: 12px;
    }

    .mnemonic-box {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .address-text {
        font-size: 0.9rem;
    }

    .qr-container {
        padding: 12px;
    }

    .modal-overlay {
        padding: 16px;
    }

    .success-icon {
        font-size: 3rem;
    }

    /* Fix flex columns on mobile */
    .flex.gap-4 {
        flex-direction: column;
        gap: 0.75rem;
    }

    .flex.gap-4 .btn {
        width: 100%;
    }

    /* Auras smaller on mobile */
    .aura {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 380px) {
    html {
        font-size: 14px;
    }

    .balance-display {
        font-size: 1.9rem;
    }

    .navbar {
        padding: 12px 14px;
    }
}

/* Safe area padding for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .app-container {
        padding-bottom: calc(env(safe-area-inset-bottom) + 20px);
    }
}

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: toastIn 0.35s ease-out, toastOut 0.35s ease-in forwards;
    pointer-events: auto;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toast-success {
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.toast-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.toast-info {
    background: rgba(232, 185, 35, 0.15);
    border: 1px solid rgba(232, 185, 35, 0.3);
    color: var(--gold);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {

    0%,
    75% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-16px);
    }
}

/* ===== View Slide Transitions ===== */
.view {
    animation: slideIn 0.35s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Button Loading Spinner ===== */
.btn.loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: splashSpin 0.6s linear infinite;
}

.btn-primary.loading::after {
    border-top-color: #000;
}

.btn-outline.loading::after {
    border-top-color: #fff;
}

/* ===== Confetti ===== */
.confetti-piece {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    z-index: 10001;
    pointer-events: none;
    animation: confettiFall 1.5s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(400px) rotate(720deg) scale(0.3);
    }
}

/* ===== Logout button ===== */
.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Skeleton Shimmer UX */
.skeleton-chart {
    position: absolute;
    top: 55px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.02) 25%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(255, 255, 255, 0.02) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s infinite linear;
    border-radius: 12px;
    z-index: 5;
    pointer-events: none;
    display: none;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ===== EPIC Swap Status Pipeline ===== */
.swap-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 16px 0 8px;
    position: relative;
}

.swap-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step-node {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    background: transparent;
}

.step-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 10, 0.9);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.step-icon {
    position: relative;
    z-index: 2;
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.4s ease;
}

.step-icon svg {
    width: 100%;
    height: 100%;
}

.step-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    transition: color 0.4s ease;
    white-space: nowrap;
}

/* Connector Line */
.step-connector {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    min-width: 20px;
    margin-bottom: 28px;
    /* offset for label */
}

.step-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #E8B923, #f1cd55);
    box-shadow: 0 0 10px rgba(232, 185, 35, 0.6);
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Active Step */
.swap-step.active .step-ring {
    border-color: #E8B923;
    box-shadow: 0 0 0 0 rgba(232, 185, 35, 0.5);
    animation: stepPulse 1.8s ease-out infinite;
}

.swap-step.active .step-icon {
    color: #E8B923;
}

.swap-step.active .step-label {
    color: #E8B923;
}

/* Completed Step */
.swap-step.done .step-ring {
    border-color: #E8B923;
    background: rgba(232, 185, 35, 0.12);
    box-shadow: 0 0 12px rgba(232, 185, 35, 0.3);
}

.swap-step.done .step-icon {
    color: #E8B923;
}

.swap-step.done .step-label {
    color: rgba(255, 255, 255, 0.6);
}

/* Finished (final step complete) */
.swap-step.finished .step-ring {
    background: rgba(74, 222, 128, 0.15);
    border-color: #4ade80;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
}

.swap-step.finished .step-icon {
    color: #4ade80;
}

.swap-step.finished .step-label {
    color: #4ade80;
    font-weight: 700;
}

@keyframes stepPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(232, 185, 35, 0.5);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(232, 185, 35, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(232, 185, 35, 0);
    }
}

/* QR Panel collapse transition */
#swap-deposit-details-panel {
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
    max-height: 600px;
    opacity: 1;
}

#swap-deposit-details-panel.collapsing {
    max-height: 0;
    opacity: 0;
}

/* Completion Glow */
@keyframes completionBurst {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    60% {
        transform: scale(1.15);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.swap-step.finished .step-node {
    animation: completionBurst 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ===== EPIC Trade Receipt ===== */
.swap-receipt {
    margin: 16px 0 8px;
    background: linear-gradient(160deg, rgba(12, 12, 12, 0.97) 0%, rgba(20, 18, 10, 0.97) 100%);
    border: 1px solid rgba(232, 185, 35, 0.2);
    border-radius: 16px;
    font-family: 'Courier New', 'Courier', monospace;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(232, 185, 35, 0.08);
}

.swap-receipt.hidden {
    display: none;
}

.receipt-header {
    padding: 18px 20px 12px;
    text-align: center;
    border-bottom: 1px dashed rgba(232, 185, 35, 0.15);
    position: relative;
}

.receipt-stamp {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    color: #4ade80;
    border: 1.5px solid #4ade80;
    border-radius: 4px;
    padding: 2px 6px;
    opacity: 0.85;
    transform: rotate(3deg);
}

.receipt-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: rgba(232, 185, 35, 0.9);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.receipt-subtitle {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.08em;
}

.receipt-divider {
    text-align: center;
    padding: 6px 16px;
    font-size: 0.6rem;
    color: rgba(232, 185, 35, 0.3);
    letter-spacing: 0.1em;
}

.receipt-rows {
    padding: 8px 20px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px 0;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.04);
    gap: 8px;
}

.receipt-row:last-child {
    border-bottom: none;
}

.receipt-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    flex-shrink: 0;
}

.receipt-value {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-align: right;
    word-break: break-all;
}

.receipt-debit {
    color: #f97316;
    /* amber-orange = sent */
}

.receipt-credit {
    color: #4ade80;
    /* green = received */
    font-size: 0.8rem;
    font-weight: 700;
}

.receipt-usdt {
    color: #E8B923;
    font-weight: 700;
}

.receipt-id {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Courier New', monospace;
}

.receipt-status-pill {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(232, 185, 35, 0.12);
    color: #E8B923;
    border: 1px solid rgba(232, 185, 35, 0.3);
    text-transform: uppercase;
}

.receipt-status-pill.complete {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
}

.receipt-status-pill.failed {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.receipt-footer {
    padding: 10px 20px 14px;
    text-align: center;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    color: rgba(232, 185, 35, 0.35);
    border-top: 1px dashed rgba(232, 185, 35, 0.1);
}

/* ===== Epic Swap Error Modal ===== */
.swap-error-modal-card {
    background: linear-gradient(160deg, rgba(18, 6, 6, 0.98) 0%, rgba(20, 12, 12, 0.98) 100%);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 24px;
    padding: 36px 28px 28px;
    max-width: 400px;
    width: calc(100% - 40px);
    text-align: center;
    box-shadow: 0 0 60px rgba(239, 68, 68, 0.12), 0 20px 60px rgba(0, 0, 0, 0.7);
    position: relative;
}

.sem-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.2);
}

.sem-icon-wrap svg {
    width: 32px;
    height: 32px;
}

.sem-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.sem-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 16px;
}

.sem-detail-box {
    font-size: 0.68rem;
    color: rgba(239, 68, 68, 0.6);
    letter-spacing: 0.06em;
    font-family: 'Courier New', monospace;
    margin-bottom: 8px;
    min-height: 4px;
}

.sem-tip {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 14px;
    text-align: left;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 4px;
}

.sem-btn {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #ef4444 !important;
    border-radius: 14px !important;
    font-weight: 700;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.sem-btn:hover {
    background: rgba(239, 68, 68, 0.28) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
}