/**
 * ==========================================================================
 * TOP1SUB / DOITUONGTAC.COM - 8D ANIME AUTHENTICATION MODAL STYLESHEET
 * Chuẩn 100% theo ảnh gốc:
 * - Ảnh Anime Waifu & Chibi Cat nguyên bản nghệ thuật sắc nét, KHÔNG chắp vá, KHÔNG dán emoji
 * - Con Mèo Chibi đặt 2 bàn chân trèo trực tiếp trên thanh tab "Đăng ký"
 * - Nút Tab chuyển đổi Đăng Nhập / Đăng Ký mượt mà chuẩn xác
 * - Form kính mờ Frosted Glass tinh tế, bo tròn chuẩn 100% ảnh gửi
 * - Hiệu ứng 8D: Parallax 3D xoay nghiêng theo chuột, Cyber Neon phát sáng trên tai nghe
 * - Viền LED xanh Neon chạy vòng quanh viền thẻ modal
 * - Nền mờ trong suốt (translucent) nhìn rõ trang index phía sau
 * ==========================================================================
 */

/* --------------------------------------------------------------------------
   1. BACKDROP & MODAL WRAPPER (Translucent nhìn rõ trang index phía sau)
   -------------------------------------------------------------------------- */
.anime-auth-backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 14, 28, 0.48);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99990;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
    overflow-y: auto;
    perspective: 1600px;
}

.anime-auth-backdrop.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* --------------------------------------------------------------------------
   2. 8D STAGE & PARALLAX WRAPPER
   -------------------------------------------------------------------------- */
.anime-8d-stage {
    position: relative;
    width: 100%;
    max-width: 425px;
    margin: auto;
    transform-style: preserve-3d;
    transition: transform 0.12s ease-out;
}

/* --------------------------------------------------------------------------
   3. FLOATING SURROUNDING 8D STICKERS & BADGES (Desktop)
   -------------------------------------------------------------------------- */
.auth-decor-wrapper {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 15;
    transform-style: preserve-3d;
}

.anime-floating-decor {
    position: absolute;
    pointer-events: none;
    z-index: 15;
    user-select: none;
    transition: transform 0.2s ease-out;
}

/* Hiệu ứng Viền LED Cyber Neon Chạy Vòng Quanh Nhãn Dán & Huy Hiệu (Chỉ sáng viền ngoài 2px, giữ 100% màu nền nhãn) */
.has-led-border {
    overflow: visible;
}

.has-led-border::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    padding: 2.5px;
    background: linear-gradient(90deg, #00f0ff, #0072ff, #38bdf8, #00f0ff);
    background-size: 300% 300%;
    animation: animeLedBorderRun 3.5s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.85)) drop-shadow(0 0 12px rgba(56, 189, 248, 0.5));
}

/* Các theme màu LED tùy chỉnh từ Admin */
.led-theme-cyan .has-led-border::before {
    background: linear-gradient(90deg, #00f0ff, #0072ff, #38bdf8, #00f0ff);
    background-size: 300% 300%;
    filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.85)) drop-shadow(0 0 12px rgba(56, 189, 248, 0.5));
}

.led-theme-rainbow .has-led-border::before {
    background: linear-gradient(90deg, #ff007f, #7928ca, #0070f3, #00dfd8, #ff007f);
    background-size: 300% 300%;
    filter: drop-shadow(0 0 6px rgba(0, 223, 216, 0.85)) drop-shadow(0 0 12px rgba(255, 0, 127, 0.6));
}

.led-theme-gold .has-led-border::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #fef08a, #d97706, #fbbf24);
    background-size: 300% 300%;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.9)) drop-shadow(0 0 12px rgba(251, 191, 36, 0.55));
}

