:root {
    --lb-gold: #c9a34a;
    --lb-gold-light: #d4af5a;
    --lb-gold-dark: #a0802a;
    --lb-gold-glow: rgba(202, 163, 74, 0.15);
    --lb-gold-subtle: rgba(202, 163, 74, 0.08);
    --lb-surface: #ffffff;
    --lb-surface-raised: #fafbfc;
    --lb-surface-hover: #f5f6f8;
    --lb-border: #eef0f4;
    --lb-border-hover: #d1d5db;
    --lb-text: #212529;
    --lb-text-secondary: #6b7280;
    --lb-text-muted: #9ca3af;
    --lb-radius: 16px;
    --lb-radius-sm: 12px;
    --lb-radius-pill: 999px;
    --lb-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --lb-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.10);
    --lb-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark {
    --lb-surface: #0d1117;
    --lb-surface-raised: #161b22;
    --lb-surface-hover: #1c2128;
    --lb-border: rgba(255, 255, 255, 0.06);
    --lb-border-hover: rgba(255, 255, 255, 0.14);
    --lb-text: #e8eaed;
    --lb-text-secondary: #8b949e;
    --lb-text-muted: #6e7681;
    --lb-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    --lb-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ── Base ── */
.lb {
    font-family: ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "SF Pro Display",
        "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--lb-text);
}

/* ═══════════════════════════════════════════════════════════
   PAGE HEADER (in-page, not banner)
   ═══════════════════════════════════════════════════════════ */
.lb-header {
    text-align: center;
    padding: 0 20px 28px;
}

.lb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    border-radius: var(--lb-radius-pill);
    background: linear-gradient(135deg, rgba(202, 163, 74, 0.12), rgba(202, 163, 74, 0.04));
    border: 1px solid rgba(202, 163, 74, 0.2);
    font-size: 11px;
    font-weight: 800;
    color: var(--lb-gold-dark);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    animation: lb-pulse 3s ease-in-out infinite;
}

body.dark .lb-badge {
    color: var(--lb-gold-light);
    border-color: rgba(202, 163, 74, 0.25);
    background: linear-gradient(135deg, rgba(202, 163, 74, 0.15), rgba(202, 163, 74, 0.04));
}

@keyframes lb-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(202, 163, 74, 0);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(202, 163, 74, 0.06);
    }
}

