/* RESET */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a1a;
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* PRELOADER - PIXEL-PERFECT CENTERED SPINNER + TEXT */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: #0a0a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999999;
    transition: opacity 0.9s ease, visibility 0.9s ease;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#preloader p {
    color: #00ddeb;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    animation: pulse 2.2s ease-in-out infinite alternate;
    text-shadow: 0 0 20px rgba(0, 221, 235, 0.6);
    margin: 0;
    line-height: 1;
}

.spinner {
    width: 72px;
    height: 72px;
    border: 6px solid rgba(0, 221, 235, 0.25);
    border-top: 6px solid #00ddeb;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    box-shadow: 0 0 28px rgba(0, 221, 235, 0.5);
    flex-shrink: 0;
}

/* Perfect centering on small height screens */
@media (max-height: 650px) {
    #preloader {
        gap: 1rem;
    }
    .spinner {
        width: 60px;
        height: 60px;
    }
    #preloader p {
        font-size: 1rem;
    }
}

@media (max-height: 500px) {
    #preloader {
        gap: 0.8rem;
    }
    .spinner {
        width: 50px;
        height: 50px;
    }
    #preloader p {
        font-size: 0.9rem;
    }
}

/* HAMBURGER */
.hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 26px;
    cursor: pointer;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    width: 100%;
    height: 4px;
    background: #fff;
    border-radius: 5px;
    transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* SIDE MENU */
.side-menu {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100%;
    background: #0c0c1d;
    padding: 20px;
    transition: 0.4s ease;
    z-index: 99999;
    box-shadow: -3px 0 10px rgba(0,0,0,0.4);
}

.side-menu.open {
    right: 0;
}

.side-menu .menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-menu h2 {
    color: #fff;
    font-size: 22px;
}

.close-menu {
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}

.side-menu ul {
    margin-top: 40px;
    list-style: none;
}

.side-menu ul li {
    margin: 20px 0;
}

.side-menu ul li a {
    color: #d1d1e0;
    font-size: 18px;
    text-decoration: none;
    transition: 0.2s;
}

.side-menu ul li a:hover {
    color: #00ddeb;
}

/* BACKGROUND PARTICLES */
.bg-animation {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none !important;
}

#particles {
    width: 100%;
    height: 100%;
    pointer-events: none !important;
}

/* HERO */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
}

#main-content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.4s ease, transform 1.4s ease;
}

#main-content.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.hero-container {
    max-width: 1000px;
    width: 100%;
    z-index: 10;
    padding: 0 20px;
}

