/* ===== VARIABLES & RESET ===== */
:root {
    --primary: #ff6b6b;
    --secondary: #4ecdc4;
    --dark: #292f36;
    --darker: #1a1e23;
    --light: #f7fff7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--darker);
    color: var(--light);
    min-height: 100vh;
    padding: 20px;
    overscroll-behavior: none;
}

/* ===== LOADING ANIMATION ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 107, 107, 0.3);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* ===== BACKGROUND ===== */
.cyber-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
}

.static-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 107, 107, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 107, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ===== PROFILE SECTION ===== */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
    text-align: center;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    padding: 3px;
    background: var(--dark);
    overflow: hidden;
}

.profile-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.store-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    margin-bottom: 0px;
}

/* ===== DESCRIPTION ===== */
.description {
    text-align: center;
    width: 100%;
    margin: 5px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.description-line {
    font-size: 1rem;
    color: var(--light);
    line-height: 1.4;
    display: block;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    width: 80%;
    height: 1px;
    background: rgba(255, 107, 107, 0.15);
    margin: 8px auto;
}

/* ===== LINKS SECTION ===== */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(41, 47, 54, 0.8);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 10px;
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 60px;
}

.link-item:hover {
    border-color: var(--primary);
    background: rgba(41, 47, 54, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.link-icon {
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
    color: var(--light);
}

.link-text {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
}

.link-arrow {
    font-size: 1rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.link-item:hover .link-arrow {
    opacity: 1;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px 0;
    width: 100%;
}

.footer-icon {
    font-size: 1.3rem;
    color: var(--light);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    background: rgba(41, 47, 54, 0.6);
    border: 1px solid rgba(255, 107, 107, 0.1);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-icon:hover {
    color: var(--light);
    transform: translateY(-2px);
    background: rgba(41, 47, 54, 0.8);
    border-color: var(--primary);
}

/* ===== SUBPAGE STYLES ===== */
.subpage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    z-index: 1000;
    padding: 20px;
    display: none;
    flex-direction: column;
    overflow-y: auto;
}

.subpage-content {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.subpage-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 107, 107, 0.2);
}

.back-btn {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    font-size: 1.1rem;
}

.back-btn:hover {
    background: var(--primary);
    color: var(--dark);
}

.subpage-header h2 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.subpage-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

/* ===== COMING SOON STYLES ===== */
.coming-soon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}

.coming-soon-text {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
    letter-spacing: 4px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px var(--primary), 0 0 20px rgba(255, 107, 107, 0.5);
    }
    to {
        text-shadow: 0 0 15px var(--primary), 0 0 30px rgba(255, 107, 107, 0.7);
    }
}

/* ===== TOAST NOTIFICATION ===== */
#exitToast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(41, 47, 54, 0.95);
    color: var(--light);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 10000;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    animation: toastSlideUp 0.3s ease-out;
    white-space: nowrap;
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 480px) {
    body {
        padding: 15px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .container {
        gap: 12px;
        padding: 0 10px;
    }
    
    .profile-img {
        width: 100px;
        height: 100px;
    }
    
    .store-name {
        font-size: 1.5rem;
    }
    
    .description {
        margin: 3px 0;
        gap: 1px;
    }
    
    .description-line {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .section-divider {
        width: 90%;
        margin: 6px auto;
    }
    
    .link-item {
        padding: 12px 15px;
        min-height: 50px;
    }
    
    .link-icon {
        font-size: 1.2rem;
    }
    
    .footer {
        margin-top: 6px;
        gap: 6px;
        padding: 6px 0;
    }
    
    .footer-icon {
        font-size: 1.2rem;
        padding: 5px;
        min-width: 36px;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .subpage-header h2 {
        font-size: 1.3rem;
    }
    
    .subpage {
        padding: 15px;
    }
    
    .back-btn {
        width: 44px;
        height: 44px;
    }
    
    .coming-soon-text {
        font-size: 3rem;
        letter-spacing: 3px;
    }
}

@media (max-width: 320px) {
    .profile-img {
        width: 90px;
        height: 90px;
    }
    
    .store-name {
        font-size: 1.3rem;
    }
    
    .description {
        margin: 2px 0;
        gap: 1px;
    }
    
    .description-line {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .section-divider {
        margin: 4px auto;
    }
    
    .footer {
        gap: 5px;
        margin-top: 5px;
    }
    
    .footer-icon {
        font-size: 1.1rem;
        padding: 4px;
        min-width: 34px;
        min-height: 34px;
    }
    
    .subpage {
        padding: 10px;
    }
    
    .coming-soon-text {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
}