.lb-title {
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: clamp(26px, 4.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 10px;
    color: var(--lb-text);
}

.lb-subtitle {
    font-size: 15px;
    color: var(--lb-text-secondary);
    margin: 0 0 14px;
    line-height: 1.65;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.lb-date {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--lb-gold-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lb-date i {
    font-size: 15px;
}

body.dark .lb-date {
    color: var(--lb-gold-light);
}

/* ═══════════════════════════════════════════════════════════
   SECTION SPACING
   ═══════════════════════════════════════════════════════════ */
.lb-section {
    padding: 48px 0;
}

/* ═══════════════════════════════════════════════════════════
   VOTING AREA
   ═══════════════════════════════════════════════════════════ */
.lb-vote-area {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
}

.lb-vote-hint {
    font-size: 14px;
    font-weight: 600;
    color: var(--lb-text-secondary);
    margin-bottom: 24px;
    padding: 12px 18px;
    border-radius: var(--lb-radius-sm);
    background: var(--lb-surface-raised);
    border: 1px solid var(--lb-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lb-vote-hint i {
    color: var(--lb-gold);
    font-size: 16px;
}

/* ── Option Grid ── */
.lb-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

/* Hidden checkbox */
.lb-options input[type="checkbox"],
.lb-options input[type="hidden"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* ── Option Card ── */
.lb-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    border-radius: var(--lb-radius);
    border: 2px solid var(--lb-border);
    background: var(--lb-surface);
    cursor: pointer;
    transition:
        border-color var(--lb-transition),
        box-shadow var(--lb-transition),
        transform 0.2s ease,
        background var(--lb-transition);
    user-select: none;
    overflow: hidden;
}

.lb-option:hover {
    border-color: var(--lb-border-hover);
    box-shadow: var(--lb-shadow);
    transform: translateY(-2px);
}

/* ── Option Image — takes more space ── */
.lb-option-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    transition: transform var(--lb-transition);
}

.lb-option:hover .lb-option-img {
    transform: scale(1.03);
}

/* ── Option Text ── */
.lb-option-text {
    padding: 14px 16px;
    width: 100%;
}

.lb-option-text h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--lb-text);
    line-height: 1.3;
}

.lb-option-text p {
    font-size: 13px;
    color: var(--lb-text-secondary);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Check indicator — top right with tick ── */
.lb-option-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--lb-transition);
    z-index: 2;
}

.lb-option-check i {
    font-size: 14px;
    color: transparent;
    transition: color 0.2s;
}

/* Selected state */
input[type="checkbox"]:checked+.lb-option {
    border-color: var(--lb-gold);
    box-shadow: 0 0 0 1px var(--lb-gold), 0 6px 28px var(--lb-gold-glow);
}

input[type="checkbox"]:checked+.lb-option .lb-option-check {
    border-color: transparent;
    background: linear-gradient(135deg, var(--lb-gold-dark), var(--lb-gold));
    box-shadow: 0 2px 8px rgba(160, 128, 42, 0.4);
}

input[type="checkbox"]:checked+.lb-option .lb-option-check i {
    color: #fff;
}

/* ── Shake animation ── */
@keyframes lb-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.lb-option-shake {
    animation: lb-shake 0.4s ease;
}

/* ═══════════════════════════════════════════════════════════
   SUBMIT AREA
   ═══════════════════════════════════════════════════════════ */
.lb-submit-area {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    margin-bottom: 32px;
}

.lb-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    border-radius: var(--lb-radius);
    border: none;
    background: linear-gradient(135deg, var(--lb-gold-dark), var(--lb-gold));
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(160, 128, 42, 0.3);
    position: relative;
    overflow: hidden;
}

.lb-submit-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.12) 50%,
            transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.lb-submit-btn:hover::before {
    transform: translateX(100%);
}

.lb-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(160, 128, 42, 0.35);
}

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

body.dark .lb-submit-btn {
    box-shadow: 0 4px 20px rgba(160, 128, 42, 0.2);
}

.lb-submit-btn i {
    font-size: 18px;
}

.lb-already-voted {
    font-size: 15px;
    font-weight: 700;
    color: var(--lb-gold);
    padding: 14px 24px;
    border-radius: var(--lb-radius-sm);
    background: var(--lb-gold-subtle);
    border: 1px solid rgba(202, 163, 74, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.dark .lb-already-voted {
    color: var(--lb-gold-light);
}

/* ── Vote success ── */
.lb-vote-success {
    font-size: 16px;
    font-weight: 700;
    color: #10b981;
    padding: 14px 24px;
    border-radius: var(--lb-radius-sm);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: lb-fadeInUp 0.5s ease;
}

.lb-vote-success i {
    font-size: 20px;
}

.lb-vote-error {
    font-size: 14px;
    font-weight: 600;
    color: #ef4444;
    padding: 12px 20px;
    border-radius: var(--lb-radius-sm);
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

@keyframes lb-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Loader ── */
.lb-loader,
.lb-loader-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.lb-loader-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lb-gold);
    animation: lb-bounce 1.2s ease-in-out infinite;
}

.lb-loader-inline .lb-loader-dot {
    width: 6px;
    height: 6px;
    background: #fff;
}

.lb-loader-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.lb-loader-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes lb-bounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════════════════════
   RULES
   ═══════════════════════════════════════════════════════════ */
.lb-rules {
    max-width: 860px;
    margin: 0 auto;
    padding: 22px 24px;
    border-radius: var(--lb-radius);
    border: 1px solid var(--lb-border);
    background: var(--lb-surface-raised);
}

.lb-rules-title {
    font-size: 14px;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--lb-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lb-rules-title i {
    color: var(--lb-gold);
    font-size: 16px;
}

.lb-rules ul {
    margin: 0;
    padding-left: 18px;
}

.lb-rules li {
    font-size: 13.5px;
    color: var(--lb-text-secondary);
    line-height: 1.75;
    margin-bottom: 4px;
}

.lb-rules li strong {
    color: var(--lb-gold);
}

/* ═══════════════════════════════════════════════════════════
   COMMENTS
   ═══════════════════════════════════════════════════════════ */
.lb-comments {
    max-width: 860px;
    margin: 0 auto;
}

.lb-comments-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
    color: var(--lb-text);
}

.lb-divider {
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--lb-gold-dark), var(--lb-gold));
}

