/* Designed and developed by Le Anh Tuan
Facebook: https://www.facebook.com/atusnmoi
Github: https://github.com/leanhtuan19
Open Source Project */

/* ==================
   COMPONENTS & SECTIONS
   ================== */

/* MENU DETAILS */
.menu a.active span,
.menu .menu-item.has-submenu.active-parent > .submenu-toggle .submenu-label span {
    background: linear-gradient(135deg, #ff00ff, #00f7ff, #7dff00, #ffff00, #ff5e00, #ff00ff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animated-menu-text 5s linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7), 0 0 10px rgba(255, 255, 255, 0.5);
}

.menu a#locket-gold-link,
.menu a#locket-spam-link,
.menu a#main-content-link,
.menu a#ngl-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu a#locket-gold-link,
.menu a#locket-spam-link {
    padding-left: 53px;
}

.menu a#ngl-link {
    padding-left: 57px;
}

.menu .menu-item-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    flex-shrink: 0;
}

.menu .menu-item.has-submenu {
    position: relative;
}

.menu .submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.menu .submenu-toggle .submenu-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu .submenu-toggle .fa-chevron-right {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.menu .menu-item.open > .submenu-toggle .fa-chevron-right {
    transform: rotate(90deg);
}

.menu .menu-item.has-submenu.active-parent > .submenu-toggle {
    color: var(--secondary-color);
}

.menu .submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.15);
}
.menu .submenu a {
    padding-left: 36px;
}
.menu .submenu .submenu a {
    padding-left: 55px;
}

#main-content-link .fa-apple {
    color: #0970e6;
}

.submenu-label .fa-facebook {
    color: #1877f2;
}

#fb-get-id-link .fa-id-card {
    color: #00b3aa;
}

#fb-check-info-link .fa-user-check {
    color: var(--primary-color); /* This is the purple color from your theme */
}


