/* Import font Nunito bo tròn, đẹp */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

/* --- Collection Styles --- */
.fc-collection-wrap { max-width: 850px; margin: 20px auto; padding: 20px; font-family: 'Nunito', sans-serif; }
.fc-collection-header { display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 20px; min-height: 40px; }
.fc-collection-main-title { font-size: 28px; margin: 0; text-align: center; padding: 0 40px; font-weight: 700; color: #2c3e50; }
.fc-back-to-parent {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #555;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}
.fc-collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 30px; justify-items: center; }
.fc-collection-item { cursor: pointer; text-align: center; transition: transform 0.2s; }
.fc-collection-item:hover { transform: scale(1.05); }
.fc-collection-icon { width: 80px; height: 80px; color: white; display: flex; justify-content: center; align-items: center; font-size: 32px; font-weight: bold; margin: 0 auto 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 3px solid white; transition: background .3s, opacity .3s; }
.fc-collection-title { font-size: 15px; color: #333; font-weight: 600; }

.fc-collection-grid[data-item-type="set"] .fc-collection-icon {
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.fc-collection-grid[data-item-type="collection"] .fc-collection-icon {
    border-radius: 20px;
    background: linear-gradient(135deg, #059669, #10b981);
}
.fc-collection-grid[data-item-type="collection"] .fc-item-number {
    font-family: serif;
    font-style: italic;
}

.fc-collection-item.completed .fc-collection-icon { background: #94a3b8 !important; opacity: 0.7; }
.fc-collection-item.completed .fc-collection-icon span { text-decoration: line-through; }

.fc-complete-button-wrapper { text-align: center; margin-top: 24px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.fc-complete-set { background: #059669; color: #fff; border: none; border-radius: 25px; padding: 12px 25px; font-weight: 700; cursor: pointer; }
.fc-complete-next { background: #2563eb; color: #fff; border: none; border-radius: 25px; padding: 12px 25px; font-weight: 700; cursor: pointer; }
.fc-collection-footer { text-align: center; margin-top: 30px; }
.fc-complete-collection { background: #d97706; color: #fff; border: none; border-radius: 25px; padding: 12px 25px; font-weight: 700; cursor: pointer; }

.fc-login-prompt { text-align: center; margin-bottom: 20px; background: #fffbe5; padding: 10px; border-radius: 8px; border: 1px solid #ffe8a0; }
.fc-continue-prompt { background-color: #eaf5ff; border: 1px solid #b8d9f3; border-radius: 12px; padding: 15px; margin-bottom: 25px; text-align: center; }
.fc-continue-prompt p { margin: 0 0 10px; font-size: 16px; }
.fc-continue-prompt .fc-btn { margin: 0 5px; }

/* ==========================================================================
   CHIẾC NÓN KỲ DIỆU GAME SHOW STYLES (MOBILE-FIRST & THEME-SAFE)
   ========================================================================== */

.cnkd-wrap,
.cnkd-wrap * {
    box-sizing: border-box !important;
}

.cnkd-wrap p:empty,
.cnkd-wrap > br,
.cnkd-quadrants > br,
.cnkd-quadrants > p,
.cnkd-wheel-wrapper > br,
.cnkd-wheel-wrapper > p,
.cnkd-wheel-inner > br,
.cnkd-wheel-inner > p {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

.cnkd-wrap {
    max-width: 780px;
    margin: 16px auto;
    padding: 22px;
    background: radial-gradient(circle at 50% 15%, #312e81 0%, #1e1b4b 45%, #0f172a 100%);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    border: 2px solid rgba(251, 191, 36, 0.35);
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #f8fafc;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Ambient Studio Spotlights */
.cnkd-wrap::before,
.cnkd-wrap::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
    opacity: 0.32;
}
.cnkd-wrap::before {
    top: -120px;
    left: -80px;
    background: #6366f1;
}
.cnkd-wrap::after {
    top: -100px;
    right: -80px;
    background: #f59e0b;
}

.cnkd-wrap > * {
    position: relative;
    z-index: 1;
}

/* Header */
.cnkd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.cnkd-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}
.cnkd-brand-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e1b4b;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
}
.cnkd-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.25 !important;
    word-break: break-word;
}

.cnkd-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.cnkd-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: #f8fafc;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    touch-action: manipulation;
}
.cnkd-icon-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #fbbf24;
    color: #ffffff;
    transform: translateY(-1px);
}
.cnkd-btn-settings {
    background: rgba(251, 191, 36, 0.16);
    border-color: rgba(251, 191, 36, 0.45);
    color: #fde68a;
}
.cnkd-btn-settings:hover {
    background: #fbbf24;
    color: #1e1b4b;
}

/* HUD */
.cnkd-hud {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 10px 14px;
    margin-bottom: 14px;
}
.cnkd-hud-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.cnkd-progress-pill {
    font-size: 13.5px;
    font-weight: 700;
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cnkd-progress-pill i {
    color: #fbbf24;
}
.cnkd-progress-pill strong {
    color: #fbbf24;
    font-size: 15px;
}
.cnkd-mode-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 20px;
    border: 1px solid rgba(165, 180, 252, 0.35);
    background: rgba(99, 102, 241, 0.22);
    color: #e0e7ff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
}
.cnkd-mode-chip:hover {
    background: rgba(99, 102, 241, 0.4);
    border-color: #fbbf24;
}
.cnkd-score-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cnkd-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
}
.cnkd-score-badge.is-right {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.35);
}
.cnkd-score-badge.is-wrong {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(252, 165, 165, 0.35);
}
.cnkd-progress-track {
    width: 100%;
    height: 7px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}
.cnkd-progress-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #fbbf24, #34d399);
    transition: width 0.35s ease;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.55);
}

/* Status Banner */
.cnkd-status-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 9px 14px;
    border-radius: 14px;
    font-size: 13.5px;
    font-weight: 800;
    margin-bottom: 14px;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
}
.cnkd-status-banner.is-correct {
    background: rgba(16, 185, 129, 0.24);
    border-color: rgba(52, 211, 153, 0.65);
    color: #a7f3d0;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.25);
}
.cnkd-status-banner.is-wrong {
    background: rgba(239, 68, 68, 0.24);
    border-color: rgba(248, 113, 113, 0.65);
    color: #fecaca;
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.25);
}
.cnkd-status-banner.is-nudge {
    animation: cnkdNudge 0.42s ease;
    border-color: #fbbf24;
    color: #fde68a;
}

/* ==========================================================================
   THE MAGIC WHEEL (CHIẾC NÓN KỲ DIỆU)
   ========================================================================== */

.cnkd-wheel-wrapper {
    position: relative;
    width: 100%;
    max-width: 470px;
    aspect-ratio: 1 / 1;
    margin: 18px auto 14px;
    user-select: none;
}

/* Top Pointer Clacker */
.cnkd-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 35;
    width: 36px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: 50% 8px;
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.5));
}
.cnkd-pointer-body {
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 38px solid #fbbf24;
    position: relative;
}
.cnkd-pointer-body::after {
    content: "";
    position: absolute;
    top: -36px;
    left: -11px;
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 28px solid #ef4444;
}
.cnkd-pointer-pin {
    position: absolute;
    top: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff, #fbbf24);
    border: 2px solid #92400e;
}
.cnkd-wheel-wrapper.is-spinning .cnkd-pointer {
    animation: cnkdPointerTick 0.14s ease-in-out infinite;
}

