* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    --primary-color: #3B82F6;
    --primary-dark: #2563EB;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --input-bg: rgba(255, 255, 255, 0.08);
    --input-border: rgba(255, 255, 255, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    color: var(--text-primary);
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #3B82F6 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #1D4ED8 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #60A5FA 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(0, -100px) scale(1);
    }
    75% {
        transform: translate(-50px, -50px) scale(0.9);
    }
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.logo-section {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    width: auto;
    height: auto;
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    width: 280px;
    height: auto;
    filter: brightness(0) invert(1);
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
    }
    50% {
        transform: scale(1.02);
        filter: brightness(0) invert(1) drop-shadow(0 0 30px rgba(59, 130, 246, 0.5));
    }
}

.title {
    font-size: 32px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

.cards-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 28px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out backwards;
}

.card:nth-child(1) {
    animation-delay: 0.2s;
}

.card:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.card:hover::before {
    opacity: 0.1;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    color: var(--text-primary);
}

.card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.card-arrow {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    z-index: 1;
}

.card-arrow svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: all 0.4s ease;
}

.card:hover .card-arrow {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) translateX(4px);
}

.card:hover .card-arrow svg {
    color: white;
    transform: translateX(4px);
}

.footer {
    text-align: center;
    animation: fadeIn 1s ease-out 0.6s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.footer p {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    .container {
        padding: 32px 20px;
    }
    
    .title {
        font-size: 28px;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .card {
        padding: 24px;
    }
    
    .card-arrow {
        display: none;
    }
}

.card:active {
    transform: translateY(-2px) scale(0.98);
}

.xaman-icon {
    background: var(--primary-gradient) !important;
}

.import-options {
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: 32px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    width: fit-content;
}

.back-button:hover {
    color: var(--primary-color);
}

.back-button:hover {
    color: #3B82F6;
}

.back-button svg {
    width: 20px;
    height: 20px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    text-align: center;
}

.import-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.import-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(10px);
}

.import-card:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateX(8px);
}

.import-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.import-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.import-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.import-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

.import-form-container {
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

.import-form {
    width: 100%;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.form-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    text-align: center;
}

.seed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.seed-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.seed-number {
    position: absolute;
    left: 12px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    z-index: 1;
}

.seed-input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 12px 12px 12px 28px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.seed-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.toggle-24 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    transition: 0.3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background: var(--primary-gradient);
    border-color: transparent;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.toggle-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 16px 50px 16px 16px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'SF Mono', monospace;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.toggle-visibility {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.toggle-visibility:hover {
    color: #3B82F6;
}

.toggle-visibility svg {
    width: 20px;
    height: 20px;
}

.secret-number-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.secret-digit {
    width: 100%;
    max-width: 320px;
    height: 56px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 0 16px;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    font-family: 'SF Mono', monospace;
    letter-spacing: 4px;
    transition: all 0.3s ease;
}

.secret-digit:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    transform: translateX(4px);
}

.import-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.word-count-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.word-count-btn {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.word-count-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.word-count-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

.seed-input-wrapper.hidden {
    display: none;
}

.seed-input-wrapper {
    position: relative;
}

.autocomplete-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a2e;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 150px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
}

.screen-logo {
    display: flex;
    justify-content: center;
    margin-top: -20px;
    margin-bottom: 32px;
}

.screen-logo-img {
    width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
}

.import-button {
    width: 100%;
    background: var(--primary-gradient);
    border: none;
    border-radius: 14px;
    padding: 18px 24px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.import-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

.import-button:active {
    transform: translateY(0);
}

.import-button svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 480px) {
    .container {
        padding: 32px 20px;
    }
    
    .title {
        font-size: 28px;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .card {
        padding: 24px;
    }
    
    .card-arrow {
        display: none;
    }
    
    .seed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .secret-grid {
        gap: 6px;
        padding: 16px;
    }
    
    .secret-input {
        width: 52px;
        padding: 12px 6px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .form-title {
        font-size: 20px;
    }
}
