/* ══════════════════════════════════════════════════════════════════════════
   THẦN SỐ HỌC PITAGO HUYỀN BÍ (PYTHAGOREAN NUMEROLOGY) - STYLESHEET
   Thiết kế giao diện huyền ảo, vũ trụ đêm huyền bí, hình học thiêng liêng (Sacred Geometry)
   ══════════════════════════════════════════════════════════════════════════ */

/* ========================================================
   FACEBOOK-STYLE 3-COLUMN LAYOUT FOR XABUON
   ======================================================== */
#container {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 600px 1fr !important;
    padding-top: 76px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    min-height: 900px !important;
}

#main {
    grid-column: 2 !important;
    width: 600px !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

#content-holder,
#content {
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.side-bar {
    grid-column: 3 !important;
    width: 310px !important;
    margin: 0 0 0 24px !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

/* ========================================================
   BẢNG XẾP HẠNG TUẦN (SIDEBAR LEADERBOARD)
   ======================================================== */
.leaderboard-card-wrapper {
    width: 310px !important;
    position: sticky !important;
    top: 80px !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(28, 130, 192, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e1effa !important;
    overflow: hidden !important;
    z-index: 10 !important;
}

.fixscroll_header_top {
    position: sticky !important;
    top: 80px !important;
    width: 310px !important;
    z-index: 10 !important;
}

.leaderboard-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    background: linear-gradient(135deg, #1c82c0 0%, #2a8ec9 100%) !important;
    color: #ffffff !important;
}

.leaderboard-header-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.leaderboard-flame-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffd666 !important;
    font-size: 15px;
}

.leaderboard-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.2px;
    line-height: 1.2 !important;
}

.leaderboard-view-all {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: none !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    transition: all 0.15s ease !important;
}

.leaderboard-view-all:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
}

.leaderboard-body,
.leaderboard-content {
    padding: 8px 10px !important;
    background: #ffffff !important;
}

.top-news-skeleton {
    padding: 20px 0;
}

/* Item trong Bảng xếp hạng */
.top-leaderboard-item {
    border-radius: 10px !important;
    margin-bottom: 6px !important;
    transition: background 0.15s ease, transform 0.15s ease !important;
}

.top-leaderboard-item:hover {
    background: #f0f7fd !important;
    transform: translateX(2px) !important;
}

.top-leaderboard-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px !important;
    text-decoration: none !important;
    color: inherit !important;
}

/* Thứ hạng */
.top-rank-slot {
    flex: 0 0 24px !important;
    text-align: center !important;
}

.top-rank-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.top-rank-badge.rank-1 {
    background: linear-gradient(135deg, #ff4d4f, #f5222d) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(245, 34, 45, 0.35) !important;
}

.top-rank-badge.rank-2 {
    background: linear-gradient(135deg, #fa8c16, #fa541c) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(250, 140, 22, 0.35) !important;
}

.top-rank-badge.rank-3 {
    background: linear-gradient(135deg, #faad14, #ffc53d) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(250, 173, 20, 0.35) !important;
}

.top-rank-badge.rank-other {
    background: #edf3f8 !important;
    color: #6a8296 !important;
}

/* Thumbnail ảnh */
.top-thumb-box {
    position: relative !important;
    flex: 0 0 74px !important;
    width: 74px !important;
    height: 56px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #e8f0f6 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.top-thumb-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.25s ease !important;
}

.top-leaderboard-item:hover .top-thumb-img {
    transform: scale(1.06) !important;
}

.top-thumb-box .videoIndicator {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 22px !important;
    height: 22px !important;
    pointer-events: none !important;
}

/* Thông tin bài viết */
.top-item-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.top-item-title {
    margin: 0 0 4px 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1a3447 !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transition: color 0.15s ease !important;
}

.top-leaderboard-item:hover .top-item-title {
    color: #1c82c0 !important;
}

.top-item-meta {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.top-view-count {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11.5px !important;
    color: #7b94a6 !important;
    font-weight: 500 !important;
}

/* Wrapper chính Thần Số Học */
.num-mystic-wrap {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 0 50px 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;
    color: #f1f5f9;
}

/* 1. HERO BANNER HUYỀN BÍ */
.num-hero-banner {
    position: relative;
    border-radius: 24px;
    padding: 34px 22px 28px;
    text-align: center;
    background: radial-gradient(circle at 50% 20%, #2e1065 0%, #17082e 60%, #090314 100%);
    border: 1.5px solid rgba(167, 139, 250, 0.35);
    box-shadow: 0 10px 40px rgba(76, 29, 149, 0.45), inset 0 0 30px rgba(139, 92, 246, 0.15);
    overflow: hidden;
    margin-bottom: 24px;
}

/* Rotating Sacred Mandala Background */
.num-mandala-bg {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 380px;
    height: 380px;
    opacity: 0.14;
    pointer-events: none;
    animation: numRotateMandala 45s linear infinite;
}

@keyframes numRotateMandala {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

.num-hero-emblem {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.25) 0%, rgba(168, 85, 247, 0.15) 70%, transparent 100%);
    border: 1.5px solid rgba(250, 204, 21, 0.6);
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.4), inset 0 0 15px rgba(250, 204, 21, 0.3);
    animation: numPulseGlow 3s ease-in-out infinite;
}

@keyframes numPulseGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(250, 204, 21, 0.35); }
    50% { transform: scale(1.06); box-shadow: 0 0 35px rgba(250, 204, 21, 0.65); }
}

.num-hero-emblem-icon {
    font-size: 32px;
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.8));
}

