/* ==========================================================================
   MU THIÊN MỆNH - PREMIUM SEASON 6 LANDING PAGE
   Circular Rotating Light Download Buttons & Bottom-Positioned Branding
   ========================================================================== */

/* --- Custom Properties / CSS Variables --- */
:root {
    --bg-dark: #06070d;
    
    /* Gold Theme */
    --gold-primary: #f5d77f;
    --gold-secondary: #d4af37;
    --gold-dark: #997a15;
    --gold-glow: rgba(212, 175, 55, 0.45);
    
    /* Brand Accent Colors */
    --gdrive-green: #22c55e;
    --gdrive-glow: rgba(34, 197, 94, 0.6);
    --mega-red: #ef4444;
    --mega-glow: rgba(239, 68, 68, 0.6);
    
    /* Text Colors */
    --text-pure: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    /* Fonts */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-ui: 'Montserrat', sans-serif;
}

/* --- Reset & Global Settings (Anti-Copy Protection Active) --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}

::selection {
    background: transparent;
    color: inherit;
}

::-moz-selection {
    background: transparent;
    color: inherit;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-user-select: none;
    user-select: none;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-pure);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-touch-callout: none;
}

/* ==========================================================================
   VIDEO BACKGROUND & CINEMATIC OVERLAYS
   ========================================================================== */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    overflow: hidden;
    pointer-events: none;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.92) contrast(1.05);
}

.video-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.overlay-gradient {
    background: radial-gradient(
        circle at center,
        rgba(6, 7, 13, 0.2) 0%,
        rgba(6, 7, 13, 0.45) 60%,
        rgba(6, 7, 13, 0.75) 100%
    );
}

.overlay-vignette {
    box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.6);
}

.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    pointer-events: none;
    animation: floatGlow 12s ease-in-out infinite alternate;
}

.glow-1 {
    top: 25%;
    right: 12%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, transparent 70%);
}

.glow-2 {
    bottom: 20%;
    left: 10%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
    animation-delay: -6s;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -15px) scale(1.08); }
    100% { transform: translate(-15px, 15px) scale(0.95); }
}

/* ==========================================================================
   TOP NAVIGATION
   ========================================================================== */