/* ── Comment form ── */
.lb-comment-form {
    margin-bottom: 32px;
}

.lb-comment-textarea,
.lb-reply-textarea {
    width: 100%;
    border: 1.5px solid var(--lb-border);
    border-radius: var(--lb-radius);
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.65;
    resize: none;
    background: var(--lb-surface);
    color: var(--lb-text);
    transition: border-color var(--lb-transition), box-shadow var(--lb-transition);
    font-family: inherit;
}

.lb-comment-textarea:focus,
.lb-reply-textarea:focus {
    outline: none;
    border-color: var(--lb-gold);
    box-shadow: 0 0 0 3px var(--lb-gold-glow);
}

.lb-comment-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.lb-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--lb-gold-dark), var(--lb-gold));
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 12px rgba(160, 128, 42, 0.2);
}

.lb-share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(160, 128, 42, 0.3);
}

.lb-share-btn i {
    font-size: 14px;
}

/* ── Comment thread ── */
.lb-comment-thread {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lb-comment-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--lb-border);
    animation: lb-fadeInUp 0.4s ease;
}

.lb-comment-item:last-child {
    border-bottom: none;
}

.lb-comment-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.lb-comment-author {
    font-size: 14px;
    font-weight: 700;
    color: var(--lb-gold);
    text-decoration: none;
    transition: opacity 0.2s;
}

body.dark .lb-comment-author {
    color: var(--lb-gold-light);
}

.lb-comment-author:hover {
    opacity: 0.8;
}

.lb-comment-time {
    font-size: 12px;
    color: var(--lb-text-muted);
}

.lb-comment-body {
    font-size: 14px;
    line-height: 1.7;
    color: var(--lb-text);
    margin-bottom: 10px;
}

.lb-comment-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lb-comment-actions a,
.lb-comment-actions button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lb-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.lb-comment-actions a:hover,
.lb-comment-actions button:hover {
    background: var(--lb-surface-hover);
    color: var(--lb-text);
}

.lb-comment-actions .bd-comment-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lb-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.lb-comment-actions .bd-comment-like-btn i {
    font-size: 16px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.lb-comment-actions .bd-comment-like-btn:hover {
    background: rgba(231, 76, 111, 0.08);
    color: #e74c6f;
}

.lb-comment-actions .bd-comment-like-btn:hover i {
    transform: scale(1.15);
}

.lb-comment-actions .bd-comment-like-btn--has-likes,
.lb-comment-actions .bd-comment-like-btn--liked {
    color: #e74c6f;
}

.lb-comment-actions .bd-comment-like-btn--liked i {
    animation: lb-like-pop 0.35s ease;
}

@keyframes lb-like-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.lb-comment-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--lb-text-muted);
    font-size: 14px;
    font-style: italic;
}

/* ── Replies ── */
.lb-replies {
    margin-left: 28px;
    padding-left: 18px;
    border-left: 2px solid var(--lb-border);
    margin-top: 14px;
}

.lb-reply-item {
    padding: 14px 0;
}