.num-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #fde047;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.4);
    padding: 3px 12px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.num-hero-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.25;
    background: linear-gradient(135deg, #ffffff 0%, #fef08a 40%, #c084fc 80%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 10px rgba(192, 132, 252, 0.3);
}

.num-hero-sub {
    margin: 0 auto 16px auto;
    max-width: 480px;
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.5;
}

.num-reward-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #ffd600;
    background: rgba(0, 0, 0, 0.35);
    border: 1px dashed rgba(250, 204, 21, 0.45);
    padding: 6px 14px;
    border-radius: 20px;
}

/* 2. BÀN THỜ TÍNH TOÁN (SACRED ALTAR INPUT FORM) */
.num-altar-box {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 16, 56, 0.92) 0%, rgba(15, 8, 30, 0.96) 100%);
    border: 1.5px solid rgba(192, 132, 252, 0.3);
    border-radius: 22px;
    padding: 24px 20px;
    margin-bottom: 26px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.num-altar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 800;
    color: #e2e8f0;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(167, 139, 250, 0.2);
}

.num-altar-title-icon {
    font-size: 18px;
}

.num-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.num-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.num-field label {
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 4px;
}

.num-input {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    background: rgba(10, 5, 20, 0.7);
    border: 1.5px solid rgba(167, 139, 250, 0.3);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    padding: 0 14px;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease;
}

.num-input:focus {
    border-color: #facc15;
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.35);
    background: rgba(20, 10, 40, 0.85);
}

.num-btn-cast {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%);
    background-size: 200% 200%;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 24px rgba(236, 72, 153, 0.4);
    transition: all 0.25s ease;
    animation: numGradShift 4s ease infinite;
}

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

.num-btn-cast:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.6);
}

.num-btn-cast:active {
    transform: translateY(0);
}

/* 3. VÒNG TRÒN NĂNG LƯỢNG 10 CON SỐ THIÊNG */
.num-sacred-wheel-box {
    background: rgba(20, 10, 40, 0.85);
    border: 1.5px solid rgba(167, 139, 250, 0.25);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 26px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

.num-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.num-section-title {
    font-size: 15px;
    font-weight: 800;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 6px;
}

.num-section-hint {
    font-size: 11.5px;
    color: #94a3b8;
}

.num-sacred-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.num-sacred-btn {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 16, 56, 0.8) 0%, rgba(18, 9, 36, 0.95) 100%);
    border: 1.5px solid rgba(167, 139, 250, 0.25);
    border-radius: 16px;
    padding: 12px 6px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.num-sacred-btn:hover {
    transform: translateY(-3px);
    border-color: #facc15;
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.3);
}

.num-sacred-btn.active {
    border-color: #facc15;
    background: linear-gradient(145deg, rgba(76, 29, 149, 0.9) 0%, rgba(30, 12, 60, 0.95) 100%);
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.5), inset 0 0 12px rgba(250, 204, 21, 0.2);
    transform: scale(1.05);
}