.led-theme-purple .has-led-border::before {
    background: linear-gradient(90deg, #ec4899, #a855f7, #6366f1, #ec4899);
    background-size: 300% 300%;
    filter: drop-shadow(0 0 6px rgba(236, 72, 153, 0.85)) drop-shadow(0 0 12px rgba(168, 85, 247, 0.55));
}

.led-disabled .has-led-border::before {
    display: none !important;
}

.decor-hidden {
    display: none !important;
}

/* Note Sticker Top-Left: "• Like • Follow • Share ♡" */
.decor-sticky-top-left {
    top: -8px;
    left: -64px;
    background: #fef08a;
    color: #4b5563;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateZ(45px) rotate(-9deg);
    animation: floatStickyLeft 4s ease-in-out infinite alternate;
}

/* Note Sticker Bottom-Left: "• TOP1SUB • Support 24/7..." */
.decor-sticky-bottom-left {
    bottom: 25px;
    left: -74px;
    background: #fffbeb;
    color: #4b5563;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.35;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
    transform: translateZ(40px) rotate(6deg);
    animation: floatStickyLeft 4.5s ease-in-out infinite alternate-reverse;
}

/* Left Vertical Badges: ⚡ Nhanh chóng, 🛡️ Uy tín, 🏷️ Giá rẻ, ⚙️ Tự động */
.decor-feature-pills {
    position: absolute;
    left: -92px;
    top: 40%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateZ(35px);
}

.feature-pill-item {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #1e40af;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
    display: flex;
    align-items: center;
    gap: 6px;
    animation: floatPill 3s ease-in-out infinite alternate;
}
.feature-pill-item:nth-child(2) { animation-delay: 0.4s; }
.feature-pill-item:nth-child(3) { animation-delay: 0.8s; }
.feature-pill-item:nth-child(4) { animation-delay: 1.2s; }

/* Decor Bottom-Right: "👑 Thành công cùng bạn! ♡" */
.decor-quote-bottom-right {
    bottom: 30px;
    right: -70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1.5px solid #bfdbfe;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #1e3a8a;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.15);
    transform: translateZ(42px) rotate(4deg);
    animation: floatStickyLeft 3.8s ease-in-out infinite alternate;
}

@keyframes floatStickyLeft {
    0% { transform: translateY(0) rotate(-9deg); }
    100% { transform: translateY(-7px) rotate(-6deg); }
}

@keyframes floatPill {
    0% { transform: translateX(0); }
    100% { transform: translateX(-4px); }
}

/* --------------------------------------------------------------------------
   4. 3D FLIP CONTAINER & VIỀN LED XANH CHẠY VÒNG (TIKTOK STYLE)
   -------------------------------------------------------------------------- */
.anime-8d-card-box {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0, 50, 160, 0.28), 0 0 35px rgba(56, 189, 248, 0.25);
}

/* Viền LED Xanh Neon Chạy Vòng Quanh Khung Modal Chuẩn Yêu Cầu */
.anime-8d-card-box::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 31px;
    background: linear-gradient(90deg, #00f0ff, #0072ff, #38bdf8, #00f0ff);
    background-size: 300% 300%;
    z-index: -1;
    animation: animeLedBorderRun 4s linear infinite;
    opacity: 0.9;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.45));
}

@keyframes animeLedBorderRun {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.anime-8d-card-box.is-flipped {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.anime-card-face {
    position: relative;
    width: 100%;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
}

.anime-card-face-front {
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    z-index: 2;
}

.anime-card-face-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    z-index: 1;
}

/* Chống lật ngược gương (Anti-mirror safeguard): 
   Khi lật sang Mặt Đăng Ký, ẩn hoàn toàn Mặt Đăng Nhập để tuyệt đối không bị lỗi phản chiếu chữ ngược trên mobile */
.anime-8d-card-box:not(.is-flipped) .anime-card-face-front {
    pointer-events: auto !important;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s 0.22s, visibility 0.2s 0.22s;
}

.anime-8d-card-box:not(.is-flipped) .anime-card-face-back {
    pointer-events: none !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s 0.22s, visibility 0.2s 0.22s;
}

.anime-8d-card-box.is-flipped .anime-card-face-front {
    pointer-events: none !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s 0.22s, visibility 0.2s 0.22s;
}

.anime-8d-card-box.is-flipped .anime-card-face-back {
    pointer-events: auto !important;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s 0.22s, visibility 0.2s 0.22s;
}

/* --------------------------------------------------------------------------
   5. TOP 8D ANIME HEADER (CHUẨN 100% ARTWORK GỐC, KHÔNG CẮT VỤN)
   -------------------------------------------------------------------------- */
.anime-header-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 682 / 465;
    background: #ffffff !important;
    overflow: hidden;
    border-radius: 26px 26px 0 0;
    user-select: none;
    transform-style: preserve-3d;
    margin-bottom: -3px;
}

/* Ảnh Artwork Gốc Sắc Nét 100% (Bao gồm Cô Bé, Bé Mèo & Thanh Tab) */
.anime-banner-bg-img {
    width: 100%;
    height: calc(100% + 4px);
    object-fit: cover;
    object-position: center top;
    display: block;
    transform-origin: center bottom;
    animation: waifu8DBreathe 4.5s ease-in-out infinite alternate;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-user-drag: none !important;
}

