/**
 * Stylesheet: Love Vibe Check & Romantic Personality Quiz
 * Dedicated Aesthetic for Couples & Love Vibe Tests
 */

:root {
    --lv-rose-50: #fff1f2;
    --lv-rose-100: #ffe4e6;
    --lv-rose-200: #fecdd3;
    --lv-rose-300: #fda4af;
    --lv-rose-400: #fb7185;
    --lv-rose-500: #f43f5e;
    --lv-rose-600: #e11d48;
    --lv-rose-700: #be123c;
    --lv-pink-500: #ec4899;
    --lv-purple-600: #9333ea;
    --lv-gold: #f59e0b;
    --lv-gold-dark: #b45309;
    --lv-text: #1e293b;
    --lv-text-muted: #64748b;
    --lv-radius-sm: 8px;
    --lv-radius-md: 14px;
    --lv-radius-lg: 20px;
    --lv-radius-xl: 28px;
    --lv-shadow-sm: 0 2px 8px rgba(225, 29, 72, 0.08);
    --lv-shadow-md: 0 8px 24px rgba(225, 29, 72, 0.12);
    --lv-shadow-lg: 0 16px 40px rgba(225, 29, 72, 0.16);
}

/* ========================================================
   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 */
.lv-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--lv-text);
}

/* 1. HERO BANNER */
.lv-hero-banner {
    position: relative;
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 45%, #fce7f3 100%);
    border: 2px solid var(--lv-rose-200);
    border-radius: var(--lv-radius-xl);
    padding: 36px 24px 28px;
    text-align: center;
    overflow: hidden;
    box-shadow: var(--lv-shadow-md);
    margin-bottom: 24px;
}

/* Floating Heart Particles in Hero */
.lv-hero-bg-hearts {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.lv-floating-heart {
    position: absolute;
    font-size: 20px;
    opacity: 0.25;
    animation: lvFloatUp 8s infinite linear;
}
.lv-floating-heart:nth-child(1) { left: 8%; bottom: -20px; animation-duration: 9s; animation-delay: 0s; font-size: 26px; }
.lv-floating-heart:nth-child(2) { left: 22%; bottom: -20px; animation-duration: 11s; animation-delay: 2s; font-size: 18px; }
.lv-floating-heart:nth-child(3) { left: 45%; bottom: -20px; animation-duration: 8.5s; animation-delay: 1s; font-size: 24px; }
.lv-floating-heart:nth-child(4) { left: 75%; bottom: -20px; animation-duration: 10s; animation-delay: 3s; font-size: 20px; }
.lv-floating-heart:nth-child(5) { left: 88%; bottom: -20px; animation-duration: 9.5s; animation-delay: 0.5s; font-size: 28px; }

@keyframes lvFloatUp {
    0% { transform: translateY(0) rotate(0deg) scale(0.8); opacity: 0; }
    20% { opacity: 0.35; }
    80% { opacity: 0.35; }
    100% { transform: translateY(-380px) rotate(360deg) scale(1.2); opacity: 0; }
}

.lv-hero-emblem {
    width: 68px;
    height: 68px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.4);
    animation: lvPulse 2.5s infinite ease-in-out;
}

@keyframes lvPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(244, 63, 94, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 12px 30px rgba(244, 63, 94, 0.65); }
}

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

.lv-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--lv-rose-600);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid var(--lv-rose-300);
    box-shadow: var(--lv-shadow-sm);
    margin-bottom: 12px;
}

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

.lv-hero-sub {
    font-size: 0.96rem;
    color: #475569;
    max-width: 620px;
    margin: 0 auto 16px;
    line-height: 1.55;
}

.lv-reward-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 999px;
    font-size: 0.86rem;
    color: #92400e;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.15);
}

/* 2. QUIZ SELECTOR TABS */
.lv-tabs-box {
    margin-bottom: 24px;
}

.lv-tabs-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--lv-rose-700);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lv-tabs-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.lv-tabs-scroll::-webkit-scrollbar {
    height: 5px;
}
.lv-tabs-scroll::-webkit-scrollbar-thumb {
    background: var(--lv-rose-300);
    border-radius: 999px;
}