.lb-reply-item:last-child {
    padding-bottom: 0;
}

/* ── Reply form (hidden by default) ── */
.lb-reply-form {
    display: none;
    margin: 14px 0 0 28px;
    padding-left: 18px;
    border-left: 2px solid var(--lb-border);
    animation: lb-fadeInUp 0.3s ease;
}

.lb-reply-form.is-open {
    display: block;
}

.lb-reply-textarea {
    border-radius: var(--lb-radius-sm);
    padding: 10px 14px;
    font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════
   RESULT CARDS (for detail.blade.php)
   ═══════════════════════════════════════════════════════════ */
.lb-results {
    max-width: 960px;
    margin: 0 auto;
    padding: 8px 0 32px;
}

.lb-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ── Card ── */
.lb-result-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--lb-radius);
    border: 1px solid var(--lb-border);
    background: var(--lb-surface);
    overflow: hidden;
    box-shadow: var(--lb-shadow);
    transition: all var(--lb-transition);
    text-decoration: none;
    color: inherit;
}

.lb-result-card:hover {
    box-shadow: var(--lb-shadow-lg);
    transform: translateY(-4px);
    border-color: var(--lb-border-hover);
}

/* Top accent line on hover */
.lb-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 3;
    opacity: 0;
    transition: opacity var(--lb-transition);
    background: var(--lb-border-hover);
}

.lb-result-card:hover::before {
    opacity: 1;
}

/* ── Gold winner — special celebration ── */
.lb-result-card.gold {
    border-color: rgba(202, 163, 74, 0.25);
    box-shadow: var(--lb-shadow), 0 0 0 1px rgba(202, 163, 74, 0.08);
}

.lb-result-card.gold::before {
    background: linear-gradient(90deg, var(--lb-gold-dark), var(--lb-gold), var(--lb-gold-dark));
    opacity: 1;
}

.lb-result-card.gold:hover {
    border-color: rgba(202, 163, 74, 0.35);
    box-shadow: var(--lb-shadow-lg), 0 0 40px rgba(202, 163, 74, 0.1);
}

/* Gold card subtle inner glow */
.lb-result-card.gold::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(202, 163, 74, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

body.dark .lb-result-card.gold {
    border-color: rgba(202, 163, 74, 0.18);
    box-shadow: var(--lb-shadow), 0 0 30px rgba(202, 163, 74, 0.06);
}

body.dark .lb-result-card.gold::after {
    background: linear-gradient(180deg, rgba(202, 163, 74, 0.06) 0%, transparent 40%);
}

/* Silver accent */
.lb-result-card.silver::before {
    background: linear-gradient(90deg, #999, #ccc, #999);
}

/* Bronze accent */
.lb-result-card.bronze::before {
    background: linear-gradient(90deg, #8b5e34, #cd7f32, #8b5e34);
}

/* ── Image Area ── */
.lb-result-img-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.lb-result-card.gold .lb-result-img-wrap {
    height: 220px;
}

.lb-result-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lb-result-card:hover .lb-result-img {
    transform: scale(1.05);
}

/* Gradient fade at image bottom */
.lb-result-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.25));
    pointer-events: none;
}

/* ── Rank Badge ── */
.lb-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lb-rank i {
    font-size: 14px;
}

.lb-rank.gold {
    background: linear-gradient(135deg, var(--lb-gold-dark), var(--lb-gold));
    box-shadow: 0 2px 12px rgba(160, 128, 42, 0.4);
}