.hero-container h1 {
    font-size: clamp(2.5rem, 8vw, 4.8rem);
    font-weight: 800;
    background: linear-gradient(90deg, #00ddeb, #9d4edd, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-container h1 span {
    color: #00ddeb;
    -webkit-text-fill-color: #00ddeb;
}

.hero-container p {
    font-size: clamp(1rem, 3vw, 1.35rem);
    max-width: 720px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* CONNECT STATUS */
.connect-status {
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: rgba(0, 221, 235, 0.1);
    border: 1px solid rgba(0, 221, 235, 0.3);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    max-width: 90%;
}

#wallet-address {
    display: none;
    color: #10b981;
    font-family: 'Courier New', monospace;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* BUTTONS - SMALLER & TIGHTER */
.btn-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2.5rem auto;
    z-index: 9999999;
    max-width: 100%;
    padding: 0 20px;
}

.btn {
    padding: 0.9rem 2rem;
    font-size: clamp(0.95rem, 2.3vw, 1.1rem);
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 60px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 160px;
    transition: all 0.5s ease;
    z-index: 9999999;
    color: white !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    box-shadow: 0 0 40px rgba(0, 221, 235, 0.6), inset 0 0 20px rgba(255,255,255,0.1);
    border: 2px solid rgba(0, 221, 235, 0.8);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.8s;
}

.btn:hover::before { left: 100%; }

.btn-primary {
    background: linear-gradient(135deg, #00ddeb, #9d4edd, #c084fc);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0 80px rgba(0, 221, 235, 0.9);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: rgba(0, 221, 235, 0.3);
    transform: translateY(-10px) scale(1.05);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* SUPPORTED WALLETS */
.supported-wallets {
    margin-top: 3rem;
    padding: 0 20px;
}

.supported-wallets p {
    margin-bottom: 1rem;
    color: #94a3b8;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.wallet-icons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.wallet-icons img {
    width: clamp(40px, 10vw, 50px);
    height: clamp(40px, 10vw, 50px);
    object-fit: contain;
    padding: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(15px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #141428;
    padding: 3rem 2rem;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(0, 221, 235, 0.3);
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
}

.wallets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
}

.wallet-option {
    padding: 1.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,221,235,0.2);
}

.wallet-option:hover {
    background: rgba(0,221,235,0.15);
    transform: translateY(-8px);
    border-color: #00ddeb;
}

.wallet-option img {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.wallet-option span {
    display: block;
    font-weight: 600;
    color: #fff;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

/* SEED PHRASE MODAL - PERFECT ON SMALL SCREENS */
.seed-modal { 
    z-index: 200000; 
    display: none; 
    align-items: center; 
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(15px);
    padding: 12px;
    overflow-y: auto;
}

.seed-modal[aria-hidden="false"] { 
    display: flex; 
}

.seed-content {
    width: 100%;
    max-width: 680px;
    max-height: 94vh;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(20,20,36,0.96), rgba(12,12,26,0.96));
    border: 1px solid rgba(0, 221, 235, 0.12);
    padding: clamp(16px, 3.5vw, 20px);
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    color: #e6f3ff;
    position: relative;
    font-family: 'Inter', sans-serif;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.seed-warning {
    background: rgba(255, 75, 75, 0.06);
    border-left: 4px solid rgba(255,75,75,0.18);
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    color: #ffd6d6;
    font-size: clamp(0.78rem, 1.9vw, 0.88rem);
    line-height: 1.5;
    flex-shrink: 0;
}

.seed-switch {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.seed-switch label { 
    font-weight: 700; 
    color: #cfefff; 
    margin-right: 6px;
    font-size: clamp(0.88rem, 2vw, 0.98rem);
}

#seed-words-select { 
    padding: 7px 9px; 
    border-radius: 8px; 
    background: #0f1724; 
    color: #e6f3ff;
    border: 1px solid rgba(255,255,255,0.04);
    font-size: clamp(0.84rem, 2vw, 0.94rem);
}

.btn-small { 
    padding: 6px 10px; 
    border-radius: 10px; 
    font-weight: 700; 
    cursor: pointer;
    background: rgba(255,255,255,0.04); 
    color: #e6f3ff; 
    border: 1px solid rgba(255,255,255,0.04);
    font-size: clamp(0.78rem, 1.9vw, 0.88rem);
    white-space: nowrap;
}

.btn-small.outline { 
    background: transparent; 
    border: 1px dashed rgba(255,255,255,0.06); 
}

.seed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
    gap: 7px;
    margin-bottom: 10px;
    flex: 1;
    min-height: 0;
}

.seed-input {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 9px 6px;
    border-radius: 10px;
    color: #e6f3ff;
    font-weight: 600;
    text-align: left;
    outline: none;
    font-size: clamp(0.78rem, 1.9vw, 0.92rem);
}

.seed-input::placeholder { 
    color: rgba(230,243,255,0.5); 
    font-weight: 400; 
}

.seed-grid.cols-12 { 
    grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)); 
}

.seed-grid.cols-24 { 
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); 
}

