/* ============================================================
   KCCCI Member Forum — Frontend Styles
   Quora-esque, immaculate UI with KCCCI crimson + gold palette
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ---- Reset / Root ----------------------------------------- */
.kccci-forum-wrap *,
.kccci-forum-wrap *::before,
.kccci-forum-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.kccci-forum-wrap {
    font-family: 'Poppins', sans-serif;
    color: #1a202c;
    background: #f0f2f5;
    border-radius: 24px;
    overflow: hidden;
    min-height: 600px;
}

/* ---- Hero -------------------------------------------------- */
.kf-hero {
    background: linear-gradient(135deg, #c41e3a 0%, #8b1528 60%, #5c0d1a 100%);
    padding: 56px 40px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.kf-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 215, 0, .12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, .07) 0%, transparent 50%);
    pointer-events: none;
}

.kf-hero-inner {
    position: relative;
    z-index: 1;
}

.kf-hero-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.kf-hero-logo-text {
    font-size: 52px;
    font-weight: 800;
    color: #ffd700;
    letter-spacing: 6px;
    line-height: 1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, .25);
}

.kf-hero-logo-sub {
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
    margin-top: 4px;
}

.kf-hero-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.kf-hero-sub {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, .88);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* Search */
.kf-search-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.kf-search-inner {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, .3);
    border-radius: 50px;
    transition: all .3s ease;
}

.kf-search-inner:focus-within {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 215, 0, .6);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, .15);
}

.kf-search-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, .7);
    margin-left: 20px;
    flex-shrink: 0;
}

.kf-search-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 20px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    font-weight: 400;
}

.kf-search-input::placeholder {
    color: rgba(255, 255, 255, .6);
}

/* Wave separator */
.kf-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 40px;
    background: #f0f2f5;
    clip-path: ellipse(55% 100% at 50% 100%);
}

/* ---- Controls Bar ----------------------------------------- */
.kf-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: #f0f2f5;
    flex-wrap: wrap;
    gap: 12px;
}

/* Tabs */
.kf-tabs {
    display: flex;
    background: #fff;
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    gap: 4px;
}

.kf-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    border: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all .25s ease;
}

.kf-tab svg {
    width: 16px;
    height: 16px;
    transition: inherit;
}

.kf-tab:hover {
    color: #c41e3a;
}

.kf-tab.active {
    background: linear-gradient(135deg, #c41e3a, #8b1528);
    color: #fff;
    box-shadow: 0 4px 12px rgba(196, 30, 58, .35);
}

.kf-tab.active svg {
    stroke: #fff;
}

/* Sort */
.kf-sort-select {
    padding: 10px 36px 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath fill='%23c41e3a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color .2s;
    outline: none;
}

.kf-sort-select:focus {
    border-color: #c41e3a;
}

/* ---- Tab Panels ------------------------------------------- */
.kf-tab-panel {
    display: none;
    padding: 0 30px 40px;
}

.kf-tab-panel.active {
    display: block;
}

/* ---- Question Cards --------------------------------------- */
.kf-questions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.kf-question-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
    animation: kfCardIn .35s ease both;
}

@keyframes kfCardIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kf-question-card:hover {
    border-color: rgba(196, 30, 58, .25);
    box-shadow: 0 8px 28px rgba(196, 30, 58, .12);
    transform: translateY(-2px);
}

.kf-question-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(#c41e3a, #8b1528);
    border-radius: 4px 0 0 4px;
    opacity: 0;
    transition: opacity .3s;
}

.kf-question-card:hover::after {
    opacity: 1;
}

/* Vote column */
.kf-vote-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 52px;
}

.kf-vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all .25s ease;
    font-family: 'Poppins', sans-serif;
}

.kf-vote-btn svg {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    transition: color .2s;
}

.kf-vote-count {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    line-height: 1;
}

.kf-vote-btn:hover,
.kf-vote-btn.voted {
    border-color: #c41e3a;
    background: #fff5f7;
}

.kf-vote-btn:hover svg,
.kf-vote-btn.voted svg {
    color: #c41e3a;
}

.kf-vote-btn.voted .kf-vote-count {
    color: #c41e3a;
}

.kf-vote-btn.pulse {
    animation: kfVotePulse .4s ease;
}