.num-sacred-digit {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #ffffff, #fef08a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.num-sacred-btn.master .num-sacred-digit {
    background: linear-gradient(135deg, #facc15, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.num-sacred-label {
    font-size: 9.5px;
    font-weight: 700;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.num-sacred-btn.master::after {
    content: 'MASTER';
    position: absolute;
    top: -6px;
    right: 4px;
    font-size: 7.5px;
    font-weight: 800;
    color: #1e1038;
    background: #facc15;
    padding: 1px 4px;
    border-radius: 4px;
    letter-spacing: 0.4px;
}

/* 4. KHU VỰC KHAI MỞ KẾT QUẢ HUYỀN BÍ (COSMIC REVEAL SECTION) */
.num-reveal-area {
    margin-bottom: 30px;
    animation: numFadeIn 0.4s ease;
}

@keyframes numFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Quá trình cộng dồn Pitago */
.num-calc-flow-box {
    background: rgba(30, 16, 56, 0.6);
    border: 1px dashed rgba(167, 139, 250, 0.35);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 20px;
    text-align: center;
}

.num-calc-flow-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #c084fc;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.num-calc-flow-steps {
    font-size: 13.5px;
    font-weight: 700;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.num-calc-flow-steps .step-arrow {
    color: #facc15;
}

.num-calc-flow-steps .step-final {
    color: #facc15;
    background: rgba(250, 204, 21, 0.15);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(250, 204, 21, 0.4);
}

/* 5. THẺ BÀI THẦN SỐ HỌC HUYỀN BÍ (GRAND MYSTICAL CARD) */
.num-card-grand {
    position: relative;
    background: radial-gradient(circle at 50% 0%, #3b136f 0%, #1a0b33 50%, #0d041c 100%);
    border: 2px solid rgba(250, 204, 21, 0.5);
    border-radius: 24px;
    padding: 26px 20px 22px;
    box-shadow: 0 16px 45px rgba(59, 19, 111, 0.5), inset 0 0 40px rgba(147, 51, 234, 0.18);
    margin-bottom: 22px;
    overflow: hidden;
}

/* Khung hoa văn viền góc vàng kim */
.num-card-grand::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 18px;
    pointer-events: none;
}

.num-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
}

.num-card-badge-circle {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #facc15 0%, #d97706 70%, #78350f 100%);
    border: 3px solid #fef08a;
    box-shadow: 0 0 28px rgba(250, 204, 21, 0.65);
    position: relative;
}

.num-card-badge-num {
    font-size: 34px;
    font-weight: 900;
    color: #1e1038;
    line-height: 1;
}

.num-card-title-col {
    flex: 1;
}

.num-card-archetype-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #facc15;
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.35);
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.num-card-title-main {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.3;
}

.num-card-element {
    font-size: 11.5px;
    color: #c084fc;
    font-weight: 600;
}

/* Thân nội dung thẻ */
.num-card-summary-box {
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid #facc15;
    padding: 12px 14px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 18px;
}

.num-card-summary-text {
    margin: 0;
    font-size: 13.5px;
    color: #f1f5f9;
    line-height: 1.55;
    font-style: italic;
}

/* 4 Trụ Cột Năng Lượng Grid */
.num-pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.num-pillar-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 14px;
    padding: 12px 14px;
}