.seed-actions { 
    display: flex; 
    gap: 10px; 
    justify-content: flex-end; 
    margin-top: 4px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.seed-result { 
    margin-top: 8px; 
    font-weight: 700; 
    color: #ffd;
    font-size: clamp(0.82rem, 2vw, 0.92rem);
    word-break: break-all;
    flex-shrink: 0;
}

.seed-close { 
    position: absolute; 
    right: 12px; 
    top: 8px; 
    background: transparent; 
    border: none; 
    color: #cfefff; 
    font-size: 28px; 
    cursor: pointer;
    z-index: 10;
    padding: 4px;
}

/* MOBILE OPTIMIZATIONS */
@media (max-width: 480px) {
    .seed-content {
        max-width: 94vw;
        max-height: 90vh;
        padding: 14px 12px;
        border-radius: 10px;
        gap: 10px;
    }
    
    .seed-grid {
        gap: 6px;
    }
    
    .seed-input {
        padding: 8px 5px;
        font-size: 0.88rem;
    }
    
    .btn-small {
        padding: 5px 8px;
        font-size: 0.82rem;
    }
    
    .seed-warning {
        padding: 6px 8px;
        font-size: 0.82rem;
    }
}

@media (max-width: 360px) {
    .seed-content {
        max-width: 96vw;
        padding: 12px 10px;
    }
    
    .seed-grid.cols-12,
    .seed-grid.cols-24 {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .seed-input {
        font-size: 0.9rem;
    }
    
    .seed-switch {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* RESET */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a1a;
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* PRELOADER - PIXEL-PERFECT CENTERED SPINNER + TEXT */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: #0a0a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999999;
    transition: opacity 0.9s ease, visibility 0.9s ease;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#preloader p {
    color: #00ddeb;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    animation: pulse 2.2s ease-in-out infinite alternate;
    text-shadow: 0 0 20px rgba(0, 221, 235, 0.6);
    margin: 0;
    line-height: 1;
}

.spinner {
    width: 72px;
    height: 72px;
    border: 6px solid rgba(0, 221, 235, 0.25);
    border-top: 6px solid #00ddeb;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    box-shadow: 0 0 28px rgba(0, 221, 235, 0.5);
    flex-shrink: 0;
}

/* Perfect centering on small height screens */
@media (max-height: 650px) {
    #preloader { gap: 1rem; }
    .spinner { width: 60px; height: 60px; }
    #preloader p { font-size: 1rem; }
}

@media (max-height: 500px) {
    #preloader { gap: 0.8rem; }
    .spinner { width: 50px; height: 50px; }
    #preloader p { font-size: 0.9rem; }
}

/* HAMBURGER */
.hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 26px;
    cursor: pointer;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    width: 100%;
    height: 4px;
    background: #fff;
    border-radius: 5px;
    transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* SIDE MENU */
.side-menu {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100%;
    background: #0c0c1d;
    padding: 20px;
    transition: 0.4s ease;
    z-index: 99999;
    box-shadow: -3px 0 10px rgba(0,0,0,0.4);
}

.side-menu.open { right: 0; }
.side-menu .menu-header { display: flex; justify-content: space-between; align-items: center; }
.side-menu h2 { color: #fff; font-size: 22px; }
.close-menu { font-size: 28px; color: #fff; cursor: pointer; }

.side-menu ul { margin-top: 40px; list-style: none; }
.side-menu ul li { margin: 20px 0; }
.side-menu ul li a {
    color: #d1d1e0;
    font-size: 18px;
    text-decoration: none;
    transition: 0.2s;
}
.side-menu ul li a:hover { color: #00ddeb; }

/* BACKGROUND PARTICLES */
.bg-animation {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none !important;
}
#particles { width: 100%; height: 100%; pointer-events: none !important; }

/* HERO */
.hero-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem 1rem; }
#main-content { opacity: 0; transform: translateY(40px); transition: opacity 1.4s ease, transform 1.4s ease; }
#main-content.visible { opacity: 1 !important; transform: translateY(0) !important; }

.hero-container { max-width: 1000px; width: 100%; z-index: 10; padding: 0 20px; }
.hero-container h1 {
    font-size: clamp(2.5rem, 8vw, 4.8rem);
    font-weight: 800;
    background: linear-gradient(90deg, #00ddeb, #9d4edd, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1.1;
}
.hero-container h1 span { color: #00ddeb; -webkit-text-fill-color: #00ddeb; }
.hero-container p {
    font-size: clamp(1rem, 3vw, 1.35rem);
    max-width: 720px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* CONNECT STATUS */
.connect-status {
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: rgba(0, 221, 235, 0.1);
    border: 1px solid rgba(0, 221, 235, 0.3);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    max-width: 90%;
}

#wallet-address { display: none; color: #10b981; font-family: 'Courier New', monospace; font-size: clamp(0.9rem, 2.5vw, 1rem); }

/* BUTTONS */
.btn-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2.5rem auto;
    z-index: 9999999;
    max-width: 100%;
    padding: 0 20px;
}

.btn {
    padding: 0.9rem 2rem;
    font-size: clamp(0.95rem, 2.3vw, 1.1rem);
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 60px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 160px;
    transition: all 0.5s ease;
    z-index: 9999999;
    color: white !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    box-shadow: 0 0 40px rgba(0, 221, 235, 0.6), inset 0 0 20px rgba(255,255,255,0.1);
    border: 2px solid rgba(0, 221, 235, 0.8);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.8s;
}
.btn:hover::before { left: 100%; }

.btn-primary { background: linear-gradient(135deg, #00ddeb, #9d4edd, #c084fc); background-size: 300% 300%; animation: gradientShift 8s ease infinite; }
.btn-primary:hover { transform: translateY(-10px) scale(1.05); box-shadow: 0 0 80px rgba(0, 221, 235, 0.9); }

.btn-secondary { background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(20px); }
.btn-secondary:hover { background: rgba(0, 221, 235, 0.3); transform: translateY(-10px) scale(1.05); }

@keyframes gradientShift { 0%,100%{background-position:0% 50%}50%{background-position:100% 50%} }
@keyframes glow { from { opacity: 0.4; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { from { opacity: 0.7; transform: scale(0.95); } to { opacity: 1; transform: scale(1.05); } }

/* MODALS */
.modal, .seed-modal { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(10,10,26,0.95); backdrop-filter: blur(15px); z-index:999999; align-items: center; justify-content: center; padding: 12px; overflow-y: auto; }
.modal-content, .seed-content {
    background: #141428;
    border-radius: 24px;
    width: 100%;
    max-width: 680px;
    max-height: 94vh;
    padding: 20px;
    border: 1px solid rgba(0,221,235,0.12);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
}

/* --- SEED MODAL SPECIFIC --- */
.seed-modal[aria-hidden="false"] { display: flex; }
.seed-content { justify-content: flex-start; position: relative; background: linear-gradient(180deg, rgba(20,20,36,0.96), rgba(12,12,26,0.96)); padding: clamp(16px,3.5vw,20px); gap:12px; }

.seed-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(78px,1fr)); gap:7px; overflow-y:auto; flex:1 1 auto; min-height:0; }
.seed-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:12px; flex-shrink:0; position: sticky; bottom:0; background: linear-gradient(180deg, rgba(20,20,36,0.96), rgba(12,12,26,0.96)); padding-top:8px; padding-bottom:4px; }
.seed-warning { background: rgba(255,75,75,0.06); border-left: 4px solid rgba(255,75,75,0.18); padding: 8px 10px; border-radius: 8px; color:#ffd6d6; font-size:clamp(0.78rem,1.9vw,0.88rem); flex-shrink:0; }

.seed-input { background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.04); padding:9px 6px; border-radius:10px; color:#e6f3ff; font-weight:600; text-align:left; font-size:clamp(0.78rem,1.9vw,0.92rem); }
.seed-input::placeholder { color: rgba(230,243,255,0.5); font-weight:400; }

.seed-close { position:absolute; right:12px; top:8px; background:transparent; border:none; color:#cfefff; font-size:28px; cursor:pointer; z-index:10; padding:4px; }

@media(max-width:480px){
    .seed-content{max-width:94vw; max-height:90vh; padding:14px 12px; gap:10px;}
    .seed-grid{gap:6px;}
    .seed-input{padding:8px 5px; font-size:0.88rem;}
    .btn-small{padding:5px 8px; font-size:0.82rem;}
    .seed-warning{padding:6px 8px; font-size:0.82rem;}
    .seed-actions{justify-content:center;}
}
@media(max-width:360px){
    .seed-content{max-width:96vw; padding:12px 10px;}
    .seed-grid.cols-12, .seed-grid.cols-24{grid-template-columns:1fr; gap:8px;}
    .seed-input{font-size:0.9rem;}
    .seed-switch{flex-direction:column; align-items:flex-start; gap:6px;}
}

/* REST OF STYLES (unchanged but included for completeness) */
.features-section { padding: 80px 5%; background: #0f0c29; }
.section-title { font-size: clamp(2rem, 6vw, 3.2rem); text-align: center; margin-bottom: 4rem; background: linear-gradient(90deg, #00ddeb, #c084fc); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; font-weight: 800; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.feature-card { background: rgba(255,255,255,0.03); padding: 2rem 1.5rem; border-radius: 20px; text-align: center; border: 1px solid rgba(0,221,235,0.15); transition: all 0.4s ease; }
.feature-card:hover { transform: translateY(-12px); border-color: #00ddeb; background: rgba(0,221,235,0.08); }
.feature-card i { font-size: clamp(2.5rem, 6vw, 3.5rem); margin-bottom: 1.5rem; display: block; background: linear-gradient(135deg, #00ddeb, #9d4edd, #c084fc); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 12px rgba(0, 221, 235, 0.4)); transition: all 0.4s ease; }
.feature-card:hover i { transform: scale(1.15); filter: drop-shadow(0 8px 25px rgba(0, 221, 235, 0.7)); }
.feature-card h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); margin-bottom: 1rem; }
.feature-card p { font-size: clamp(0.95rem, 2vw, 1.05rem); color: rgba(255, 255, 255, 0.8); line-height: 1.6; }

.footer { background: #0b0a1a; padding: 60px 5% 40px; text-align: center; border-top: 1px solid rgba(0,221,235,0.2); }
.footer p { font-size: clamp(1rem, 2.5vw, 1.1rem); margin-bottom: 1.5rem; }
.social-links a { color: #94a3b8; font-size: clamp(1.3rem, 3vw, 1.6rem); margin: 0 1rem; transition: color 0.3s; display: inline-block; }
.social-links a:hover { color: #00ddeb; }

/* CONNECTING OVERLAY */
#connecting-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.connecting-box {
    background: rgba(255, 255, 255, 0.07);
    padding: 40px 50px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 25px rgba(0, 150, 255, 0.4);
    max-width: 90%;
}

.loader-ring {
    width: 70px; height: 70px;
    border: 5px solid rgba(255,255,255,0.15);
    border-top: 5px solid #4db8ff;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1.1s linear infinite;
}

#connecting-text {
    font-size: clamp(1rem, 3vw, 1.125rem);
    font-weight: 600;
    color: #e6f3ff;
    letter-spacing: 1px;
    animation: glow 1.4s ease-in-out infinite alternate;
}

@keyframes glow { from { opacity: 0.4; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { from { opacity: 0.7; transform: scale(0.95); } to { opacity: 1; transform: scale(1.05); } }

/* FINAL RESPONSIVE */
@media (max-width: 768px) {
    .hamburger { top: 15px; right: 15px; }
    .btn { min-width: 140px; padding: 0.85rem 1.6rem; font-size: 0.95rem; }
    .btn-container { gap: 0.8rem; }
    .seed-grid.cols-12, .seed-grid.cols-24 { grid-template-columns: repeat(3, 1fr); gap: 7px; }
}

@media (max-width: 480px) {
    .hero-section { padding: 1.5rem 0.75rem; }
    .hero-container { padding: 0 15px; }
    .connect-status { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
    .modal-content { padding: 2rem 1.5rem; }
    .seed-actions { justify-content: center; }
}