.lv-tab-btn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ffffff;
    border: 2px solid var(--lv-rose-200);
    border-radius: var(--lv-radius-md);
    color: #475569;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.lv-tab-btn:hover {
    border-color: var(--lv-rose-400);
    color: var(--lv-rose-600);
    transform: translateY(-2px);
    box-shadow: var(--lv-shadow-sm);
}

.lv-tab-btn.active {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border-color: var(--lv-rose-500);
    color: var(--lv-rose-700);
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.2);
}

.lv-tab-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.lv-tab-badge {
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 999px;
    background: #fee2e2;
    color: #dc2626;
    font-weight: 800;
    margin-left: 4px;
}
.lv-tab-btn.active .lv-tab-badge {
    background: var(--lv-rose-500);
    color: #ffffff;
}

/* 3. COUPLE / USER NAME INPUT BOX */
.lv-name-card {
    background: #ffffff;
    border: 2px solid var(--lv-rose-200);
    border-radius: var(--lv-radius-lg);
    padding: 20px 22px;
    margin-bottom: 24px;
    box-shadow: var(--lv-shadow-sm);
}

.lv-name-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 6px;
}

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

.lv-name-hint {
    font-size: 0.8rem;
    color: var(--lv-text-muted);
}

.lv-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lv-name-input-group {
    flex: 1;
    position: relative;
}

.lv-name-input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
}

.lv-name-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--lv-rose-200);
    border-radius: var(--lv-radius-md);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--lv-text);
    outline: none;
    transition: all 0.2s;
    background: #fffafa;
    box-sizing: border-box;
}

.lv-name-input:focus {
    border-color: var(--lv-rose-500);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15);
}

.lv-name-connector {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--lv-rose-500);
    margin-top: 18px;
    animation: lvPulse 2s infinite ease-in-out;
}

/* 4. QUIZ PLAYING BOARD */
.lv-quiz-board {
    background: #ffffff;
    border: 2px solid var(--lv-rose-200);
    border-radius: var(--lv-radius-xl);
    padding: 28px 24px;
    box-shadow: var(--lv-shadow-md);
    margin-bottom: 24px;
    position: relative;
}

/* Progress bar */
.lv-progress-wrap {
    margin-bottom: 22px;
}

.lv-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--lv-rose-600);
    margin-bottom: 8px;
}

.lv-progress-track {
    width: 100%;
    height: 10px;
    background: var(--lv-rose-100);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.lv-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f43f5e 0%, #ec4899 50%, #d946ef 100%);
    border-radius: 999px;
    transition: width 0.35s ease;
}

/* Question Content */
.lv-question-card {
    display: none;
    animation: lvFadeSlide 0.35s ease forwards;
}

.lv-question-card.active {
    display: block;
}

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

.lv-q-num-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--lv-rose-50);
    color: var(--lv-rose-700);
    border: 1px solid var(--lv-rose-300);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.lv-q-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--lv-text);
    line-height: 1.45;
    margin: 0 0 20px;
}

/* Option List */
.lv-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.lv-option-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #fafafa;
    border: 2px solid #e2e8f0;
    border-radius: var(--lv-radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.lv-option-item:hover {
    border-color: var(--lv-rose-300);
    background: #fff5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.08);
}

.lv-option-item.selected {
    border-color: var(--lv-rose-500);
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    box-shadow: 0 4px 16px rgba(244, 63, 94, 0.18);
}

.lv-opt-letter {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: #475569;
    flex-shrink: 0;
    transition: all 0.2s;
}

.lv-option-item:hover .lv-opt-letter {
    border-color: var(--lv-rose-400);
    color: var(--lv-rose-600);
}

.lv-option-item.selected .lv-opt-letter {
    background: var(--lv-rose-500);
    border-color: var(--lv-rose-500);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.35);
}

.lv-opt-label {
    font-size: 0.96rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.45;
    flex: 1;
}
.lv-option-item.selected .lv-opt-label {
    color: var(--lv-rose-700);
    font-weight: 700;
}

/* Quiz Action Bottom Nav */
.lv-quiz-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--lv-rose-100);
    padding-top: 20px;
}

.lv-btn-prev {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--lv-radius-md);
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.lv-btn-prev:hover {
    border-color: #94a3b8;
    color: #334155;
}