.lb-rank.gold i {
    font-size: 15px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.lb-rank.silver {
    background: linear-gradient(135deg, #8a8a8a, #b8b8b8);
}

.lb-rank.bronze {
    background: linear-gradient(135deg, #8b5e34, #cd7f32);
}

.lb-rank.default {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

body.dark .lb-rank.default {
    background: rgba(255, 255, 255, 0.12);
}

/* ── Card Body ── */
.lb-result-body {
    flex: 1;
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.lb-result-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--lb-text);
    margin: 0 0 5px;
    line-height: 1.3;
}

.lb-result-card.gold .lb-result-name {
    font-size: 19px;
}

.lb-result-desc {
    font-size: 13.5px;
    color: var(--lb-text-secondary);
    margin: 0 0 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ── Result Footer (bar + tag) ── */
.lb-result-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--lb-border);
}

/* Vote progress bar */
.lb-vote-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lb-vote-bar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--lb-surface-raised);
    border: 1px solid var(--lb-border);
    overflow: hidden;
}

.lb-vote-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--lb-border-hover);
}

.lb-vote-bar-fill.gold {
    background: linear-gradient(90deg, var(--lb-gold-dark), var(--lb-gold));
    box-shadow: 0 0 8px rgba(202, 163, 74, 0.3);
}

.lb-vote-bar-fill.silver {
    background: linear-gradient(90deg, #8a8a8a, #b8b8b8);
}

.lb-vote-bar-fill.bronze {
    background: linear-gradient(90deg, #8b5e34, #cd7f32);
}

.lb-vote-pct {
    font-size: 13px;
    font-weight: 800;
    color: var(--lb-text-muted);
    min-width: 36px;
    text-align: right;
}

.lb-result-card.gold .lb-vote-pct {
    color: var(--lb-gold-dark);
}

body.dark .lb-result-card.gold .lb-vote-pct {
    color: var(--lb-gold-light);
}

/* Vote count tag */
.lb-vote-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--lb-gold-subtle), rgba(202, 163, 74, 0.03));
    border: 1px solid rgba(202, 163, 74, 0.15);
    color: var(--lb-gold-dark);
    width: fit-content;
}

body.dark .lb-vote-tag {
    color: var(--lb-gold-light);
}

/* ── Staggered card reveal ── */
.lb-result-card { animation: lb-cardIn 0.5s ease both; }
.lb-result-card:nth-child(1) { animation-delay: 0s; }
.lb-result-card:nth-child(2) { animation-delay: 0.07s; }
.lb-result-card:nth-child(3) { animation-delay: 0.12s; }
.lb-result-card:nth-child(4) { animation-delay: 0.18s; }
.lb-result-card:nth-child(5) { animation-delay: 0.24s; }
.lb-result-card:nth-child(n+6) { animation-delay: 0.30s; }

/* ═══════════════════════════════════════════════════════════
   HISTORY CARDS (for result.blade.php)
   ═══════════════════════════════════════════════════════════ */
.lb-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    max-width: 1060px;
    margin: 0 auto;
    padding: 8px 0 40px;
}

.lb-history-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--lb-radius);
    border: 1px solid var(--lb-border);
    background: var(--lb-surface);
    overflow: hidden;
    box-shadow: var(--lb-shadow);
    transition: all var(--lb-transition);
    text-decoration: none;
    color: inherit;
}

.lb-history-card:hover {
    box-shadow: var(--lb-shadow-lg);
    transform: translateY(-4px);
    border-color: var(--lb-border-hover);
    color: inherit;
}

/* Subtle golden top-border glow on hover */
.lb-history-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lb-gold-dark), var(--lb-gold), var(--lb-gold-dark));
    opacity: 0;
    transition: opacity var(--lb-transition);
}

.lb-history-card:hover::after { opacity: 1; }

/* Image area — top of card */
.lb-history-img-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.lb-history-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lb-history-card:hover .lb-history-img {
    transform: scale(1.05);
}

/* Gradient overlay on image bottom */
.lb-history-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.35));
    pointer-events: none;
}

/* Category tag — positioned over image */
.lb-history-category {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--lb-radius-pill);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
}

/* Status/closed badge — right side */
.lb-history-status {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--lb-radius-pill);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lb-gold);
    background: linear-gradient(135deg, rgba(202,163,74,0.15), rgba(202,163,74,0.06));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(202,163,74,0.2);
}