/* AVATAR DETAILS & EFFECTS */
.avatar-border-animation {
    position: absolute;
    top: -5px; bottom: -5px; left: -5px; right: -5px;
    border-radius: 50%;
    border: 4px solid transparent;
    background: conic-gradient(from 180deg, #ff595e, #ffca3a, #8ac926, #1982c4, #6a4c93, #ff595e);
    mask: linear-gradient(#000, #000) padding-box, linear-gradient(#000, #000);
    mask-composite: exclude;
    animation: rotateBorder 4s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.avatar-border-animation::after {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    background: inherit;
    border-radius: 50%;
    z-index: -2;
    filter: blur(10px);
    opacity: 0.8;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}


/* LOGO & TAGLINE */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 3rem;
    color: #007AFF;
}

.logo h1 {
    font-size: 3rem;
    font-weight: 700;
    min-height: 1.2em;
}

#logoText.locket-gold-text {
    background: linear-gradient(90deg, #FFD700 10%, #c0c0c0 50%, #a9a9a9 90%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gold-shine 3s linear infinite;
}
@keyframes gold-shine {
    to { background-position: -200% center; }
}

#logoText.ngl-wave-text {
    background: linear-gradient(90deg, #ff4757 20%, #ffffff 50%, #ff4757 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: ngl-wave 2.5s linear infinite;
}
@keyframes ngl-wave {
    to { background-position: -200% center; }
}

#logoText.facebook-id-text {
    font-size: 2.3rem;
    font-weight: bold;
    background: linear-gradient(90deg, #00c3ff, #ffff1c, #ff1c68, #00c3ff);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: facebookWave 4s ease-in-out infinite;
    text-shadow: 0 2px 12px #0008, 0 1px 0 #fff4;
    letter-spacing: 1px;
}

#logoText.freefire-text {
    font-size: 2.3rem;
    font-weight: bold;
    background: linear-gradient(90deg, #FF6B35, #F7931E, #FFD700, #FF6B35);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: freefireWave 3s ease-in-out infinite;
    text-shadow: 0 2px 12px #0008, 0 1px 0 #fff4;
    letter-spacing: 1px;
}

@keyframes facebookWave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes freefireWave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#logoText span {
    position: relative;
    display: inline-block;
    background-image: linear-gradient(135deg, #ff00ff, #00f7ff, #7dff00, #ffff00, #ff5e00, #ff00ff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

#logoText span.jumping {
    animation: single-letter-jump 0.3s ease-in-out;
}
@keyframes single-letter-jump {
    50% {
        transform: translateY(-25px);
        background-image: none;
        -webkit-text-fill-color: var(--jump-color);
        color: var(--jump-color);
        text-shadow: 0 5px 15px var(--jump-color);
    }
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.8;
    font-weight: 300;
    margin-bottom: 20px;
}

/* CERTIFICATE NOTICE */
.certificate-notice {
    margin-top: 20px;
    padding: 12px 20px;
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.certificate-notice p {
    color: white;
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

.certificate-notice a {
    color: #007AFF;
    text-decoration: none;
    font-weight: 500;
}

.certificate-notice a:hover {
    color: #0056b3;
}

/* SEARCH CONTAINER */
.search-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: rgba(118, 118, 128, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 48px;
}

.search-box i.fa-search {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-right: 10px;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 1rem;
    color: white;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-box button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
}

.search-box button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* CATEGORY NAVIGATION */
.category-nav {
    margin-bottom: 30px;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    background: rgba(118, 118, 128, 0.12);
    padding: 4px;
    border-radius: 12px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(15px);
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
    justify-content: center;
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* FILES SECTION & APP LIST */
.section-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding: 0 16px;
}

.section-header h2 {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#categoryCount {
    animation: colorCycle 10s linear infinite;
    font-weight: 700;
}

@keyframes colorCycle {
    0%   { color: #ff595e; }
    10%  { color: #ffca3a; }
    20%  { color: #8ac926; }
    30%  { color: #1982c4; }
    40%  { color: #6a4c93; }
    50%  { color: #ff924c; }
    60%  { color: #00d9ff; }
    70%  { color: #ff28a9; }
    80%  { color: #a0eade; }
    90%  { color: #f9c80e; }
    100% { color: #ff595e; }
}

.files-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.app-item {
    background: rgba(28, 28, 30, 1);
    padding: 16px 20px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(118, 118, 128, 0.3);
    border-radius: 12px;
    margin-bottom: 12px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.app-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.app-item:hover {
    background: rgba(58, 58, 60, 1);
    border-color: rgba(118, 118, 128, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.app-item:active {
    background: rgba(72, 72, 74, 1);
    transform: scale(0.99);
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-icon i {
    font-size: 24px;
    color: #666;
}

.app-info {
    flex: 1;
    min-width: 0;
}

.app-info h3 {
    font-size: 1.1rem;
    margin: 0 0 4px 0;
    color: white;
    font-weight: 600;
}

.version-count {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-top: -2px;
    margin-bottom: 8px;
}

.version-count .version-number {
    color: var(--secondary-color);
    font-weight: 600;
}

.app-category-tag {
    background: #007AFF;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    display: inline-block;
}

.app-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.app-size {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 500;
}

.download-btn {
    background: white;
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.download-btn:active {
    transform: scale(0.95);
}

/* VERSION DETAIL MODAL */
.modal-header {
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
}

.modal-header h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: white;
}

.modal-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
}

.modal-body p {
    margin-bottom: 25px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

#modalVersionsTitle {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}
.modal-version-count {
    color: rgb(255, 28, 225);
    font-weight: 700;
    font-size: 1.3rem;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

/* VERSION SELECTION CAROUSEL */
#modalVersionsList {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 15px;
    padding: 5px 0 20px 0;
    margin: 0 -30px;
    padding-left: 30px;
    padding-right: 30px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* Custom scrollbar for Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) rgba(0, 0, 0, 0.2);
}

/* Custom Animated Scrollbar for Version List (WebKit) */
#modalVersionsList::-webkit-scrollbar {
    height: 10px;
}

#modalVersionsList::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

#modalVersionsList::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff595e, #ffca3a, #8ac926, #1982c4, #6a4c93, #ff924c, #00d9ff, #ff28a9, #a0eade, #f9c80e, #e63946, #a8dadc, #457b9d, #1d3557, #ffbe0b, #fb5607, #ff006e, #8338ec, #3a86ff);
    background-size: 500% 500%;
    border-radius: 10px;
    animation: animated-gradient-background 15s linear infinite;
}

#modalVersionsList.active-drag { cursor: grabbing; cursor: -webkit-grabbing; user-select: none; }

.version-item {
    background: rgba(118, 118, 128, 0.12);
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    flex: 0 0 85%;
    max-width: 320px;
    scroll-snap-align: start;
}

.version-item:hover {
    background: rgba(118, 118, 128, 0.24);
}

.version-item.active {
    background: rgba(0, 123, 255, 0.2);
    border-color: #007AFF;
}

.version-item .version-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.version-item .version-info strong {
    color: white;
    font-size: 1.1rem;
}

.version-item .version-info span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.version-item .version-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* CONTACT MODAL */
.contact-modal-content {
    max-width: 450px;
    background: #1c1c1e;
    transform: scale(0.7) translateY(-50px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-modal-content.show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.contact-modal-header {
    text-align: center;
    padding: 40px 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, #ff595e, #ffca3a, #8ac926, #1982c4, #6a4c93, #ff924c, #00d9ff, #ff28a9, #a0eade, #f9c80e);
    background-size: 400% 400%;
    animation: animated-icon-background 15s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.contact-icon i { font-size: 2rem; color: white; }
.contact-modal-header h3 { font-size: 1.8rem; margin-bottom: 8px; color: white; font-weight: 700; }
.contact-modal-header p { color: rgba(255, 255, 255, 0.6); font-size: 1rem; margin: 0; }

.contact-modal-body {
    padding: 20px 30px 30px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: rgba(118, 118, 128, 0.12);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-method:hover {
    background: rgba(118, 118, 128, 0.24);
    transform: translateY(-2px);
}

.contact-method-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
}

.contact-method.telegram .contact-method-icon,
.contact-method.zalo .contact-method-icon {
    background: #e60982;
}

.contact-method.facebook .contact-method-icon {
    background: #1877f2;
}

.contact-method-info { flex: 1; }
.contact-method-info h4 { font-size: 1.1rem; margin-bottom: 4px; color: white; font-weight: 600; }
.contact-method-info p { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; margin: 0; }
.contact-arrow { color: rgba(255, 255, 255, 0.3); font-size: 0.9rem; }

.contact-footer {
    text-align: center;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.contact-footer i { color: #007AFF; }

/* NGL TOOL */
.ngl-tool-container {
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.ngl-tool-container .ngl-tool-content {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 0 auto;
    font-family: 'JetBrains Mono', monospace;
}

.ngl-tool-container .box {
    background-color: #24283b;
    border: 1px solid #414868;
    border-radius: 10px;
    padding: 25px;
}

.ngl-tool-container .box-title {
    color: #7aa2f7;
    font-size: 1.2em;
    font-weight: bold;
    margin: -25px -25px 20px -25px;
    padding: 15px 25px;
    border-bottom: 1px solid #414868;
}

.ngl-tool-container .form-fieldset {
    border: 1px solid #414868;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
}

.ngl-tool-container .form-fieldset legend { padding: 0 10px; color: #c0caf5; font-size: 0.9em; }

.ngl-tool-container input[type="text"],
.ngl-tool-container input[type="number"],
.ngl-tool-container input[type="password"] {
    width: 100%;
    background: transparent;
    border: none;
    color: #c0caf5;
    font-family: inherit;
    font-size: 1em;
    padding: 5px 0;
    box-sizing: border-box;
}
.ngl-tool-container input:focus { outline: none; }

.ngl-tool-container .checkbox-group {
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: #c0caf5;
}
.ngl-tool-container .checkbox-group label { margin-left: 8px; }

.ngl-tool-container .button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.ngl-tool-container .btn {
    padding: 12px;
    font-family: inherit;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.ngl-tool-container .btn-primary { background-color: #7aa2f7; color: #24283b; }
.ngl-tool-container .btn-primary:hover { background-color: #9abffa; }
.ngl-tool-container .btn-danger { background-color: #f7768e; color: #24283b; }
.ngl-tool-container .btn-danger:hover { background-color: #ff99aa; }
.ngl-tool-container .btn:disabled { background-color: #24283b; color: #565f89; cursor: not-allowed; border: 1px solid #565f89; }
.ngl-tool-container #progress-text { margin-bottom: 10px; font-size: 0.95em; color: #c0caf5; }
.ngl-tool-container .status-waiting, .ngl-tool-container .status-stopped { color: #e0af68; }
.ngl-tool-container .status-running { color: #f7768e; }
.ngl-tool-container .status-finished { color: #9ece6a; }
.ngl-tool-container #progress-bar { width: 100%; height: 8px; border-radius: 4px; overflow: hidden; border: 1px solid #414868; }

.ngl-tool-container #log-container {
    margin-top: 15px;
    background-color: #1a1b26;
    border-radius: 5px;
    padding: 15px;
    height: 200px;
    overflow-y: auto;
    font-size: 0.9em;
    line-height: 1.6;
    color: #c0caf5;
}
.ngl-tool-container #log-container .log-info { background: linear-gradient(45deg, #7aa2f7, #00d9ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 500; }
.ngl-tool-container #log-container .log-success {}
.ngl-tool-container #log-container .log-success .log-gradient { background: linear-gradient(45deg, #9ece6a, #e0af68); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 500; }
.ngl-tool-container #log-container .log-error { color: #f7768e; }
.ngl-tool-container #log-container .log-warning { color: #e0af68; }


/* ONLINE STATUS */
.online-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    margin-top: 5px;
    font-size: 1rem;
}

.online-status .status-icon { width: 10px; height: 10px; border-radius: 50%; }
.online-status.online .status-icon { background-color: #2ecc71; animation: pulse-green 2s infinite; }
.online-status.online .status-text { color: #2ecc71; }
.online-status.offline .status-icon { background-color: #e74c3c; }
.online-status.offline .status-text { color: #e74c3c; }

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

@keyframes animated-icon-background {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* PAGINATION */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    background: rgba(118, 118, 128, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(.disabled) { background: rgba(255, 255, 255, 0.1); }
.pagination-btn.active { background: #007AFF; color: white; border-color: #007AFF; }
.pagination-btn.disabled { opacity: 0.3; cursor: not-allowed; }

.page-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 15px;
    padding: 8px 12px;
    background: rgba(118, 118, 128, 0.12);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-info-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    width: 50px;
    text-align: center;
    font-size: 0.9rem;
    outline: none;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.page-info-input:focus { background: rgba(0, 0, 0, 0.4); border-color: #007AFF; }
.page-info-input::-webkit-outer-spin-button,
.page-info-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.page-info-input[type=number] { -moz-appearance: textfield; }


/* AVATAR INTERACTION MODAL (FACEBOOK POST STYLE) */
.avatar-interaction-content {
    max-width: 500px;
    padding: 0;
    background: #242526;
    border: 1px solid #3a3b3c;
    border-radius: 8px;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.avatar-interaction-content.show { transform: translateY(0) scale(1); opacity: 1; }
.post-content-area { padding: 12px 16px 0; }
.post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.post-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.post-author-info { display: flex; flex-direction: column; }
.post-author-link { text-decoration: none; color: inherit; }
.post-author-link:hover .post-author-name { text-decoration: underline; }
.post-author-name { font-weight: 600; color: #e4e6eb; }
.post-timestamp { font-size: 0.8rem; color: #b0b3b8; }
.post-caption { color: #e4e6eb; font-size: 1rem; line-height: 1.4; margin-bottom: 12px; }
.post-image-wrapper { margin: 0; }
.post-image { display: block; width: 100%; height: auto; max-height: 50vh; object-fit: cover; }
.interaction-stats { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: #b0b3b8; gap: 16px; }
.reactions { display: flex; align-items: center; }

.reaction-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: 2px solid #242526;
    margin-left: -4px;
}
.reaction-icon:first-child { margin-left: 0; }
.reaction-icon-fa { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #242526; }
.reaction-icon-fa.like-fa { background-color: #1877f2; color: white; font-size: 10px; }
.reaction-icon.love { background-image: url('https://scontent.fsgn5-14.fna.fbcdn.net/m1/v/t6/An8ksaC2wrR9xTiFnA_wXO7u3O_aEQRQhKHQBucbC5fylkt5MQ08FT3TYzIRsR_om04dYMtDG2Q4FVrEY50NaiIpQu5Sp9uU5Gbye7iUN3pZDBs3Eo_fnBt-WER1u_o.png?_nc_gid=ctNeYsQUcF7fElGRnnLRug&_nc_oc=AdmCLHnhbtc4kwKcRmZO5N2q-lwAED_gviaoyaWMrR2XwmhdbAN4pF62TifGZMEQ5tuDbox79tJCA1jr2XWFHLOb&ccb=10-5&oh=00_AfNJjQUt3Gdrsd_jr9-PCeLIQE53g58P7o6ndKmd_KON9A&oe=688EEC3A&_nc_sid=7da55a'); }
.reaction-icon.care { background-image: url('https://scontent.fsgn5-14.fna.fbcdn.net/m1/v/t6/An_zMvRRfAS17xUREa4YjvKZlkHz-NaQ7kHztklyXmvUG1CqRQrJuq3LfH_VWoPOU5lB-1kYrrBHN4g3DhgWOiJ4Wwpk7i9Y11ptAwnhplQSB3RKTiRfripdhQiyAA.png?_nc_gid=Bg2f9yfnX1-1h9zKlu9MiQ&_nc_oc=AdmKSTGZgKSWwLcTdA7bySTzml5bN7kIu5DBtxsreZHnW8B_RBDh2htq06FQdlmqPqUuchveiEfZRG_jmAiDbu3q&ccb=10-5&oh=00_AfPnxIIuak4vu-7RLtICHLcejiq077OtGOgIfMa2S-qzQg&oe=688EDF7D&_nc_sid=7da55a'); }
.reaction-count { margin-left: 2px; }
.comment-share-count { display: flex; gap: 12px; }
.comment-share-count span { white-space: nowrap; }
.interaction-divider { border: none; height: 1px; background-color: #3a3b3c; margin: 0 16px; }
.interaction-actions { display: flex; justify-content: space-around; padding: 4px 8px; }
.action-btn { flex: 1; background: none; border: none; color: #b0b3b8; font-weight: 600; font-size: 0.9rem; padding: 10px; border-radius: 6px; cursor: pointer; transition: background-color 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.action-btn:hover { background-color: #3a3b3c; }
.action-btn.liked { color: #2d88ff; }
.action-btn i {
    position: relative; /* Cần thiết cho hiệu ứng sparkle */
    z-index: 1;
}
.action-btn.liked i,
.action-btn.liked span {
    animation: like-animation-enhanced 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hiệu ứng nảy to hơn cho icon */
@keyframes like-animation-enhanced {
    0% { transform: scale(1); }
    30% { transform: scale(1.6); } /* Phóng to hơn */
    60% { transform: scale(0.8); }
    100% { transform: scale(1); }
}

/* Hiệu ứng "sparkle" tỏa ra */
.action-btn.liked i::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%; /* Kích thước của vòng tròn tỏa ra */
    height: 150%;
    border-radius: 50%;
    border: 2px solid #ffc107; /* Màu vàng lấp lánh */
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
    animation: sparkle-effect 0.6s ease-out;
    z-index: -1;
}

@keyframes sparkle-effect {
    to {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* PAYMENT SECTION */
.payment-section {
    margin-top: 40px;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.payment-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ff3f8f, #ff5773, #ff7461, #ffb03a, #a8d46f, #3ddad7, #2a7fff, #5b9dff, #8c52ff, #d42cca);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animated-gradient-text 18s ease-in-out infinite;
    display: inline-block;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: rgba(118, 118, 128, 0.12);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, background-color 0.3s ease;
}

.payment-method.is-visible { opacity: 1; transform: translateY(0); }
.payment-method:hover { background: rgba(118, 118, 128, 0.24); }
.payment-method.is-visible:hover { transform: translateY(-2px); }
.payment-logo { width: 50px; height: 50px; border-radius: 12px; object-fit: contain; flex-shrink: 0; background-color: white; padding: 5px; }
.payment-info h4 { font-size: 1.1rem; margin-bottom: 4px; color: white; font-weight: 600; }
.payment-info p { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; margin: 0 0 4px; }
.payment-info .account-number { color: var(--secondary-color); font-weight: 700; font-size: 1rem; letter-spacing: 1px; }
.copy-icon { color: rgba(255, 255, 255, 0.3); font-size: 1.2rem; transition: color 0.3s ease; margin-left: auto; }
.payment-method:hover .copy-icon { color: var(--secondary-color); }

/* TOAST NOTIFICATION */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #e83e8c, #6f42c1);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

.toast-notification.error { background: #e74c3c; }
.toast-notification.show { opacity: 1; transform: translateX(-50%) translateY(-20px); }


/* ==================
   LIGHT MODE THEME
   ================== */
body.light-mode {
    --background-dark: #f0f2f5;
    --card-background: #ffffff;
    --text-color: #1c1e21;
    --border-color: rgba(0, 0, 0, 0.1);
    --hover-effect: rgba(0, 0, 0, 0.05);
    --fb-text-idle: #65676b;
    --fb-text-active: #1877F2;
    --fb-shadow-1: rgba(24, 119, 242, 0.5);
    --fb-shadow-2: rgba(66, 103, 178, 0.3);

    background: #f0f2f5;
    color: #1c1e21;
    scrollbar-color: #007AFF #e4e6eb;
}

body.light-mode ::-webkit-scrollbar-track { background: #e4e6eb; }
body.light-mode ::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #007AFF, #e83e8c); }
body.light-mode #loader-wrapper { background-color: #f0f2f5; }
body.light-mode .header,
body.light-mode .payment-section { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(20px); border-color: rgba(0, 0, 0, 0.08); color: #1c1e21; }
body.light-mode .logo h1 { color: #1c1e21; }
body.light-mode .avatar { border-color: #f0f2f5; }
body.light-mode .contact-btn { background: rgba(0, 0, 0, 0.05); border-color: rgba(0, 0, 0, 0.1); color: #1c1e21; }
body.light-mode .contact-btn:hover { background: rgba(0, 0, 0, 0.1); }
body.light-mode .certificate-notice { background: rgba(0, 123, 255, 0.1); border-color: rgba(0, 123, 255, 0.3); }
body.light-mode .certificate-notice p { color: #1c1e21; }
body.light-mode .search-box { background: #ffffff; border-color: rgba(0, 0, 0, 0.1); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
body.light-mode .search-box i.fa-search,
body.light-mode .search-box input::placeholder,
body.light-mode .search-box button { color: rgba(0, 0, 0, 0.5); }
body.light-mode .search-box input { color: #1c1e21; }
body.light-mode .category-tabs { background: #e4e6eb; }
body.light-mode .tab-btn { color: #3a3b3c; }
body.light-mode .tab-btn:hover { background: rgba(0, 0, 0, 0.05); color: #050505; }
body.light-mode .tab-btn.active { background: #ffffff; color: #050505; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
body.light-mode .section-header h2 { color: rgba(0, 0, 0, 0.6); }
body.light-mode .app-item { background: #ffffff; border-color: #e4e6eb; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
body.light-mode .app-item:hover { background: #f7f7f7; border-color: #dcdfe3; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); }
body.light-mode .app-info h3 { color: #1c1e21; }
body.light-mode .app-info p,
body.light-mode .version-count,
body.light-mode .app-size { color: rgba(0, 0, 0, 0.6); }

body.light-mode .modal-content,
body.light-mode .contact-modal-content { background: #f0f2f5; border-color: rgba(0, 0, 0, 0.1); box-shadow: 0 5px 25px rgba(0,0,0,0.1); }
body.light-mode .close { color: rgba(0, 0, 0, 0.5); }
body.light-mode .modal-header,
body.light-mode .contact-modal-header,
body.light-mode .contact-footer { border-color: rgba(0, 0, 0, 0.1); }
body.light-mode .modal-header h3,
body.light-mode .contact-modal-header h3,
body.light-mode .contact-method-info h4,
body.light-mode .payment-info h4 { color: #1c1e21; }
body.light-mode .modal-header p,
body.light-mode .modal-body p,
body.light-mode .contact-modal-header p,
body.light-mode .contact-method-info p,
body.light-mode .contact-footer p,
body.light-mode .payment-info p { color: #1c1e21; }

body.light-mode #modalVersionsTitle,
body.light-mode .version-item .version-info strong,
body.light-mode .version-item .version-info span,
body.light-mode .version-item .version-description { color: #1c1e21; }
body.light-mode .app-icon { border: 1px solid red; }
body.light-mode .contact-method { background: #ffffff; border-color: #e4e6eb; }
body.light-mode .payment-method { background: rgba(0, 0, 0, 0.05); border-color: #e4e6eb; }
body.light-mode .copy-icon { color: #e83e8c; }
body.light-mode .payment-method:hover .copy-icon { color: #c21a6a; }

body.light-mode .pagination-btn { background: rgba(0, 0, 0, 0.08); border-color: rgba(0, 0, 0, 0.1); color: #3a3b3c; }
body.light-mode .pagination-btn:hover:not(.disabled) { background: rgba(0, 0, 0, 0.12); }
body.light-mode .pagination-btn.active { background: rgba(232, 62, 140, 0.15); color: #e83e8c; border-color: rgba(232, 62, 140, 0.3); }
body.light-mode .footer { color: rgba(0, 0, 0, 0.5); }

/* Menu in Light Mode */
body.light-mode .menu { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(15px); border-color: rgba(0, 0, 0, 0.1); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); }
body.light-mode .menu a { color: #333; }
body.light-mode .menu a.active { color: #007AFF; background-color: rgba(0, 123, 255, 0.1); }
body.light-mode .menu a.active span,
body.light-mode .menu .menu-item.has-submenu.active-parent > .submenu-toggle .submenu-label span {
    background: linear-gradient(135deg, #8e2de2, #c11e3d, #0f2027, #4a00e0, #d31027, #8e2de2);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animated-menu-text 5s linear infinite;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 12px rgba(255, 255, 255, 0.6);
}
body.light-mode .menu .menu-item.has-submenu.active-parent > .submenu-toggle { color: #007AFF; }
body.light-mode .menu .submenu { background: rgba(0, 0, 0, 0.05); }

/* Settings Menu in Light Mode */
body.light-mode .settings-menu { background: rgba(255, 255, 255, 0.9); border-color: rgba(0, 0, 0, 0.1); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); }
body.light-mode .settings-menu-btn { color: #333; }
body.light-mode .settings-menu-item { color: #333; }
body.light-mode .settings-menu-divider { background-color: rgba(0, 0, 0, 0.1); }
body.light-mode .slider { background-color: #ccc; }
body.light-mode .settings-menu-btn.danger { color: #d93025; }
body.light-mode .settings-menu-btn.danger:hover { background-color: rgba(217, 48, 37, 0.1); }

/* Confirmation Modal in Light Mode */
body.light-mode .confirmation-modal-header h3 { color: #1c1e21; }
body.light-mode .confirmation-modal-body p { color: #65676b; }
body.light-mode .confirmation-modal-footer { border-top-color: rgba(0, 0, 0, 0.1); }
body.light-mode .confirmation-modal-footer .btn-secondary { color: #3a3b3c; border-right-color: rgba(0, 0, 0, 0.1); }
body.light-mode .confirmation-modal-footer .btn-danger { color: #d93025; }
body.light-mode .confirmation-modal-footer .btn-danger:hover { background: rgba(217, 48, 37, 0.1); }
body.light-mode .confirmation-icon { background: rgba(217, 48, 37, 0.1); color: #d93025; }


/* NGL Tool in Light Mode */
body.light-mode .ngl-tool-container .box { background-color: rgba(0, 0, 0, 0.04); border-color: rgba(0, 0, 0, 0.1); }
body.light-mode .ngl-tool-container .box-title { color: #0056b3; border-color: rgba(0, 0, 0, 0.1); }
body.light-mode .ngl-tool-container .form-fieldset { border-color: rgba(0, 0, 0, 0.15); }
body.light-mode .ngl-tool-container .form-fieldset legend,
body.light-mode .ngl-tool-container .checkbox-group,
body.light-mode .ngl-tool-container input[type="text"],
body.light-mode .ngl-tool-container input[type="number"],
body.light-mode .ngl-tool-container input[type="password"] { color: #1c1e21; }
body.light-mode .ngl-tool-container input::placeholder { color: rgba(0, 0, 0, 0.4); }
body.light-mode .ngl-tool-container #log-container { background-color: #f8f9fa; border: 1px solid #dee2e6; color: #212529; }
body.light-mode .ngl-tool-container #progress-text { color: #495057; }

/* Avatar Interaction Modal Light Mode */
body.light-mode .page-info { background: rgba(0, 0, 0, 0.25); }
body.light-mode .page-info span { background: linear-gradient(45deg, #007bff, #6f42c1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 600; }
body.light-mode .page-info-input { background: rgba(255, 255, 255, 0.5); border-color: rgba(0, 0, 0, 0.1); color: #1c1e21; }
body.light-mode .avatar-interaction-content { background: #ffffff; border-color: #ced0d4; }
body.light-mode .reaction-icon { border-color: #ffffff; }
body.light-mode .reaction-icon-fa { border-color: #ffffff; }
body.light-mode .post-author-name,
body.light-mode .post-caption { color: #050505; }
body.light-mode .post-timestamp { color: #65676b; }
body.light-mode .interaction-stats,
body.light-mode .action-btn { color: #65676b; }
body.light-mode .interaction-divider { background-color: #ced0d4; }
body.light-mode .action-btn:hover { background-color: #f0f2f5; }
body.light-mode .action-btn.liked { color: #1877f2; }

/* Version List Scrollbar in Light Mode (Firefox) */
body.light-mode #modalVersionsList {
    scrollbar-color: #007AFF #e4e6eb;
}

/* SCROLL TO TOP & FAB */
.scroll-to-top-btn {
    position: fixed;
    bottom: 95px;
    right: 30px;
    background: linear-gradient(135deg, #ff595e, #ffca3a, #8ac926, #1982c4, #6a4c93, #ff924c, #00d9ff, #ff28a9, #a0eade, #f9c80e, #e63946, #a8dadc, #ffbe0b, #fb5607, #ff006e, #8338ec, #3a86ff, #ff3f8f, #ff7461, #a8d46f, #3ddad7, #5b9dff, #d42cca);
    background-size: 600% 600%;
    animation: animated-button-background 25s ease-in-out infinite;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(1);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.scroll-to-top-btn:hover { transform: translateY(0) scale(1.1); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }

.fab-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ff3f8f, #ff7461, #a8d46f, #3ddad7, #5b9dff, #d42cca, #ff3f8f);
    background-size: 400% 400%;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s ease;
    animation: animated-button-background 15s ease-in-out infinite;
}
.fab-btn::after {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    background: inherit;
    background-size: inherit;
    animation: inherit;
    border-radius: 50%;
    filter: blur(15px);
    z-index: -1;
    opacity: 0.9;
}
.fab-btn:hover { transform: scale(1.1); }

@keyframes animated-button-background {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
body.light-mode .scroll-to-top-btn { color: white; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); }
body.light-mode .scroll-to-top-btn:hover { transform: translateY(0) scale(1.1); }


/* TIME DISPLAY */
.time-display {
    font-weight: bold;
    background-size: 200% 200%;
    animation: gradient-animation 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
.time-start, .time-end { font-weight: 600; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.time-display.active-hours { background-image: linear-gradient(45deg, #2ecc71, #3498db, #2ecc71); }
.time-display.inactive-hours { background-image: linear-gradient(45deg, #e74c3c, #f1c40f, #e74c3c); }
.time-start { background-image: linear-gradient(45deg, #2ecc71, #3498db); }
.time-end { background-image: linear-gradient(45deg, #e74c3c, #f1c40f); }
@keyframes gradient-animation { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* LOCKET SECTION */
.locket-container {
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}
.locket-buttons-section h2 { text-align: center; font-size: 1.8rem; margin-bottom: 25px; color: #FFD700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
.button-group { display: flex; justify-content: center; align-items: center; gap: 0; background: rgba(118, 118, 128, 0.12); border-radius: 12px; padding: 5px; max-width: 400px; margin: 0 auto; }
.button-divider { width: 1px; height: 30px; background-color: rgba(255, 255, 255, 0.2); }
.button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; text-decoration: none; color: white; font-weight: 600; border-radius: 8px; transition: background-color 0.3s ease; }
.button:hover { background-color: rgba(255, 255, 255, 0.1); }
.button img { height: 24px; width: 24px; }
.ios-button img { filter: invert(1); }
.picture-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 25px; max-width: 600px; margin-left: auto; margin-right: auto; }
.picture-grid img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.picture-grid img:hover { transform: scale(1.03); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }

/* IMAGE LIGHTBOX */
.lightbox { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); justify-content: center; align-items: center; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; display: flex; justify-content: center; align-items: center; opacity: 0; transform: scale(0.8); transition: opacity 0.3s ease, transform 0.3s ease; }
.lightbox-content.show { opacity: 1; transform: scale(1); }
.lightbox-content.ios-size {
    max-width: 450px;
}
.lightbox-image { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.3s ease; visibility: hidden; /* Ẩn cho đến khi tải xong */ }
.lightbox-image.loaded {
    visibility: visible;
    animation: fadeInImage 0.3s ease;
}
.lightbox-image.pannable { cursor: grab;  }
.lightbox-image.panning { cursor: grabbing; transition: none; }
.lightbox-close { position: absolute; top: 15px; right: 35px; color: red; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; z-index: 3001; }
.lightbox-close:hover, .lightbox-close:focus { color: #bbb; text-decoration: none; }
.lightbox-controls { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background-color: rgba(0, 0, 0, 0.5); border-radius: 10px; padding: 8px; display: flex; gap: 10px; z-index: 3001; }
.lightbox-control-btn { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: 5px 10px; transition: color 0.3s ease; }
.lightbox-control-btn:hover { color: var(--secondary-color); }
#zoomInBtn { color: pink; }
#zoomOutBtn { color: blue; }

.lightbox-loader {
    position: absolute;
    display: none; /* Ẩn mặc định, hiển thị qua JS */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    gap: 15px;
    z-index: 3002;
    bottom: 50%; /* Đẩy lên giữa */
}

.lightbox-loader .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* SETTINGS MENU */
.settings-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 50px;
    background: #2c2c2e;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 100;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transform-origin: top right;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s;
}

.settings-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.settings-menu-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-menu-btn:hover {
    background-color: var(--hover-effect);
}

.settings-menu-btn.danger { color: #f7768e; }
.settings-menu-btn.danger:hover { background-color: rgba(247, 118, 142, 0.15); }

.settings-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.settings-menu-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    white-space: nowrap;
}

.settings-menu-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 4px 20px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 5px;
    right: -5px;
    bottom: 0;
    background-color: #4d4d52;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 5px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider { background-color: var(--secondary-color); }
input:focus + .slider { box-shadow: 0 0 1px var(--secondary-color); }
input:checked + .slider:before { transform: translateX(16px); }
.slider.round { border-radius: 24px; }
.slider.round:before { border-radius: 50%; }

/* CONFIRMATION MODAL */
.confirmation-modal-content {
    max-width: 420px;
    padding: 0;
    text-align: center;
}

.confirmation-modal-header { padding: 30px 20px 15px; }

.confirmation-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: rgba(247, 118, 142, 0.15);
    color: #f7768e;
}

.confirmation-icon i { font-size: 2rem; }
.confirmation-modal-header h3 { font-size: 1.5rem; font-weight: 600; color: var(--text-color); }
.confirmation-modal-body { padding: 0 30px 25px; }
.confirmation-modal-body p { color: rgba(255, 255, 255, 0.7); font-size: 1rem; line-height: 1.5; margin: 0; }

.confirmation-modal-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.confirmation-modal-footer .btn {
    border-radius: 0;
    width: 100%;
    padding: 18px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
}

.confirmation-modal-footer .btn-secondary { background: transparent; color: var(--text-color); border-right: 1px solid rgba(255, 255, 255, 0.1); border-bottom-left-radius: 16px; }
.confirmation-modal-footer .btn-secondary:hover { background: var(--hover-effect); }
.confirmation-modal-footer .btn-danger { background: transparent; color: #f7768e; border-bottom-right-radius: 16px; }
.confirmation-modal-footer .btn-danger:hover { background: rgba(247, 118, 142, 0.15); }
.confirmation-modal-footer .btn-primary { background: transparent; color: var(--secondary-color); border-bottom-right-radius: 16px; }
.confirmation-modal-footer .btn-primary:hover { background: rgba(3, 218, 198, 0.15); }

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* QR Code Button */
.qr-btn {
    background: rgba(118, 118, 128, 0.12);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-left: 1px;
}
.qr-btn .fa-qrcode {
    font-size: 1.8rem;
    vertical-align: middle;
    background: linear-gradient(135deg, #ff3f8f, #ff5773, #ff7461, #ffb03a, #a8d46f, #3ddad7, #2a7fff, #5b9dff, #8c52ff, #d42cca);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: qr-icon-animate 4s ease-in-out infinite; 
}

@keyframes qr-icon-animate {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* New Keyframes for Title Animation */
@keyframes wavy-text {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes glowing-border {
    0%, 100% { text-shadow: 0 0 5px rgba(255, 63, 143, 0.7), 0 0 10px rgba(42, 127, 255, 0.7), 0 0 15px rgba(61, 218, 215, 0.7); }
    50% { text-shadow: 0 0 10px rgba(255, 63, 143, 1), 0 0 15px rgba(42, 127, 255, 1), 0 0 20px rgba(61, 218, 215, 1); }
}

@keyframes glowing-border-light {
    0%, 100% { text-shadow: 0 0 3px rgba(255, 63, 143, 0.4), 0 0 6px rgba(42, 127, 255, 0.4), 0 0 9px rgba(61, 218, 215, 0.4); }
    50% { text-shadow: 0 0 6px rgba(255, 63, 143, 0.6), 0 0 9px rgba(42, 127, 255, 0.6), 0 0 12px rgba(61, 218, 215, 0.6); }
}

@keyframes rain-gradient {
    0%   { background-position: 50% 0%; }
    100% { background-position: 50% 400%; }
}

/* QR Code Modal Styles */
.qr-modal-content {
    max-width: 450px;
    padding: 30px;
}

.qr-modal-container h2#qr-modal-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 700;
    background: linear-gradient(180deg, #ff3f8f, #ff5773, #ff7461, #ffb03a, #a8d46f, #3ddad7, #2a7fff, #5b9dff, #8c52ff, #d42cca, #ff3f8f);
    background-size: 100% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rain-gradient 10s linear infinite, wavy-text 4s ease-in-out infinite, glowing-border 3s ease-in-out infinite;
    position: relative;
}

.qr-modal-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

body.light-mode .qr-modal-subtitle {
    color: #65676b;
}

body.light-mode .qr-modal-container h2#qr-modal-title {
    animation: rain-gradient 10s linear infinite, wavy-text 4s ease-in-out infinite, glowing-border-light 3s ease-in-out infinite;
}

.qr-modal-container .form-group {
    margin-bottom: 20px;
}

.qr-modal-container .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

body.light-mode .qr-modal-container .form-group label {
    color: #3a3b3c;
}

.qr-modal-container input[type="number"],
.qr-modal-container input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: rgba(118, 118, 128, 0.12);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

body.light-mode .qr-modal-container input[type="number"],
body.light-mode .qr-modal-container input[type="text"] {
    background-color: #ffffff;
    border-color: #dcdfe3;
}

.qr-modal-container input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.btn-generate-qr {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background-color: var(--secondary-color);
    color: #121212;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-generate-qr:hover {
    background-color: #1cfff0;
    transform: translateY(-2px);
}

.qr-result {
    margin-top: 20px;
    text-align: center;
}

.qr-result img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 5px solid white;
}

.message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.message.loading {
    background-color: rgba(0, 123, 255, 0.2);
    color: #007AFF;
}

.message.error {
    background-color: rgba(247, 118, 142, 0.2);
    color: #f7768e;
}

/* Keyframe for download button pink animation */
@keyframes pink-harmony-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* QR Download Button */
.qr-download-btn {
    margin-top: 20px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ff85c8, #ff5c8a, #e83e8c, #c21a6a, #ff4f81, #ff69b4);
    background-size: 400% 400%;
    animation: pink-harmony-glow 8s ease-in-out infinite;
}

.qr-download-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 15px rgba(232, 62, 140, 0.6), 0 0 25px rgba(255, 105, 180, 0.4);
}

body.light-mode .qr-download-btn {
    background-color: #e4e6eb;
    color: #050505;
    animation: none; /* Disable pulse on light mode for a cleaner look */
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

body.light-mode .qr-download-btn:hover {
    background-color: #dcdfe3;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Static QR Loader in Modal */
.qr-static-loader {
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

body.light-mode .qr-static-loader {
    color: #65676b;
}

.qr-static-loader.error {
    color: #f7768e;
}

@keyframes fadeInImage { from { opacity: 0; } to { opacity: 1; } }

/* POPUP NOTIFICATIONS (for FB Check Info) */
.popup-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup {
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    visibility: hidden;
}
.popup.show { opacity: 1; transform: translateX(0); visibility: visible; }
.popup-success { background: linear-gradient(135deg, #28a745, #218838); }
.popup-error { background: linear-gradient(135deg, #dc3545, #c82333); }

/* ==================
   RESPONSIVE DESIGN
   ================== */
@media (max-width: 768px) {
    .container { padding: 15px; }
    .header { padding: 60px 20px 40px; }
    .contact-btn { padding: 10px 16px; font-size: 0.9rem; }
    .logo h1 { font-size: 2rem; }
    .category-tabs { max-width: 100%; gap: 4px; }
    .tab-btn { padding: 8px 12px; font-size: 0.85rem; }
    .section-header { gap: 12px; }
    .section-header h2 { text-align: center; }
    .app-item { padding: 12px 16px; }
    .app-icon { width: 50px; height: 50px; }
    .modal-content { width: 95%; }
    .contact-modal-content { width: 95%; max-width: 100%; }
    .contact-modal-header { padding: 30px 20px 15px; }
    .contact-icon { width: 60px; height: 60px; margin-bottom: 15px; }
    .contact-icon i { font-size: 1.5rem; }
    .contact-modal-header h3 { font-size: 1.5rem; }
    .contact-modal-header p { font-size: 0.9rem; }
    .contact-modal-body { padding: 15px 20px 20px; }
    .contact-method { padding: 15px; gap: 12px; }
    .contact-method-icon { width: 45px; height: 45px; }
    .payment-method {
        gap: 10px;
        padding: 15px;
    }

    body.light-mode .qr-static-loader.error {
        color: #d93025;
    }
}

/* ==================
   FACEBOOK ID FINDER TOOL
   ================== */

.fb-get-id-container {
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.fb-get-id-content {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 0 auto;
    font-family: 'JetBrains Mono', monospace;
}

#id-finder-form .form-fieldset {
    border: 1px solid #414868;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
    margin-top: 15px;
}

#id-finder-form .form-fieldset legend {
    padding: 0 10px;
    color: #c0caf5;
    font-size: 0.7em;
}

#id-finder-form input[type="text"] {
    width: 100%;
    background: transparent;
    border: none;
    color: #c0caf5;
    font-family: inherit;
    font-size: 1em;
    padding: 5px 0;
    box-sizing: border-box;
    outline: none;
}

#id-finder-form button {
    width: 100%;
}

body.light-mode .fb-get-id-content .box {
    background-color: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .fb-get-id-content .box-title {
    color: #0056b3;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode #id-finder-form .form-fieldset {
    border-color: rgba(0, 0, 0, 0.15);
}

body.light-mode #id-finder-form .form-fieldset legend,
body.light-mode #id-finder-form input[type="text"] {
    color: #1c1e21;
}

body.light-mode #id-finder-form input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* Styles for the result fieldset and input */
.result-fieldset {
    margin-top: 20px;
    border-color: var(--secondary-color) !important;
}

.result-fieldset legend {
    color: var(--secondary-color) !important;
    font-weight: bold;
}

#facebookIdResult {
    font-size: 1.2em !important;
    font-weight: bold;
    color: var(--secondary-color) !important;
    text-align: center;
    cursor: pointer;
}

body.light-mode .result-fieldset {
    border-color: #007AFF !important;
}

body.light-mode .result-fieldset legend {
    color: #0056b3 !important;
}

body.light-mode #facebookIdResult {
    color: #0056b3 !important;
}

/* Input with clear button */
.input-with-clear {
    position: relative;
    display: flex;
    align-items: center;
}

/* Make sure the input doesn't overlap with the button */
#id-finder-form .input-with-clear input[type="text"] {
    padding-right: 35px; /* Add space for the clear button */
}

.clear-input-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: #7a82a3; /* A slightly muted color from the theme */
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.clear-input-btn:hover {
    color: #c0caf5; /* Brighter color on hover */
    transform: translateY(-50%) scale(1.1);
}

body.light-mode .clear-input-btn {
    color: rgba(0, 0, 0, 0.4);
}
body.light-mode .clear-input-btn:hover {
    color: #1c1e21;
}

/* ==================
   FACEBOOK CHECK INFO TOOL (REVISED)
   ================== */
.fb-check-info-container {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 0 auto;
    font-family: 'JetBrains Mono', monospace;
    padding-left: 0;
    padding-right: 0;
}
@media (max-width: 900px) {
  .fb-check-info-container {
    max-width: 700px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

.fb-check-info-container .box {
    background-color: #24283b;
    border: 1px solid #414868;
    border-radius: 10px;
    padding: 25px;
}

.fb-check-info-container .box-title {
    color: #7aa2f7;
    font-size: 1.2em;
    font-weight: bold;
    margin: -25px -25px 20px -25px;
    padding: 15px 25px;
    border-bottom: 1px solid #414868;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fb-check-info-container .form-fieldset {
    border: 1px solid #414868;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
}

.fb-check-info-container .form-fieldset legend {
    padding: 0 10px;
    color: #c0caf5;
    font-size: 0.9em;
}

.fb-check-info-container .form-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #c0caf5;
    font-family: inherit;
    font-size: 1em;
    padding: 5px 0;
    box-sizing: border-box;
    outline: none;
}

.fb-check-info-container .form-label {
    display: block;
    color: #c0caf5;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.fb-check-info-container .input-with-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.fb-check-info-container .input-with-actions .form-input {
    border: 1px solid #414868;
    padding: 10px;
    border-radius: 8px;
}

.fb-check-info-container .action-btn {
    padding: 10px;
    font-size: 1.1em;
    min-width: 45px;
}

/* Styling for result card */
.check-info-result-card .result-content {
    color: #c0caf5;
}

.check-info-result-card .info-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #414868;
}

.check-info-result-card .info-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #7aa2f7;
    object-fit: cover;
}

.check-info-result-card .info-name {
    font-size: 1.8em;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.check-info-result-card .info-link {
    font-size: 0.9em;
    color: #7aa2f7;
    text-decoration: none;
}

.check-info-result-card .info-link:hover {
    text-decoration: underline;
}

.check-info-result-card .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    font-size: 1em;
}

.check-info-result-card .info-grid p {
    margin: 0;
}
.check-info-result-card .info-grid strong {
    color: #7aa2f7;
}

.check-info-result-card .error-text {
    color: #f7768e;
    font-weight: bold;
}

/* Light Mode adaptations */
body.light-mode .fb-check-info-container .box {
    background-color: #fff;
    border-color: #ddd;
}
body.light-mode .fb-check-info-container .box-title {
    color: #0056b3;
    border-color: #ddd;
}
body.light-mode .fb-check-info-container .form-fieldset,
body.light-mode .fb-check-info-container .input-with-actions .form-input {
    border-color: #ccc;
}
body.light-mode .fb-check-info-container .form-fieldset legend,
body.light-mode .fb-check-info-container .form-input,
body.light-mode .fb-check-info-container .form-label,
.check-info-result-card .result-content {
    color: #333;
}

/* === FB CHECK INFO - GIAO DIỆN NÂNG CẤP === */
.fbci-glass-card-upgraded {
  background: rgba(34, 40, 49, 0.92);
  border-radius: 36px;
  box-shadow: 0 12px 48px 0 rgba(122,162,247,0.18), 0 1.5px 0 0 #7aa2f7;
  border: 2.5px solid rgba(122,162,247,0.18);
  padding: 48px 32px 40px 32px;
  position: relative;
  overflow: visible;
}
.fbci-user-content .info-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.fbci-user-content .info-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 5px solid;
  object-fit: cover;
  box-shadow: 0 0 0 6px rgba(122,162,247,0.13), 0 2px 16px 0 #7aa2f744;
  background: #fff;
  animation: fbciAvatarGlow 2.5s infinite alternate;
}
@keyframes fbciAvatarGlow {
  0% { box-shadow: 0 0 0 6px rgba(122,162,247,0.13), 0 2px 16px 0 #7aa2f744; }
  100% { box-shadow: 0 0 16px 10px #bb86fc55, 0 2px 24px 0 #03dac655; }
}
.fbci-user-content .info-name {
  font-size: 2em;
  font-weight: bold;
  color: #fff;
  margin: 2px;
  text-align: center;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #7aa2f7 0%, #bb86fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: normal;          /* Cho phép xuống dòng */
  overflow: visible;            /* Không cắt chữ */
  text-overflow: unset;         /* Không hiện ... */
  width: 100%;
  display: block;
}
.fbci-user-content .info-badge {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  font-size: 1.1em;
  color: #03dac6;
  filter: drop-shadow(0 0 4px #03dac6cc);
}
.fbci-user-content .info-link {
  font-size: 1em;
  color: #03dac6;
  text-decoration: none;
  margin-top: 2px;
  transition: color 0.2s;
  font-weight: 500;
}
.fbci-user-content .info-link:hover {
  color: #7aa2f7;
  text-decoration: underline;
}
.fbci-user-content .info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  font-size: 1.08em;
  margin-top: 18px;
}
.fbci-user-content .info-grid p {
  margin: 0;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08em;
  font-weight: 500;
}
.fbci-user-content .info-grid strong {
  color: #03dac6;
  font-weight: 700;
  margin-right: 4px;
}
.fbci-user-content .info-icon {
  width: 1.3em;
  height: 1.3em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #bb86fc;
  background: rgba(122,162,247,0.08);
  border-radius: 50%;
  margin-right: 4px;
  font-size: 1.1em;
}
.fbci-btn-action-upgraded {
  width: 54px;
  height: 54px;
  font-size: 1.4em;
  border-radius: 50%;
  background: linear-gradient(135deg, #bb86fc 0%, #03dac6 100%);
  box-shadow: 0 2px 12px 0 #bb86fc44, 0 0 0 0 #03dac655;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, background 0.2s, transform 0.15s;
}
.fbci-btn-action-upgraded:hover {
  background: linear-gradient(135deg, #03dac6 0%, #bb86fc 100%);
  box-shadow: 0 0 0 8px #03dac633, 0 2px 16px 0 #bb86fc44;
  animation: fbciBtnWave 0.5s;
}
@keyframes fbciBtnWave {
  0% { box-shadow: 0 0 0 0 #03dac655; }
  100% { box-shadow: 0 0 0 16px #03dac600; }
}
.fbci-btn-main {
  background: linear-gradient(90deg, #7aa2f7, #bb86fc, #03dac6, #7aa2f7);
  background-size: 300% 300%;
  animation: fbciBtnGradient 3s linear infinite;
  transition: background 0.3s, color 0.2s;
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 15px 28px;
  font-size: 1.15em;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.fbci-btn-main:hover, .fbci-btn-main:focus {
  animation: fbciBtnGradient 1.2s linear infinite;
  filter: brightness(1.08) drop-shadow(0 0 8px #bb86fc88);
}
@keyframes fbciBtnGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.fbci-input, .fbci-input-result {
  font-size: 1.15em;
  border-radius: 18px;
  padding: 15px 20px;
}
.fbci-form-row, .fbci-result-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px !important;
  flex-wrap: nowrap;
}
.fbci-input, .fbci-input-result, .fbci-btn-main, .fbci-btn-action, .fbci-btn-action-upgraded {
  margin: 0;
}
.fbci-popup-container {
  margin-top: 16px;
}
.fbci-user-card {
  margin-top: 40px;
  background: rgba(255,255,255,0.13);
  border-radius: 28px;
  box-shadow: 0 4px 32px 0 #7aa2f722;
  padding: 32px 18px 22px 18px;
  position: relative;
  animation: fbciFadeIn 0.7s cubic-bezier(.4,2,.6,1) 1;
}
.fbci-user-content .error-text {
  color: #f7768e;
  font-weight: bold;
  text-align: center;
  font-size: 1.1em;
}
@media (max-width: 600px) {
  .fbci-glass-card-upgraded { padding: 18px 2vw 18px 2vw; }
  .fbci-user-card { padding: 16px 2vw 16px 2vw; }
  .fbci-user-content .info-grid { grid-template-columns: 1fr; gap: 12px 0; }
  .fbci-user-content .info-avatar { width: 80px; height: 80px; }
  .fbci-form-row, .fbci-result-row { flex-direction: column; gap: 10px; }
  .fbci-btn-main, .fbci-input, .fbci-input-result { width: 100%; }
  .fbci-btn-action-upgraded { width: 44px; height: 44px; font-size: 1.1em; }
}

/* info-grid: mỗi p là 1 dòng, luôn xuống dòng */
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.info-grid p {
  display: block;
  width: 100%;
  margin: 0;
  word-break: break-word;
  line-height: 1.7;
}
.info-grid strong {
  display: inline;
  white-space: nowrap;
  margin-right: 2px;
}
.info-grid .info-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}
.info-link {
  display: block;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}
.info-badge {
  display: inline-block;
  margin-left: 8px;
  color: #03dac6 !important;
  font-size: 1.3em;
  vertical-align: middle;
  filter: drop-shadow(0 0 4px #03dac6cc);
}
.info-avatar {
  width: 120px !important;
  height: 120px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  aspect-ratio: 1/1 !important;
  box-shadow: 0 0 16px 4px #bb86fc55, 0 2px 24px 0 #03dac655;
  background: #fff;
  border: 5px solid;
  border-image: linear-gradient(135deg, #7aa2f7, #03dac6, #bb86fc, #fff, #7aa2f7) 1;
  display: block;
  margin: 0 auto;
}
.fbci-btn-main:active::after {
  width: 300px;
  height: 300px;
  opacity: 0;
  transition: width 0.4s, height 0.4s, opacity 0.4s;
}
.fbci-popup-container {
  margin-top: 0 !important;
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: max-content;
  min-width: 220px;
  pointer-events: none;
}
.fbci-popup-container .popup {
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
  border-radius: 12px;
  font-size: 1.08em;
  padding: 14px 32px;
  animation: fbciPopupFade 0.5s;
  pointer-events: auto;
}
.fbci-result-row {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.fbci-input-result {
  flex: 1 1 0%;
  min-width: 0;
}
.fbci-btn-action, .fbci-btn-action-upgraded {
  flex: 0 0 auto;
}
@media (max-width: 600px) {
  .fbci-result-row {
    flex-direction: row !important;
    gap: 8px;
  }
  .fbci-input-result {
    font-size: 1em;
  }
}

@media (max-width: 600px) {
  .fbci-form-row, .fbci-result-row {
    gap: 3px !important;
  }
}

.fbci-form-row .fbci-input {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
}

@media (max-width: 600px) {
  .info-grid {
    font-size: 0.98em;
  }
  .info-grid .info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-right: 3px;
    font-size: 1em;
  }
}

@media (max-width: 600px) {
  .info-name {
    display: inline-flex;
    align-items: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden; 
    text-overflow: ellipsis; 
    font-size: 0.3em;
    text-align: center;
    justify-content: center;
    gap: 6px; /* khoảng cách giữa tên và icon */
  }
  .info-name i {
    flex-shrink: 0;
    margin-left: 4px;
    font-size: 0.6em !important; /* để icon co theo chữ */
    vertical-align: middle;
  }
}

@media (max-width: 600px) {
  .fb-get-id-container {
    width: 100%;
    max-width: 100vw;
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
    overflow-x: hidden;
  }
}

@media (max-width: 600px) {
  html, body {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .container,
  .fb-get-id-container,
  .fb-check-info-container {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    margin: 0 0 16px 0;
    padding-left: 8px;
    padding-right: 8px;
  }
  input, button, .search-box, .input-with-actions {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ==================
   FREE FIRE CONTAINER
   ================== */

.freefire-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.freefire-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.freefire-container .box {
    background: rgba(118, 118, 128, 0.12);
    border: 1px solid rgba(118, 118, 128, 0.24);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.freefire-container .box-title {
    color: #FF6B35;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
    padding-bottom: 10px;
}

.freefire-container .form-fieldset {
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
    background: rgba(255, 107, 53, 0.05);
}

.freefire-container .form-fieldset legend {
    padding: 0 10px;
    color: #FF6B35;
    font-size: 0.9em;
    font-weight: 600;
    background: var(--bg-color);
    position: absolute;
    top: -10px;
    left: 15px;
}

.freefire-container .form-select,
.freefire-container input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.freefire-container .form-select:focus,
.freefire-container input[type="text"]:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.freefire-container input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.freefire-container .btn {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.freefire-container .btn-primary {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.freefire-container .btn-primary:hover {
    background: linear-gradient(135deg, #F7931E, #FF6B35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.freefire-container .btn-primary:active {
    transform: translateY(0);
}

.freefire-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 107, 53, 0.2);
    border-top: 4px solid #FF6B35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.freefire-loading p {
    color: #FF6B35;
    font-weight: 600;
    margin: 0;
}

#freefire-player-info {
    padding: 20px;
    background: rgba(255, 107, 53, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.player-info-section {
    margin-bottom: 20px;
}

.player-info-section h3 {
    color: #FF6B35;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-info-section h3 i {
    font-size: 1.1rem;
}

.player-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.player-info-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-info-item strong {
    color: #FF6B35;
    font-weight: 600;
}

.player-info-item span {
    color: var(--text-color);
    font-weight: 500;
}

.player-info-item .uid {
    font-family: 'Courier New', monospace;
    background: rgba(255, 107, 53, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.error-message {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

/* Light mode styles for Free Fire */
body.light-mode .freefire-container .box {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 107, 53, 0.2);
}

body.light-mode .freefire-container .form-fieldset {
    background: rgba(255, 107, 53, 0.05);
    border-color: rgba(255, 107, 53, 0.2);
}

body.light-mode .freefire-container .form-fieldset legend {
    background: rgba(255, 255, 255, 0.9);
    color: #FF6B35;
}

body.light-mode .freefire-container .form-select,
body.light-mode .freefire-container input[type="text"] {
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    border-color: rgba(255, 107, 53, 0.3);
}

body.light-mode .freefire-container input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode #freefire-player-info {
    background: rgba(255, 107, 53, 0.05);
    border-color: rgba(255, 107, 53, 0.2);
}

body.light-mode .player-info-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 107, 53, 0.2);
}

body.light-mode .player-info-item span {
    color: #333;
}

/* Responsive design for Free Fire */
@media (max-width: 768px) {
    .freefire-container {
        padding: 15px;
    }
    
    .freefire-container .box {
        padding: 20px;
    }
    
    .player-info-grid {
        grid-template-columns: 1fr;
    }
    
    .player-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Menu item icon for Free Fire */
.menu a#freefire-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 57px;
}

.menu a#freefire-link .menu-item-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    flex-shrink: 0;
}

body:not(.light-mode) .freefire-container .form-select {
    background: #23272f !important;
    color: #fff !important;
    border-color: #ff6b35 !important;
}
body:not(.light-mode) .freefire-container .form-select option {
    background: #23272f !important;
    color: #fff !important;
}