@keyframes kfVotePulse {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.kf-answers-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 6px;
}

.kf-answers-count {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.kf-answers-label {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Question body */
.kf-question-body {
    flex: 1;
    min-width: 0;
}

.kf-question-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
    line-height: 1.45;
    transition: color .2s;
}

.kf-question-card:hover .kf-question-title {
    color: #c41e3a;
}

.kf-question-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 14px;
}

/* Author chip */
.kf-question-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.kf-author-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 4px 12px 4px 4px;
    transition: all .2s ease;
}

.kf-author-chip:hover {
    background: #fff5f7;
    border-color: #c41e3a;
}

.kf-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffd700;
}

.kf-author-name {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.kf-author-chip:hover .kf-author-name {
    color: #c41e3a;
}

.kf-store-badge {
    font-size: 10px;
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #5c3d00;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: .4px;
}

.kf-meta-dot {
    width: 3px;
    height: 3px;
    background: #cbd5e1;
    border-radius: 50%;
}

.kf-meta-time {
    font-size: 12px;
    color: #94a3b8;
}

/* Flagged indicator */
.kf-flagged-badge {
    font-size: 11px;
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 50px;
    padding: 2px 10px;
    font-weight: 500;
}

/* Card actions (flag button on hover) */
.kf-card-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    opacity: 0;
    transition: opacity .2s;
}

.kf-question-card:hover .kf-card-actions {
    opacity: 1;
}

.kf-flag-btn {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 12px;
    color: #94a3b8;
    transition: all .2s;
}

.kf-flag-btn:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #ef4444;
}

/* ---- Skeleton Loaders ------------------------------------- */
.kf-skeleton-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.kf-skel {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: kfSkelShimmer 1.4s infinite;
    border-radius: 8px;
    margin-bottom: 12px;
}

@keyframes kfSkelShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.kf-skel-title {
    height: 20px;
    width: 70%;
}

.kf-skel-body {
    height: 14px;
    width: 90%;
}

.kf-skel-meta {
    height: 28px;
    width: 40%;
    border-radius: 50px;
    margin-bottom: 0;
}

/* ---- Load More -------------------------------------------- */
.kf-load-more-wrap {
    text-align: center;
    padding: 24px 0 0;
}

/* ---- Empty State ------------------------------------------ */
.kf-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.kf-empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.kf-empty-state h3 {
    font-size: 22px;
    color: #334155;
    margin-bottom: 8px;
}

.kf-empty-state p {
    font-size: 15px;
}

/* ---- Ask Form --------------------------------------------- */
.kf-ask-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    max-width: 800px;
    margin: 16px auto 0;
}

.kf-ask-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f1f5f9;
}

.kf-ask-icon {
    font-size: 42px;
    line-height: 1;
}

.kf-ask-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 6px;
}

.kf-ask-hint {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.kf-ask-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kf-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kf-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.kf-required {
    color: #c41e3a;
}

.kf-optional {
    color: #94a3b8;
    font-weight: 400;
    font-size: 13px;
}

.kf-input,
.kf-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    color: #1a202c;
    background: #fafafa;
    transition: all .25s ease;
    outline: none;
    resize: vertical;
}

.kf-input:focus,
.kf-textarea:focus {
    border-color: #c41e3a;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(196, 30, 58, .1);
}

.kf-char-count {
    font-size: 12px;
    color: #94a3b8;
    text-align: right;
}

.kf-ask-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.kf-form-msg {
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    display: none;
}

.kf-form-msg.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    display: block;
}

.kf-form-msg.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    display: block;
}

/* ---- Buttons ---------------------------------------------- */
.kf-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #c41e3a, #8b1528);
    color: #fff;
    border: none;
    padding: 13px 28px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(196, 30, 58, .35);
    transition: all .3s ease;
    text-decoration: none;
}

.kf-btn-primary svg {
    width: 18px;
    height: 18px;
}

.kf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 30, 58, .45);
}

.kf-btn-primary:active {
    transform: translateY(0);
}

.kf-btn-primary:disabled {
    background: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.kf-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #c41e3a;
    border: 2px solid #c41e3a;
    padding: 11px 28px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
}

.kf-btn-secondary:hover {
    background: #c41e3a;
    color: #fff;
}