/* Card body */
.lb-history-body {
    flex: 1;
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
}

.lb-history-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--lb-text);
    margin: 0 0 6px;
    line-height: 1.3;
}

.lb-history-desc {
    font-size: 13.5px;
    color: var(--lb-text-secondary);
    margin: 0 0 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Bottom row: vote count + date */
.lb-history-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--lb-border);
    margin-top: auto;
}

.lb-history-votes {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--lb-gold-dark);
}

body.dark .lb-history-votes { color: var(--lb-gold-light); }

.lb-history-votes i { font-size: 15px; }

.lb-history-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--lb-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lb-history-date i { font-size: 13px; }

/* Arrow indicator on hover */
.lb-history-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--lb-gold-subtle);
    border: 1px solid rgba(202,163,74,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-6px);
    transition: all var(--lb-transition);
    color: var(--lb-gold-dark);
    font-size: 16px;
}

body.dark .lb-history-arrow { color: var(--lb-gold-light); }

.lb-history-card:hover .lb-history-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered reveal for grid items */
.lb-history-card { animation: lb-cardIn 0.5s ease both; }
.lb-history-card:nth-child(1) { animation-delay: 0s; }
.lb-history-card:nth-child(2) { animation-delay: 0.06s; }
.lb-history-card:nth-child(3) { animation-delay: 0.12s; }
.lb-history-card:nth-child(4) { animation-delay: 0.18s; }
.lb-history-card:nth-child(5) { animation-delay: 0.24s; }
.lb-history-card:nth-child(6) { animation-delay: 0.30s; }
.lb-history-card:nth-child(n+7) { animation-delay: 0.36s; }

@keyframes lb-cardIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* History page count strip */
.lb-history-count {
    text-align: center;
    padding: 0 20px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lb-text-muted);
}

/* ═══════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════ */
.lb-empty {
    text-align: center;
    padding: 100px 20px;
    color: var(--lb-text-secondary);
}

.lb-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--lb-gold);
    opacity: 0.5;
}

.lb-empty h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--lb-text);
}

.lb-empty p {
    font-size: 15px;
    margin: 0;
    color: var(--lb-text-muted);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .lb-section {
        padding: 32px 0;
    }

    .lb-options {
        grid-template-columns: 1fr;
    }

    .lb-option-img {
        height: 150px;
    }

    .lb-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .lb-result-img-wrap {
        height: 170px;
    }

    .lb-result-card.gold .lb-result-img-wrap {
        height: 180px;
    }

    .lb-history-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lb-history-img-wrap { height: 160px; }

    .lb-result-body,
    .lb-history-body {
        padding: 16px 18px;
    }

    .lb-replies,
    .lb-reply-form {
        margin-left: 16px;
        padding-left: 14px;
    }
}

@media (max-width: 480px) {
    .lb-option-img {
        height: 130px;
    }

    .lb-option-text {
        padding: 12px 14px;
    }

    .lb-result-img-wrap {
        height: 140px;
    }

    .lb-result-card.gold .lb-result-img-wrap {
        height: 150px;
    }

    .lb-result-body {
        padding: 14px 16px 16px;
    }

    .lb-result-name {
        font-size: 15px;
    }

    .lb-result-card.gold .lb-result-name {
        font-size: 17px;
    }

    .lb-history-img-wrap { height: 140px; }

    .lb-history-body { padding: 14px 16px 16px; }

    .lb-comments-title {
        font-size: 18px;
    }

    .lb-submit-btn {
        padding: 13px 32px;
        font-size: 14px;
    }
}

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE LISTBOARD SECTION
   ═══════════════════════════════════════════════════════════ */
.lb-home-section {
    padding: 48px 0 56px;
}

/* ── Section Header ── */
.lb-home-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.lb-home-header-left {
    flex: 1;
    min-width: 0;
}

