:root {
            --bg: #f8f9fb;
            --card: #ffffff;
            --border: rgba(200, 210, 225, 0.5);
            --text: #1f2937;
            --muted: #6b7280;
            --accent: #4f8cff;
            --success: #10b981;
            --error: #ef4444;
        }

        * {
            box-sizing: border-box;
            font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
        }
        
         /* Overlay */
        .overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.35);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease;
            z-index: 100;
        }

        .overlay.show {
            opacity: 1;
            pointer-events: all;
        }

        /* Wallet modal */
        .valletlist {
            width: 420px;
            max-height: 85vh;
            background: var(--card);
            border-radius: 20px;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
            display: flex;
            flex-direction: column;
            padding: 24px;
            transform: scale(0.95);
            opacity: 0;
            transition: transform 0.4s ease, opacity 0.4s ease;
        }

        @media (min-width: 601px) {
            .overlay.show .valletlist {
                transform: scale(1);
                opacity: 1;
            }
        }

        @media (max-width: 600px) {
            .overlay {
                align-items: flex-end;
            }

            .valletlist {
                width: 100%;
                max-height: 88vh;
                height: auto;
                border-radius: 20px 20px 0 0;
                transform: translateY(100%);
                opacity: 0;
            }

            .overlay.show .valletlist {
                transform: translateY(0);
                opacity: 1;
            }
        }

        /* Header */
        .vallet-header {
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        .vallet-header h3 {
            margin: 0;
            font-size: 20px;
            font-weight: 600;
            color: var(--text);
        }

        .close-btn {
            position: absolute;
            right: 0;
            font-size: 22px;
            color: var(--muted);
            background: none;
            border: none;
            cursor: pointer;
            transition: color 0.2s ease;
        }

        .close-btn:hover {
            color: var(--accent);
        }

        /* Scrollable content */
        .vallet-content {
            margin-top: 20px;
            flex: 1;
            overflow-y: auto;
            padding-right: 6px;
        }

        .vallet-content::-webkit-scrollbar {
            width: 6px;
        }

        .vallet-content::-webkit-scrollbar-thumb {
            background: #cfd5e3;
            border-radius: 10px;
        }

        h4 {
            margin: 20px 0 12px;
            font-size: 17px;
            font-weight: 600;
            color: var(--text);
            letter-spacing: 0.5px;
        }

        /* Wallet item */
        .vallet {
            display: flex;
            align-items: center;
            gap: 14px;
            padding-top: 10px;
            padding-bottom: 10px;
            padding-left: 0;
            padding-right: 0;
            border-radius: 14px;
            border: none;
            margin-bottom: 12px;
            cursor: pointer;
            transition: background 0.2s ease, transform 0.2s ease;
        }

        .vallet:hover {
            background: #f0f4ff;
            transform: translateY(-2px);
        }

        .vallet img {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            object-fit: cover;
        }

        .vallet p {
            margin: 0;
            font-size: 16px;
            font-weight: 500;
            color: var(--text);
        }

        /* Sticky secured section */
        .secured-wrapper {
            position: sticky;
            bottom: 0;
            background: var(--card);
            padding-top: 16px;
        }

        .divider {
            height: 1px;
            background: var(--border);
            margin-bottom: 12px;
        }

        .secured {
            text-align: center;
            font-size: 13px;
            color: var(--muted);
            padding-bottom: 12px;
        }

        /* Footer */
        .footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
            margin-top: 12px;
        }

        .footer p {
            margin: 0;
            color: var(--muted);
        }

        .footer .learn {
            font-weight: 600;
            color: var(--accent);
            cursor: pointer;
            transition: color 0.2s ease;
        }

        .footer .learn:hover {
            color: #3b6fd1;
        }

        /* Wallet-selected and failed views */
        .wallet-selected,
        .wallet-failed {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            opacity: 0;
            transform: scale(0.95);
            transition: transform 0.4s ease, opacity 0.4s ease;
        }

        .wallet-selected.show,
        .wallet-failed.show {
            opacity: 1;
            transform: scale(1);
        }

        .wallet-selected .top-bar,
        .wallet-failed .top-bar {
            width: 100%;
            display: flex;
            justify-content: space-between;
            margin-bottom: 22px;
        }

        .wallet-selected .top-bar p,
        .wallet-failed .top-bar p {
            cursor: pointer;
            font-weight: 600;
            color: var(--accent);
            transition: color 0.2s ease;
        }

        .wallet-selected .top-bar p:hover,
        .wallet-failed .top-bar p:hover {
            color: #3b6fd1;
        }

        .wallet-selected .img-wrapper,
        .wallet-failed .img-wrapper {
            position: relative;
            width: 140px;
            height: 140px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
        }

        .wallet-selected .img-wrapper img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }

        /* Rotating purple corner */
        .wallet-selected .img-wrapper::after {
            content: '';
            position: absolute;
            top: -6px;
            left: -6px;
            width: calc(100% + 12px);
            height: calc(100% + 12px);
            border: 2px solid #b19cd9;
            border-radius: 50%;
            border-top-color: transparent;
            border-right-color: transparent;
            border-bottom-color: transparent;
            border-left-color: #b19cd9;
            box-shadow: 0 0 10px rgba(177, 156, 217, 0.4);
            box-sizing: border-box;
            animation: rotateCorners 1.5s linear infinite;
        }

        @keyframes rotateCorners {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .wallet-selected .wallet-name {
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--text);
        }

        .wallet-selected .loading-text {
            font-size: 14px;
            color: var(--muted);
        }

        .wallet-selected .loading-text span.dots::after {
            content: '';
            display: inline-block;
            width: 1ch;
            text-align: left;
            animation: loadingDots 1s steps(3, end) infinite;
        }

        @keyframes loadingDots {

            0%,
            20% {
                content: '';
            }

            40% {
                content: '.';
            }

            60% {
                content: '..';
            }

            80%,
            100% {
                content: '...';
            }
        }

        /* Wallet failed */
        .wallet-failed .failure-text {
            font-weight: 600;
            color: var(--error);
            margin-bottom: 12px;
        }

        .wallet-failed .failure-img {
            width: 140px;
            height: 140px;
            border-radius: 50%;
            background: #fff5f5;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 64px;
            color: var(--error);
            margin-bottom: 20px;
            border: 2px solid #fca5a5;
            animation: pulseRed 1.5s infinite ease-in-out;
        }

        @keyframes pulseRed {
            0% {
                transform: scale(1);
                opacity: 1;
            }

            50% {
                transform: scale(1.05);
                opacity: 0.75;
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        .checkbox-wrapper {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 8px;
            margin-bottom: 13px;
            margin-left: 0;
            margin-right: 0;
            font-size: 14px;
        }

        #manualBackup {
            padding: 8px 20px;
            margin-top: -4px;
            margin-bottom: 15px;
            font-size: 16px;
            border: none;
            border-radius: 10px;
            background: var(--accent);
            color: #fff;
            cursor: pointer;
            opacity: 0.5;
            pointer-events: none;
            transition: opacity 0.3s ease, background 0.3s ease;
        }

        #manualBackup.enabled {
            opacity: 1;
            pointer-events: all;
        }

        #manualBackup:hover.enabled {
            background: #3b6fd1;
        }

        .failed-notification {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--error);
            color: white;
            padding: 14px 22px;
            border-radius: 10px;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
            font-size: 14px;
            z-index: 200;
            opacity: 0;
            animation: fadeInOut 4s forwards;
        }

        @keyframes fadeInOut {
            0% {
                opacity: 0;
            }

            10%,
            90% {
                opacity: 1;
            }

            100% {
                opacity: 0;
            }
        }

        /* Bottom box info */
        .bottom-box {
            border-radius: 10px;
            padding: 12px;
            background: #f0f4ff;
            font-size: 13px;
            color: var(--text);
            margin-top: 12px;
            text-align: center;
        }

        /* Proceed input */
        textarea {
            font-family: inherit;
            font-size: 14px;
            resize: none;
        }

        .option.selected {
            color: var(--accent);
            border-bottom: 2px solid var(--accent);
            padding-bottom: 2px;
        }

        /* Loading Overlay */
        .loading-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 300;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .loading-overlay.show {
            opacity: 1;
            pointer-events: all;
        }

        .spinner {
            width: 60px;
            height: 60px;
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Toast Notification */
        .toast {
            position: fixed;
            top: -100px;
            left: 50%;
            transform: translateX(-50%);
            background: #fff;
            color: var(--text);
            padding: 16px 24px;
            border-radius: 12px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            gap: 12px;
            z-index: 400;
            transition: top 0.4s ease;
            font-size: 15px;
            font-weight: 500;
        }

        .toast.show {
            top: 20px;
        }

        .toast .icon {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: #fee;
            color: var(--error);
            font-size: 18px;
            font-weight: bold;
        }

        @media (max-width: 600px) {

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 6px;
  }

  .mobile-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
  }

  .mobile-header .close-btn {
    position: absolute;
    right: 0;
    top: 0;
  }

  .wallet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 20px;
    text-align: center;
  }

  .wallet-grid .vallet {
    flex-direction: column;
    gap: 6px;
    padding: 0;
  }

  .wallet-grid img {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .wallet-grid p {
    font-size: 12px;
    margin: 0;
    color: var(--text);
    font-weight: 500;
  }

  .wallet-info {
    margin-top: 18px;
    text-align: center;
  }

  .wallet-info h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
  }

  .wallet-info p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 10px;
    margin-bottom: 20px;
  }

  .wallet-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
  }

  .wallet-actions button  {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #000;
    background: var(--card);
    font-weight: 500;
    cursor: pointer;
  }

  .wallet-actions a{
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #000;
    background: var(--card);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    color: #000;
    font-size: 14px;
  }
}
@media (max-width: 600px) {

  .get-wallet-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 6px;
  }

  .get-wallet-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
  }

  .get-wallet-header .back-btn {
    position: absolute;
    left: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
  }

  .get-wallet-header .close-btn {
    position: absolute;
    right: 0;
  }

  .get-wallet-list {
    margin-top: 20px;
  }

  .get-wallet-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
  }

  .get-wallet-item h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
  }

  .get-wallet-item h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
  }

  .get-wallet-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
  }

  .get-wallet-footer {
    margin-top: 24px;
  }

  .get-wallet-footer h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
  }

  .get-wallet-footer p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
  }
}

@media (max-width: 600px) {

  .get-wallet-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .get-wallet-left img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
  }
}
 
@media (max-width: 600px) {

  .get-wallet-footer {
    margin-top: 26px;
    text-align: center;
  }

  .get-wallet-footer h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
  }

  .get-wallet-footer p {
    margin: 0 auto;
    max-width: 300px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
  }
}