.lv-btn-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    border: none;
    border-radius: var(--lv-radius-md);
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(244, 63, 94, 0.35);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
}
.lv-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.5);
}
.lv-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 5. GIẤY CHỨNG NHẬN TÌNH ÁI MEME (CERTIFICATE OF LOVE) */
.lv-result-area {
    display: none;
    margin-bottom: 30px;
    animation: lvFadeSlide 0.5s ease forwards;
}

.lv-certificate-wrap {
    position: relative;
    background: #fffdfa;
    border: 8px double #e2c08d;
    border-radius: var(--lv-radius-xl);
    padding: 36px 30px;
    box-shadow: 0 16px 45px rgba(180, 83, 9, 0.15), 0 4px 16px rgba(244, 63, 94, 0.08);
    overflow: hidden;
}

/* Decorative Certificate Corners */
.lv-cert-corner {
    position: absolute;
    width: 44px;
    height: 44px;
    pointer-events: none;
    opacity: 0.8;
}
.lv-cert-corner.top-left { top: 12px; left: 12px; }
.lv-cert-corner.top-right { top: 12px; right: 12px; transform: rotate(90deg); }
.lv-cert-corner.bottom-left { bottom: 12px; left: 12px; transform: rotate(-90deg); }
.lv-cert-corner.bottom-right { bottom: 12px; right: 12px; transform: rotate(180deg); }

/* Header of certificate */
.lv-cert-header {
    text-align: center;
    border-bottom: 2px dashed #f1d5ad;
    padding-bottom: 18px;
    margin-bottom: 24px;
}

.lv-cert-nation {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #78350f;
    margin-bottom: 4px;
}

.lv-cert-motto {
    font-size: 0.82rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 12px;
}

.lv-cert-main-title {
    font-size: 1.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 6px;
    background: linear-gradient(135deg, #b45309 0%, #e11d48 50%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lv-cert-no {
    font-size: 0.82rem;
    font-family: monospace, monospace;
    font-weight: 700;
    color: #64748b;
}

/* Body of certificate */
.lv-cert-body {
    text-align: center;
    padding: 0 10px;
    margin-bottom: 24px;
}

.lv-cert-awarded-text {
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.lv-cert-names {
    font-size: 1.6rem;
    font-weight: 900;
    color: #be123c;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 4px rgba(190, 18, 60, 0.12);
}

.lv-cert-res-badge-wrap {
    margin-bottom: 16px;
}

.lv-cert-res-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: linear-gradient(135deg, #ffe4e6 0%, #fce7f3 100%);
    border: 2px solid var(--lv-rose-400);
    border-radius: 999px;
    color: var(--lv-rose-700);
    font-size: 0.96rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.15);
}

.lv-cert-title {
    font-size: 1.45rem;
    font-weight: 900;
    color: #1e293b;
    margin: 0 0 12px;
    line-height: 1.35;
}

.lv-cert-vibe-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 16px;
    border: 1px solid #cbd5e1;
}

.lv-cert-desc {
    font-size: 0.98rem;
    color: #334155;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 16px;
    font-style: italic;
    background: rgba(254, 242, 242, 0.6);
    padding: 14px 18px;
    border-radius: var(--lv-radius-md);
    border-left: 4px solid var(--lv-rose-500);
    text-align: left;
}

.lv-cert-advice {
    font-size: 0.92rem;
    color: #78350f;
    line-height: 1.55;
    max-width: 640px;
    margin: 0 auto;
    background: #fefce8;
    padding: 12px 18px;
    border-radius: var(--lv-radius-md);
    border: 1px solid #fef08a;
    text-align: left;
}

.lv-cert-advice strong {
    color: #b45309;
}

/* Certificate Footer & Wax Seal */
.lv-cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 2px dashed #f1d5ad;
    flex-wrap: wrap;
    gap: 16px;
}

.lv-cert-sign-left {
    text-align: left;
}

.lv-cert-date {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 4px;
}

.lv-cert-authority {
    font-size: 0.86rem;
    font-weight: 800;
    color: #475569;
}

.lv-cert-sign-right {
    text-align: right;
    position: relative;
    padding-right: 90px;
}

.lv-cert-sign-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 6px;
}