/* Spinner */
.kf-submit-loader {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #64748b;
}

.kf-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid #e2e8f0;
    border-top-color: #c41e3a;
    border-radius: 50%;
    animation: kfSpin .7s linear infinite;
}

@keyframes kfSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- Login Gate ------------------------------------------- */
.kf-login-gate {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
    max-width: 480px;
    margin: 16px auto 0;
}

.kf-login-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.kf-login-gate h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
}

.kf-login-gate p {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ---- Slide Panel ------------------------------------------ */
.kf-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.kf-panel-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.kf-question-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 680px;
    background: #f8fafc;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, .2);
    overflow: hidden;
}

.kf-question-panel.open {
    transform: translateX(0);
}

.kf-panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: linear-gradient(135deg, #c41e3a, #8b1528);
    flex-shrink: 0;
}

.kf-panel-close {
    background: rgba(255, 255, 255, .15);
    border: none;
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    color: #fff;
    display: flex;
    transition: background .2s;
    flex-shrink: 0;
}

.kf-panel-close:hover {
    background: rgba(255, 255, 255, .25);
}

.kf-panel-close svg {
    width: 20px;
    height: 20px;
}

.kf-panel-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kf-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
    scroll-behavior: smooth;
}

/* Panel question detail */
.kf-panel-question-box {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    margin-bottom: 24px;
}

.kf-panel-q-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 14px;
    line-height: 1.4;
}

.kf-panel-q-content {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 18px;
    white-space: pre-wrap;
}

.kf-panel-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1.5px solid #f1f5f9;
    flex-wrap: wrap;
}

.kf-panel-vote-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kf-panel-flag-btn {
    margin-left: auto;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    color: #94a3b8;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Poppins', sans-serif;
}

.kf-panel-flag-btn:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
}

/* Answers section */
.kf-answers-section {
    margin-bottom: 28px;
}

.kf-answers-heading {
    font-size: 16px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kf-answers-count-badge {
    background: linear-gradient(135deg, #c41e3a, #8b1528);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
}

.kf-answer-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    border-left: 3px solid transparent;
    animation: kfCardIn .3s ease both;
    transition: border-color .2s;
}

.kf-answer-card:hover {
    border-left-color: #c41e3a;
}

.kf-answer-content {
    font-size: 15px;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 14px;
    white-space: pre-wrap;
}

.kf-answer-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.kf-answer-author-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 3px 10px 3px 3px;
    transition: all .2s;
}

.kf-answer-author-chip:hover {
    background: #fff5f7;
    border-color: #c41e3a;
}

.kf-answer-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #ffd700;
}

.kf-answer-author-name {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.kf-answer-author-chip:hover .kf-answer-author-name {
    color: #c41e3a;
}

.kf-answer-time {
    font-size: 12px;
    color: #94a3b8;
}

.kf-answer-vote-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all .2s;
    margin-left: auto;
}

.kf-answer-vote-btn svg {
    width: 13px;
    height: 13px;
}

.kf-answer-vote-btn:hover,
.kf-answer-vote-btn.voted {
    background: #fff5f7;
    border-color: #c41e3a;
    color: #c41e3a;
}

/* Answer form in panel */
.kf-panel-answer-form {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.kf-panel-answer-heading {
    font-size: 16px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 16px;
}

.kf-panel-answer-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.kf-panel-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffd700;
}

.kf-panel-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.kf-answer-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #1a202c;
    background: #fafafa;
    resize: vertical;
    outline: none;
    transition: all .25s;
    min-height: 110px;
    margin-bottom: 12px;
}

.kf-answer-textarea:focus {
    border-color: #c41e3a;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(196, 30, 58, .1);
}

.kf-answer-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
}

.kf-panel-answer-login {
    text-align: center;
    padding: 28px;
    background: #fff;
    border-radius: 16px;
    color: #64748b;
}

.kf-panel-answer-login a {
    color: #c41e3a;
    font-weight: 600;
}

/* ---- Modal ------------------------------------------------- */
.kf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: kfFadeIn .25s ease;
}

