/**
 * Stylesheet: Fortune Cookie & Cosmic Messages
 * Dedicated Aesthetic for Fortune Cookie / Bánh Quy May Mắn
 */

:root {
    --fc-gold-50: #fffbeb;
    --fc-gold-100: #fef3c7;
    --fc-gold-200: #fde68a;
    --fc-gold-300: #fcd34d;
    --fc-gold-400: #fbbf24;
    --fc-gold-500: #f59e0b;
    --fc-gold-600: #d97706;
    --fc-gold-700: #b45309;
    --fc-gold-800: #92400e;
    --fc-cookie-main: #f59e0b;
    --fc-cookie-dark: #b45309;
    --fc-text: #1e293b;
    --fc-text-muted: #64748b;
    --fc-radius-sm: 8px;
    --fc-radius-md: 14px;
    --fc-radius-lg: 22px;
    --fc-radius-xl: 30px;
    --fc-shadow-gold: 0 10px 30px rgba(245, 158, 11, 0.25);
    --fc-shadow-card: 0 12px 35px rgba(180, 83, 9, 0.12);
}

/* ========================================================
   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;
}

/* Container */
.fc-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--fc-text);
}

/* 1. HERO BANNER: COSMIC BAKERY */
.fc-hero-banner {
    position: relative;
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 50%, #451a03 100%);
    border-radius: var(--fc-radius-xl);
    padding: 38px 24px 32px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(49, 16, 66, 0.35), var(--fc-shadow-gold);
    border: 2px solid rgba(251, 191, 36, 0.35);
    margin-bottom: 24px;
    color: #ffffff;
}

/* Floating Stardust in Background */
.fc-bg-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.fc-sparkle {
    position: absolute;
    font-size: 18px;
    opacity: 0.3;
    animation: fcFloatSparkle 6s infinite ease-in-out;
}
.fc-sparkle:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; font-size: 22px; }
.fc-sparkle:nth-child(2) { top: 25%; right: 12%; animation-delay: 1.5s; font-size: 16px; }
.fc-sparkle:nth-child(3) { bottom: 20%; left: 18%; animation-delay: 3s; font-size: 24px; }
.fc-sparkle:nth-child(4) { bottom: 15%; right: 20%; animation-delay: 2s; font-size: 20px; }

@keyframes fcFloatSparkle {
    0%, 100% { transform: translateY(0) scale(0.8); opacity: 0.2; }
    50% { transform: translateY(-12px) scale(1.2); opacity: 0.6; filter: drop-shadow(0 0 6px #fde68a); }
}

.fc-hero-emblem {
    width: 68px;
    height: 68px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
    animation: fcPulseGlow 2.5s infinite ease-in-out;
}

@keyframes fcPulseGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45); }
    50% { transform: scale(1.08); box-shadow: 0 12px 32px rgba(251, 191, 36, 0.7); }
}

.fc-hero-emblem span {
    font-size: 34px;
    line-height: 1;
}

.fc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fef08a;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid rgba(254, 240, 138, 0.3);
    margin-bottom: 12px;
}

.fc-hero-title {
    font-size: 1.95rem;
    font-weight: 900;
    line-height: 1.25;
    margin: 0 0 10px;
    background: linear-gradient(135deg, #ffffff 0%, #fef3c7 40%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.fc-hero-sub {
    font-size: 0.96rem;
    color: #fef3c7;
    max-width: 620px;
    margin: 0 auto 18px;
    line-height: 1.55;
    opacity: 0.92;
}

.fc-reward-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.4) 100%);
    border: 1px solid #fde68a;
    border-radius: 999px;
    font-size: 0.86rem;
    color: #fef08a;
    font-weight: 700;
    box-shadow: 0 2px 14px rgba(250, 204, 21, 0.25);
}

/* 2. MAIN COOKIE INTERACTION STAGE */
.fc-stage-card {
    background: #ffffff;
    border: 2px solid var(--fc-gold-200);
    border-radius: var(--fc-radius-xl);
    padding: 36px 24px;
    box-shadow: var(--fc-shadow-card);
    margin-bottom: 24px;
    text-align: center;
    position: relative;
}

/* User Name Input Header */
.fc-user-bar {
    max-width: 380px;
    margin: 0 auto 28px;
    position: relative;
}