.lv-cert-signature {
    font-family: "Brush Script MT", "Brush Script Std", cursive, -apple-system;
    font-size: 1.8rem;
    color: #e11d48;
    line-height: 1;
}

/* Official Red Wax Stamp */
.lv-wax-seal {
    position: absolute;
    right: 0;
    bottom: -6px;
    width: 82px;
    height: 82px;
    background: radial-gradient(circle, #e11d48 0%, #be123c 70%, #881337 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(190, 18, 60, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.35);
    border: 3px dashed rgba(255, 255, 255, 0.6);
    transform: rotate(-12deg);
    animation: lvStampDrop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes lvStampDrop {
    0% { transform: scale(2) rotate(-30deg); opacity: 0; }
    100% { transform: scale(1) rotate(-12deg); opacity: 1; }
}

.lv-wax-star {
    font-size: 16px;
    line-height: 1;
}
.lv-wax-text {
    font-size: 0.52rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.1;
    text-transform: uppercase;
}

/* Action Share & Download Buttons */
.lv-result-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.lv-btn-act {
    flex: 1 1 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: var(--lv-radius-md);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    text-align: center;
}

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

.lv-btn-download {
    background: linear-gradient(135deg, #e11d48 0%, #db2777 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
}
.lv-btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.45);
    color: #ffffff;
}

.lv-btn-crush {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(147, 51, 234, 0.3);
}
.lv-btn-crush:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.45);
    color: #ffffff;
}

.lv-btn-retry {
    background: #ffffff;
    color: #475569;
    border: 2px solid #cbd5e1;
}
.lv-btn-retry:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #1e293b;
}

/* 6. RECENT LOVE CERTIFICATES WALL */
.lv-recent-box {
    background: #ffffff;
    border: 2px solid var(--lv-rose-200);
    border-radius: var(--lv-radius-xl);
    padding: 24px;
    box-shadow: var(--lv-shadow-sm);
}

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

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

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

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

.lv-recent-card:hover {
    background: #ffffff;
    border-color: var(--lv-rose-400);
    transform: translateY(-2px);
    box-shadow: var(--lv-shadow-sm);
}

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

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

.lv-recent-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--lv-rose-100);
    color: var(--lv-rose-700);
}

.lv-recent-title-txt {
    font-size: 0.86rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.35;
    margin-bottom: 8px;
}

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

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN CHO VIBE CHECK (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;
    }
    .lv-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,
    .lv-container {
        width: 100% !important;
        max-width: 100% !important;
    }
    .lv-hero-banner {
        padding: 24px 14px 20px !important;
        border-radius: var(--lv-radius-lg) !important;
    }
    .lv-hero-title {
        font-size: 1.45rem !important;
    }
    .lv-hero-sub {
        font-size: 0.88rem !important;
    }
    .lv-name-row {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .lv-name-connector {
        margin: 0 !important;
        transform: rotate(90deg) !important;
    }
    .lv-quiz-board {
        padding: 18px 14px !important;
        border-radius: var(--lv-radius-lg) !important;
    }
    .lv-q-text {
        font-size: 1.05rem !important;
    }
    .lv-option-item {
        padding: 12px 14px !important;
        gap: 10px !important;
    }
    .lv-opt-label {
        font-size: 0.88rem !important;
    }
    .lv-certificate-wrap {
        padding: 20px 12px !important;
        border-width: 4px !important;
    }
    .lv-cert-main-title {
        font-size: 1.25rem !important;
    }
    .lv-cert-names {
        font-size: 1.2rem !important;
    }
    .lv-cert-title {
        font-size: 1.1rem !important;
    }
    .lv-cert-desc {
        font-size: 0.85rem !important;
        padding: 10px 12px !important;
    }
    .lv-cert-signature-row {
        flex-direction: column !important;
        gap: 16px !important;
        text-align: center !important;
    }
    .lv-cert-sign-right {
        padding-right: 0 !important;
    }
    .lv-wax-seal {
        position: static !important;
        margin: 10px auto 0 !important;
        width: 64px !important;
        height: 64px !important;
    }
    .lv-btn-act {
        flex: 1 1 100% !important;
        width: 100% !important;
        justify-content: center !important;
    }
    .lv-recent-grid {
        grid-template-columns: 1fr !important;
    }
}