@keyframes kfFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.kf-modal {
    background: #fff;
    border-radius: 24px;
    padding: 44px 36px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: kfModalIn .3s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes kfModalIn {
    from {
        opacity: 0;
        transform: scale(.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.kf-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    transition: background .2s;
}

.kf-modal-close:hover {
    background: #fef2f2;
}

.kf-modal-close svg {
    width: 18px;
    height: 18px;
}

.kf-modal-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.kf-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
}

.kf-modal-text {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ---- Panels loader ---------------------------------------- */
.kf-panel-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    color: #94a3b8;
}

.kf-panel-loading .kf-spinner {
    width: 36px;
    height: 36px;
}

/* ---- Disclaimer Button in Hero ---------------------------- */
.kf-disclaimer-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    background: rgba(255, 255, 255, .12);
    border: 1.5px solid rgba(255, 255, 255, .35);
    color: rgba(255, 255, 255, .9);
    border-radius: 50px;
    padding: 8px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .25s ease;
    letter-spacing: .3px;
    backdrop-filter: blur(4px);
}

.kf-disclaimer-btn:hover {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
    transform: translateY(-1px);
}

/* ---- Disclaimer Modal ------------------------------------- */
.kf-disclaimer-modal {
    max-width: 540px !important;
    text-align: left !important;
    padding: 44px 40px !important;
}

.kf-disclaimer-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.kf-disclaimer-modal .kf-modal-title {
    text-align: left;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.kf-disclaimer-body {
    margin-bottom: 28px;
}

.kf-disclaimer-body p {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 14px;
}

.kf-disclaimer-body strong {
    color: #1a202c;
    font-weight: 600;
}

.kf-disclaimer-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kf-disclaimer-list li {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    padding-left: 22px;
    position: relative;
}

.kf-disclaimer-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #c41e3a, #8b1528);
    border-radius: 50%;
}

.kf-disclaimer-warning {
    background: #fef9ec;
    border: 1px solid #fde68a;
    border-left: 4px solid #ffd700;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px !important;
    color: #78350f !important;
    line-height: 1.6;
    margin-bottom: 0 !important;
}

.kf-disclaimer-close-btn {
    width: 100%;
    justify-content: center;
}


/* ---- Auth Gate -------------------------------------------- */
.kf-auth-gate {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
    max-width: 480px;
    margin: 16px auto 0;
}

.kf-auth-gate-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.kf-auth-gate h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
}

.kf-auth-gate p {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ---- Auth Modal ------------------------------------------- */
.kf-auth-modal {
    max-width: 480px !important;
    padding: 40px 36px !important;
    text-align: left !important;
}

.kf-auth-logo {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #c41e3a;
    margin-bottom: 20px;
    text-align: center;
}

.kf-auth-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 24px;
}

.kf-auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
}

.kf-auth-tab.active {
    color: #c41e3a;
    border-bottom-color: #c41e3a;
}

.kf-auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kf-auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ---- Share Button ----------------------------------------- */
.kf-share-btn {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    color: #64748b;
    font-family: 'Poppins', sans-serif;
    transition: all .2s;
    margin-right: 4px;
}

.kf-share-btn:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #16a34a;
}

/* ---- Panel answer login button ---------------------------- */
.kf-panel-answer-login {
    text-align: center;
    padding: 28px;
    background: #fff;
    border-radius: 16px;
    color: #64748b;
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 768px) {
    .kf-hero {
        padding: 40px 20px 70px;
    }

    .kf-hero-logo-text {
        font-size: 38px;
    }

    .kf-hero-title {
        font-size: 24px;
    }

    .kf-controls {
        padding: 16px 16px;
    }

    .kf-tab-panel {
        padding: 0 16px 32px;
    }

    .kf-tabs {
        width: 100%;
    }

    .kf-tab {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
    }

    .kf-question-card {
        flex-direction: column;
        gap: 12px;
    }

    .kf-vote-col {
        flex-direction: row;
        justify-content: flex-start;
    }

    .kf-ask-card {
        padding: 22px 18px;
    }

    .kf-ask-header {
        flex-direction: column;
        gap: 12px;
    }

    .kf-question-panel {
        max-width: 100%;
    }

    .kf-panel-body {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .kf-question-title {
        font-size: 15px;
    }

    .kf-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .kf-sort-wrap {
        width: 100%;
    }

    .kf-sort-select {
        width: 100%;
    }
}