.fc-user-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--fc-gold-800);
    margin-bottom: 6px;
    text-align: left;
}

.fc-user-input {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid var(--fc-gold-200);
    border-radius: var(--fc-radius-md);
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--fc-text);
    background: #fffdf7;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s;
}

.fc-user-input:focus {
    border-color: var(--fc-gold-500);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* 3. 3D FORTUNE COOKIE INTERACTIVE WRAPPER */
.fc-cookie-interactive-wrap {
    width: 260px;
    height: 180px;
    margin: 0 auto 20px;
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fc-cookie-interactive-wrap:hover {
    transform: scale(1.05) translateY(-4px);
}

.fc-cookie-interactive-wrap:active {
    transform: scale(0.96);
}

/* Full Cookie (Unbroken) */
.fc-cookie-svg-full {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 14px 24px rgba(180, 83, 9, 0.28));
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Broken Halves (Hidden by default, shown when cracked) */
.fc-cookie-broken-box {
    display: none;
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fc-cookie-half-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    filter: drop-shadow(0 10px 20px rgba(180, 83, 9, 0.2));
}

.fc-cookie-half-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    filter: drop-shadow(0 10px 20px rgba(180, 83, 9, 0.2));
}

/* Cookie Cracking Keyframes */
.fc-cookie-cracking .fc-cookie-svg-full {
    display: none;
}

.fc-cookie-cracking .fc-cookie-broken-box {
    display: block;
}

.fc-cookie-cracking .fc-cookie-half-left {
    animation: fcCrackLeft 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.fc-cookie-cracking .fc-cookie-half-right {
    animation: fcCrackRight 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fcCrackLeft {
    0% { transform: translateX(0) rotate(0deg); opacity: 1; }
    100% { transform: translateX(-48px) translateY(12px) rotate(-24deg); opacity: 0.95; }
}

@keyframes fcCrackRight {
    0% { transform: translateX(0) rotate(0deg); opacity: 1; }
    100% { transform: translateX(48px) translateY(12px) rotate(24deg); opacity: 0.95; }
}

/* Flying Crumbs */
.fc-crumb {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #d97706;
    border-radius: 50%;
    opacity: 0;
}
.fc-cookie-cracking .fc-crumb-1 { animation: fcCrumb1 0.6s ease-out forwards; }
.fc-cookie-cracking .fc-crumb-2 { animation: fcCrumb2 0.6s ease-out forwards; }
.fc-cookie-cracking .fc-crumb-3 { animation: fcCrumb3 0.6s ease-out forwards; }

@keyframes fcCrumb1 {
    0% { top: 50%; left: 50%; transform: scale(1); opacity: 1; }
    100% { top: 20%; left: 25%; transform: scale(0.4); opacity: 0; }
}
@keyframes fcCrumb2 {
    0% { top: 50%; left: 50%; transform: scale(1); opacity: 1; }
    100% { top: 15%; left: 75%; transform: scale(0.3); opacity: 0; }
}
@keyframes fcCrumb3 {
    0% { top: 50%; left: 50%; transform: scale(1); opacity: 1; }
    100% { top: 80%; left: 50%; transform: scale(0.5); opacity: 0; }
}

/* Prompt to crack */
.fc-crack-hint {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--fc-gold-800);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fc-crack-hint span.hand {
    display: inline-block;
    animation: fcTap 1.4s infinite ease-in-out;
}

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

.fc-btn-crack-now {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: var(--fc-radius-md);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fc-btn-crack-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.5);
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.fc-btn-crack-now:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 4. PAPER RIBBON REVEAL (THÔNG ĐIỆP BÁNH QUY MAY MẮN) */
.fc-ribbon-reveal-wrap {
    display: none;
    margin-top: 24px;
    animation: fcRibbonUnfold 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fcRibbonUnfold {
    0% { transform: scaleY(0.1) translateY(20px); opacity: 0; }
    100% { transform: scaleY(1) translateY(0); opacity: 1; }
}

/* Authentic Paper Ribbon Style */
.fc-paper-ribbon {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    background: #fffef8;
    border: 3px double #dc2626;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 12px 35px rgba(220, 38, 38, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
    background-image: radial-gradient(circle at 10% 20%, rgba(220, 38, 38, 0.03) 0%, transparent 60%);
}

/* Ribbon Chinese Luck Seals */
.fc-ribbon-stamp-left {
    position: absolute;
    top: 10px;
    left: 12px;
    width: 28px;
    height: 28px;
    border: 1.5px solid #dc2626;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    border-radius: 4px;
    opacity: 0.7;
}

.fc-ribbon-stamp-right {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 1.5px solid #dc2626;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    border-radius: 4px;
    opacity: 0.7;
}

.fc-ribbon-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #b91c1c;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.fc-ribbon-message {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.55;
    margin: 0 0 20px;
    font-style: italic;
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    letter-spacing: -0.2px;
}

.fc-ribbon-divider {
    width: 60%;
    height: 1px;
    background: #fecaca;
    margin: 0 auto 18px;
}

/* 3 Lucky Lottery Balls */
.fc-lucky-nums-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.fc-lucky-nums-label {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--fc-gold-800);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fc-lucky-ball {
    width: 38px;
    height: 38px;
    background: radial-gradient(circle at 35% 35%, #fef08a 0%, #f59e0b 60%, #b45309 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(180, 83, 9, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.fc-points-earned-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    color: #065f46;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 8px;
}

/* Ribbon Action Buttons */
.fc-ribbon-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.fc-btn-act {
    flex: 1 1 160px;
    max-width: 220px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: var(--fc-radius-md);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
}

.fc-btn-fb {
    background: #1877f2;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}
.fc-btn-fb:hover {
    background: #166fe5;
    transform: translateY(-2px);
    color: #ffffff;
}

.fc-btn-download {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}
.fc-btn-download:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.fc-btn-copy {
    background: #ffffff;
    color: #334155;
    border: 1.5px solid #cbd5e1;
}
.fc-btn-copy:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.fc-btn-another {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.fc-btn-another:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

/* 5. COUNTDOWN TIMER BAR */
.fc-countdown-box {
    display: none;
    background: #fffbeb;
    border: 1.5px solid var(--fc-gold-300);
    border-radius: var(--fc-radius-md);
    padding: 14px 18px;
    margin-top: 20px;
    font-size: 0.88rem;
    color: var(--fc-gold-800);
    font-weight: 700;
}

.fc-timer-digit {
    font-family: monospace, monospace;
    font-size: 1.05rem;
    font-weight: 900;
    color: #b45309;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #fde68a;
}

/* 6. LIVE COOKIES WALL (TỦ BÁNH QUY HÔM NAY) */
.fc-recent-box {
    background: #ffffff;
    border: 2px solid var(--fc-gold-200);
    border-radius: var(--fc-radius-xl);
    padding: 24px;
    box-shadow: var(--fc-shadow-card);
}

.fc-recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 8px;
}

.fc-recent-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--fc-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fc-recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.fc-recent-card {
    background: #fffdfa;
    border: 1.5px solid #fef3c7;
    border-radius: var(--fc-radius-md);
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s;
}

.fc-recent-card:hover {
    background: #ffffff;
    border-color: var(--fc-gold-400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
}

.fc-recent-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.fc-recent-user {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--fc-gold-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.fc-recent-tag {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
}

.fc-recent-msg {
    font-size: 0.86rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
    margin-bottom: 8px;
    font-style: italic;
}

.fc-recent-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    color: #94a3b8;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN CHO FORTUNE COOKIE (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;
    }
    .fc-container {
        width: 100% !important;
        max-width: 100% !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,
    .fc-container {
        width: 100% !important;
        max-width: 100% !important;
    }
    .fc-hero-banner {
        padding: 24px 14px 20px !important;
        border-radius: var(--fc-radius-lg) !important;
    }
    .fc-hero-title {
        font-size: 1.45rem !important;
    }
    .fc-hero-sub {
        font-size: 0.88rem !important;
    }
    .fc-stage-card {
        padding: 20px 14px !important;
        border-radius: var(--fc-radius-lg) !important;
    }
    .fc-cookie-interactive-wrap {
        width: 200px !important;
        height: 140px !important;
    }
    .fc-ribbon-message {
        font-size: 1.05rem !important;
    }
    .fc-btn-act {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
    }
    .fc-recent-grid {
        grid-template-columns: 1fr !important;
    }
}