.lb-home-header .lb-badge {
    margin-bottom: 10px;
}

.lb-home-heading {
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: clamp(22px, 3.5vw, 30px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 6px;
    color: var(--lb-text);
}

.lb-home-tagline {
    font-size: 14px;
    color: var(--lb-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.lb-home-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--lb-radius-sm);
    border: 1.5px solid rgba(202, 163, 74, 0.3);
    background: var(--lb-gold-subtle);
    color: var(--lb-gold-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--lb-transition);
}

.lb-home-explore-btn:hover {
    background: linear-gradient(135deg, var(--lb-gold-dark), var(--lb-gold));
    border-color: transparent;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(160, 128, 42, 0.25);
}

.lb-home-explore-btn i {
    font-size: 15px;
    transition: transform 0.2s ease;
}

.lb-home-explore-btn:hover i {
    transform: translateX(3px);
}

body.dark .lb-home-explore-btn {
    color: var(--lb-gold-light);
    border-color: rgba(202, 163, 74, 0.2);
}

body.dark .lb-home-explore-btn:hover {
    color: #fff;
}

/* ── Cards Grid ── */
.lb-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

/* ── Card ── */
.lb-home-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--lb-radius);
    border: 1px solid var(--lb-border);
    background: var(--lb-surface);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--lb-shadow);
    transition: all var(--lb-transition);
    animation: lb-cardIn 0.5s ease both;
}

.lb-home-card:nth-child(1) { animation-delay: 0s; }
.lb-home-card:nth-child(2) { animation-delay: 0.07s; }
.lb-home-card:nth-child(3) { animation-delay: 0.14s; }
.lb-home-card:nth-child(4) { animation-delay: 0.21s; }
.lb-home-card:nth-child(n+5) { animation-delay: 0.28s; }

.lb-home-card:hover {
    box-shadow: var(--lb-shadow-lg);
    transform: translateY(-4px);
    border-color: var(--lb-border-hover);
}

/* Golden top accent on hover */
.lb-home-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lb-gold-dark), var(--lb-gold), var(--lb-gold-dark));
    opacity: 0;
    transition: opacity var(--lb-transition);
    z-index: 2;
}

.lb-home-card:hover::after {
    opacity: 1;
}

/* ── Card Image ── */
.lb-home-card-img-wrap {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
}

.lb-home-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lb-home-card:hover .lb-home-card-img {
    transform: scale(1.05);
}

/* Gradient overlay */
.lb-home-card-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

/* Rank badge */
.lb-home-rank {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #8a8a8a, #b8b8b8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ── Card Body ── */
.lb-home-card-body {
    flex: 1;
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
}

.lb-home-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--lb-text);
    margin: 0 0 4px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-home-card-poll {
    font-size: 13px;
    color: var(--lb-text-secondary);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.lb-home-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding: 3px 10px;
    border-radius: var(--lb-radius-pill);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--lb-gold-dark);
    background: var(--lb-gold-subtle);
    border: 1px solid rgba(202, 163, 74, 0.12);
    width: fit-content;
}

body.dark .lb-home-card-tag {
    color: var(--lb-gold-light);
}

.lb-home-card-tag i {
    font-size: 11px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .lb-home-section {
        padding: 36px 0 44px;
    }

    .lb-home-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .lb-home-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 14px;
    }

    .lb-home-card-img-wrap {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .lb-home-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .lb-home-card-img-wrap {
        height: 120px;
    }

    .lb-home-card-body {
        padding: 12px 14px 14px;
    }

    .lb-home-card-name {
        font-size: 14px;
    }

    .lb-home-card-poll {
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════
   OVERRIDE: Scroll progress circle stroke color for listboard
   ═══════════════════════════════════════════════════════════ */
.lb .fixed-option-c.scroll-top-detail svg path,
.lb-vote-area .fixed-option-c.scroll-top-detail svg path {
    stroke: var(--lb-gold) !important;
}