.top-nav {
    width: 100%;
    padding: 20px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 30;
}

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(10, 14, 26, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 7px 16px;
    border-radius: 50px;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.server-status strong {
    color: #4ade80;
    font-weight: 700;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.top-actions {
    display: flex;
    gap: 10px;
}

.control-btn {
    background: rgba(10, 14, 26, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.control-btn:hover {
    color: #ffffff;
    background: rgba(212, 175, 55, 0.25);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.control-btn.active {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.5);
}

/* ==========================================================================
   MAIN LAYOUT & RIGHT FLOATING CIRCULAR DOWNLOAD BUTTONS
   ========================================================================== */
.main-layout {
    width: 100%;
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 40px;
    z-index: 30;
    pointer-events: none;
}

.right-circle-dock {
    pointer-events: auto;
    position: fixed;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 35;
    animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.circle-buttons-wrap {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
}

/* --- Base Circular Button --- */
.circle-btn {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

/* Outer Ambient Glow Aura */
.circle-btn::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: var(--circle-glow);
    filter: blur(14px);
    opacity: 0.45;
    z-index: -1;
    animation: pulseAura 2s ease-in-out infinite alternate;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

@keyframes pulseAura {
    0% { transform: scale(0.95); opacity: 0.35; }
    100% { transform: scale(1.1); opacity: 0.65; }
}

/* Rotating Light Ring Animation */
.rotating-light-ring {
    position: absolute;
    inset: -3.5px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--circle-glow) 0%,
        rgba(255, 255, 255, 0.95) 25%,
        transparent 60%,
        var(--circle-glow) 100%
    );
    animation: rotateRing 2.6s linear infinite;
    z-index: 0;
}

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

/* Inner Core */
.circle-core {
    position: relative;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(16, 22, 40, 0.95) 0%, rgba(8, 11, 22, 0.98) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -4px 8px rgba(0, 0, 0, 0.8),
        0 10px 25px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.circle-icon {
    font-size: 1.85rem;
    color: var(--circle-color);
    filter: drop-shadow(0 0 8px var(--circle-glow));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 2px;
}

.circle-name {
    font-family: var(--font-ui);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1;
    color: #ffffff;
    text-transform: uppercase;
}

.circle-tag {
    font-size: 0.52rem;
    font-weight: 700;
    color: var(--circle-accent);
    letter-spacing: 0.5px;
    margin-top: 2px;
    text-transform: uppercase;
}

/* Tooltip on Hover */
.circle-tooltip {
    position: absolute;
    right: calc(100% + 16px);
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--circle-glow);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6), 0 0 10px var(--circle-glow);
    z-index: 10;
}

/* --- Hover & Active States --- */
.circle-btn:hover {
    transform: scale(1.12);
}

.circle-btn:hover .rotating-light-ring {
    animation-duration: 1.2s; /* Spins faster on hover */
}

.circle-btn:hover::before {
    opacity: 0.8;
    filter: blur(20px);
}

.circle-btn:hover .circle-icon {
    transform: scale(1.15);
}

.circle-btn:hover .circle-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.circle-btn:active {
    transform: scale(1.02);
}

/* --- Specific Button Variations --- */
/* Google Drive */
.circle-gdrive {
    --circle-glow: var(--gdrive-glow);
    --circle-color: var(--gdrive-green);
    --circle-accent: #86efac;
}

/* Mega.nz */
.circle-mega {
    --circle-glow: var(--mega-glow);
    --circle-color: var(--mega-red);
    --circle-accent: #fca5a5;
}

/* ==========================================================================
   BOTTOM FOOTER & BRANDING (GẦN CUỐI CHÂN TRANG)
   ========================================================================== */
.site-footer {
    width: 100%;
    padding: 10px 35px 20px;
    z-index: 25;
}

.footer-inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- Bottom Branding Section --- */
.bottom-branding {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--gold-primary);
    padding: 4px 14px;
    border-radius: 20px;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.mini-badge i {
    color: #f97316;
    animation: flamePulse 1.5s infinite alternate;
}

@keyframes flamePulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px #f97316); }
    100% { transform: scale(1.25); filter: drop-shadow(0 0 8px #ea580c); }
}

.bottom-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1.1;
    text-transform: uppercase;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #ffe28a 35%,
        #e5b03e 70%,
        #936f1c 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.45));
    margin-bottom: 2px;
}

.bottom-subtitle {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    color: #cbd5e1;
    text-transform: uppercase;
    opacity: 0.85;
}

/* --- Footer Meta & Disclaimer --- */
.footer-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
    width: 100%;
    max-width: 650px;
}

.copyright {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 2px;
}

.copyright strong {
    color: rgba(255, 255, 255, 0.75);
}

.disclaimer {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   ANTI-COPY TOAST NOTIFICATION
   ========================================================================== */
.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(10, 14, 26, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.25);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.copy-toast i {
    color: var(--gold-secondary);
    font-size: 1rem;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 900px) {
    .right-circle-dock {
        right: 20px;
    }

    .circle-btn {
        width: 86px;
        height: 86px;
    }

    .circle-icon {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .top-nav {
        padding: 12px 15px;
    }

    .right-circle-dock {
        position: fixed;
        right: 15px;
        top: auto;
        bottom: 140px;
        transform: none;
    }

    .circle-buttons-wrap {
        gap: 16px;
    }

    .circle-btn {
        width: 76px;
        height: 76px;
    }

    .circle-icon {
        font-size: 1.4rem;
    }

    .circle-name {
        font-size: 0.55rem;
    }

    .circle-tag {
        font-size: 0.48rem;
    }

    .circle-tooltip {
        display: none; /* Hide floating tooltip on touch screens */
    }

    .bottom-title {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .bottom-subtitle {
        font-size: 0.72rem;
        letter-spacing: 2px;
    }
}
