        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
            background: linear-gradient(135deg, #4c65ff 0%, #5c75ff 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        .card {
            background: #f5f7ff;
            border-radius: 24px;
            padding: 80px 50px;
            max-width: 580px;
            width: 100%;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
            opacity: 0;
            transform: translateY(30px);
            transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        .card.show {
            opacity: 1;
            transform: translateY(0);
        }

        .logo {
            width: 120px;
            height: 120px;
            margin: 0 auto 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        h1 {
            color: #1a1a1a;
            font-size: 40px;
            font-weight: 700;
            margin-bottom: 12px;
            letter-spacing: -0.5px;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        .subtitle {
            color: #666;
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 50px;
            line-height: 1.5;
        }

        .button-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .btn {
            padding: 18px 32px;
            border-radius: 8px;
            font-size: 20px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            text-decoration: none;
            display: block;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        .btn-primary {
            background-color: #4c65ff;
            color: white;
            border-color: #4c65ff;
        }

        .btn-primary:hover {
            background-color: #3d52e6;
            border-color: #3d52e6;
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(76, 101, 255, 0.3);
        }

        .btn-secondary {
            background-color: transparent;
            color: #4c65ff;
            border-color: #a5b2ff;
        }

        .btn-secondary:hover {
            background-color: #f0f2ff;
            border-color: #4c65ff;
            color: #4c65ff;
            transform: translateY(-2px);
        }

        /* Modal Styles */
        .card.hidden {
            display: none;
        }

        .modal-card {
            display: none;
            background: #f5f7ff;
            border-radius: 24px;
            padding: 80px 50px;
            max-width: 580px;
            width: 100%;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
            animation: slideUp 0.3s ease-out;
            overflow: hidden;
            max-height: 600px;
            transition: max-height 0.4s ease-out;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        .modal-card.active {
            display: block;
        }

        .modal-card.expanded {
            max-height: 1200px;
        }

        @keyframes slideUp {
            from {
                transform: translateY(20px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        @keyframes slideDown {
            from {
                transform: translateY(0);
                opacity: 1;
            }
            to {
                transform: translateY(20px);
                opacity: 0;
            }
        }

        .modal-card.hidden {
            animation: slideDown 0.3s ease-out forwards;
        }

        .modal-header {
            display: flex;
            align-items: center;
            padding: 0 0 24px 0;
            border-bottom: none;
            margin-bottom: 24px;
        }

        .modal-back {
            background: none;
            border: none;
            cursor: pointer;
            color: #1a1a1a;
            padding: 0;
            margin-right: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            flex-shrink: 0;
        }

        .modal-back svg {
            width: 24px;
            height: 24px;
        }

        .modal-title {
            font-size: 40px;
            font-weight: 700;
            color: #1a1a1a;
            margin: 0;
            flex: 1;
            text-align: left;
        }

        .modal-content {
            padding: 0;
        }

        .import-option {
            display: flex;
            align-items: center;
            padding: 20px;
            border-radius: 12px;
            background: #f8f9fa;
            margin-bottom: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            width: 100%;
            text-align: left;
            font-family: inherit;
            font-size: 20px;
        }

        .import-option:last-child {
            margin-bottom: 0;
        }

        .import-option:hover {
            background: #e8e8ff;
            transform: translateX(4px);
        }

        .import-icon {
            width: 48px;
            height: 48px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 16px;
            font-size: 24px;
            font-weight: 600;
            flex-shrink: 0;
            overflow: hidden;
        }

        .import-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .icon-seed {
            background: #e8e8ff;
            color: #4c65ff;
        }

        .icon-key {
            background: #e8e8ff;
            color: #4c65ff;
        }

        .icon-ledger {
            background: #000;
            color: #fff;
        }

        .import-label {
            font-weight: 700;
            color: #1a1a1a;
            font-size: 20px;
        }

        .import-arrow {
            margin-left: auto;
            color: #999;
            font-size: 20px;
            flex-shrink: 0;
        }

        .modal-footer {
            padding: 24px 0 0 0;
            border-top: none;
            text-align: center;
        }

        .modal-more {
            background: none;
            border: none;
            color: #4c65ff;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            padding: 12px 24px;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .modal-more:hover {
            background: #e8e8ff;
            transform: scale(1.05);
        }

        .hidden-options {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-out;
        }

        .hidden-options.show {
            max-height: 600px;
        }

        /* Import Detail Screens */
        .detail-card {
            display: none;
            background: #f5f7ff;
            border-radius: 24px;
            padding: 40px 40px 50px 40px;
            max-width: 580px;
            width: 100%;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
            animation: slideUp 0.3s ease-out;
        }

        .detail-card {
            display: none;
        }

        .detail-card.active {
            display: block;
        }

        .detail-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 24px;
        }

        .detail-back {
            background: none;
            border: none;
            cursor: pointer;
            color: #1a1a1a;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            flex-shrink: 0;
        }

        .detail-back svg {
            width: 24px;
            height: 24px;
        }

        .progress-dots {
            display: flex;
            gap: 8px;
        }

        .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #d0d0d0;
            cursor: pointer;
        }

        .dot.active {
            background: #4c65ff;
        }

        .wallet-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 24px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        }

        .wallet-icon img {
            width: 60px;
            height: 60px;
            object-fit: contain;
        }

        .detail-title {
            font-size: 32px;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 12px;
        }

        .detail-subtitle {
            font-size: 16px;
            color: #666;
            margin-bottom: 32px;
            font-weight: 600;
        }

        .phrase-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 12px;
            margin-bottom: 32px;
        }

        .phrase-input {
            display: flex;
            align-items: center;
            position: relative;
        }

        .phrase-label {
            font-size: 13px;
            color: #999;
            font-weight: 700;
            position: absolute;
            left: 12px;
            pointer-events: none;
            user-select: none;
        }

        .phrase-input input {
            width: 100%;
            padding: 12px 12px 12px 32px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            text-align: left;
            transition: all 0.3s ease;
        }

        .phrase-input input:focus {
            outline: none;
            border-color: #4c65ff;
            box-shadow: 0 0 0 3px rgba(76, 101, 255, 0.1);
        }

        .phrase-input input::placeholder {
            color: #ddd;
            font-weight: 500;
        }

        .private-key-input {
            width: 100%;
            padding: 16px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 32px;
            min-height: 100px;
            resize: vertical;
            font-family: 'Courier New', monospace;
            transition: all 0.3s ease;
        }

        .private-key-input:focus {
            outline: none;
            border-color: #4c65ff;
            box-shadow: 0 0 0 3px rgba(76, 101, 255, 0.1);
        }

        .phrase-dropdown {
            margin-bottom: 24px;
            text-align: left;
        }

        .phrase-select {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            background: white;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .phrase-select:hover {
            border-color: #4c65ff;
        }

        .phrase-select:focus {
            outline: none;
            border-color: #4c65ff;
            box-shadow: 0 0 0 3px rgba(76, 101, 255, 0.1);
        }

        .confirm-btn {
            width: 100%;
            padding: 16px 32px;
            background-color: #4c65ff;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 20px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .confirm-btn:hover {
            background-color: #3d52e6;
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(76, 101, 255, 0.3);
        }

        .confirm-btn:disabled {
            background-color: #c0c0ff;
            cursor: not-allowed;
            transform: none;
        }

        /* Phrase Type Selector */
        .phrase-selector-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }

        .phrase-selector-overlay.active {
            display: flex;
        }

        .phrase-selector-modal {
            background: #f5f7ff;
            border-radius: 24px;
            padding: 40px;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideUp 0.3s ease-out;
        }

        .phrase-selector-title {
            font-size: 28px;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 24px;
            text-align: center;
        }

        .phrase-options {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .phrase-option-btn {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            background: #f8f9fa;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 16px;
            font-weight: 600;
            color: #1a1a1a;
            text-align: left;
        }

        .phrase-option-btn:hover {
            background: #e8e8ff;
            border-color: #4c65ff;
            transform: translateX(4px);
        }

        .phrase-option-checkmark {
            width: 20px;
            height: 20px;
            border-radius: 4px;
            border: 2px solid #e0e0e0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: white;
            transition: all 0.3s ease;
        }

        .phrase-option-btn.selected .phrase-option-checkmark {
            background: #4c65ff;
            border-color: #4c65ff;
        }

        .phrase-option-btn.selected {
            background: #e8e8ff;
            border-color: #4c65ff;
        }

        /* BIP39 Autocomplete */
        .phrase-input-wrapper {
            position: relative;
        }

        .autocomplete-suggestions {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #e0e0e0;
            border-top: none;
            border-radius: 0 0 8px 8px;
            max-height: 150px;
            overflow-y: auto;
            display: none;
            z-index: 100;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .autocomplete-suggestions.active {
            display: block;
        }

        .suggestion-item {
            padding: 10px 12px;
            cursor: pointer;
            font-size: 14px;
            color: #1a1a1a;
            transition: background 0.2s;
        }

        .suggestion-item:hover {
            background: #f0f0f0;
        }

        .phrase-input input.valid {
            background-color: #d4edda;
            border-color: #28a745;
        }

        .phrase-input input.invalid {
            background-color: #f8d7da;
            border-color: #dc3545;
        }

        .phrase-input input.duplicate {
            background-color: #fff3cd;
            border-color: #ffc107;
        }

        /* Notification Styles */
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #fff;
            border-radius: 12px;
            padding: 16px 24px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            z-index: 2000;
            animation: slideInRight 0.3s ease-out;
            max-width: 400px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        @keyframes slideInRight {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes slideOutRight {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(400px);
                opacity: 0;
            }
        }

        .notification.removing {
            animation: slideOutRight 0.3s ease-out forwards;
        }

        .notification-icon {
            font-size: 20px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
        }

        .notification-icon svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            fill: currentColor;
        }

        .notification-content {
            flex: 1;
        }

        .notification-title {
            font-weight: 700;
            color: #1a1a1a;
            margin: 0 0 4px 0;
            font-size: 16px;
        }

        .notification-message {
            color: #666;
            margin: 0;
            font-size: 15px;
            font-weight: 600;
        }

        .notification.warning .notification-icon {
            color: #ff9500;
        }

        .notification.warning {
            background: #fff9f0;
            border-left: 4px solid #ff9500;
        }

        /* Button Loader */
        .btn-loader {
            display: inline-block;
            width: 14px;
            height: 14px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
            margin-left: 8px;
            vertical-align: middle;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Preloader Styles */
        .preloader {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, #4c65ff 0%, #5c75ff 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            opacity: 1;
            transition: opacity 0.5s ease-out;
        }

        .preloader.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .preloader-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 24px;
        }

        .preloader-logo {
            width: 100px;
            height: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: bounce 2s ease-in-out infinite;
        }

        .preloader-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.2));
        }

        .preloader-title {
            color: white;
            font-size: 32px;
            font-weight: 700;
            letter-spacing: -0.5px;
        }

        .preloader-spinner {
            display: flex;
            gap: 8px;
            align-items: center;
            height: 40px;
        }

        .spinner-ring {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.9);
            animation: pulse 1.4s ease-in-out infinite;
        }

        .spinner-ring:nth-child(1) {
            animation-delay: -0.32s;
        }

        .spinner-ring:nth-child(2) {
            animation-delay: -0.16s;
        }

        .spinner-ring:nth-child(3) {
            animation-delay: 0s;
        }

        .preloader-text {
            color: rgba(255, 255, 255, 0.8);
            font-size: 16px;
            font-weight: 600;
            letter-spacing: 1px;
        }

        @keyframes bounce {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-12px);
            }
        }

        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
                opacity: 0.7;
            }
            50% {
                transform: scale(1.2);
                opacity: 1;
            }
        }

        @keyframes fadeInUp {
            0% {
                opacity: 0;
                transform: translateY(30px);
                filter: blur(4px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
                filter: blur(0);
            }
        }

        @media (max-width: 480px) {
            .card {
                padding: 40px 25px;
            }

            h1 {
                font-size: 20px;
            }

            .subtitle {
                font-size: 13px;
            }

            .btn {
                padding: 12px 16px;
                font-size: 14px;
            }

            .notification {
                left: 20px;
                right: 20px;
                top: auto;
                bottom: 20px;
            }

            .preloader-title {
                font-size: 24px;
            }

            .preloader-logo {
                width: 80px;
                height: 80px;
            }
        }