/* Outer Golden Bezel + LED Ring */
.cnkd-wheel-rim {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #b45309,
        #fbbf24,
        #fef08a,
        #d97706,
        #fbbf24,
        #fef08a,
        #b45309
    );
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.65),
        0 0 32px rgba(251, 191, 36, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.6),
        inset 0 -4px 8px rgba(120, 53, 15, 0.7);
    z-index: 1;
}

.cnkd-led-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}
.cnkd-led {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: #fef9c3;
    box-shadow: 0 0 8px 2px rgba(254, 240, 138, 0.9);
    transition: opacity 0.2s;
}
.cnkd-led.is-even {
    animation: cnkdLedGlow 1.1s ease-in-out infinite;
}
.cnkd-led.is-odd {
    animation: cnkdLedGlow 1.1s ease-in-out 0.55s infinite;
}
.cnkd-wheel-wrapper.is-spinning .cnkd-led.is-even {
    animation-duration: 0.18s;
}
.cnkd-wheel-wrapper.is-spinning .cnkd-led.is-odd {
    animation-duration: 0.18s;
    animation-delay: 0.09s;
}

/* Inner Wheel Disc */
.cnkd-wheel-inner {
    position: absolute;
    inset: 4.8%;
    border-radius: 50%;
    overflow: hidden;
    z-index: 5;
    background: #0f172a;
    border: 3px solid #78350f;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.65);
}

