:root { --c-bg: #09090b; --c-card: #141417; --c-border: rgba(255, 255, 255, 0.06); --c-primary: #8b5cf6; --c-secondary: #06b6d4; --c-text: #f8fafc; --c-muted: #94a3b8; --c-success: #10b981; --radius-lg: 24px; --radius-md: 16px; --shadow-float: 0 10px 40px -10px rgba(0,0,0,0.5); }
body.theme-cyberpunk { --c-bg: #0f0f13; --c-card: #18181c; --c-border: rgba(252, 227, 0, 0.15); --c-primary: #fce300; --c-secondary: #ff003c; --c-text: #ffffff; --c-muted: #a1a1aa; }
body.theme-matrix { --c-bg: #050505; --c-card: #0a0a0a; --c-border: rgba(0, 255, 65, 0.2); --c-primary: #00ff41; --c-secondary: #008f11; --c-text: #e2e8f0; --c-muted: #4ade80; }
body.theme-rgb { --c-bg: #030305; --c-card: #0f0f13; --c-border: transparent; --c-text: #ffffff; --c-muted: #a1a1aa; --c-success: #00ffcc; animation: rgb-bg 15s infinite alternate; }
body.theme-light { --c-bg: #f1f5f9; --c-card: #ffffff; --c-border: #cbd5e1; --c-primary: #8b5cf6; --c-secondary: #0ea5e9; --c-text: #0f172a; --c-muted: #475569; --shadow-float: 0 10px 40px -10px rgba(0,0,0,0.1); }
body.theme-light .bento-card { box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
body.theme-light .input-group input, body.theme-light .auth-input, body.theme-light .select-selected { background: #f8fafc; color: #0f172a; }
body.theme-light .pill-tabs { background: #e2e8f0; }
body.theme-light .btn-action-card, body.theme-light .mail-item { background: #ffffff; }
body.theme-light .dropdown-item, body.theme-light .history-table th, body.theme-light .history-table td { color: #0f172a; }
body.theme-light .dropdown-item:hover { background: #f1f5f9; }
body.theme-light .profile-sidebar { background: #f8fafc; }
body.theme-light .btn-outline { color: #0f172a; }
body.theme-light .btn-icon { color: #0f172a; background: #e2e8f0; }

@keyframes rgb-bg { 0% { background-image: radial-gradient(circle at 15% 50%, rgba(255, 0, 0, 0.05), transparent 30%); } 33% { background-image: radial-gradient(circle at 50% 50%, rgba(0, 255, 0, 0.05), transparent 30%); } 66% { background-image: radial-gradient(circle at 85% 50%, rgba(0, 0, 255, 0.05), transparent 30%); } 100% { background-image: radial-gradient(circle at 15% 50%, rgba(255, 0, 255, 0.05), transparent 30%); } }
@keyframes rgb-glow { 0% { background-position: 0 0; } 100% { background-position: 400% 0; } }

/* ĐÃ FIX TẬN GỐC RGB: Trả lại ::after để giữ nền đen, không tràn viền đè Menu */
body.theme-rgb .header-bento { z-index: 2000 !important; }
body.theme-rgb .bento-card { position: relative; border: none !important; background: transparent !important; z-index: 1; }
body.theme-rgb .bento-card::before { content: ""; position: absolute; inset: -2px; z-index: -2; background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000); background-size: 400%; animation: rgb-glow 10s linear infinite; border-radius: calc(var(--radius-lg) + 2px); }
body.theme-rgb .bento-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background-color: var(--c-card); border-radius: var(--radius-lg); }
/* Ép content nổi lên trên viền RGB */
body.theme-rgb .bento-card > * { position: relative; z-index: 2; }

body.theme-rgb .logo-text, body.theme-rgb .status-text, body.theme-rgb #current-email { background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000); background-size: 400%; -webkit-background-clip: text; color: transparent; animation: rgb-glow 10s linear infinite; }
body.theme-rgb .logo-icon { background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000); background-size: 400%; animation: rgb-glow 10s linear infinite; box-shadow: 0 0 15px rgba(255,255,255,0.2); }
body.theme-rgb .btn-gradient, body.theme-rgb .pulse-dot { background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000); background-size: 400%; animation: rgb-glow 10s linear infinite; box-shadow: 0 5px 15px rgba(255,255,255,0.2); }

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', 'Segoe UI', sans-serif; }
html, body { overflow-x: hidden; max-width: 100vw; width: 100%; background-color: var(--c-bg); }
body { background-color: var(--c-bg); color: var(--c-text); min-height: 100vh; padding: 20px; transition: 0.4s ease; display: flex; justify-content: center;}
.dashboard-wrapper { max-width: 1100px; width: 100%; display: flex; flex-direction: column; gap: 20px; }
.bento-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.header-bento { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-radius: 100px; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; }
.logo-icon { background: linear-gradient(135deg, var(--c-primary), var(--c-secondary)); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: 18px; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.status-indicator { display: flex; align-items: center; gap: 8px; background: rgba(16, 185, 129, 0.1); padding: 8px 16px; border-radius: 50px; border: 1px solid rgba(16, 185, 129, 0.2); }
.pulse-dot { width: 8px; height: 8px; background: var(--c-success); border-radius: 50%; box-shadow: 0 0 10px var(--c-success); animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }
.status-text { font-size: 13px; font-weight: 600; color: var(--c-success); }
.dashboard-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
.dashboard-grid > * { min-width: 0; }
.control-panel { display: flex; flex-direction: column; gap: 20px; }
.current-mail-card { text-align: center; display: flex; flex-direction: column; gap: 15px; }
.card-label { font-size: 12px; color: var(--c-muted); font-weight: 700; letter-spacing: 1px; }
#current-email { font-size: 22px; color: var(--c-text); word-break: break-all; }
.pill-tabs { display: flex; background: rgba(0,0,0,0.4); padding: 6px; border-radius: 100px; margin-bottom: 20px; }
.pill-btn { flex: 1; display: flex; justify-content: center; align-items: center; border: none; background: transparent; color: var(--c-muted); padding: 12px; font-weight: 600; font-size: 15px; border-radius: 100px; cursor: pointer; transition: 0.3s; }
.pill-btn.active { background: var(--c-card); color: var(--c-text); box-shadow: 0 2px 10px rgba(0,0,0,0.3); border: 1px solid var(--c-border); }
.action-group { display: flex; flex-direction: column; gap: 15px; }
.input-group { display: flex; gap: 10px; }
.input-group input { background: rgba(0,0,0,0.3); border: 1px solid var(--c-border); color: var(--c-text); padding: 14px; border-radius: var(--radius-md); outline: none; transition: 0.3s; width: 100%; font-size: 14px; }
.input-group input:focus { border-color: var(--c-primary); }

.custom-select-container { position: relative; font-family: 'Inter', sans-serif; z-index: 50; }
.custom-select-container select { display: none; } 
.select-selected { background: rgba(0,0,0,0.3); border: 1px solid var(--c-border); color: var(--c-text); padding: 14px 16px; border-radius: var(--radius-md); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; font-size: 14px; font-weight: 600; }
.select-selected:after { content: '\f078'; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 12px; color: var(--c-muted); transition: transform 0.3s ease; }
.select-selected.select-arrow-active { border-color: var(--c-primary); box-shadow: 0 0 15px rgba(139, 92, 246, 0.15); }
.select-selected.select-arrow-active:after { transform: rotate(180deg); color: var(--c-primary); }
.select-items { position: absolute; background-color: var(--c-card); border: 1px solid var(--c-border); top: calc(100% + 5px); left: 0; right: 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.2s ease-in-out; }
.select-items.select-show { opacity: 1; visibility: visible; transform: translateY(0); }
.select-items div { color: var(--c-text); padding: 14px 16px; cursor: pointer; transition: 0.2s ease; border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 14px; font-weight: 500; }
.select-items div:hover, .same-as-selected { background-color: rgba(255,255,255,0.05); color: var(--c-primary); padding-left: 22px; border-left: 3px solid var(--c-primary); }

.btn-row { display: flex; gap: 10px; }
.w-100 { width: 100%; }
.btn-sm { padding: 10px 16px !important; font-size: 13px !important; border-radius: 50px !important; }
.glow-btn { animation: btnGlow 2s infinite alternate; }
@keyframes btnGlow { from { box-shadow: 0 0 5px var(--c-primary); } to { box-shadow: 0 0 20px var(--c-secondary); } }
.btn-check-manual { margin-top: 15px; width: 100%; padding: 14px; background: transparent; color: var(--c-muted); border: 1px dashed var(--c-border); border-radius: var(--radius-md); cursor: pointer; font-weight: 600; transition: 0.3s; }
.btn-check-manual:hover { background: rgba(255,255,255,0.05); color: var(--c-text); border-style: solid; }
.btn-gradient { background: linear-gradient(135deg, var(--c-primary), var(--c-secondary)); color: #fff; border: none; padding: 14px 24px; border-radius: var(--radius-md); font-weight: 600; font-size: 15px; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 8px; }
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
.btn-solid { background: rgba(255,255,255,0.08); color: var(--c-text); border: 1px solid var(--c-border); padding: 14px; border-radius: var(--radius-md); font-weight: 600; cursor: pointer; transition: 0.3s; flex: 1; display: flex; justify-content: center; align-items: center; gap: 8px; }
.btn-solid:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--c-text); border: 1px solid var(--c-border); padding: 14px; border-radius: var(--radius-md); font-weight: 600; cursor: pointer; transition: 0.3s; flex: 1; display: flex; justify-content: center; align-items: center; gap: 8px;}
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-icon { background: rgba(255,255,255,0.05); color: var(--c-text); border: 1px solid var(--c-border); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; transition: 0.3s; }
.btn-icon:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn-action-card { flex: 1; display: flex; align-items: center; gap: 15px; padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--c-border); background: rgba(0,0,0,0.2); cursor: pointer; text-align: left; transition: 0.3s; }
.btn-action-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.btn-custom-style:hover { border-color: var(--c-primary); background: rgba(139, 92, 246, 0.08); }
.btn-custom-style .btn-icon-large { color: var(--c-primary); font-size: 28px; filter: drop-shadow(0 0 5px var(--c-primary)); }
.btn-random-style:hover { border-color: var(--c-secondary); background: rgba(6, 182, 212, 0.08); }
.btn-random-style .btn-icon-large { color: var(--c-secondary); font-size: 28px; filter: drop-shadow(0 0 5px var(--c-secondary)); }
.btn-action-card .btn-text strong { display: block; color: var(--c-text); font-size: 15px; margin-bottom: 4px; font-weight: 700; }
.btn-action-card .btn-text span { display: block; color: var(--c-muted); font-size: 12px; font-weight: normal; line-height: 1.4; }

.inbox-card { height: 100%; display: flex; flex-direction: column; min-height: 500px; }
.inbox-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--c-border); padding-bottom: 20px; margin-bottom: 20px; }
.inbox-title { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.badge { background: rgba(255,255,255,0.1); color: var(--c-text); padding: 4px 12px; border-radius: 50px; font-size: 14px; border: 1px solid var(--c-border); }
.sync-status { font-size: 13px; color: var(--c-muted); }
.inbox-list-container { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.mail-item { background: rgba(0,0,0,0.2); border: 1px solid var(--c-border); padding: 18px; border-radius: var(--radius-md); display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: 0.3s; animation: slideInUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; }
.mail-item:hover { background: rgba(255,255,255,0.03); transform: translateY(-3px); box-shadow: var(--shadow-float); border-color: rgba(255,255,255,0.1); }
.mail-content { flex: 1; min-width: 0; overflow: hidden; padding-right: 20px; }
.mail-sender { color: var(--c-primary); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.mail-subject { font-size: 16px; font-weight: 600; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.mail-time { font-size: 12px; color: var(--c-muted); }
.otp-badge-group { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.otp-number { background: rgba(255,255,255,0.05); border: 1px solid var(--c-border); color: var(--c-text); padding: 10px 16px; border-radius: 12px; font-size: 22px; font-weight: 800; letter-spacing: 2px; }
.btn-copy-otp { background: var(--c-card); border: 1px solid var(--c-border); color: var(--c-text); width: 45px; height: 45px; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; transition: 0.3s; }
.btn-copy-otp:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

@keyframes slideInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.skeleton-box { height: 95px; width: 100%; border-radius: var(--radius-md); background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.02) 75%); background-size: 200% 100%; animation: skeletonShine 1.5s infinite linear; border: 1px solid rgba(255,255,255,0.03); }
@keyframes skeletonShine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.empty-state { text-align: center; padding: 60px 20px; animation: slideInUp 0.6s; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.empty-icon { font-size: 60px; color: var(--c-muted); opacity: 0.3; margin-bottom: 20px; }

/* MODALS & SAAS UI */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.85); backdrop-filter: blur(10px); justify-content: center; align-items: center; }
.modal-box { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 30px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7); position: relative; animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.scroll-fix { max-height: 85vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.scroll-fix::-webkit-scrollbar { width: 6px; }
.scroll-fix::-webkit-scrollbar-thumb { background: var(--c-muted); border-radius: 10px; }
.modal-header-sticky { position: sticky; top: -30px; right: -30px; display: flex; justify-content: flex-end; z-index: 100; margin-bottom: -10px; pointer-events: none; }
.modal-header-sticky .close-btn-absolute { pointer-events: auto; background: var(--c-card); border: 1px solid var(--c-border); }
.close-btn-absolute { position: absolute; top: 15px; right: 15px; background: transparent; border: none; width: 35px; height: 35px; border-radius: 50%; color: var(--c-text); cursor: pointer; transition: 0.3s; font-size: 16px; display: flex; align-items: center; justify-content: center; z-index: 100;}
.close-btn-absolute:hover { background: #ff477e; color: #fff; transform: rotate(90deg); }

.confirm-box { text-align: center; max-width: 90%; width: 400px; }
.confirm-box .modal-icon { font-size: 45px; color: var(--c-primary); margin-bottom: 15px; display: flex; justify-content: center; }
.confirm-box h3 { margin-bottom: 10px; }
.confirm-box .modal-buttons { display: flex; gap: 15px; margin-top: 25px; width: 100%; }
.confirm-box .modal-buttons button { flex: 1; }

.landing-anim { animation: zoomInFade 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes zoomInFade { from { transform: scale(0.85) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.guide-pulse, .guide-pulse .select-selected { animation: guidePulseAnim 1.5s infinite alternate; }
div.custom-select-container.guide-pulse { animation: none; }
@keyframes guidePulseAnim { 0% { box-shadow: 0 0 0px transparent; border-color: var(--c-border); } 100% { box-shadow: 0 0 15px var(--c-primary); border-color: var(--c-primary); } }

/* Cảnh báo đỏ không dùng !important để JS gỡ class mượt */
.shake-warning { animation: shakeAnim 0.5s cubic-bezier(.36,.07,.19,.97) both; border-color: #ff477e !important; box-shadow: 0 0 15px #ff477e !important; }
@keyframes shakeAnim { 10%, 90% { transform: translate3d(-2px, 0, 0); } 20%, 80% { transform: translate3d(4px, 0, 0); } 30%, 50%, 70% { transform: translate3d(-6px, 0, 0); } 40%, 60% { transform: translate3d(6px, 0, 0); } }

#toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--c-card); border: 1px solid var(--c-border); color: var(--c-text); padding: 16px 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-float); animation: toastSlideIn 0.3s ease forwards; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px;}
@keyframes toastSlideIn { from { transform: translateX(120%); } to { transform: translateX(0); } }
@keyframes toastFadeOut { to { opacity: 0; transform: translateX(120%); } }

.auth-box { width: 400px; max-width: 95%; }
.auth-input { width: 100%; background: rgba(0,0,0,0.4); border: 1px solid var(--c-border); color: var(--c-text); padding: 15px; border-radius: var(--radius-md); outline: none; margin-bottom: 15px; font-size: 15px; transition: 0.3s;}
.auth-input:focus { border-color: var(--c-primary); box-shadow: 0 0 10px rgba(139, 92, 246, 0.2); }

/* ĐÃ FIX: THẺ VIP 5 TẦNG BÊN TRONG ĐEN ĐẶC, VIỀN NGOÀI TỎA SÁNG KHÔNG BỊ TRÀN CHÓI CHỮ */
.premium-box { width: 1000px; max-width: 98%; padding: 40px; }
.pricing-wrapper { display: flex; flex-direction: column; gap: 20px; align-items: center; width: 100%; }
.pricing-row-1 { display: flex; gap: 20px; justify-content: center; width: 100%; flex-wrap: wrap; }
.pricing-row-2 { display: flex; gap: 20px; justify-content: center; width: 100%; flex-wrap: wrap; max-width: 800px; }

/* Trả lại cách làm ::after thần thánh */
.pricing-card { flex: 1; min-width: 250px; max-width: 300px; border: none !important; background: transparent !important; border-radius: var(--radius-lg); padding: 25px; display: flex; flex-direction: column; position: relative; transition: all 0.3s ease; cursor: pointer; z-index: 1;}
.pricing-card::before { content: ""; position: absolute; inset: -2px; z-index: -2; border-radius: calc(var(--radius-lg) + 2px); transition: 0.3s ease; }
/* Nền đen đặc bên trong thẻ */
.pricing-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background-color: var(--c-card); border-radius: var(--radius-lg); }
/* Nổi Content lên */
.pricing-card > * { position: relative; z-index: 2; }

.interactive-card:hover { transform: scale(1.05); z-index: 10; }

.basic-card::before { background: rgba(255,255,255,0.1); }
.pro-card::before { background: linear-gradient(135deg, #06b6d4, #3b82f6); opacity: 0.5; }
.pro-card:hover::before { opacity: 1; box-shadow: 0 0 30px rgba(6, 182, 212, 0.4); }
.elite-card::before { background: linear-gradient(135deg, #a855f7, #ec4899); opacity: 0.8; }
.elite-card:hover::before { opacity: 1; box-shadow: 0 0 40px rgba(168, 85, 247, 0.6); }
.supreme-card::before { background: linear-gradient(135deg, #fce300, #ff00c8); opacity: 1; }
.supreme-card:hover { transform: scale(1.07); }
.supreme-card:hover::before { box-shadow: 0 0 50px rgba(252, 227, 0, 0.8); }
.infinity-card::before { background: linear-gradient(90deg, #ff0000, #ff7300, #fffb00, #ff0000); background-size: 200% auto; animation: rgb-glow 2s linear infinite; opacity: 1;}
.infinity-card:hover { transform: scale(1.08); }
.infinity-card:hover::before { box-shadow: 0 0 60px rgba(255, 0, 0, 1); }

.plan-title { font-size: 22px; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; font-weight: 900;}
.pricing-card .price { margin-bottom: 20px; display: flex; flex-direction: column; line-height: 1.1; }
.billing-cycle { font-size: 13px; font-weight: normal; color: var(--c-muted); margin-top: 5px;}
.old-price { text-decoration: line-through; color: var(--c-muted); font-size: 16px; margin-bottom: -2px; }

/* CHỮ GIÁ TIỀN SIÊU TO KHỔNG LỒ */
.new-price-mega { font-size: 42px; font-weight: 900; }
.pro-card .new-price-mega { background: linear-gradient(135deg, #fff, #06b6d4); -webkit-background-clip: text; color: transparent; }
.elite-card .new-price-mega { background: linear-gradient(135deg, #fff, #ec4899); -webkit-background-clip: text; color: transparent; }
.supreme-card .new-price-mega { font-size: 46px; background: linear-gradient(135deg, #fff, #fce300); -webkit-background-clip: text; color: transparent; text-shadow: 0 0 10px rgba(252,227,0,0.2);}
.infinity-card .new-price-mega { font-size: 48px; background: linear-gradient(135deg, #ff0000, #ff7300, #fffb00); -webkit-background-clip: text; color: transparent; text-shadow: 0 0 15px rgba(255,0,0,0.4);}

.features-list { list-style: none; margin-bottom: 25px; flex: 1; }
.features-list li { margin-bottom: 12px; font-size: 14px; color: var(--c-text); display: flex; align-items: flex-start; gap: 10px; line-height: 1.4;}
.text-success { color: var(--c-success); }
.text-error { color: #ff477e; }

.pro-badge { position: absolute; top: -15px; right: 15px; color: #fff; padding: 6px 15px; border-radius: 50px; font-weight: 900; font-size: 11px; letter-spacing: 1px; animation: flashSaleAnim 0.8s infinite alternate; z-index: 5;}
.pro-card .pro-badge { background: #06b6d4; box-shadow: 0 5px 15px rgba(6, 182, 212, 0.4); }
.elite-card .pro-badge { background: linear-gradient(135deg, #a855f7, #ec4899); box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4); }
@keyframes flashSaleAnim { from { transform: scale(1) rotate(-3deg); } to { transform: scale(1.1) rotate(3deg); } }

/* HIỆU ỨNG WELCOME VIP CHẤN ĐỘNG */
.epic-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 9999; flex-direction: column; justify-content: center; align-items: center; color: white; backdrop-filter: blur(15px); overflow: hidden; }
.sunburst { position: absolute; width: 200vw; height: 200vw; background: repeating-conic-gradient(from 0deg, rgba(252, 227, 0, 0.1) 0deg 15deg, transparent 15deg 30deg); animation: spin 20s linear infinite; z-index: -1; }
.epic-crown { font-size: 150px; color: #fce300; animation: crownEpicDrop 1s cubic-bezier(0.25, 1, 0.5, 1) forwards, crownGlow 2s infinite alternate; margin-bottom: 20px; filter: drop-shadow(0 0 50px #fce300); }
.epic-text { font-size: 50px; font-weight: 900; text-transform: uppercase; background: linear-gradient(135deg, #fce300, #ff00c8, #00ffcc); -webkit-background-clip: text; color: transparent; animation: epicTextZoom 1s cubic-bezier(0.25, 1, 0.5, 1) forwards; text-align: center; text-shadow: 0 0 20px rgba(255,255,255,0.2); }
.epic-sub { color: #fff; margin-top: 15px; font-size: 20px; letter-spacing: 3px; font-weight: bold; animation: fadeIn 2s forwards; }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes crownEpicDrop { 0% { transform: translateY(-500px) scale(0.5); opacity: 0; } 50% { transform: translateY(50px) scale(1.2); } 100% { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes crownGlow { from { filter: drop-shadow(0 0 20px #fce300); } to { filter: drop-shadow(0 0 80px #ff00c8); } }
@keyframes epicTextZoom { 0% { transform: scale(0.5); opacity: 0; letter-spacing: -10px; } 100% { transform: scale(1); opacity: 1; letter-spacing: 2px; } }
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }

/* THẺ MEGA VIP PROFILE 3D */
.vip-mega-card { position: relative; overflow: hidden; border-radius: 20px; padding: 30px; margin-bottom: 20px; text-align: left; transition: 0.4s ease; background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1); transform-style: preserve-3d; }
.vip-mega-card::after { content: ''; position: absolute; top: -100%; left: -100%; width: 50%; height: 300%; background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent); transform: rotate(35deg); animation: cardShine 4s infinite; pointer-events: none; }
@keyframes cardShine { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }
.vip-mega-card.vip-pro { border-color: rgba(6, 182, 212, 0.8); box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2); }
.vip-mega-card.vip-elite { border-color: rgba(168, 85, 247, 0.8); box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3); }
.vip-mega-card.vip-supreme { border-color: #fce300; box-shadow: 0 10px 40px rgba(252, 227, 0, 0.4); background: linear-gradient(135deg, rgba(252,227,0,0.1), rgba(255,0,200,0.1)); }
.vip-mega-card.vip-infinity { border-color: #ff0000; box-shadow: 0 10px 60px rgba(255, 0, 0, 0.6); animation: infinityPulse 1s infinite alternate; background: url('https://www.transparenttextures.com/patterns/dark-matter.png'), rgba(20,0,0,0.8); }
@keyframes infinityPulse { from { box-shadow: 0 0 30px rgba(255,0,0,0.5); } to { box-shadow: 0 0 70px rgba(255,0,0,0.9); } }
.vip-header-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.vip-mega-card h4 { font-size: 26px; font-weight: 900; margin: 0; display: flex; align-items: center; gap: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.8);}
.vip-mega-perks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top:20px; }
.vip-mega-perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #fff; background: rgba(255,255,255,0.1); padding: 12px 15px; border-radius: 8px; backdrop-filter: blur(5px); box-shadow: inset 0 0 10px rgba(255,255,255,0.05);}

/* ĐÃ FIX MENU KHÔNG TRONG SUỐT & Z-INDEX CAO NHẤT */
.user-dropdown-container { z-index: 2000; }
.user-dropdown-menu { position: absolute; top: calc(100% + 10px); left: 0; background: #141417 !important; border: 1px solid var(--c-border); border-radius: var(--radius-md); box-shadow: 0 15px 40px rgba(0,0,0,0.9) !important; width: 250px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 9999 !important; }
body.theme-light .user-dropdown-menu { background: #ffffff !important; box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important; }
.user-dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-header { padding: 12px 15px; border-bottom: 1px solid var(--c-border); font-size: 13px; color: var(--c-muted); }
.dropdown-item { width: 100%; text-align: left; background: transparent; border: none; padding: 14px 15px; color: var(--c-text); font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 10px; }
.dropdown-item:hover { background: rgba(255,255,255,0.05); color: var(--c-primary); padding-left: 20px; }
.dropdown-divider { height: 1px; background: var(--c-border); margin: 5px 0; }
.btn-logout-highlight { color: #ff477e !important; border-left: 3px solid #ff477e; background: linear-gradient(90deg, rgba(255, 71, 126, 0.1), transparent); }
.btn-logout-highlight:hover { background: #ff477e !important; color: #fff !important; padding-left: 15px; }

.dropdown-balance-card { background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15)); border: 1px solid rgba(16, 185, 129, 0.4); border-radius: 12px; padding: 15px; margin: 12px; text-align: center; box-shadow: 0 0 15px rgba(16, 185, 129, 0.2); animation: balancePulse 2s infinite alternate; }
.dropdown-balance-card .balance-title { display: block; font-size: 11px; color: var(--c-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.dropdown-balance-card .balance-amount { display: block; font-size: 24px; font-weight: 900; color: var(--c-success); text-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }

/* USER PROFILE DASHBOARD */
.profile-box { width: 900px; padding: 0; } 
.profile-layout { display: flex; min-height: 500px; padding: 0 20px 20px 20px; }
.profile-sidebar { width: 260px; border-right: 1px solid var(--c-border); padding: 10px 20px 0 0; display: flex; flex-direction: column; align-items: center; }
.profile-avatar { font-size: 60px; color: var(--c-primary); margin-bottom: 10px; text-shadow: 0 0 20px rgba(139, 92, 246, 0.4); }
.profile-balance-pro { background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15)); border: 1px solid rgba(16, 185, 129, 0.4); border-radius: 16px; padding: 15px 25px; text-align: center; margin-bottom: 25px; width: 100%; box-shadow: 0 0 15px rgba(16, 185, 129, 0.2); animation: balancePulse 2s infinite alternate; }
.profile-balance-pro .balance-label { display: block; font-size: 12px; color: var(--c-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.profile-balance-pro .balance-amount { display: block; font-size: 24px; font-weight: 900; color: var(--c-success); text-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }
.profile-tab { width: 100%; text-align: left; padding: 12px 16px; background: transparent; border: 1px solid transparent; color: var(--c-text); font-weight: 600; border-radius: var(--radius-md); cursor: pointer; transition: 0.3s; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.profile-tab:hover { background: rgba(255,255,255,0.05); }
.profile-tab.active { background: var(--c-primary); color: #000; box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3); }
.btn-logout-sidebar { border-color: rgba(255, 71, 126, 0.5) !important; color: #ff477e !important; margin-top: 20px; font-weight: 800; }
.btn-logout-sidebar:hover { background: #ff477e !important; color: #fff !important; border-color: #ff477e !important; }
.profile-content { flex: 1; padding: 10px 0 0 40px; position: relative; }
.profile-section { display: none; animation: slideInUp 0.4s ease forwards; }
.profile-section.active { display: block; }
.section-desc { color: var(--c-muted); font-size: 14px; margin-bottom: 25px; }
.input-group-vertical { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.input-group-vertical label { font-size: 13px; font-weight: 600; color: var(--c-muted); }

/* BẢNG GRID ADMIN & TABLES */
.admin-grid-pro { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-col { display: flex; flex-direction: column; gap: 20px; }
.table-responsive { overflow-x: auto; width: 100%; -webkit-overflow-scrolling: touch;}
.history-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.history-table th, .history-table td { padding: 12px; border-bottom: 1px solid var(--c-border); text-align: left; white-space: nowrap;}
.status-badge { padding: 4px 10px; border-radius: 50px; font-size: 12px; font-weight: bold; display: inline-block; }
.status-success { background: rgba(16, 185, 129, 0.1); color: var(--c-success); border: 1px solid rgba(16, 185, 129, 0.3); }

/* ================= ĐÃ FIX: MÀN HÌNH ĐỌC THƯ HIỂN THỊ CHUẨN XÁC, CHỮ KHÔNG BỊ ĐÈ ================= */
#modal-body { padding: 20px; background: #ffffff !important; color: #000000 !important; min-height: 300px; overflow-x: auto; line-height: 1.6 !important; font-family: Arial, Helvetica, sans-serif !important; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
#modal-body p { margin-top: 1em !important; margin-bottom: 1em !important; display: block; }
#modal-body h1, #modal-body h2, #modal-body h3, #modal-body h4 { margin-top: 1.2em !important; margin-bottom: 0.6em !important; font-weight: bold !important; display: block; }
#modal-body ul, #modal-body ol { margin-top: 1em !important; margin-bottom: 1em !important; padding-left: 40px !important; display: block; }
#modal-body div { display: block; margin-bottom: 10px; }
#modal-body table { border-collapse: separate !important; }

/* MOBILE RESPONSIVE TỐI THƯỢNG */
@media (max-width: 900px) { 
    .dashboard-grid { grid-template-columns: 1fr; } 
    .pricing-row-1, .pricing-row-2 { flex-direction: column; } 
    .pricing-card { width: 100%; max-width: 100%; } 
}
@media (max-width: 768px) {
    .admin-grid-pro { display: flex; flex-direction: column; }
    .profile-box { padding: 0 !important; }
    .modal-header-sticky { top: 0; right: 0; padding: 15px 15px 0 0; } 
    .profile-layout { flex-direction: column; min-height: auto; padding: 0 15px 15px 15px; }
    .profile-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--c-border); padding: 0 0 20px 0; align-items: stretch; }
    .profile-avatar { text-align: center; margin: 0 auto 10px; }
    .profile-username-display { text-align: center; }
    .profile-tab { justify-content: center; }
    .profile-content { padding: 25px 0 0 0; width: 100%; overflow: hidden; }
    .vip-mega-perks { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    body { padding: 10px; }
    .dashboard-wrapper { gap: 15px; }
    .bento-card { padding: 16px; border-radius: 16px; }
    .header-bento { flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 15px; }
    .logo { gap: 8px; flex-shrink: 0; }
    .logo-text { font-size: 16px; }
    .logo-icon { width: 28px; height: 28px; font-size: 12px; }
    .header-actions { justify-content: flex-end; width: auto; gap: 6px; flex-wrap: nowrap; }
    .header-actions .btn-sm { width: 36px; height: 36px; padding: 0 !important; border-radius: 50% !important; display: flex; justify-content: center; align-items: center; }
    .header-actions .btn-sm span { display: none; } 
    .header-actions .btn-icon { width: 36px; height: 36px; font-size: 14px; }
    .desktop-only { display: none !important; } 
    .input-group { flex-direction: column; }
    .input-group .custom-select-container { width: 100% !important; }
    .btn-row { display: flex; flex-direction: row !important; gap: 10px; }
    .btn-action-card { flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px 5px; gap: 8px; }
    .btn-action-card .btn-text span { display: none; }
    .btn-action-card .btn-text strong { font-size: 13px; margin-bottom: 0; }
    .btn-icon-large { font-size: 24px !important; }
    .btn-check-manual { margin-top: 10px; padding: 10px; }
    #current-email { font-size: 18px; word-break: break-all; }
    .inbox-title { font-size: 18px; }
    .mail-item { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px; }
    .otp-badge-group { width: 100%; justify-content: space-between; }
    .otp-number { font-size: 18px; flex: 1; text-align: center; }
    .mail-reader { width: 100%; }
    .user-dropdown-menu { right: 0; left: auto; transform-origin: top right; }
    .premium-box { padding: 25px 15px; }
}
/* Bóp nát mọi ảnh to của Amazon, không cho tràn viền điện thoại */
#modal-body * { 
    max-width: 100% !important; 
    box-sizing: border-box !important; 
    word-wrap: break-word !important;
}
/* ĐỊNH DẠNG CHỮ CHÍNH LOGO */
.logo-text {
    font-size: 1.6rem; 
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    animation: glitch 3s infinite;
    text-shadow: 0 0 15px rgba(0,229,255,0.6); 
}

/* TẠO 2 LỚP BÓNG ĐỂ XÉ HÌNH LOGO */
.logo-text::before, .logo-text::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    font: inherit;
    white-space: nowrap;
}

/* NỬA TRÊN CỦA CHỮ (MÀU XANH NGỌC) */
.logo-text::before {
    color: #00e5ff;
    animation: glitch-top 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    left: -2px;
}

/* NỬA DƯỚI CỦA CHỮ (MÀU XANH LÁ) */
.logo-text::after {
    color: #39ff14;
    animation: glitch-bot 3s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    left: 2px;
}

/* NHỊP ĐỘ GIẬT CỦA CHỮ CHÍNH */
@keyframes glitch {
    0%, 92%, 100% { transform: none; }
    93% { transform: skewX(-1deg); }
    94% { transform: skewX(1deg) translateX(2px); }
    95% { transform: skewX(-0.5deg); }
    96% { transform: none; }
}

/* NHỊP ĐỘ XẾ HÌNH NỬA TRÊN */
@keyframes glitch-top {
    0%, 90%, 100% { transform: none; opacity: 0; }
    91% { transform: translateX(-4px); opacity: 0.9; }
    93% { transform: translateX(4px) skewX(2deg); opacity: 0.9; }
    95% { opacity: 0; }
}

/* NHỊP ĐỘ XẾ HÌNH NỬA DƯỚI */
@keyframes glitch-bot {
    0%, 90%, 100% { transform: none; opacity: 0; }
    92% { transform: translateX(4px); opacity: 0.9; }
    94% { transform: translateX(-4px) skewX(-2deg); opacity: 0.9; }
    96% { opacity: 0; }
}

/* =========================================
   GÓI GIAO DIỆN: THEME HACKER (CHUẨN MAXCHEAT)
   ========================================= */

/* MẶC ĐỊNH ẨN CANVAS VÀ HIỆU ỨNG ĐI */
.cyber-crt, #particle-canvas {
    display: none;
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
}
#particle-canvas { z-index: 1; }
.cyber-crt { z-index: 9999; }

/* KHI CHỌN THEME HACKER -> HIỆN NỀN ĐEN, HIỆN BỤI VÀ SỌC */
body.theme-hacker {
    background-color: #0a0a0a !important;
    color: #00e5ff;
}
body.theme-hacker .cyber-crt,
body.theme-hacker #particle-canvas {
    display: block;
}

/* HIỆU ỨNG SCANLINE TĨNH CUỘN NHẸ (CHUẨN BẢN GỐC MAXCHEAT) */
body.theme-hacker .cyber-crt {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.18) 2px,
        rgba(0, 0, 0, 0.18) 4px
    );
    animation: scanMove 8s linear infinite;
}
@keyframes scanMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 400px; }
}

/* LÀM TRONG SUỐT NỀN MODAL ĐỂ THẤY BỤI BAY */
body.theme-hacker #auth-modal.auth-modal-bg,
body.theme-hacker #admin-modal.auth-modal-bg {
    background-color: rgba(10, 10, 15, 0.85) !important;
    backdrop-filter: blur(2px) !important;
}

/* Giấu quả cầu Lofi đi cho đỡ chói mắt */
body.theme-hacker .hero-orb {
    display: none !important;
}

/* Tút lại các bảng làm việc để ngầu hơn */
body.theme-hacker .dashboard-wrapper { position: relative; z-index: 10; }
body.theme-hacker .bento-card {
    background: rgba(10, 15, 20, 0.8) !important;
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1) !important;
}
body.theme-hacker .auth-card.glass {
    border-color: rgba(0, 229, 255, 0.5) !important;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.1), inset 0 0 20px rgba(0, 229, 255, 0.05) !important;
}
body.theme-hacker .input-glass:focus {
    border-color: #00e5ff !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3) !important;
}