.num-pillar-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.num-pillar-card.strengths .num-pillar-title { color: #4ade80; }
.num-pillar-card.weakness  .num-pillar-title { color: #f472b6; }
.num-pillar-card.career    .num-pillar-title { color: #38bdf8; }
.num-pillar-card.love      .num-pillar-title { color: #facc15; }

.num-pillar-desc {
    margin: 0;
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.45;
}

/* 6. MA TRẬN BIỂU ĐỒ NGÀY SINH PITAGO 3x3 */
.num-birth-chart-box {
    background: rgba(20, 10, 40, 0.7);
    border: 1.5px solid rgba(167, 139, 250, 0.25);
    border-radius: 18px;
    padding: 16px 16px 18px;
    margin-bottom: 18px;
}

.num-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.num-chart-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.num-matrix-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 280px;
    margin: 0 auto 12px;
}

.num-matrix-cell {
    aspect-ratio: 1;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(167, 139, 250, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.num-matrix-cell.lit {
    background: radial-gradient(circle, rgba(234, 179, 8, 0.25) 0%, rgba(147, 51, 234, 0.25) 100%);
    border: 1.5px solid #facc15;
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.35);
}

.num-matrix-cell-num {
    font-size: 20px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.3);
}

.num-matrix-cell.lit .num-matrix-cell-num {
    color: #facc15;
}

.num-matrix-cell-count {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
}

.num-matrix-cell.lit .num-matrix-cell-count {
    color: #ffffff;
    background: rgba(234, 179, 8, 0.35);
    padding: 1px 5px;
    border-radius: 8px;
    font-weight: 800;
}

.num-chart-arrow-note {
    font-size: 11.5px;
    color: #94a3b8;
    text-align: center;
    line-height: 1.4;
}

/* 7. NĂM CÁ NHÂN (PERSONAL YEAR) */
.num-pyear-box {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border: 1px dashed rgba(56, 189, 248, 0.4);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.num-pyear-badge {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #0284c7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.num-pyear-badge .lbl { font-size: 8px; font-weight: 800; }
.num-pyear-badge .val { font-size: 18px; font-weight: 900; line-height: 1; }

.num-pyear-info {
    flex: 1;
}

.num-pyear-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 2px;
}

.num-pyear-desc {
    margin: 0;
    font-size: 11.5px;
    color: #cbd5e1;
    line-height: 1.4;
}

/* 8. ACTION BUTTONS (SHARE FB, TẢI ẢNH, SAO CHÉP) */
.num-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.num-act-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.num-act-btn.fb {
    background: #1877f2;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
}

.num-act-btn.download {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.num-act-btn.copy {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.num-act-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

/* 9. BÁCH KHOA TOÀN THƯ 10 CON SỐ THẦN SỐ HỌC */
.num-archetype-showcase-box {
    background: rgba(20, 10, 40, 0.85);
    border: 1.5px solid rgba(167, 139, 250, 0.25);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 26px;
}

.num-archetype-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.num-archetype-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(167, 139, 250, 0.15);
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.num-archetype-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(250, 204, 21, 0.5);
    transform: translateX(4px);
}

.num-archetype-item.active {
    border-color: #facc15;
    background: rgba(234, 179, 8, 0.12);
}

.num-archetype-num-badge {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.num-archetype-info {
    flex: 1;
    min-width: 0;
}

.num-archetype-info-title {
    font-size: 13px;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.num-archetype-info-sub {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 10. NHẬT KÝ TRA CỨU CỘNG ĐỒNG (LIVE LOG FEED) */
.num-feed-box {
    background: rgba(20, 10, 40, 0.85);
    border: 1.5px solid rgba(167, 139, 250, 0.25);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 26px;
}

.num-feed-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.num-feed-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.15s ease;
}

.num-feed-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.num-feed-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.num-feed-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #6366f1;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.num-feed-user {
    font-size: 12.5px;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.num-feed-num-tag {
    font-size: 10.5px;
    font-weight: 800;
    color: #facc15;
    background: rgba(250, 204, 21, 0.15);
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
}

.num-feed-time {
    font-size: 10.5px;
    color: #64748b;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN CHO THẦN SỐ HỌC (DESKTOP, TABLET & MOBILE)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1240px) and (min-width: 1050px) {
    .side-bar,
    .leaderboard-card-wrapper,
    .fixscroll_header_top {
        width: 270px !important;
        margin-left: 16px !important;
    }
}

@media (max-width: 1050px) {
    .side-bar {
        display: none !important;
    }
    #container {
        grid-template-columns: 260px 1fr !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    #main {
        grid-column: 2 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 620px !important;
    }
}

@media (max-width: 900px) {
    .fb-left-sidebar {
        display: none !important;
    }
    #container {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 70px 12px 24px 12px !important;
    }
    #main {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        float: none !important;
    }
    #content-holder,
    #content {
        width: 100% !important;
        max-width: 100% !important;
    }
    .num-mystic-wrap {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 0 40px 0 !important;
    }
}

@media (max-width: 680px) {
    #container {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 68px 8px 24px 8px !important;
    }
    #main,
    #content-holder,
    #content,
    .num-mystic-wrap {
        width: 100% !important;
        max-width: 100% !important;
        padding: 4px 0 30px 0 !important;
    }
    .num-hero-banner {
        padding: 24px 14px 20px !important;
        border-radius: 18px !important;
    }
    .num-hero-title {
        font-size: 20px !important;
    }
    .num-hero-sub {
        font-size: 12.5px !important;
        margin-bottom: 12px !important;
    }
    .num-reward-pill {
        font-size: 11px !important;
        padding: 5px 10px !important;
    }
    .num-altar-box {
        padding: 18px 14px !important;
        border-radius: 18px !important;
    }
    .num-form-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .num-sacred-wheel-box {
        padding: 16px 12px !important;
        border-radius: 18px !important;
    }
    .num-sacred-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 6px !important;
    }
    .num-sacred-btn {
        padding: 8px 3px 6px !important;
        border-radius: 12px !important;
    }
    .num-sacred-digit {
        font-size: 17px !important;
    }
    .num-sacred-label {
        font-size: 8px !important;
    }
    .num-card-grand {
        padding: 20px 14px !important;
        border-radius: 18px !important;
    }
    .num-card-head {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
    }
    .num-card-badge-circle {
        margin: 0 auto !important;
        width: 64px !important;
        height: 64px !important;
    }
    .num-card-badge-num {
        font-size: 28px !important;
    }
    .num-pillars-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .num-card-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .num-act-btn {
        width: 100% !important;
        justify-content: center !important;
    }
    .num-birth-chart-box {
        padding: 16px 12px !important;
    }
    .num-matrix-grid {
        gap: 6px !important;
        max-width: 260px !important;
    }
    .num-matrix-cell {
        height: 54px !important;
    }
    .num-matrix-cell-num {
        font-size: 18px !important;
    }
    .num-pyear-box {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
    }
    .num-pyear-badge {
        margin: 0 auto !important;
    }
    .num-archetype-showcase-box,
    .num-feed-box {
        padding: 16px 12px !important;
        border-radius: 18px !important;
    }
}