@keyframes waifu8DBreathe {
    0% { transform: scale(1); }
    50% { transform: scale(1.018); }
    100% { transform: scale(1); }
}

/* Close Modal Button (X) Kính Mờ */
.anime-btn-close-modal {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    color: #1e3a8a;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 40;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: all 0.25s ease;
}

.anime-btn-close-modal:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: rotate(90deg) scale(1.1);
}

/* Đèn LED Cyber Neon Tinh Tế Phát Sáng Trên Tai Mèo & Tai Nghe (Chuẩn 8D) */
.cyber-neon-glow {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(6px);
    mix-blend-mode: screen;
}

/* Left Cat Ear Neon */
.glow-cat-ear-left {
    top: 10.5%;
    left: 31.5%;
    width: 28px;
    height: 28px;
    background: #00f0ff;
    box-shadow: 0 0 18px #00f0ff;
    animation: pulseNeonEar 2.2s infinite alternate;
}

/* Right Cat Ear Neon */
.glow-cat-ear-right {
    top: 19%;
    left: 56.5%;
    width: 28px;
    height: 28px;
    background: #00f0ff;
    box-shadow: 0 0 18px #00f0ff;
    animation: pulseNeonEar 2.2s 0.6s infinite alternate;
}

/* Headset Ear Cup Neon Ring */
.glow-headset-ring {
    top: 34%;
    left: 21.2%;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 160, 255, 0.7) 0%, transparent 70%);
    box-shadow: 0 0 25px #0088ff, inset 0 0 15px #00f0ff;
    animation: pulseNeonHeadset 3s infinite alternate;
}

/* Cat Mascot Mini Headset Neon */
.glow-cat-headset {
    top: 80%;
    left: 90.9%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00f0ff;
    box-shadow: 0 0 14px #00f0ff;
    animation: pulseNeonEar 2.5s 0.3s infinite alternate;
}

@keyframes pulseNeonEar {
    0% { opacity: 0.35; transform: scale(0.9); }
    100% { opacity: 0.95; transform: scale(1.25); filter: blur(7px); }
}

@keyframes pulseNeonHeadset {
    0% { opacity: 0.4; }
    100% { opacity: 0.9; filter: blur(10px); }
}

/* --------------------------------------------------------------------------
   6. THANH TAB CHUYỂN ĐỔI (OVERLAY CHUẨN TỪNG PIXEL TRÊN THANH TAB CỦA ẢNH)
   -------------------------------------------------------------------------- */
.anime-header-tabs-overlay {
    position: absolute;
    top: 82.2%;
    left: 18.8%;
    width: 68.2%;
    height: 11.8%;
    display: flex;
    z-index: 30;
}

.anime-header-tab-click {
    flex: 1;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 25px;
    outline: none;
    transition: background 0.2s ease;
}

.anime-header-tab-click:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   7. NỘI DUNG THẺ FORM (FROSTED GLASS BODY)
   Cân bằng chiều cao & hòa trộn hoàn hảo không vết cắt ghép
   -------------------------------------------------------------------------- */
.anime-card-body-content {
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
    padding: 10px 22px 18px;
    position: relative;
    border-radius: 0 0 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
    margin-top: -3px;
    border-top: none !important;
}

/* Tiêu Đề Vương Miện Xanh & Lời Chào */
.anime-auth-title-box {
    text-align: center;
    margin-bottom: 12px;
}

.anime-crown-icon {
    font-size: 22px;
    color: #2563eb;
    margin-bottom: 2px;
    display: inline-block;
    filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.35));
    animation: crownFloat 3s ease-in-out infinite;
}

@keyframes crownFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.anime-auth-heading {
    font-size: 19px;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 2px;
    letter-spacing: -0.3px;
}

.anime-auth-subtitle {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   8. FORM INPUTS & WRAPPERS (CHUẨN 100% ẢNH GỬI)
   -------------------------------------------------------------------------- */
.anime-form-group {
    margin-bottom: 9px;
    position: relative;
}

.anime-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    height: 44px;
    padding: 0 13px;
    transition: all 0.25s ease;
}

.anime-input-wrap:hover {
    border-color: #93c5fd;
    background: #ffffff;
}

