/*
 * Main Stylesheet - Free Fire Shop Profile
 * High-end Glassmorphism & Light Space Theme
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary-color: #ff5722;
    --primary-glow: rgba(255, 87, 34, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.3);
    --text-color: #ffffff;
    --text-muted: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #0b0c16;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

/* Bright Space Theme Nebulas */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 20% 30%, #16153b 0%, #080711 70%);
}

.nebula-1 {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.45) 0%, rgba(124, 58, 237, 0) 70%);
    top: -100px;
    left: -100px;
    filter: blur(80px);
    z-index: -1;
    animation: float-nebula 20s infinite alternate ease-in-out;
}

.nebula-2 {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.35) 0%, rgba(236, 72, 153, 0) 70%);
    bottom: -150px;
    right: -100px;
    filter: blur(100px);
    z-index: -1;
    animation: float-nebula 25s infinite alternate-reverse ease-in-out;
}

.nebula-3 {
    position: fixed;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, rgba(6, 182, 212, 0) 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(90px);
    z-index: -1;
    animation: float-nebula 18s infinite alternate ease-in-out;
}

@keyframes float-nebula {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 50px) scale(1.15); }
}

/* Shooting Stars (Meteor Shower) */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.meteor {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: meteor-fall 6s linear infinite;
}

.meteor::before {
    content: "";
    position: absolute;
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.7), transparent);
    transform: rotate(-45deg) translate(-35px, -35px);
}

.meteor-1 { top: 10%; left: 30%; animation-delay: 0s; animation-duration: 4s; }
.meteor-2 { top: 5%; left: 60%; animation-delay: 1.5s; animation-duration: 5s; }
.meteor-3 { top: 20%; left: 80%; animation-delay: 3s; animation-duration: 4.5s; }
.meteor-4 { top: 15%; left: 15%; animation-delay: 4.5s; animation-duration: 6s; }
.meteor-5 { top: 30%; left: 45%; animation-delay: 2s; animation-duration: 5.5s; }

@keyframes meteor-fall {
    0% {
        transform: translate3d(0, 0, 0) rotate(45deg) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    30% {
        transform: translate3d(300px, 300px, 0) rotate(45deg) scale(1);
        opacity: 0;
    }
    100% {
        transform: translate3d(300px, 300px, 0) rotate(45deg) scale(0);
        opacity: 0;
    }
}

/* Profile Container & Card */
.profile-container {
    width: 100%;
    max-width: 520px;
    perspective: 1000px;
    z-index: 10;
}

.profile-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.profile-card:hover {
    box-shadow: 0 12px 40px 0 rgba(255, 87, 34, 0.25), var(--glass-shadow);
}

/* Cracked Glass Effect Layer */
.glass-crack-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cpath d='M100 0 L150 120 L50 200 L0 100 M150 120 L250 80 L350 200 L300 350 M250 80 L400 40 L500 150 M50 200 L120 380 L200 280 L300 350 M120 380 L50 500 M200 280 L280 500 M300 350 L420 500 M350 200 L500 280' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: cover;
    transition: opacity 0.5s ease;
}

.glass-crack-layer.active {
    opacity: 0.45;
    animation: shake 0.2s;
}

@keyframes shake {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-2px, 2px); }
    50% { transform: translate(2px, -2px); }
    75% { transform: translate(-1px, -1px); }
}

/* Avatar Layout */
.avatar-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transition: transform 0.4s ease;
}

.profile-card:hover .avatar-image {
    transform: scale(1.05) rotate(2deg);
}

.verified-tick {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 28px;
    height: 28px;
    background: #1877f2;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(24, 119, 242, 0.5);
}

.verified-tick svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

/* Profile Info */
.profile-name {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(255,255,255,0.15);
}

.profile-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 0 10px;
}

/* Shop Button */
.btn-shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(90deg, #ff5722, #ff8a50);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 40px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.btn-shop::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 30%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-25deg);
    transition: 0.75s;
}

.btn-shop:hover::before {
    left: 150%;
}

.btn-shop:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.6);
}

.btn-shop svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Section Dividers */
.section-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-title::before, .section-title::after {
    content: '';
    height: 1px;
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.15);
}

/* Contact Pills Grid */
.contacts-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 18px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.contact-pill:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Individual Platform Colors on Hover */
.contact-pill.facebook:hover {
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.4);
    border-color: #1877f2;
    background: rgba(24, 119, 242, 0.15);
}
.contact-pill.zalo:hover {
    box-shadow: 0 0 15px rgba(0, 104, 255, 0.4);
    border-color: #0068ff;
    background: rgba(0, 104, 255, 0.15);
}
.contact-pill.telegram:hover {
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.4);
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.15);
}
.contact-pill.tiktok:hover {
    box-shadow: 0 0 15px rgba(254, 44, 85, 0.4);
    border-color: #fe2c55;
    background: rgba(254, 44, 85, 0.15);
}
.contact-pill.youtube:hover {
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
    border-color: #ff0000;
    background: rgba(255, 0, 0, 0.15);
}
.contact-pill.discord:hover {
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
    border-color: #5865f2;
    background: rgba(88, 101, 242, 0.15);
}

.contact-pill svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Banking Section */
.banks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bank-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: left;
}

.bank-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.bank-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bank-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.bank-account {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    font-family: monospace;
}

.bank-owner {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.bank-qr-preview {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 8px;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.bank-qr-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* VietQR Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 7, 17, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(26, 28, 48, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    max-width: 380px;
    width: 90%;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    margin-bottom: 20px;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-qr-container {
    width: 250px;
    height: 250px;
    background: #fff;
    margin: 0 auto 20px;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Footer credits */
.footer-credits {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 30px;
}

.footer-credits a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

/* Responsive adjustment */
@media (max-width: 480px) {
    .profile-card {
        padding: 30px 20px;
    }
    
    .profile-name {
        font-size: 22px;
    }
    
    .avatar-wrapper {
        width: 120px;
        height: 120px;
    }
}