/* Spinning Visual Disc Layer */
.cnkd-wheel-disc-bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    transition: transform 0.52s cubic-bezier(0.15, 0.85, 0.25, 1);
    z-index: 1;
}
.cnkd-bg-slice {
    position: absolute;
    width: 50%;
    height: 50%;
}
/* Vibrant non-green, non-red royal game show colors */
.cnkd-bg-0 {
    top: 0;
    left: 0;
    background: radial-gradient(circle at 80% 80%, #3b82f6, #1d4ed8 70%, #1e3a8a 100%);
}
.cnkd-bg-1 {
    top: 0;
    right: 0;
    background: radial-gradient(circle at 20% 80%, #8b5cf6, #6d28d9 70%, #4c1d95 100%);
}
.cnkd-bg-2 {
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 80% 20%, #f59e0b, #d97706 70%, #92400e 100%);
}
.cnkd-bg-3 {
    bottom: 0;
    right: 0;
    background: radial-gradient(circle at 20% 20%, #0ea5e9, #0369a1 70%, #0c4a6e 100%);
}

/* Glossy Wheel Sheen */
.cnkd-wheel-disc-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 58%);
    pointer-events: none;
}

.cnkd-divider-v {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #fef08a, #f59e0b, #fef08a);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
    z-index: 2;
}
.cnkd-divider-h {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, #fef08a, #f59e0b, #fef08a);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
    z-index: 2;
}

/* 4 Clickable Quadrants Overlay */
.cnkd-quadrants {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    z-index: 6;
}

.cnkd-quadrant {
    position: relative;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent;
    color: #ffffff !important;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    transition: background 0.25s ease, opacity 0.25s ease, transform 0.15s ease, filter 0.25s ease;
    outline: none !important;
    font-family: inherit;
    touch-action: manipulation;
}
.cnkd-quadrant:hover:not(:disabled):not(.is-correct):not(.is-wrong):not(.is-dimmed) {
    background: rgba(255, 255, 255, 0.14);
}
.cnkd-quadrant:active:not(:disabled):not(.is-correct):not(.is-wrong) {
    background: rgba(255, 255, 255, 0.24);
}

/* Spin transition text fade */
.cnkd-wheel-wrapper.is-spinning .cnkd-quadrant-inner {
    opacity: 0.15;
    transform: scale(0.92);
}

/* Safe Inner Box Padding away from Center Hub (radius 18.5% of disc = 37% of quadrant) & Outer Curve */
.cnkd-quadrant-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.cnkd-q-0 .cnkd-quadrant-inner { padding: 25% 11% 39% 25%; }
.cnkd-q-1 .cnkd-quadrant-inner { padding: 25% 25% 39% 11%; }
.cnkd-q-2 .cnkd-quadrant-inner { padding: 39% 11% 25% 25%; }
.cnkd-q-3 .cnkd-quadrant-inner { padding: 39% 25% 25% 11%; }

.cnkd-quadrant-content {
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    word-break: break-word;
    scrollbar-width: none;
}
.cnkd-quadrant-content::-webkit-scrollbar { display: none; }

/* Adaptive Typography for Quadrants */
.cnkd-quadrant-content.is-size-xl { font-size: 20px; }
.cnkd-quadrant-content.is-size-lg { font-size: 16.5px; }
.cnkd-quadrant-content.is-size-md { font-size: 13.5px; }
.cnkd-quadrant-content.is-size-sm { font-size: 11.5px; line-height: 1.2; }

/* Option Badges A, B, C, D */
.cnkd-q-badge {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: #fde68a;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}
.cnkd-q-0 .cnkd-q-badge { top: 8%; right: 10%; }
.cnkd-q-1 .cnkd-q-badge { top: 8%; left: 10%; }
.cnkd-q-2 .cnkd-q-badge { bottom: 8%; right: 10%; }
.cnkd-q-3 .cnkd-q-badge { bottom: 8%; left: 10%; }

/* Result State Icons */
.cnkd-q-state-icon {
    position: absolute;
    z-index: 4;
    font-size: 20px;
    font-weight: 900;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}
.cnkd-q-0 .cnkd-q-state-icon { bottom: 39%; right: 11%; }
.cnkd-q-1 .cnkd-q-state-icon { bottom: 39%; left: 11%; }
.cnkd-q-2 .cnkd-q-state-icon { top: 39%; right: 11%; }
.cnkd-q-3 .cnkd-q-state-icon { top: 39%; left: 11%; }

/* Answer Feedback States: GREEN CORRECT & RED WRONG */
.cnkd-quadrant.is-correct {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.96), rgba(5, 150, 105, 0.98)) !important;
    box-shadow: inset 0 0 28px rgba(167, 243, 208, 0.7), 0 0 20px rgba(16, 185, 129, 0.8);
    animation: cnkdCorrectPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 8;
}
.cnkd-quadrant.is-correct .cnkd-q-badge {
    background: #064e3b;
    border-color: #a7f3d0;
    color: #a7f3d0;
}
.cnkd-quadrant.is-correct .cnkd-q-state-icon {
    opacity: 1;
    transform: scale(1);
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.cnkd-quadrant.is-wrong {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.96), rgba(185, 28, 28, 0.98)) !important;
    box-shadow: inset 0 0 24px rgba(254, 202, 202, 0.6), 0 0 18px rgba(239, 68, 68, 0.8);
    animation: cnkdWrongShake 0.42s ease;
    z-index: 8;
}
.cnkd-quadrant.is-wrong .cnkd-q-badge {
    background: #7f1d1d;
    border-color: #fecaca;
    color: #fecaca;
}
.cnkd-quadrant.is-wrong .cnkd-q-state-icon {
    opacity: 1;
    transform: scale(1);
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.cnkd-quadrant.is-dimmed {
    opacity: 0.38;
    filter: saturate(0.5);
}
.cnkd-quadrant.is-disabled {
    opacity: 0.4;
    cursor: default;
}

/* Center Circle Hub */
.cnkd-center-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 37%;
    height: 37%;
    border-radius: 50%;
    z-index: 20;
    background: radial-gradient(circle at 35% 30%, #312e81 0%, #1e1b4b 58%, #0f172a 100%);
    border: 4px solid #fbbf24;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.65),
        inset 0 2px 10px rgba(255, 255, 255, 0.25),
        0 0 0 4px rgba(15, 23, 42, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    text-align: center;
    color: #ffffff !important;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    outline: none !important;
    font-family: inherit;
    touch-action: manipulation;
}
.cnkd-center-hub:hover {
    transform: translate(-50%, -50%) scale(1.03);
}
.cnkd-center-hub:active {
    transform: translate(-50%, -50%) scale(0.97);
}

.cnkd-center-ring-glow {
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 2px solid transparent;
    pointer-events: none;
    transition: all 0.25s ease;
}

.cnkd-center-label {
    font-size: 9.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #fde68a;
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.35);
    padding: 1px 8px;
    border-radius: 10px;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.cnkd-center-content {
    width: 100%;
    max-height: 68%;
    overflow-y: auto;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.22;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    word-break: break-word;
    scrollbar-width: none;
}
.cnkd-center-content::-webkit-scrollbar { display: none; }

.cnkd-center-content.is-size-xl { font-size: 24px; }
.cnkd-center-content.is-size-lg { font-size: 18px; }
.cnkd-center-content.is-size-md { font-size: 14px; }
.cnkd-center-content.is-size-sm { font-size: 11.5px; }

.cnkd-center-next-hint {
    margin-top: 5px;
    font-size: 10.5px;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e1b4b;
    padding: 3px 10px;
    border-radius: 12px;
    display: none;
    align-items: center;
    gap: 4px;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.5);
    flex-shrink: 0;
}

.cnkd-center-hub.is-next-ready {
    border-color: #fef08a;
    box-shadow:
        0 0 28px rgba(251, 191, 36, 0.85),
        0 10px 30px rgba(0, 0, 0, 0.65),
        0 0 0 4px rgba(251, 191, 36, 0.35);
    animation: cnkdNextPulse 1.3s ease-in-out infinite;
}
.cnkd-center-hub.is-next-ready .cnkd-center-next-hint {
    display: inline-flex;
}
.cnkd-center-hub.is-nudge {
    animation: cnkdCenterNudge 0.42s ease;
}

.cnkd-field-img {
    max-width: 100%;
    max-height: 70px;
    border-radius: 8px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}
.cnkd-empty-text {
    opacity: 0.6;
    font-style: italic;
    font-weight: 600;
}

.cnkd-bottom-hint {
    text-align: center;
    font-size: 13px;
    color: #cbd5e1;
    margin-top: 6px;
}
.cnkd-bottom-hint i {
    color: #fbbf24;
}
.cnkd-bottom-hint strong {
    color: #fde68a;
}

/* ==========================================================================
   POST-GAME SUMMARY & ALL-FACES DETAILED REVIEW
   ========================================================================== */

.cnkd-summary-section {
    animation: astModalPop 0.35s ease;
}

.cnkd-complete-banner {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(49, 46, 129, 0.9));
    border: 1.5px solid rgba(251, 191, 36, 0.45);
    border-radius: 22px;
    padding: 26px 20px;
    text-align: center;
    margin-bottom: 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.cnkd-trophy-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e1b4b;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.45);
}
.cnkd-complete-title {
    margin: 0 0 6px !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
}
.cnkd-complete-subtitle {
    margin: 0 0 18px !important;
    font-size: 14px;
    color: #cbd5e1;
}
.cnkd-sum-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 480px;
    margin: 0 auto 20px;
}
.cnkd-sum-stat {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cnkd-sum-val {
    font-size: 22px;
    font-weight: 900;
}
.cnkd-sum-stat.is-correct .cnkd-sum-val { color: #34d399; }
.cnkd-sum-stat.is-wrong .cnkd-sum-val { color: #fca5a5; }
.cnkd-sum-stat.is-rate .cnkd-sum-val { color: #fbbf24; }
.cnkd-sum-lbl {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 700;
}

.cnkd-complete-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.cnkd-action-btn {
    padding: 11px 20px;
    border-radius: 25px;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
    touch-action: manipulation;
}
.cnkd-action-btn.is-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}
.cnkd-action-btn.is-gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e1b4b;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}
.cnkd-action-btn.is-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.cnkd-action-btn:hover {
    transform: translateY(-2px);
}

/* Detail Knowledge Cards */
.cnkd-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.cnkd-detail-title {
    font-size: 17px;
    font-weight: 800;
    color: #fde68a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cnkd-detail-filters {
    display: flex;
    gap: 8px;
}
.cnkd-filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cnkd-filter-btn.active {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #1e1b4b;
}

.cnkd-detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cnkd-detail-card {
    background: #ffffff;
    color: #1e293b;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    border-left: 5px solid #10b981;
}
.cnkd-detail-card.was-wrong {
    border-left-color: #ef4444;
}
.cnkd-detail-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #e2e8f0;
}
.cnkd-detail-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cnkd-detail-num {
    font-weight: 900;
    font-size: 13px;
    color: #475569;
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 10px;
}
.cnkd-res-badge {
    font-size: 12px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cnkd-res-badge.is-correct {
    background: #dcfce7;
    color: #15803d;
}
.cnkd-res-badge.is-wrong {
    background: #fee2e2;
    color: #b91c1c;
}
.cnkd-detail-report-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 10px;
    padding: 4px 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.cnkd-detail-report-btn:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
}

.cnkd-detail-faces {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.cnkd-face-row {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 10px;
    align-items: start;
    font-size: 14.5px;
    line-height: 1.5;
}
.cnkd-face-label {
    font-size: 11.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 8px;
    text-align: center;
    background: #f1f5f9;
    color: #475569;
}
.cnkd-face-front .cnkd-face-label { background: #e0e7ff; color: #3730a3; }
.cnkd-face-front .cnkd-face-value { font-weight: 800; color: #0f172a; font-size: 16px; }
.cnkd-face-back1 .cnkd-face-label { background: #dcfce7; color: #166534; }
.cnkd-face-back1 .cnkd-face-value { font-weight: 700; color: #1e293b; }
.cnkd-face-back4 .cnkd-face-label { background: #e0f2fe; color: #075985; }
.cnkd-face-image .cnkd-face-label { background: #fef3c7; color: #92400e; }
.cnkd-face-value {
    color: #334155;
    word-break: break-word;
}
.cnkd-face-value .cnkd-field-img {
    max-height: 140px;
    border-radius: 8px;
}

.cnkd-detail-empty {
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 28px 16px;
    text-align: center;
    color: #e2e8f0;
}
.cnkd-detail-empty i {
    font-size: 32px;
    color: #fbbf24;
    margin-bottom: 8px;
}

/* ==========================================================================
   SETTINGS MODAL
   ========================================================================== */

.cnkd-settings-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}
.cnkd-settings-modal {
    background: #ffffff;
    color: #1e293b;
    border-radius: 22px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    animation: astModalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cnkd-settings-header {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cnkd-settings-title {
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cnkd-settings-title i {
    color: #fbbf24;
}
.cnkd-settings-close {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}
.cnkd-settings-close:hover { color: #ffffff; }
.cnkd-settings-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cnkd-setting-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}
.cnkd-setting-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    outline: none;
}
.cnkd-setting-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.cnkd-setting-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    align-items: center;
    gap: 8px;
}
.cnkd-settings-footer {
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.cnkd-settings-btn-cancel {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 9px 18px;
    border-radius: 20px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
}
.cnkd-settings-btn-save {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    color: #ffffff;
    padding: 9px 20px;
    border-radius: 20px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */

@keyframes cnkdLedGlow {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    50% { opacity: 0.35; transform: translate(-50%, -50%) scale(0.8); }
}

@keyframes cnkdPointerTick {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    50% { transform: translateX(-50%) rotate(-14deg); }
}

@keyframes cnkdCorrectPop {
    0% { transform: scale(0.96); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes cnkdWrongShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

@keyframes cnkdNextPulse {
    0%, 100% {
        box-shadow: 0 0 22px rgba(251, 191, 36, 0.75), 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 0 3px rgba(251, 191, 36, 0.35);
    }
    50% {
        box-shadow: 0 0 38px rgba(251, 191, 36, 1), 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 0 7px rgba(251, 191, 36, 0.55);
    }
}

@keyframes cnkdNudge {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes cnkdCenterNudge {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    35% { transform: translate(-50%, -50%) scale(0.94); }
    70% { transform: translate(-50%, -50%) scale(1.04); }
}

/* ==========================================================================
   REPORT MODAL DIALOG (PRESERVED)
   ========================================================================== */

.ast-report-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
}
.ast-report-modal {
    background: #ffffff;
    color: #1e293b;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: astModalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes astModalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
.ast-report-modal-header {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ast-report-modal-title {
    font-weight: 800;
    font-size: 16px;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ast-report-modal-title i {
    color: #f59e0b;
}
.ast-report-modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}
.ast-report-modal-close:hover { color: #ffffff; }
.ast-report-modal-body {
    padding: 20px;
}
.ast-report-card-preview {
    background: #f8fafc;
    border-left: 3px solid #6366f1;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin: 0 0 16px 0;
    color: #334155;
}
.ast-report-form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1e293b;
    font-size: 14px;
}
.ast-report-textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
.ast-report-textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.ast-report-status-msg {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    text-align: center;
}
.ast-report-status-msg.success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.ast-report-modal-footer {
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.ast-report-btn-cancel {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
}
.ast-report-btn-submit {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}
.ast-report-btn-submit:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* ==========================================================================
   STUNNING AHOSHADOTAB GRID SHOWROOM STYLES (WITH THEME OVERRIDE PROTECTIONS)
   ========================================================================== */

/* Remove WordPress wpautop injected blank tags inside showroom */
.ast-showroom-container p:empty,
.ast-showroom-grid > p,
.ast-showroom-grid > br,
.ast-showroom-filter-bar p,
.ast-filter-pills p,
.ast-filter-pills br,
.ast-grid-card > p,
.ast-grid-card > br {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    width: 0 !important;
    line-height: 0 !important;
}

.ast-showroom-container,
.ast-showroom-container * {
    box-sizing: border-box !important;
}

.ast-showroom-container {
    width: 100% !important;
    max-width: 1100px !important;
    margin: 30px auto !important;
    padding: 0 10px !important;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Hero Banner */
.ast-hero-banner {
    position: relative !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%) !important;
    border-radius: 28px !important;
    padding: 42px 24px !important;
    color: #ffffff !important;
    text-align: center !important;
    overflow: hidden !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25) !important;
    margin-bottom: 30px !important;
    width: 100% !important;
}

.ast-hero-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.3), transparent 70%) !important;
    pointer-events: none !important;
}

.ast-hero-content {
    position: relative !important;
    z-index: 2 !important;
    max-width: 750px !important;
    margin: 0 auto !important;
}

.ast-hero-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(10px) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.3) !important;
    padding: 6px 18px !important;
    border-radius: 30px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    margin-bottom: 16px !important;
}

.ast-hero-title {
    font-size: 34px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 12px 0 !important;
    letter-spacing: -0.5px !important;
    line-height: 1.25 !important;
    padding: 0 !important;
}

.ast-hero-subtitle {
    font-size: 16px !important;
    color: #cbd5e1 !important;
    margin: 0 0 28px 0 !important;
    line-height: 1.6 !important;
    padding: 0 !important;
}

/* Favorites Button & Pill Styling */
.ast-card-fav-btn {
    position: absolute !important;
    right: 18px !important;
    top: 18px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    z-index: 5 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ast-card-fav-btn:hover {
    background: #ffffff !important;
    color: #ef4444 !important;
    transform: scale(1.15) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.ast-card-fav-btn.is-fav {
    background: #ffffff !important;
    color: #ef4444 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.ast-fav-pill.active {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35) !important;
}

.ast-fav-pill.active i {
    color: #ffffff !important;
}

/* Filter Pills Bar */
.ast-showroom-filter-bar {
    margin-bottom: 32px !important;
    width: 100% !important;
}

.ast-filter-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ast-filter-pill {
    padding: 10px 22px !important;
    border-radius: 30px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #475569 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    font-family: 'Nunito', sans-serif !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    margin: 0 !important;
}

.ast-count-chip {
    background: #f1f5f9 !important;
    color: #475569 !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
}

.ast-filter-pill:hover {
    background: #e0e7ff !important;
    color: #3730a3 !important;
    border-color: #c7d2fe !important;
    transform: translateY(-1px) !important;
}

.ast-filter-pill.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35) !important;
}

.ast-filter-pill.active .ast-count-chip {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

/* Grid Layout */
.ast-showroom-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)) !important;
    gap: 28px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Card Styling */
.ast-grid-card {
    background: #ffffff !important;
    border-radius: 24px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04) !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.ast-grid-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.12) !important;
    border-color: #c7d2fe !important;
}

/* Card Headers with Gradients */
.ast-card-header {
    height: 110px !important;
    position: relative !important;
    padding: 18px 22px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.sc-header { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important; }
.col-header { background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important; }
.set-header { background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important; }

.ast-header-badge {
    background: rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(8px) !important;
    color: #ffffff !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-transform: uppercase !important;
}

.ast-header-icon {
    font-size: 55px !important;
    color: rgba(255, 255, 255, 0.22) !important;
    position: absolute !important;
    right: 18px !important;
    bottom: -8px !important;
    transition: transform 0.35s ease !important;
}

.ast-grid-card:hover .ast-header-icon {
    transform: scale(1.15) rotate(-5deg) !important;
    color: rgba(255, 255, 255, 0.35) !important;
}

/* Card Body */
.ast-card-body {
    padding: 22px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ast-card-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 14px 0 !important;
    line-height: 1.35 !important;
    padding: 0 !important;
    word-break: break-word !important;
}

.ast-card-stats {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: auto !important;
}

.ast-stat-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 13.5px !important;
    color: #64748b !important;
    margin: 0 !important;
}

.ast-stat-item i {
    width: 18px !important;
    color: #6366f1 !important;
}

.ast-stat-item strong {
    color: #1e293b !important;
}

.audio-stat i {
    color: #0284c7 !important;
}

/* Card Footer & Action Button */
.ast-card-footer {
    padding: 0 22px 22px 22px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ast-grid-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 20px !important;
    border-radius: 16px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    font-family: 'Nunito', sans-serif !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.sc-grid-btn { background: #e0e7ff !important; color: #3730a3 !important; }
.sc-grid-btn:hover { background: #4f46e5 !important; color: #ffffff !important; }

.col-grid-btn { background: #d1fae5 !important; color: #065f46 !important; }
.col-grid-btn:hover { background: #059669 !important; color: #ffffff !important; }

.set-grid-btn { background: #fef3c7 !important; color: #92400e !important; }
.set-grid-btn:hover { background: #d97706 !important; color: #ffffff !important; }

.btn-arrow {
    transition: transform 0.25s ease !important;
}

.ast-grid-btn:hover .btn-arrow {
    transform: translateX(4px) !important;
}

/* Empty Result State */
.ast-showroom-empty {
    text-align: center !important;
    padding: 60px 20px !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    border: 2px dashed #e2e8f0 !important;
    width: 100% !important;
    margin-top: 20px !important;
}
.ast-empty-icon {
    width: 70px !important;
    height: 70px !important;
    background: #f1f5f9 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 16px !important;
    font-size: 28px !important;
    color: #94a3b8 !important;
}
.ast-showroom-empty h3 {
    margin: 0 0 8px 0 !important;
    font-size: 20px !important;
    color: #1e293b !important;
    font-weight: 800 !important;
}
.ast-showroom-empty p {
    margin: 0 !important;
    color: #64748b !important;
    font-size: 14.5px !important;
}

/* ==========================================================================
   MOBILE RESPONSIVE (OPTIMIZED FOR PHONE SCREEN)
   ========================================================================== */

@media (max-width: 640px) {
    .fc-collection-wrap {
        padding: 10px 8px;
        margin: 8px auto;
    }
    .cnkd-wrap {
        padding: 12px 10px 16px !important;
        margin: 6px auto !important;
        border-radius: 20px !important;
    }
    .cnkd-header {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    .cnkd-title {
        font-size: 17px !important;
    }
    .cnkd-icon-btn {
        padding: 7px 10px;
        font-size: 12px;
        border-radius: 10px;
    }
    .cnkd-icon-btn span {
        display: none;
    }
    .cnkd-btn-settings span {
        display: inline;
    }
    .cnkd-hud {
        padding: 8px 10px;
        margin-bottom: 10px;
    }
    .cnkd-mode-chip {
        order: 3;
        width: 100%;
        justify-content: center;
        font-size: 11.5px;
    }
    .cnkd-status-banner {
        font-size: 12.5px;
        padding: 7px 10px;
        margin-bottom: 10px;
    }
    .cnkd-wheel-wrapper {
        max-width: min(92vw, 390px);
        margin: 12px auto 10px;
    }
    .cnkd-led {
        width: 7px;
        height: 7px;
    }
    .cnkd-pointer {
        top: -12px;
        width: 28px;
        height: 34px;
    }
    .cnkd-pointer-body {
        border-left-width: 12px;
        border-right-width: 12px;
        border-top-width: 30px;
    }
    .cnkd-pointer-body::after {
        top: -28px;
        left: -8px;
        border-left-width: 8px;
        border-right-width: 8px;
        border-top-width: 22px;
    }
    .cnkd-q-badge {
        width: 20px;
        height: 20px;
        font-size: 10.5px;
    }
    .cnkd-q-state-icon {
        font-size: 16px;
    }
    .cnkd-quadrant-content.is-size-xl { font-size: 16px; }
    .cnkd-quadrant-content.is-size-lg { font-size: 13.5px; }
    .cnkd-quadrant-content.is-size-md { font-size: 11.5px; }
    .cnkd-quadrant-content.is-size-sm { font-size: 10px; }

    .cnkd-center-hub {
        border-width: 3px;
        padding: 8px 10px;
    }
    .cnkd-center-label {
        font-size: 8.5px;
        padding: 1px 6px;
        margin-bottom: 2px;
    }
    .cnkd-center-content.is-size-xl { font-size: 18px; }
    .cnkd-center-content.is-size-lg { font-size: 14px; }
    .cnkd-center-content.is-size-md { font-size: 11.5px; }
    .cnkd-center-content.is-size-sm { font-size: 10px; }
    .cnkd-center-next-hint {
        font-size: 9.5px;
        padding: 2px 8px;
        margin-top: 3px;
    }
    .cnkd-bottom-hint {
        font-size: 12px;
    }

    .cnkd-face-row {
        grid-template-columns: 1fr;
        gap: 3px;
    }
    .cnkd-face-label {
        justify-self: start;
    }
    .cnkd-sum-val {
        font-size: 18px;
    }
    .cnkd-complete-title {
        font-size: 18px !important;
    }

    .ast-hero-banner { padding: 32px 18px !important; border-radius: 20px !important; }
    .ast-hero-title { font-size: 24px !important; }
    .ast-showroom-grid { grid-template-columns: 1fr !important; }
}