.anime-input-wrap:focus-within {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.anime-input-icon-left {
    color: #64748b;
    font-size: 15px;
    margin-right: 9px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.anime-input-wrap:focus-within .anime-input-icon-left {
    color: #2563eb;
}

.anime-input-field {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13.5px;
    color: #0f172a;
    font-weight: 500;
}

.anime-input-field::placeholder {
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 400;
}

/* Eye Toggle Password Button */
.anime-btn-toggle-eye {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 15px;
    cursor: pointer;
    padding: 4px;
    margin-left: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.anime-btn-toggle-eye:hover {
    color: #2563eb;
}

/* --------------------------------------------------------------------------
   9. CHECKBOX & FORGOT PASSWORD ROW
   -------------------------------------------------------------------------- */
.anime-auth-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: 10px;
}

.anime-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.anime-checkbox-input {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    accent-color: #2563eb;
    cursor: pointer;
}

.anime-forgot-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.anime-forgot-link:hover {
    color: #1d4ed8;
}

/* --------------------------------------------------------------------------
   10. PRIMARY SUBMIT BUTTON (GIAO DIỆN 8D NỔI)
   -------------------------------------------------------------------------- */
.anime-btn-submit {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.38);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.anime-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.52);
}

.anime-btn-submit:active {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   11. SOCIAL LOGINS DIVIDER & BUTTONS
   -------------------------------------------------------------------------- */
.anime-divider-wrap {
    display: flex;
    align-items: center;
    margin: 10px 0 8px;
}

.anime-divider-line {
    flex: 1;
    height: 1px;
    background: #cbd5e1;
}

.anime-divider-text {
    padding: 0 10px;
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
}

.anime-social-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 8px;
}

.anime-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.anime-social-btn:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.anime-social-btn.btn-google:hover { border-color: #ea4335; }
.anime-social-btn.btn-facebook:hover { border-color: #1877f2; }
.anime-social-btn.btn-tiktok:hover { border-color: #000000; }
.anime-social-btn.btn-youtube:hover { border-color: #ff0000; }

.anime-social-icon {
    font-size: 16px;
}

.anime-social-icon.fa-google { color: #ea4335; }
.anime-social-icon.fa-facebook-f { color: #1877f2; }
.anime-social-icon.fa-tiktok { color: #000000; }
.anime-social-icon.fa-youtube { color: #ff0000; }

/* --------------------------------------------------------------------------
   12. FOOTER SWITCH LINK
   -------------------------------------------------------------------------- */
.anime-auth-footer {
    text-align: center;
    font-size: 12px;
    color: #475569;
    margin: 4px 0 0;
}

.anime-switch-link {
    color: #2563eb;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
}

.anime-switch-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   13. ERROR BANNER
   -------------------------------------------------------------------------- */
.anime-form-error {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #dc2626;
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 9px;
    display: none;
    align-items: center;
    gap: 8px;
}

.anime-form-error.show {
    display: flex;
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE DESIGN (Mobile & Small Screens - 100% WebKit Safe)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .anime-auth-backdrop {
        perspective: 1200px !important;
        -webkit-perspective: 1200px !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
    }

    .anime-floating-decor {
        display: none !important;
    }

    .has-led-border::before {
        display: none !important;
    }

    .anime-8d-stage {
        max-width: 100%;
        transform: none !important;
        perspective: 1200px !important;
        -webkit-perspective: 1200px !important;
        transform-style: preserve-3d !important;
        -webkit-transform-style: preserve-3d !important;
    }

    .anime-8d-card-box {
        transform-style: preserve-3d !important;
        -webkit-transform-style: preserve-3d !important;
        box-shadow: 0 10px 30px rgba(0, 50, 160, 0.2) !important;
        border: 2px solid rgba(56, 189, 248, 0.5) !important;
    }

    .anime-8d-card-box::before {
        display: none !important;
    }

    .anime-card-face {
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        transform-style: preserve-3d !important;
        -webkit-transform-style: preserve-3d !important;
    }

    .anime-card-face-front {
        transform: rotateY(0deg) !important;
        -webkit-transform: rotateY(0deg) !important;
    }

    .anime-card-face-back {
        transform: rotateY(180deg) !important;
        -webkit-transform: rotateY(180deg) !important;
    }

    .anime-card-body-content {
        padding: 10px 16px 14px;
        min-height: auto;
    }

    .anime-auth-heading {
        font-size: 18px;
    }

    .anime-btn-submit {
        height: 44px;
        font-size: 14.5px;
    }

    .anime-social-btn {
        width: 36px;
        height: 36px;
    }
}

/* Ẩn trợ lý góc màn hình khi Modal Đăng nhập / Đăng ký mở để không che nút bấm */
body.auth-modal-open #chibi-mascot,
body.auth-modal-open .chibi-mascot-box,
body.auth-modal-open #chibi-avatar,
body.auth-modal-open #chibi-bubble,
body.auth-modal-open .chibi-avatar-wrap {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transition: opacity 0.25s ease;
}
