/* Import Fredoka font */
@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap");

/* Available Quizzes Section */
.available-quizzes-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.quizzes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.quizzes-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quizzes-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffd700;
}

.quizzes-title i {
    font-size: 1.2rem;
}

.quizzes-total-prize {
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffd700;
    padding: 4px 12px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quizzes-total-prize i {
    font-size: 0.75rem;
}

.quizzes-map-header {
    color: #fff;
}

/* Real-World Decks Section */
.real-world-decks-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.real-world-decks-section .quizzes-header {
    background: rgba(46, 204, 113, 0.1);
    border-bottom: 1px solid rgba(46, 204, 113, 0.2);
}

.real-world-decks-section .quizzes-title {
    color: #2ecc71;
}

.real-world-total-cards {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(46, 204, 113, 0.7);
    margin-top: 2px;
}

.real-world-decks-section .quizzes-total-prize {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.15);
    border-color: rgba(46, 204, 113, 0.3);
}

.real-world-empty {
    padding: 40px 20px;
    text-align: center;
}

.real-world-empty .empty-icon {
    font-size: 3rem;
    color: rgba(46, 204, 113, 0.3);
    margin-bottom: 16px;
}

.real-world-empty .empty-text {
    font-family: "Fredoka", sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
}

/* Real World Cards List */
.real-world-cards-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 16px;
    max-height: none;
    overflow: visible;
    justify-items: center;
}

.real-world-cards-list::-webkit-scrollbar {
    width: 6px;
}

.real-world-cards-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.real-world-cards-list::-webkit-scrollbar-thumb {
    background: rgba(46, 204, 113, 0.3);
    border-radius: 3px;
}

.real-world-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.real-world-card-item:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.real-world-card-item.active {
    opacity: 1;
}

.real-world-card-item.active .real-world-card-image-wrapper {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.real-world-card-image-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ff69b4;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.real-world-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.real-world-card-title {
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
    line-height: 1.2;
}

.real-world-card-name {
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}

.real-world-card-category {
    font-size: 0.55rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.15rem;
}

.real-world-card-type {
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.3rem;
}

.real-world-card-aura-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    color: #2ecc71;
    font-family: "Fredoka", sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 6px;
    z-index: 2;
    text-align: center;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.real-world-card-aura-badge i {
    font-size: 0.55rem;
}

.real-world-card-count-bottom {
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.real-world-empty .empty-text {
    margin-bottom: 8px;
}

.real-world-empty .empty-hint {
    font-size: 0.85rem;
    color: #888;
}

/* Quiz Cards Grid - exact copy of Real World Cards */
.quiz-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    gap: 12px !important;
    padding: 16px;
    max-height: 350px;
    overflow-y: auto;
}

.quiz-cards-grid::-webkit-scrollbar {
    width: 6px;
}

.quiz-cards-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.quiz-cards-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

.quiz-card-item {
    aspect-ratio: 3/4 !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    overflow: hidden !important;
    position: relative !important;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto !important;
    height: auto !important;
}

.quiz-card-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.quiz-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.quiz-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
}

.quiz-card-deck {
    font-size: 0.55rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Completed Quiz Cards Section */
.completed-quizzes-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    border: 1px solid rgba(155, 89, 182, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.completed-quizzes-section .quizzes-header {
    background: rgba(155, 89, 182, 0.1);
    border-bottom: 1px solid rgba(155, 89, 182, 0.2);
}

.completed-quizzes-section .quizzes-title {
    color: #9b59b6;
}

.completed-quizzes-section .quizzes-total-prize {
    color: #9b59b6;
    background: rgba(155, 89, 182, 0.15);
    border-color: rgba(155, 89, 182, 0.3);
}

.completed-quizzes-section .quizzes-header-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.completed-quizzes-section .quiz-trophy-badge {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.15);
    border-color: rgba(46, 204, 113, 0.3);
}

.completed-quizzes-section .quiz-trophy-badge i {
    color: #ffd700;
}

/* Completed Quiz Cards Grid */
.completed-quiz-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    gap: 12px !important;
    padding: 16px;
    max-height: 350px;
    overflow-y: auto;
}

.completed-quiz-cards-grid::-webkit-scrollbar {
    width: 6px;
}

.completed-quiz-cards-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.completed-quiz-cards-grid::-webkit-scrollbar-thumb {
    background: rgba(155, 89, 182, 0.3);
    border-radius: 3px;
}

.completed-quiz-card-item {
    aspect-ratio: 3/4 !important;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15) 0%, rgba(142, 68, 173, 0.1) 100%);
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: 12px;
    overflow: hidden !important;
    position: relative !important;
    transition: all 0.3s ease;
    width: auto !important;
    height: auto !important;
}

.completed-quiz-card-item:hover {
    transform: translateY(-4px);
    border-color: rgba(155, 89, 182, 0.6);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.2);
}

.completed-quiz-card-aura-badge {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(155, 89, 182, 0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* When quiz is completed, move aura badge down */
.completed-quiz-card-item.quiz-done .completed-quiz-card-aura-badge {
    top: 32px;
}

.completed-quiz-card-aura-badge i {
    font-size: 0.6rem;
}

.completed-quiz-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.completed-quiz-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
}

.completed-quiz-card-deck {
    font-size: 0.55rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.completed-quiz-card-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.completed-quiz-card-questions {
    font-size: 0.55rem;
    font-weight: 600;
    color: #9b59b6;
    margin-top: 4px;
    text-transform: uppercase;
}

/* Quiz Completed Badge */
.quiz-completed-badge {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.95) 0%, rgba(46, 204, 113, 0.95) 100%);
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.quiz-completed-badge i {
    font-size: 0.6rem;
    color: #ffd700;
}

/* Take Quiz Badge */
.quiz-take-badge {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95) 0%, rgba(255, 165, 0, 0.95) 100%);
    color: #000;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    text-align: center;
}

.quiz-take-text {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-take-reward {
    font-size: 0.55rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Pending quiz card - move aura badge down */
.completed-quiz-card-item.quiz-pending .completed-quiz-card-aura-badge {
    top: 50px;
}

/* Completed quiz card styling */
.completed-quiz-card-item.quiz-done {
    border-color: rgba(46, 204, 113, 0.5);
}

.completed-quiz-card-item.quiz-done::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
    margin-bottom: 0.15rem;
}

.quiz-card-name {
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.3rem;
}

.quiz-card-prize-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    color: #ffd700;
    font-family: "Fredoka", sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 6px;
    z-index: 2;
    text-align: center;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.quiz-card-prize-badge i {
    font-size: 0.55rem;
}

.quiz-card-questions {
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* Collection Cards Grid - EXACT copy of real-world-cards-list */
.collection-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    padding: 16px;
    max-height: 350px;
    overflow-y: auto;
}

.collection-cards-grid::-webkit-scrollbar {
    width: 6px;
}

.collection-cards-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.collection-cards-grid::-webkit-scrollbar-thumb {
    background: rgba(155, 89, 182, 0.3);
    border-radius: 3px;
}

.collection-card-item {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15) 0%, rgba(142, 68, 173, 0.1) 100%);
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.collection-card-item:hover {
    transform: translateY(-4px);
    border-color: rgba(155, 89, 182, 0.6);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.2);
}

.collection-card-item.locked {
    opacity: 0.5;
}

.collection-card-item.locked:hover {
    transform: none;
    box-shadow: none;
}

.collection-card-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    color: #9b59b6;
    font-family: "Fredoka", sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 6px;
    z-index: 2;
    text-align: center;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.collection-card-badge i {
    font-size: 0.55rem;
}

.collection-card-badge.locked {
    color: rgba(255, 255, 255, 0.5);
}

.collection-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.collection-card-item.locked .collection-card-image {
    opacity: 0.3;
    filter: grayscale(100%);
}

.collection-card-trophy {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.95) 0%, rgba(46, 204, 113, 0.95) 100%);
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 0.55rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    z-index: 3;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.collection-card-trophy i {
    color: #ffd700;
    font-size: 0.6rem;
}

.collection-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
}

.collection-card-deck {
    font-size: 0.55rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.15rem;
}

.collection-card-name {
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}

.collection-card-count {
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

/* Mobile fix for card grids - use padding-bottom fallback for aspect-ratio */
@media (max-width: 767px) {
    .real-world-decks-section,
    .available-quizzes-section,
    .completed-quizzes-section,
    .deck-carousel-container {
        overflow-x: hidden !important;
    }

    .real-world-cards-list,
    .quiz-cards-grid,
    .completed-quiz-cards-grid,
    .collection-cards-grid {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 8px !important;
        padding: 12px !important;
        overflow-x: hidden !important;
    }

    /* Mobile: Ensure cards list takes full width on aura home page */
    #aura-home-flip-container .real-world-cards-list {
        padding: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .real-world-card-item,
    .quiz-card-item,
    .completed-quiz-card-item,
    .collection-card-item {
        aspect-ratio: 3/4 !important;
        height: 0 !important;
        padding-bottom: 133.33% !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .real-world-card-item > *,
    .quiz-card-item > *,
    .completed-quiz-card-item > *,
    .collection-card-item > * {
        position: absolute !important;
    }

    .real-world-card-overlay,
    .quiz-card-overlay,
    .completed-quiz-card-overlay,
    .collection-card-overlay {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }

    .real-world-card-image,
    .quiz-card-image,
    .completed-quiz-card-image,
    .collection-card-image {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* Card Quiz Completed Badge */
.card-quiz-completed {
    position: absolute !important;
    bottom: 8px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.95) 0%, rgba(46, 204, 113, 0.95) 100%) !important;
    color: #fff !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: "Fredoka", sans-serif !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow:
        0 4px 15px rgba(39, 174, 96, 0.5),
        0 2px 5px rgba(0, 0, 0, 0.3) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    white-space: nowrap !important;
    z-index: 10 !important;
}

.card-quiz-completed .quiz-completed-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.card-quiz-completed .quiz-completed-icon i {
    font-size: 1rem !important;
    color: #ffd700 !important;
}

.card-quiz-completed .quiz-completed-stats {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    line-height: 1.2 !important;
}

.card-quiz-completed .quiz-score {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: #fff !important;
}

.card-quiz-completed .quiz-aura-won {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

@media (max-width: 767px) {
    .card-quiz-completed .quiz-score,
    .card-quiz-completed .quiz-aura-won {
        font-size: 0.5rem !important;
    }
}

/* Center rarity badge when quiz is completed */
.card-meta.quiz-completed {
    justify-content: center !important;
}

/* Quiz Trading Card Modal */
.quiz-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.quiz-modal-overlay.active {
    display: flex;
}

/* Trading Card Container */
.quiz-trading-card {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9 / 16;
    max-height: 85vh;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 4px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.5);
    animation: cardSlideIn 0.4s ease-out;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Full Background Image */
.trading-card-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient Overlay */
.trading-card-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        transparent 30%,
        transparent 50%,
        rgba(0, 0, 0, 0.7) 75%,
        rgba(0, 0, 0, 0.95) 100%
    );
    pointer-events: none;
}

/* Close Button */
.trading-card-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    font-size: 1rem;
}

.trading-card-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Top Badge */
.trading-card-top-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.9) 0%, rgba(142, 68, 173, 0.9) 100%);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
    font-family: "Fredoka", sans-serif;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
    z-index: 10;
}

.trading-card-question-badge {
    position: absolute;
    top: 50px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: "Fredoka", sans-serif;
    z-index: 10;
}

.trading-card-perquestion-badge {
    position: absolute;
    top: 82px;
    left: 12px;
    background: rgba(40, 167, 69, 0.7);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: "Fredoka", sans-serif;
    z-index: 10;
}

/* Bottom Content */
.trading-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    z-index: 10;
}

/* Full Article Overlay */
.trading-card-article {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.95) 100%);
    z-index: 15;
    padding: 1.25rem;
    flex-direction: column;
}

.trading-card-article.active {
    display: flex;
}

.trading-card-article .article-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 1rem;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.trading-card-article .article-title {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.trading-card-article .article-body {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: "Fredoka", sans-serif;
    font-weight: 400;
    line-height: 1.6;
    white-space: pre-wrap;
}

.trading-card-article .start-quiz-btn {
    flex-shrink: 0;
    margin-top: auto;
}

/* Study Options (Read/Listen) */
.quiz-study-options {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.study-option-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.3) 0%, rgba(142, 68, 173, 0.3) 100%);
    border: 2px solid rgba(155, 89, 182, 0.5);
    border-radius: 12px;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.study-option-btn i {
    font-size: 1.5rem;
}

.study-option-btn:hover {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.5) 0%, rgba(142, 68, 173, 0.5) 100%);
    border-color: rgba(155, 89, 182, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.study-option-btn:active {
    transform: translateY(0);
}

#listenArticleBtn {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3) 0%, rgba(41, 128, 185, 0.3) 100%);
    border-color: rgba(52, 152, 219, 0.5);
}

#listenArticleBtn:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.5) 0%, rgba(41, 128, 185, 0.5) 100%);
    border-color: rgba(52, 152, 219, 0.8);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Quiz Reward Info */
.quiz-reward-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
}

.quiz-reward-info .reward-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Fredoka", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd700;
}

.quiz-reward-info .reward-badge i {
    color: #ffd700;
}

.quiz-reward-info .reward-details {
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Audio Player Overlay */
.trading-card-audio {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(10, 10, 30, 0.98) 100%);
    z-index: 15;
    padding: 1.25rem;
    flex-direction: column;
}

.trading-card-audio.active,
.trading-card-audio.show {
    display: flex;
}

.audio-player-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding-bottom: 1rem;
}

.audio-player-title {
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Podcast-style Player */
.quiz-audio-player {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.audio-artwork {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.audio-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audio-artwork .audio-pulse-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(52, 152, 219, 0.5);
    opacity: 0;
    animation: none;
}

.audio-artwork.playing .audio-pulse-ring {
    animation: audioPulse 1.5s ease-out infinite;
}

@keyframes audioPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.audio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.audio-control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.audio-control-btn i {
    font-size: 1.2rem;
}

.audio-control-btn span {
    font-size: 0.6rem;
    font-weight: 600;
    margin-top: -2px;
}

.audio-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.audio-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(155, 89, 182, 0.5);
}

.audio-play-btn i {
    font-size: 2rem;
    margin-left: 4px; /* Visual centering for play icon */
}

.audio-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(155, 89, 182, 0.7);
}

.audio-play-btn:active {
    transform: scale(0.98);
}

/* Progress Bar */
.audio-progress-container {
    width: 100%;
    padding: 0 0.5rem;
}

.audio-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    margin-bottom: 0.5rem;
}

.audio-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #9b59b6 0%, #e91e8c 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.audio-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: left 0.1s linear;
}

.audio-progress-bar:hover .audio-progress-handle {
    transform: translate(-50%, -50%) scale(1.2);
}

.audio-time {
    display: flex;
    justify-content: space-between;
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Speed Control */
.audio-speed-control {
    display: flex;
    justify-content: center;
}

.audio-speed-btn {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.audio-speed-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.trading-card-audio .start-quiz-btn {
    flex-shrink: 0;
    margin-top: auto;
}

/* Active Quiz View */
.quiz-active-view {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(20, 20, 30, 0.95) 0%, rgba(10, 10, 20, 0.98) 100%);
    z-index: 20;
    padding: 1.25rem;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.quiz-active-view.active {
    display: flex;
}

/* Timer Ring */
.quiz-timer-ring {
    width: 70px;
    height: 70px;
    position: relative;
    margin-bottom: 1rem;
}

.quiz-timer-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.quiz-timer-ring .timer-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6;
}

.quiz-timer-ring .timer-progress {
    fill: none;
    stroke: #9b59b6;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition:
        stroke-dashoffset 1s linear,
        stroke 0.3s ease;
}

.quiz-timer-ring .timer-progress.warning {
    stroke: #f39c12;
}

.quiz-timer-ring .timer-progress.danger {
    stroke: #e74c3c;
}

.quiz-timer-ring .timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: "Fredoka", sans-serif;
}

/* Question */
.quiz-question-container {
    flex: 0 0 auto;
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
}

.quiz-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    line-height: 1.4;
    animation: questionFadeIn 0.5s ease-out;
}

@keyframes questionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Answers */
.quiz-answers {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.quiz-answer-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: "Fredoka", sans-serif;
    cursor: pointer;
    text-align: left;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
    opacity: 0;
    transform: translateX(0);
    animation: answerSlideIn 0.4s ease-out forwards;
}

.quiz-answer-btn:nth-child(1) {
    animation-delay: 0.1s;
}
.quiz-answer-btn:nth-child(2) {
    animation-delay: 0.2s;
}
.quiz-answer-btn:nth-child(3) {
    animation-delay: 0.3s;
}
.quiz-answer-btn:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes answerSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (hover: hover) {
    .quiz-answer-btn:hover:not(.correct):not(.incorrect) {
        background: rgba(155, 89, 182, 0.3);
        border-color: rgba(155, 89, 182, 0.5);
    }
}

.quiz-answer-btn:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.quiz-answer-btn:active:not(.correct):not(.incorrect) {
    background: rgba(155, 89, 182, 0.2);
}

.quiz-answer-btn.correct {
    background: rgba(39, 174, 96, 0.4) !important;
    border-color: #27ae60 !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.quiz-answer-btn.incorrect {
    background: rgba(231, 76, 60, 0.4) !important;
    border-color: #e74c3c !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.quiz-answer-btn.checking {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #fff !important;
    opacity: 0.7 !important;
    pointer-events: none;
    position: relative;
}

.quiz-answer-btn.checking::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Score Tracker */
.quiz-score-tracker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    margin-top: 1rem;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: "Fredoka", sans-serif;
}

.score-item.correct-score {
    color: #27ae60;
}

.score-item.correct-score i {
    font-size: 1.1rem;
}

.score-item.wrong-score {
    color: #e74c3c;
}

.score-item.wrong-score i {
    font-size: 1.1rem;
}

.score-aura {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.3) 0%, rgba(46, 204, 113, 0.3) 100%);
    border: 1px solid rgba(39, 174, 96, 0.5);
    border-radius: 20px;
    color: #2ecc71;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: "Fredoka", sans-serif;
    animation: auraPulse 2s ease-in-out infinite;
}

.score-aura i {
    font-size: 1rem;
}

@keyframes auraPulse {
    0%,
    100% {
        box-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(46, 204, 113, 0.5);
    }
}

.score-aura.earned {
    animation: auraEarned 0.5s ease;
}

@keyframes auraEarned {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* Progress */
.quiz-progress {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: "Fredoka", sans-serif;
    margin-bottom: 0.5rem;
}

/* Quiz Summary View */
.quiz-summary-view {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(20, 30, 20, 0.98) 0%, rgba(10, 20, 10, 0.99) 100%);
    z-index: 25;
    padding: 1.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.quiz-summary-view.active {
    display: flex;
}

.summary-confetti {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.3) 0%, transparent 8%),
        radial-gradient(circle at 80% 20%, rgba(46, 204, 113, 0.3) 0%, transparent 6%),
        radial-gradient(circle at 40% 70%, rgba(155, 89, 182, 0.3) 0%, transparent 7%),
        radial-gradient(circle at 70% 80%, rgba(52, 152, 219, 0.3) 0%, transparent 5%),
        radial-gradient(circle at 10% 60%, rgba(231, 76, 60, 0.2) 0%, transparent 6%);
    animation: confettiFloat 3s ease-in-out infinite;
}

@keyframes confettiFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
        opacity: 1;
    }
}

.summary-header {
    text-align: center;
    margin-bottom: 1.5rem;
    animation: summaryFadeIn 0.6s ease-out;
}

@keyframes summaryFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.summary-icon {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
    animation: trophyBounce 0.8s ease-out 0.3s both;
}

@keyframes trophyBounce {
    0% {
        transform: scale(0) rotate(-20deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.summary-aura-display {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
    animation: auraReveal 0.8s ease-out 0.5s both;
}

@keyframes auraReveal {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.aura-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(46, 204, 113, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: auraGlowPulse 2s ease-in-out infinite;
}

@keyframes auraGlowPulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

.aura-amount {
    position: relative;
    z-index: 1;
}

.aura-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2ecc71;
    font-family: "Fredoka", sans-serif;
    text-shadow: 0 0 30px rgba(46, 204, 113, 0.5);
}

.aura-unit {
    font-size: 1.5rem;
    font-weight: 500;
    color: #27ae60;
    font-family: "Fredoka", sans-serif;
    margin-left: 0.25rem;
}

.aura-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: "Fredoka", sans-serif;
    margin-top: 0.5rem;
}

.summary-stats {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    animation: statsSlideIn 0.6s ease-out 0.7s both;
}

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

.summary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.summary-stat i {
    font-size: 1.5rem;
}

.summary-stat.correct i {
    color: #27ae60;
}
.summary-stat.wrong i {
    color: #e74c3c;
}

.summary-stat .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    font-family: "Fredoka", sans-serif;
}

.summary-stat .stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: "Fredoka", sans-serif;
}

.summary-message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: "Fredoka", sans-serif;
    margin-bottom: 1.5rem;
    animation: messageAppear 0.6s ease-out 0.9s both;
}

@keyframes messageAppear {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.summary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: "Fredoka", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.4);
    animation: btnAppear 0.6s ease-out 1s both;
}

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

.summary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(46, 204, 113, 0.6);
}

.summary-btn i {
    font-size: 1.2rem;
}

.summary-btn.claiming {
    pointer-events: none;
    opacity: 0.8;
}

.summary-btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Nav Aura Update Animation */
@keyframes navAuraPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes navAuraGlow {
    0% {
        box-shadow: 0 0 5px rgba(46, 204, 113, 0.3);
        background: linear-gradient(135deg, rgba(40, 167, 69, 0.2), rgba(40, 167, 69, 0.1));
    }
    50% {
        box-shadow:
            0 0 20px rgba(46, 204, 113, 0.8),
            0 0 40px rgba(46, 204, 113, 0.4);
        background: linear-gradient(135deg, rgba(40, 167, 69, 0.5), rgba(40, 167, 69, 0.3));
    }
    100% {
        box-shadow: 0 0 5px rgba(46, 204, 113, 0.3);
        background: linear-gradient(135deg, rgba(40, 167, 69, 0.2), rgba(40, 167, 69, 0.1));
    }
}

.nav-stat-badge.aura.aura-claimed,
.mobile-nav-stat.aura.aura-claimed,
.mobile-menu-stat.aura.aura-claimed {
    animation: navAuraGlow 0.6s ease-out;
}

.nav-stat-badge.aura.aura-claimed span:first-of-type,
.mobile-nav-stat.aura.aura-claimed span,
.mobile-menu-stat.aura.aura-claimed .stat-value {
    animation: navAuraPulse 0.6s ease-out;
}

.trading-card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trading-card-description {
    margin: 0 0 1rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-family: "Fredoka", sans-serif;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.start-quiz-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: "Fredoka", sans-serif;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(155, 89, 182, 0.5);
}

.start-quiz-btn .quiz-btn-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.start-quiz-btn .quiz-btn-info {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0;
    text-transform: none;
}

.start-quiz-btn:hover {
    background: linear-gradient(135deg, #a569bd 0%, #9b59b6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(155, 89, 182, 0.6);
}

.start-quiz-btn i {
    font-size: 1.1rem;
}

.start-quiz-btn .quiz-btn-text {
    text-transform: uppercase;
}

.start-quiz-btn .quiz-btn-prize {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.start-quiz-btn .quiz-btn-prize i {
    font-size: 0.8rem;
    color: #ffd700;
}

/* Responsive */
@media (max-width: 400px) {
    .quiz-trading-card {
        max-width: 280px;
    }

    .trading-card-title {
        font-size: 1.1rem;
    }

    .trading-card-description {
        font-size: 0.75rem;
    }

    .start-quiz-btn {
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }
}

/* ========================================
   SUPER COOL PROFILE HERO CARD
   ======================================== */

.profile-hero-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 0 0 3px rgba(255, 215, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.2),
        0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Animated Background */
.profile-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    overflow: hidden;
    z-index: 0;
}

.profile-hero-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 50%);
    animation: profileGlowPulse 4s ease-in-out infinite;
}

@keyframes profileGlowPulse {
    0%,
    100% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }
}

.profile-hex-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill='none' stroke='%23FFD700' stroke-opacity='0.08'/%3E%3C/svg%3E");
    background-size: 30px 30px;
    opacity: 0.5;
}

/* Profile Banner - Avatar Background with Overlay */
.profile-banner {
    position: relative;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

/* Dark gradient overlay */
.profile-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 46, 0.4) 0%,
        rgba(26, 26, 46, 0.6) 30%,
        rgba(26, 26, 46, 0.85) 70%,
        rgba(26, 26, 46, 0.95) 100%
    );
    z-index: 1;
}

/* Animated glow effect */
.profile-banner-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    animation: bannerGlowPulse 4s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes bannerGlowPulse {
    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Scanline effect */
.profile-banner-scanline {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.015) 2px,
        rgba(255, 255, 255, 0.015) 4px
    );
    z-index: 3;
    pointer-events: none;
}

/* Content container */
.profile-banner-content {
    position: relative;
    z-index: 4;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

/* Top row - member badge */
.profile-banner-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Avatar Upload Button */
.profile-avatar-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffd700;
    font-size: 0.9rem;
}

.profile-avatar-upload-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.profile-avatar-upload-btn i {
    transition: transform 0.3s ease;
}

.profile-avatar-upload-btn:hover i {
    transform: scale(1.1);
}

/* Right side badges wrapper */
.profile-banner-top-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-member-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: "Fredoka", sans-serif;
}

.profile-member-badge i {
    color: #ffd700;
    font-size: 0.7rem;
}

/* Center - Name */
.profile-banner-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    gap: 0.25rem;
    text-align: center;
    width: 100%;
}

.profile-name-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

/* Profile Tier Badge */
.profile-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    padding: 0.25rem 0.7rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-family: "Fredoka", sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #ffd700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.profile-tier-badge:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.profile-tier-badge i {
    font-size: 0.65rem;
}

/* Free tier promo text */
.profile-tier-promo {
    display: block;
    margin-top: 0.5rem;
    font-family: "Fredoka", sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #ffd700;
    text-align: center;
    text-decoration: none;
    line-height: 1.5;
    max-width: 180px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    transition: all 0.2s ease;
}

.profile-tier-promo:hover {
    color: #fff;
    text-decoration: underline;
}

.profile-display-name {
    font-family: "Fredoka", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.3);
    letter-spacing: 0.5px;
}

/* Inline Name Editing */
.profile-name-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.profile-name-display:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-name-display:hover .profile-name-edit-btn {
    opacity: 1;
}

.profile-name-edit-btn {
    position: absolute;
    right: -28px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 215, 0, 0.2);
    border: none;
    color: #ffd700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.profile-name-edit-btn:hover {
    background: rgba(255, 215, 0, 0.4);
    transform: scale(1.1);
}

.profile-name-edit {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
}

.profile-name-input {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    color: #fff;
    width: 100px;
    transition: all 0.3s ease;
}

.profile-name-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.profile-name-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.profile-name-edit-actions {
    display: flex;
    gap: 0.3rem;
}

.profile-name-save-btn,
.profile-name-cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.profile-name-save-btn {
    color: #4caf50;
}

.profile-name-save-btn:hover {
    background: rgba(76, 175, 80, 0.3);
    transform: scale(1.1);
}

.profile-name-cancel-btn {
    color: #f44336;
}

.profile-name-cancel-btn:hover {
    background: rgba(244, 67, 54, 0.3);
    transform: scale(1.1);
}

.profile-name-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.profile-verified-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(46, 204, 113, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.profile-verified-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.6);
}

.profile-verified-badge i {
    color: #fff;
    font-size: 0.9rem;
}

/* Referral Code Badge */
.profile-referral-code {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 20px;
    padding: 0.3rem 0.75rem;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.profile-referral-code:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.2));
    border-color: rgba(16, 185, 129, 0.6);
    transform: translateY(-1px);
}

.profile-referral-code:hover .copy-icon {
    opacity: 1;
    color: #10b981;
}

.profile-referral-code i:first-child {
    color: #10b981;
    font-size: 0.75rem;
}

.profile-referral-code .referral-code-text {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #10b981;
    letter-spacing: 1px;
}

.profile-referral-code .referral-stats-text {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: "Courier Prime", monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
}

.profile-referral-code .referral-stat-total {
    font-weight: 700;
    color: #10b981;
    font-size: 0.85rem;
}

.profile-referral-code .referral-stat-divider {
    color: rgba(255, 255, 255, 0.3);
}

.profile-referral-code .referral-stat-pending {
    color: #fbbf24;
}

.profile-referral-code .referral-stat-completed {
    color: #4ade80;
}

.profile-referral-code .bi-chevron-right {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 0.25rem;
}

.profile-referral-code:hover .bi-chevron-right {
    color: #10b981;
    transform: translateX(2px);
}

.profile-referral-code .copy-icon {
    font-size: 0.7rem;
    color: rgba(16, 185, 129, 0.6);
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* Referral Copy Toast */
.referral-copy-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.referral-copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.referral-copy-toast i {
    font-size: 1.1rem;
}

/* Bottom - Stats Row */
.profile-banner-stats {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profile-stat-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.4rem 0.7rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.25);
    transition: all 0.2s ease;
}

.profile-stat-pill:hover {
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.profile-stat-pill i {
    color: #ffd700;
    font-size: 0.8rem;
}

.profile-stat-pill .stat-value {
    font-family: "Fredoka", sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

.profile-stat-pill .stat-label {
    font-family: "Fredoka", sans-serif !important;
    font-size: 0.6rem !important;
    color: #ffffff !important;
    opacity: 0.7 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    font-weight: 500 !important;
}

/* Ensure all text in stat pills uses Fredoka font and proper colors - override any parent opacity */
.profile-stat-pill {
    font-family: "Fredoka", sans-serif !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

.profile-stat-pill span {
    font-family: "Fredoka", sans-serif !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

.profile-stat-pill .stat-label {
    opacity: 0.7 !important;
}

/* Override any category-hero-content opacity that might affect stat pills */
.category-hero-content .profile-stat-pill,
.category-hero-content .profile-stat-pill * {
    opacity: 1 !important;
}

.category-hero-content .profile-stat-pill .stat-label {
    opacity: 0.7 !important;
}

/* Referral Pill - green accent */
.profile-stat-pill.referral-pill {
    text-decoration: none;
    border-color: rgba(16, 185, 129, 0.4);
    position: relative;
}

.profile-stat-pill.referral-pill:hover {
    border-color: rgba(16, 185, 129, 0.7);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.profile-stat-pill.referral-pill i {
    color: #10b981;
}

.referral-pending-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    font-family: "Fredoka", sans-serif;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.5);
    animation: pendingPulse 2s ease-in-out infinite;
}

@keyframes pendingPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Locations Pill - gold accent */
.profile-stat-pill.locations-pill {
    text-decoration: none;
    border-color: rgba(212, 169, 87, 0.4);
    position: relative;
}

.profile-stat-pill.locations-pill:hover {
    border-color: rgba(212, 169, 87, 0.7);
    box-shadow: 0 4px 15px rgba(212, 169, 87, 0.3);
}

.profile-stat-pill.locations-pill i {
    color: #d4a957;
}

/* Locations Flip Container Styles */
#locations-flip-container .combined-hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#locations-flip-container .category-hero-top-row {
    width: 100%;
    justify-content: space-between;
}

#locations-flip-container .category-hero-top-row .category-badge {
    font-size: 0.7rem !important;
    padding: 0.4rem 0.6rem !important;
    white-space: nowrap;
}

#locations-flip-container .category-hero-top-row .category-badge span {
    display: inline !important;
}

#locations-flip-container .category-hero-name-section {
    position: relative;
    z-index: 10;
    padding: 1.5rem 1.5rem;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    width: 100%;
}

#locations-flip-container .category-hero-title {
    font-family: "Slackey", cursive;
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin: 0;
    line-height: 1.2;
}

#locations-flip-container .trivia-front-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 1rem;
    max-width: 500px;
}

#locations-flip-container .trivia-podcast-feature {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px;
    padding: 0 1.5rem 1.5rem;
    text-align: left;
}

#locations-flip-container .category-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#locations-flip-container .category-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%);
}

@media (max-width: 767px) {
    #locations-flip-container .category-hero-name-section {
        padding: 1rem;
    }

    #locations-flip-container .trivia-podcast-feature {
        padding: 0 1rem 1rem;
    }
}

/* Aura Badge - matches Return button styling */
.profile-aura-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #000;
    border: none;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-family: "Fredoka", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
}

.profile-aura-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

/* Map Section */
.profile-hero-map {
    position: relative;
    z-index: 1;
}

.profile-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.profile-map-title {
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.profile-map-title i {
    font-size: 0.85rem;
}

.profile-map-return {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #000;
    border: none;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-family: "Fredoka", sans-serif;
    font-size: 0.7rem !important;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
}

.profile-map-return:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

.profile-map-reset {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border: none;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-family: "Fredoka", sans-serif;
    font-size: 0.7rem !important;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    line-height: 1 !important;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
}

.profile-map-reset:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.4);
}

.profile-map-container {
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 17px 17px;
}

.profile-map {
    width: 100%;
    aspect-ratio: 1 / 1;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .profile-hero-card {
        border-radius: 16px;
    }

    .profile-banner {
        aspect-ratio: 4 / 3;
        border-radius: 16px 16px 0 0;
    }

    .profile-banner-content {
        padding: 0.5rem 0.75rem;
    }

    .profile-display-name {
        font-size: 1.3rem;
    }

    .profile-name-input {
        width: 80px;
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }

    .profile-name-edit-btn {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }

    .profile-name-save-btn,
    .profile-name-cancel-btn {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .profile-verified-badge {
        width: 20px;
        height: 20px;
    }

    .profile-verified-badge i {
        font-size: 0.7rem;
    }

    .profile-stat-pill {
        padding: 0.3rem 0.5rem;
        gap: 0.3rem;
    }

    .profile-stat-pill i {
        font-size: 0.7rem;
    }

    .profile-stat-pill .stat-value {
        font-size: 0.75rem;
    }

    .profile-stat-pill .stat-label {
        font-size: 0.5rem;
    }

    .profile-member-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }

    .profile-avatar-upload-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .profile-aura-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.6rem;
    }

    .profile-map-container {
        border-radius: 0 0 13px 13px;
    }
}

/* Legacy map return button (keep for compatibility) */
.map-return-btn {
    display: none !important;
}

/* Business Map Markers - 40x40 circular */
.business-marker-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    animation: markerDrop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.business-marker-container:hover {
    z-index: 200;
}

.business-marker-container:hover .business-map-marker {
    transform: scale(1.15);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.6);
}

.business-marker-container:hover .business-marker-label {
    opacity: 1;
    transform: translateY(0);
}

.business-map-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.business-marker-label {
    margin-top: 4px;
    padding: 2px 6px;
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    font-size: 0.6rem;
    font-weight: 500;
    color: #ffd700;
    white-space: nowrap;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    text-transform: capitalize;
    opacity: 0.85;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.business-marker-aura {
    margin-top: 0;
    padding: 2px 6px;
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-top: none;
    border-radius: 0;
    font-size: 0.6rem;
    font-weight: 500;
    color: #ffd700;
    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    opacity: 0.85;
}

/* When aura is the last child (no distance label), add bottom radius */
.business-marker-aura:last-child {
    border-radius: 0 0 4px 4px;
}

.business-marker-aura i {
    font-size: 0.5rem;
}

.business-marker-distance {
    margin-top: 0;
    padding: 2px 6px;
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-top: none;
    border-radius: 0 0 4px 4px;
    font-size: 0.55rem;
    font-weight: 500;
    color: #64b5f6;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.business-marker-distance i {
    font-size: 0.5rem;
}

@keyframes markerDrop {
    0% {
        transform: translateY(-100px) scale(0.5);
        opacity: 0;
    }
    60% {
        transform: translateY(10px) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.business-map-marker.has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px solid #ffd700;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(255, 215, 0, 0.3);
}

.business-map-marker.default-marker {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    border: 3px solid #fff;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-map-marker.default-marker i {
    font-size: 18px;
    color: #1a1a2e;
}

/* Hover styles moved to .business-marker-container:hover .business-map-marker */

/* Scan Area Button */
.scan-area-btn-container {
    z-index: 1000 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    pointer-events: auto !important;
}

.scan-area-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #000;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow:
        0 4px 20px rgba(255, 215, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.3);
    white-space: nowrap;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    pointer-events: auto !important;
    animation: scanBtnPulse 2s ease-in-out infinite;
}

@keyframes scanBtnPulse {
    0%,
    100% {
        box-shadow:
            0 4px 20px rgba(255, 215, 0, 0.5),
            0 0 30px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow:
            0 4px 25px rgba(255, 215, 0, 0.7),
            0 0 40px rgba(255, 215, 0, 0.5);
    }
}

.scan-area-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.scan-area-btn i {
    font-size: 0.9rem;
}

/* Scan Modal */
.scan-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.scan-modal-overlay.active {
    display: flex;
}

.scan-modal-card {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9 / 16;
    max-height: 85vh;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow:
        0 0 0 4px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.5);
    animation: cardSlideIn 0.4s ease-out;
}

.scan-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #ffd700;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    transition: all 0.2s ease;
}

.scan-modal-close:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.1);
}

@media (max-width: 576px) {
    .scan-modal-card {
        max-width: 90vw;
        width: 90vw;
        max-height: 90vh;
    }
}

/* Scan Modal Content Styles */
.scan-modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
}

.scan-radar-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    animation: radarPulse 3s ease-out infinite;
}

.scan-radar-ring.delay-1 {
    animation-delay: 1s;
}

.scan-radar-ring.delay-2 {
    animation-delay: 2s;
}

@keyframes radarPulse {
    0% {
        transform: scale(0.3);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.scan-modal-header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.5rem 1rem 1rem;
}

.scan-icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.scan-icon-wrapper i {
    font-size: 1.8rem;
    color: #000;
}

.scan-title {
    font-family: "Fredoka", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffd700;
    margin: 0 0 0.25rem;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.scan-subtitle {
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ============================================
   FOCUS AREA - NEW DESIGN
   ============================================ */

.focus-area-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 2rem 1.5rem;
    text-align: center;
}

.focus-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.focus-hex-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #ffd700;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5));
    animation: focusHexPulse 2s ease-in-out infinite;
}

@keyframes focusHexPulse {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 50px rgba(255, 215, 0, 0.7));
    }
}

.focus-title {
    font-family: "Fredoka", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 20px rgba(255, 215, 0, 0.3);
}

.focus-tagline {
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.focus-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 280px;
}

.focus-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    color: #fff;
}

.focus-benefit i {
    font-size: 1.2rem;
    color: #ffd700;
    flex-shrink: 0;
}

.focus-cost-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffd700;
}

.focus-cost-badge i {
    font-size: 1rem;
}

.focus-cta-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.focus-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
}

.focus-cta-btn:active {
    transform: translateY(-1px);
}

.focus-cta-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Fredoka", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
}

.focus-cta-main i {
    font-size: 1.3rem;
}

.focus-cta-sub {
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(26, 26, 46, 0.7);
}

/* ============================================
   FOCUS AREA - SLIDE 2 (SUCCESS STATE)
   ============================================ */

.success-hero .success-icon {
    color: #ffd700;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5));
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 50px rgba(255, 215, 0, 0.7));
    }
}

.focus-cards-container {
    flex: 1;
    width: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 0, 0.3) transparent;
    padding: 0rem 0;
}

.focus-cards-container::-webkit-scrollbar {
    width: 4px;
}

.focus-cards-container::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 2px;
}

#baseScanSummary .focus-cards-container {
    width: 100%;
    overflow-y: auto;
    padding: 0.5rem 1rem;
    margin-bottom: auto;
}

#baseScanSummary .collected-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    flex-wrap: unset !important;
    flex-direction: unset !important;
    justify-content: unset !important;
    align-items: unset !important;
    max-height: none !important;
    overflow-y: visible !important;
}

#baseScanSummary .collected-cards-grid .collected-card-item,
#baseScanSummary .collected-card-item {
    display: block !important;
    width: auto !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 8px !important;
    position: relative !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(46, 204, 113, 0.3) !important;
    flex: unset !important;
    min-width: unset !important;
    max-width: unset !important;
    box-sizing: border-box !important;
}

#baseScanSummary .collected-card-item.mystery {
    animation: cardReveal 0.5s ease-out forwards;
}

@keyframes cardReveal {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#baseScanSummary .collected-card-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

#baseScanSummary .collected-card-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%) !important;
    padding: 6px !important;
    gap: 2px !important;
}

#baseScanSummary .collected-card-name {
    font-family: "Fredoka", sans-serif !important;
    font-size: 0.6rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    text-align: center !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    word-break: break-word !important;
}

#baseScanSummary .collected-card-type {
    font-family: "Fredoka", sans-serif !important;
    font-size: 0.5rem !important;
    color: #2ecc71 !important;
    line-height: 1.1 !important;
}

#baseScanSummary .collected-card-aura {
    font-family: "Fredoka", sans-serif !important;
    font-size: 0.55rem !important;
    font-weight: 600 !important;
    color: #ffd700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    line-height: 1.1 !important;
}

#baseScanSummary .collected-card-aura i {
    font-size: 0.45rem !important;
    color: #ffd700 !important;
}

.focus-reward {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.5rem;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 16px;
    width: 100%;
    max-width: 280px;
}

.focus-reward-icon {
    font-size: 1.5rem;
    color: #2ecc71;
}

.focus-reward-amount {
    font-family: "Fredoka", sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.focus-reward-label {
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.focus-multiplier {
    padding: 0.15rem 0.5rem;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffd700;
}

.focus-cta-btn.success-btn {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.4);
    padding: 0.75rem 1rem;
}

.focus-cta-btn.success-btn:hover {
    box-shadow: 0 8px 30px rgba(46, 204, 113, 0.5);
}

.focus-cta-btn.success-btn .focus-cta-main,
.focus-cta-btn.success-btn .focus-cta-sub {
    color: #fff;
}

.focus-cta-btn.success-btn .focus-cta-main {
    font-size: 1.1rem;
}

.focus-cta-btn.success-btn .focus-cta-sub {
    opacity: 0.85;
    font-size: 0.7rem;
}

.scan-options {
    position: relative;
    z-index: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    overflow-y: auto;
}

.scan-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.scan-option:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

.scan-option.featured {
    border-color: rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
}

.scan-option.locked {
    opacity: 0.7;
    cursor: pointer;
    border-color: rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.1) 0%, rgba(50, 50, 50, 0.05) 100%);
}

.scan-option.locked:hover {
    border-color: rgba(147, 51, 234, 0.5);
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(79, 70, 229, 0.05) 100%);
}

.scan-option-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #000;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scan-option-badge.locked {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
}

.scan-option-badge.locked i {
    font-size: 0.5rem;
}

.scan-option-btn.disabled {
    background: rgba(147, 51, 234, 0.3);
    border-color: rgba(147, 51, 234, 0.5);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.scan-option-btn.disabled:hover {
    background: rgba(147, 51, 234, 0.4);
    transform: translateY(-1px);
}

.scan-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.scan-option-header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.scan-option-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-option-icon.base {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.scan-option-icon.deep {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.scan-option-icon i {
    font-size: 1.1rem;
    color: #fff;
}

.scan-option-cost {
    text-align: right;
}

.scan-option-cost .cost-amount {
    display: block;
    font-family: "Fredoka", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffd700;
    line-height: 1;
}

.scan-option-cost .cost-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.scan-option-title {
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.scan-option-features {
    list-style: none;
    padding: 0;
    margin: 0 0 0.6rem;
}

.scan-option-features li {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.15rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.scan-option-features li i {
    color: #ffd700;
    font-size: 0.7rem;
    width: 14px;
}

.scan-option-features li strong {
    color: #ffd700;
}

.scan-option-btn {
    width: 100%;
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.scan-option-btn.base {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
}

.scan-option-btn.deep {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: #fff;
}

.scan-option-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scan-token-balance {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.scan-token-balance i {
    color: #ffd700;
}

.scan-token-balance strong {
    color: #ffd700;
}

/* Scan Results Styles */
.scan-results {
    position: relative;
    z-index: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.scan-results-header {
    text-align: center;
    margin-bottom: 1rem;
}

.scan-results-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.5rem;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-results-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.scan-results-title {
    font-family: "Fredoka", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 0.25rem;
}

.scan-results-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.scan-results-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.scan-business-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 8px;
    padding: 0.6rem;
}

.scan-business-name {
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.2rem;
}

.scan-business-type {
    font-size: 0.7rem;
    color: #ffd700;
    margin-bottom: 0.2rem;
}

.scan-business-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
}

.scan-business-meta i {
    color: #ffd700;
    margin-right: 0.2rem;
}

.scan-back-btn {
    width: 100%;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #ffd700;
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.scan-back-btn:hover {
    background: rgba(255, 215, 0, 0.15);
}

.scan-back-btn.add-honeycomb {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border: none;
    color: #fff;
}

.scan-back-btn.add-honeycomb:hover {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
}

/* Base Scan Summary Styles */
#baseScanSummary {
    position: relative;
    z-index: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 100% !important;
    padding: 2rem 1.5rem !important;
    text-align: center !important;
}

/* Success state hero */
#baseScanSummary .focus-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

#baseScanSummary .focus-hex-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #2ecc71;
    filter: drop-shadow(0 0 30px rgba(46, 204, 113, 0.5));
    animation: successPulse 2s ease-in-out infinite;
}

#baseScanSummary .focus-title {
    font-family: "Fredoka", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #2ecc71;
    margin: 0;
    text-shadow: 0 2px 20px rgba(46, 204, 113, 0.3);
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    width: 100%;
}

#baseScanSummary .focus-tagline {
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Success badge */
.focus-cost-badge.success-badge {
    background: rgba(46, 204, 113, 0.15);
    border-color: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

#baseScanSummary .focus-cost-badge {
    margin-top: auto;
    margin-bottom: 1.5rem;
}

#baseScanSummary .focus-cta-btn {
    flex-shrink: 0;
    width: 100%;
}

/* No Results State */
#baseScanSummary .no-results-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#baseScanSummary .no-results-icon {
    width: 100px;
    height: 100px;
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.5);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
    animation: none;
}

#baseScanSummary .no-results-title {
    font-family: "Fredoka", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin: 0.5rem 0;
}

#baseScanSummary .no-results-hero .focus-tagline {
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

#baseScanSummary .no-results-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

#baseScanSummary .no-results-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

#baseScanSummary .no-results-btn .focus-cta-main {
    color: rgba(255, 255, 255, 0.8);
}

.base-scan-summary-header {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.summary-confetti-bg {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: confettiPulse 2s ease-in-out infinite;
}

@keyframes confettiPulse {
    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 1;
    }
}

.scan-summary-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    animation: iconBounce 0.6s ease-out;
}

@keyframes iconBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.scan-summary-icon i {
    font-size: 1.75rem;
    color: #1a1a2e;
}

.scan-summary-title {
    font-family: "Fredoka", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 0.25rem;
    animation: slideIn 0.5s ease-out 0.2s both;
}

.scan-summary-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    animation: slideIn 0.5s ease-out 0.3s both;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.collected-cards-grid {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1rem;
    width: 100%;
    align-self: stretch;
    flex-wrap: wrap;
    animation: cardsReveal 0.6s ease-out 0.4s both;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.collected-cards-grid .collected-card-item {
    flex: 0 0 calc(33.333% - 0.4rem);
    width: calc(33.333% - 0.4rem);
    max-width: calc(33.333% - 0.4rem);
    min-width: 0;
}

/* Deep scan grid - 5 cards with max 3 per row */
.collected-cards-grid.deep-scan-grid {
    flex-wrap: wrap;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.collected-cards-grid.deep-scan-grid .collected-card-item {
    flex: 0 0 calc(33.333% - 0.5rem);
    width: calc(33.333% - 0.5rem);
    max-width: calc(33.333% - 0.5rem);
}

@media (max-width: 576px) {
    .collected-cards-grid {
        flex-wrap: wrap;
    }

    .collected-cards-grid.deep-scan-grid {
        max-width: 100%;
    }
}

@keyframes cardsReveal {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.collected-card-item {
    flex: 0 0 auto;
    width: 90px;
    min-width: 80px;
    max-width: 100px;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.collected-card-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.collected-card-item.mystery {
    border-color: rgba(155, 89, 182, 0.5);
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2) 0%, rgba(142, 68, 173, 0.1) 100%);
}

.collected-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.collected-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

.collected-card-name {
    font-family: "Fredoka", sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.15rem;
}

.collected-card-type {
    font-size: 0.5rem;
    color: #ffd700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.collected-card-aura {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.55rem;
    color: #2ecc71;
    margin-top: 0.2rem;
}

.collected-card-aura i {
    font-size: 0.5rem;
}

.scan-aura-reward {
    position: relative;
    text-align: center;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    animation: auraAppear 0.6s ease-out 0.6s both;
}

@keyframes auraAppear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.aura-reward-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(46, 204, 113, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: auraGlowPulse 2s ease-in-out infinite;
}

.aura-reward-amount {
    position: relative;
    z-index: 1;
}

.aura-reward-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2ecc71;
    font-family: "Fredoka", sans-serif;
    text-shadow: 0 0 30px rgba(46, 204, 113, 0.5);
}

.aura-reward-unit {
    font-size: 1.2rem;
    font-weight: 500;
    color: #27ae60;
    font-family: "Fredoka", sans-serif;
    margin-left: 0.25rem;
}

.aura-reward-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: "Fredoka", sans-serif;
    margin-top: 0.25rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.aura-multiplier-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #000;
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    margin-left: 0.25rem;
}

.scan-claim-btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    animation: btnAppear 0.5s ease-out 0.8s both;
}

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

.scan-claim-btn:hover {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.scan-claim-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.scan-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.scan-loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 215, 0, 0.2);
    border-top-color: #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.scan-loading-text {
    font-family: "Fredoka", sans-serif;
    color: #ffd700;
    font-size: 0.9rem;
}

/* Business Card Modal */
.business-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.business-modal-overlay.active {
    display: flex;
}

.business-modal-card {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9 / 16;
    max-height: 85vh;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.2);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.business-modal-card .trading-card-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.business-modal-card .trading-card-gradient.business-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 46, 0.95) 0%,
        rgba(26, 26, 46, 0.7) 15%,
        transparent 35%,
        transparent 65%,
        rgba(26, 26, 46, 0.7) 85%,
        rgba(26, 26, 46, 0.95) 100%
    );
    z-index: 2;
}

.business-modal-card .trading-card-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.business-modal-card .trading-card-close:hover {
    background: rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
    color: #ffd700;
}

.business-card-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 60px 24px 24px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.business-card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.business-card-type {
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    padding: 4px 12px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
}

.business-modal-card .trading-card-title {
    font-family: "Fredoka", sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.business-card-stats {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.business-card-aura {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    flex: 1;
    max-width: 150px;
}

.business-card-aura .aura-icon {
    font-size: 1.2rem;
    color: #ffd700;
    margin-bottom: 6px;
}

.business-card-aura .aura-value {
    font-family: "Fredoka", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    line-height: 1;
}

.business-card-aura .aura-label {
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 4px;
}

.business-card-distance {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(100, 181, 246, 0.3);
    border-radius: 16px;
    flex: 1;
    max-width: 150px;
}

.business-card-distance .distance-icon {
    font-size: 1.2rem;
    color: #64b5f6;
    margin-bottom: 6px;
}

.business-card-distance .distance-value {
    font-family: "Fredoka", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #64b5f6;
    text-shadow: 0 0 20px rgba(100, 181, 246, 0.5);
    line-height: 1;
}

.business-card-distance .distance-label {
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 4px;
}

.business-claim-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    border: 2px solid #fff;
    border-radius: 12px;
    color: #1a1a2e;
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.business-claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

.business-claim-btn:active {
    transform: translateY(0);
}

.business-claim-btn.claim-countdown {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    animation: pulseBlue 1s ease-in-out infinite;
}

.business-claim-btn.claim-failed {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.business-claim-btn.claim-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.business-claim-btn.already-claimed {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    cursor: not-allowed;
    font-size: 0.85rem;
}

.business-claim-btn:disabled {
    cursor: not-allowed;
    opacity: 0.9;
}

.business-claim-btn .spin {
    animation: spinIcon 1s linear infinite;
}

@keyframes pulseBlue {
    0%,
    100% {
        box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(52, 152, 219, 0.7);
    }
}

.business-visit-info {
    font-family: "Fredoka", sans-serif;
    color: #fff;
    margin-top: 15px;
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.4;
}

.business-visit-info #businessVisitName {
    font-weight: 600;
}

.business-google-maps-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    border: 2px solid #fff;
    border-radius: 12px;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    text-decoration: none;
    margin-top: 10px;
}

.business-google-maps-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(66, 133, 244, 0.5);
    color: #fff;
    text-decoration: none;
}

.business-google-maps-btn:active {
    transform: translateY(0);
}

.business-google-maps-btn.focal-point-btn {
    background: linear-gradient(135deg, #9b59b6 0%, #e91e8c 100%);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

.business-google-maps-btn.focal-point-btn:hover {
    box-shadow: 0 6px 25px rgba(155, 89, 182, 0.6);
}

/* User Avatar Map Marker */
.user-map-avatar-marker {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 0px solid #ffd700;
    background-size: cover;
    background-position: center calc(50%);
    background-color: #1a1a2e;
    box-sizing: border-box;
    box-shadow: 0 0 15px 5px rgba(255, 215, 0, 0.6);
}

@media (max-width: 767px) {
    .user-location-map {
        aspect-ratio: 1 / 1;
    }
}

/* Avatar Crop Modal Styles */
.avatar-crop-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.avatar-crop-modal-overlay.active {
    display: flex;
}

.avatar-crop-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.1);
}

.avatar-crop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.avatar-crop-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Fredoka", sans-serif;
    font-size: 1.1rem;
    color: #ffd700;
    margin: 0;
}

.avatar-crop-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.avatar-crop-close:hover {
    background: rgba(255, 0, 0, 0.3);
}

.avatar-crop-body {
    padding: 1.5rem;
}

#cropArea {
    max-height: 400px;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

#cropArea img {
    max-width: 100%;
    display: block;
}

.avatar-crop-footer {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.avatar-crop-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: none;
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.avatar-crop-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.avatar-crop-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.avatar-crop-btn-save {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #000;
    font-weight: 600;
}

.avatar-crop-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.avatar-crop-btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================== */
/* DAILY BONUS MODAL STYLES   */
/* ========================== */

.daily-bonus-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.daily-bonus-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.daily-bonus-modal {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.98), rgba(15, 20, 40, 0.98));
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.4);
    padding: 2rem;
    text-align: center;
    max-width: 380px;
    width: 90%;
    position: relative;
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 0 60px rgba(255, 215, 0, 0.2),
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.daily-bonus-modal-overlay.active .daily-bonus-modal {
    transform: scale(1) translateY(0);
}

/* Stamp Modal - larger on desktop, scaled down on mobile */
.daily-bonus-modal.stamp-modal {
    max-width: 420px;
}

@media (max-width: 480px) {
    .daily-bonus-modal-overlay.active .daily-bonus-modal.stamp-modal {
        transform: scale(0.9) translateY(0);
        max-height: 85vh;
        overflow-y: auto;
    }
}

.daily-bonus-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.daily-bonus-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

.daily-bonus-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: dailyBonusPulse 2s ease-in-out infinite;
}

.daily-bonus-icon i {
    font-size: 3rem;
    color: #ffd700;
    animation: dailyBonusBounce 2s ease-in-out infinite;
}

.daily-bonus-sparkle {
    position: absolute;
    color: #ffd700;
    font-size: 0.8rem;
    animation: dailyBonusSparkle 1.5s ease-in-out infinite;
}

.daily-bonus-sparkle.sparkle-1 {
    top: -5px;
    right: 5px;
    animation-delay: 0s;
}

.daily-bonus-sparkle.sparkle-2 {
    top: 10px;
    left: -5px;
    animation-delay: 0.5s;
}

.daily-bonus-sparkle.sparkle-3 {
    bottom: 5px;
    right: -5px;
    animation-delay: 1s;
}

@keyframes dailyBonusPulse {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
    }
}

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

@keyframes dailyBonusSparkle {
    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.daily-bonus-title {
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffd700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.daily-bonus-subtitle {
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1.5rem 0;
}

.daily-bonus-reward {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.daily-bonus-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.daily-bonus-number {
    font-family: "Fredoka", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 2px 20px rgba(255, 215, 0, 0.5);
}

.daily-bonus-unit {
    font-family: "Fredoka", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 215, 0, 0.8);
}

.daily-bonus-tier {
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.daily-bonus-claim-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    border: none;
    border-radius: 12px;
    font-family: "Fredoka", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.daily-bonus-claim-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: dailyBonusShine 2s ease-in-out infinite;
}

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

.daily-bonus-claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.daily-bonus-claim-btn:active {
    transform: translateY(0);
}

.daily-bonus-claim-btn:disabled {
    background: rgba(255, 215, 0, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.daily-bonus-claim-btn:disabled::before {
    display: none;
}

.daily-bonus-hint {
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 1rem 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.daily-bonus-hint i {
    font-size: 0.9rem;
}

/* Success state */
.daily-bonus-modal.claimed .daily-bonus-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    border-color: rgba(34, 197, 94, 0.5);
    animation: none;
}

.daily-bonus-modal.claimed .daily-bonus-icon i {
    color: #22c55e;
    animation: none;
}

.daily-bonus-modal.claimed .daily-bonus-icon i::before {
    content: "\F272"; /* bi-check-circle-fill */
}

.daily-bonus-modal.claimed .daily-bonus-title {
    color: #22c55e;
}

.daily-bonus-modal.claimed .daily-bonus-claim-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

@media (max-width: 480px) {
    .daily-bonus-modal-overlay {
        /* Fix for iOS Safari - ensure modal is above everything */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        padding: env(safe-area-inset-top, 20px) env(safe-area-inset-right, 20px) env(safe-area-inset-bottom, 20px)
            env(safe-area-inset-left, 20px);
    }

    .daily-bonus-modal {
        padding: 1.5rem;
        max-width: 320px;
        /* Ensure modal doesn't go off-screen on mobile */
        max-height: calc(100vh - 40px);
        max-height: calc(100dvh - 40px);
        overflow-y: auto;
    }

    .daily-bonus-icon {
        width: 80px;
        height: 80px;
    }

    .daily-bonus-icon i {
        font-size: 2.5rem;
    }

    .daily-bonus-title {
        font-size: 1rem;
    }

    .daily-bonus-number {
        font-size: 2rem;
    }
}

/* ========================== */
/* REFERRAL REWARD MODAL      */
/* ========================== */

.referral-reward-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.referral-reward-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.referral-reward-modal {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.98), rgba(15, 20, 40, 0.98));
    border-radius: 20px;
    border: 2px solid rgba(147, 51, 234, 0.4);
    padding: 2rem;
    text-align: center;
    max-width: 380px;
    width: 90%;
    position: relative;
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 0 60px rgba(147, 51, 234, 0.2),
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.referral-reward-modal-overlay.active .referral-reward-modal {
    transform: scale(1) translateY(0);
}

.referral-reward-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.referral-reward-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

.referral-reward-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(168, 85, 247, 0.2));
    border: 2px solid rgba(147, 51, 234, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: referralRewardPulse 2s ease-in-out infinite;
}

.referral-reward-icon i {
    font-size: 3rem;
    color: #a855f7;
    animation: referralRewardBounce 2s ease-in-out infinite;
}

.referral-reward-sparkle {
    position: absolute;
    color: #a855f7;
    font-size: 0.8rem;
    animation: referralRewardSparkle 1.5s ease-in-out infinite;
}

.referral-reward-sparkle.sparkle-1 {
    top: -5px;
    right: 5px;
    animation-delay: 0s;
}

.referral-reward-sparkle.sparkle-2 {
    top: 10px;
    left: -5px;
    animation-delay: 0.5s;
}

.referral-reward-sparkle.sparkle-3 {
    bottom: 5px;
    right: -5px;
    animation-delay: 1s;
}

@keyframes referralRewardPulse {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(147, 51, 234, 0.5);
    }
}

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

@keyframes referralRewardSparkle {
    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.referral-reward-title {
    font-family: "Fredoka", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #a855f7;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 10px rgba(147, 51, 234, 0.3);
}

.referral-reward-subtitle {
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1.5rem 0;
}

.referral-reward-users {
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.referral-reward-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.referral-reward-user:last-child {
    border-bottom: none;
}

.referral-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #9333ea);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.referral-user-name {
    flex: 1;
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.referral-user-tokens {
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #22c55e;
}

.referral-reward-more {
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 0.5rem;
}

.referral-reward-total {
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.referral-reward-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.referral-reward-number {
    font-family: "Fredoka", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #22c55e;
    text-shadow: 0 2px 20px rgba(34, 197, 94, 0.5);
}

.referral-reward-unit {
    font-family: "Fredoka", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(34, 197, 94, 0.8);
}

.referral-reward-label {
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.referral-reward-claim-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    border: none;
    border-radius: 12px;
    font-family: "Fredoka", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.referral-reward-claim-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: referralRewardShine 2s ease-in-out infinite;
}

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

.referral-reward-claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.5);
}

.referral-reward-claim-btn:active {
    transform: translateY(0);
}

.referral-reward-hint {
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 1rem 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.referral-reward-hint i {
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .referral-reward-modal-overlay {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        padding: env(safe-area-inset-top, 20px) env(safe-area-inset-right, 20px) env(safe-area-inset-bottom, 20px)
            env(safe-area-inset-left, 20px);
    }

    .referral-reward-modal {
        padding: 1.5rem;
        max-width: 320px;
        max-height: calc(100vh - 40px);
        max-height: calc(100dvh - 40px);
        overflow-y: auto;
    }

    .referral-reward-icon {
        width: 80px;
        height: 80px;
    }

    .referral-reward-icon i {
        font-size: 2.5rem;
    }

    .referral-reward-title {
        font-size: 1.25rem;
    }

    .referral-reward-number {
        font-size: 2rem;
    }
}

/* ========================== */
/* ADD LOCATION PANEL STYLES  */
/* ========================== */

.add-location-panel {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
    border: 1px solid rgba(212, 169, 87, 0.3);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.add-location-panel::before {
    display: none;
}

.add-location-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    border-bottom: none;
}

.add-location-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-location-title i {
    font-size: 1.1rem;
    color: #d4a957;
}

.add-location-title h5 {
    margin: 0;
    font-weight: 700;
    color: #fff;
    font-size: 0.85rem;
    font-family: "Fredoka", sans-serif;
}

.add-location-title .subtitle {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0;
    display: block;
}

.add-location-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
}

.location-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.location-stat i {
    font-size: 0.9rem;
    color: #d4a957;
}

.location-stat .value {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    font-family: "Fredoka", sans-serif;
}

.location-stat .label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.add-location-search {
    padding: 0.5rem 0.75rem;
    position: relative;
}

.location-search-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    font-family: "Fredoka", sans-serif;
}

.location-search-input:focus {
    outline: none;
    border-color: #d4a957;
    background: rgba(0, 0, 0, 0.45);
}

.location-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.location-search-results {
    position: absolute;
    top: calc(100% - 0.25rem);
    left: 1rem;
    right: 1rem;
    background: rgba(26, 26, 46, 0.98);
    border: 1px solid rgba(212, 169, 87, 0.3);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.location-search-results.active {
    display: block;
}

.location-search-result {
    padding: 0.625rem 0.875rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.location-search-result:last-child {
    border-bottom: none;
}

.location-search-result:hover {
    background: rgba(212, 169, 87, 0.15);
}

.location-search-result .result-name {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
}

.location-search-result .result-address {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.15rem;
}

.add-location-instructions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(212, 169, 87, 0.08);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
}

.add-location-instructions i {
    color: #d4a957;
    font-size: 0.8rem;
}

.add-location-footer {
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 0.5rem;
}

.add-location-btn {
    flex: 1;
    padding: 0.625rem 1rem;
    background: linear-gradient(135deg, #d4a957 0%, #c49a4a 100%);
    border: none;
    border-radius: 8px;
    color: #1a1a2e;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: "Fredoka", sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.add-location-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 169, 87, 0.4);
}

.add-location-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.cancel-drawing-btn {
    padding: 0.625rem 0.875rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: "Fredoka", sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.cancel-drawing-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* ========================== */
/* ADD LOCATION MODAL         */
/* ========================== */

.add-location-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.add-location-modal-overlay.active {
    display: flex;
}

.add-location-modal {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.98), rgba(22, 33, 62, 0.98));
    border: 1px solid rgba(212, 169, 87, 0.3);
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.add-location-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.add-location-modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.add-location-modal-title i {
    font-size: 1.5rem;
    color: #d4a957;
}

.add-location-modal-title h3 {
    margin: 0;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    font-family: "Fredoka", sans-serif;
}

.add-location-modal-title .subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.15rem;
    display: block;
}

.add-location-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.add-location-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.add-location-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.add-location-modal-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.add-location-modal-stats .location-stat .value {
    font-size: 1.25rem;
}

.add-location-modal-stats .location-stat.tier-limit {
    background: linear-gradient(135deg, rgba(212, 169, 87, 0.2), rgba(212, 169, 87, 0.1));
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 169, 87, 0.3);
}

.add-location-modal-stats .location-stat.tier-limit i {
    color: #ffd700;
}

.add-location-modal-stats .location-stat.tier-limit .value {
    color: #d4a957;
    font-size: 1rem;
}

.add-location-modal-stats .location-stat.hex-exceeded .value {
    color: #ff6b6b !important;
}

.add-location-modal-stats .location-stat.hex-exceeded i {
    color: #ff6b6b !important;
}

.add-location-modal-body .add-location-search {
    padding: 0.875rem 1rem;
}

.add-location-modal-body .add-location-map-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.add-location-modal-body .add-location-map {
    width: 100%;
    height: 100%;
}

.add-location-modal-body .add-location-instructions {
    padding: 0.5rem 1rem;
}

.add-location-modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.add-location-modal-footer .cancel-drawing-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.add-location-modal-footer .cancel-drawing-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.add-location-modal-footer .add-location-btn {
    flex: 1;
}

/* Add Location Button in Header */
.add-location-header-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, #d4a957 0%, #c49a4a 100%);
    border: none;
    border-radius: 8px;
    color: #1a1a2e;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: "Fredoka", sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-location-header-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 169, 87, 0.4);
}

.add-location-header-btn i {
    font-size: 0.9rem;
}

/* User Locations Empty State */
.user-locations-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.user-locations-empty .empty-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 169, 87, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.user-locations-empty .empty-icon i {
    font-size: 1.75rem;
    color: #d4a957;
}

.user-locations-empty .empty-text {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: "Fredoka", sans-serif;
}

.user-locations-empty .empty-subtext {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
    margin: 0 auto;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .add-location-modal {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 12px;
    }

    .add-location-modal-body .add-location-map-container {
        aspect-ratio: 1 / 1;
    }

    .add-location-modal-footer {
        flex-direction: column;
    }

    .add-location-modal-footer .cancel-drawing-btn {
        order: 2;
    }

    .add-location-modal-footer .add-location-btn {
        order: 1;
    }
}

/* ========================== */
/* USER LOCATIONS SECTION     */
/* ========================== */

.user-locations-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    border: 1px solid rgba(212, 169, 87, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.user-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
}

.user-location-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.user-location-card:hover {
    border-color: rgba(212, 169, 87, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.user-location-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    background: rgba(212, 169, 87, 0.1);
}

.user-location-image-placeholder {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 169, 87, 0.1);
    color: rgba(212, 169, 87, 0.5);
    font-size: 1.5rem;
}

.user-location-info {
    padding: 0.5rem 0.625rem;
}

.user-location-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: "Fredoka", sans-serif;
}

.user-location-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.user-location-meta span {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.user-location-meta i {
    font-size: 0.6rem;
    color: #d4a957;
}

.user-location-delete {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.8);
    border: none;
    color: #fff;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
}

.user-location-card:hover .user-location-delete {
    opacity: 1;
}

.user-location-delete:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

.user-locations-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.user-locations-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: rgba(212, 169, 87, 0.3);
    display: block;
}

.user-locations-empty p {
    margin: 0;
    font-size: 0.85rem;
}

@media (max-width: 576px) {
    .add-location-stats {
        gap: 1rem;
    }

    .user-locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Add Location Map */
.add-location-map-container {
    padding: 0;
    margin: 0;
    width: 100%;
}

.add-location-map {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    overflow: hidden;
    border: none;
    border-top: 1px solid rgba(212, 169, 87, 0.2);
    border-bottom: 1px solid rgba(212, 169, 87, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

/* ============================================
   CARDS COLLECTION TABBED SECTION
   ============================================ */

.cards-collection-section {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.cards-collection-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cards-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.cards-tab:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.cards-tab.active {
    color: #fff;
    background: rgba(255, 107, 157, 0.15);
}

.cards-tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b9d, #c44569);
}

.cards-tab i {
    font-size: 1rem;
}

.cards-tab .tab-label {
    display: inline;
}

.cards-tab .tab-count {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.cards-tab.active .tab-count {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: #fff;
}

/* Tab Content */
.cards-tab-content {
    display: none;
    padding: 1rem;
}

.cards-tab-content.active {
    display: block;
}

.cards-tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cards-tab-info {
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.cards-tab-subinfo {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.cards-tab-badges {
    display: flex;
    gap: 0.5rem;
}

.cards-tab-aura {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-family: "Courier Prime", monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.cards-tab-aura i {
    color: #ff6b9d;
}

.cards-tab-aura.trophy {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.cards-tab-aura.trophy i {
    color: #ffd700;
}

.cards-tab-desc {
    font-family: "Courier Prime", monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 480px) {
    .cards-tab .tab-label {
        display: none;
    }

    .cards-tab {
        padding: 0.75rem;
    }

    .cards-tab i {
        font-size: 1.1rem;
    }

    .cards-tab-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cards-tab-badges {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Quiz Toggle Switch */
.cards-tab-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.quiz-toggle-switch,
.aura-location-toggle-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.quiz-toggle-switch input,
.aura-location-toggle-switch input {
    display: none;
}

.quiz-toggle-slider,
.aura-location-toggle-slider {
    position: relative;
    width: 36px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.quiz-toggle-slider::before,
.aura-location-toggle-slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.quiz-toggle-switch input:checked + .quiz-toggle-slider,
.aura-location-toggle-switch input:checked + .aura-location-toggle-slider {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
}

.quiz-toggle-switch input:checked + .quiz-toggle-slider::before,
.aura-location-toggle-switch input:checked + .aura-location-toggle-slider::before {
    transform: translateX(16px);
    background: #fff;
}

.quiz-toggle-label,
.aura-location-toggle-label {
    font-family: "Courier Prime", monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.quiz-toggle-switch input:checked ~ .quiz-toggle-label,
.aura-location-toggle-switch input:checked ~ .aura-location-toggle-label {
    color: #ff6b9d;
}

/* Hide completed quiz cards when toggle is active */
.completed-quiz-cards-grid.hide-completed .completed-quiz-card-item.quiz-done {
    display: none;
}

/* All quizzes completed message */
.quiz-all-completed-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    grid-column: 1 / -1;
    padding: 2rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    color: #ffd700;
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    font-weight: 500;
}

.quiz-all-completed-message i {
    font-size: 1.25rem;
}

/* Page Container */
.hyperlocal-page {
    padding-bottom: 1rem;
}

/* Prevent row and column stretching in public pages */
.hyperlocal-page .row {
    align-items: flex-start !important;
}

.hyperlocal-page .col-12,
.hyperlocal-page .col-md-10,
.hyperlocal-page .col-lg-9,
.hyperlocal-page [class*="col-"] {
    display: block !important;
    height: auto !important;
    flex: none !important;
}

/* Fix for public-main flex stretching */
/* ============================================
   PUBLIC LAYOUT STYLES
   ============================================ */

/* CSS Custom Properties for Public Pages */
:root {
    --primary-yellow: #ffd645;
    --primary-black: #000000;
    --primary-pink: #e91e8c;
    --text-shadow: 2px 2px 8px rgba(0, 0, 0, 1);
    --transition-smooth: all 0.3s ease;
    --box-shadow-light: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Main Content */
.public-main {
    padding: 2rem;
    min-height: 100vh;
    width: 100%;
    display: block !important;
}

.public-main * {
    flex-shrink: 1;
}

.public-main .container-fluid {
    max-width: 100%;
    width: 100%;
}

@media (max-width: 991.98px) {
    .public-main {
        padding: 1rem;
    }

    .public-header {
        padding: 0.75rem 1rem;
    }

    .public-header-logo span {
        display: none;
    }
}

/* Page Header Styling (matching referral page) */
.page-header {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(233, 30, 140, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title > i {
    font-size: 2rem;
    color: var(--primary-pink);
}

.page-title .title-text h1 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    font-family: "Fredoka", sans-serif !important;
    text-transform: none !important;
    text-shadow: none !important;
}

.page-title .title-subtitle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

.page-title .title-subtitle i {
    color: var(--primary-pink);
}

.subtitle-sep {
    color: rgba(255, 255, 255, 0.3);
}

/* Panel Cards */
.panel-card {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.panel-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.panel-header-title i {
    color: var(--primary-pink);
    font-size: 1.1rem;
}

.panel-header-title h2 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin: 0 !important;
    font-family: "Fredoka", sans-serif !important;
    text-transform: none !important;
    text-shadow: none !important;
}

.panel-body {
    padding: 1.25rem;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: start;
}

@media (max-width: 991.98px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Prevent panel sections from stretching */
.panel-section {
    height: auto !important;
    min-height: 0 !important;
}

.public-main > .container-fluid,
.public-main > .container-fluid > .row,
.public-main > .container-fluid > .row > [class*="col-"] {
    height: auto !important;
    flex: none !important;
}

/* Hero Section - matches dashboard styling */
.hero-panel {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    border: 1px solid rgba(233, 30, 140, 0.3);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e91e8c, #ffd700, #e91e8c);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(233, 30, 140, 0.15);
    border: 1px solid rgba(233, 30, 140, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e91e8c;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: "Fredoka", sans-serif !important;
    font-size: clamp(2rem, 5vw, 3rem) !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 1rem 0 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    text-shadow: none !important;
}

.hero-title .highlight {
    color: #e91e8c;
}

.hero-subtitle {
    font-family: "Fredoka", sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

.hero-cta-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #e91e8c, #c4177a);
    color: #fff;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 140, 0.4);
    color: #fff;
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #e91e8c;
    color: #fff;
}

/* Stats Row */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: "Fredoka", sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffd700;
}

.hero-stat-label {
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Two Column Layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

@media (max-width: 991px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Stack sections vertically within right column */
.right-column-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.right-column-stack > * {
    width: 100%;
}

/* Panel Cards - matching dashboard panels */
.panel-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    height: auto !important;
    align-self: start;
}

.panel-section.pink-accent {
    border-color: rgba(233, 30, 140, 0.2);
}

.panel-section.yellow-accent {
    border-color: rgba(255, 215, 0, 0.2);
}

.panel-section.green-accent {
    border-color: rgba(46, 204, 113, 0.2);
}

.panel-section .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-section.pink-accent .panel-header {
    background: rgba(233, 30, 140, 0.1);
    border-bottom-color: rgba(233, 30, 140, 0.2);
}

.panel-section.yellow-accent .panel-header {
    background: rgba(255, 215, 0, 0.1);
    border-bottom-color: rgba(255, 215, 0, 0.2);
}

.panel-section.green-accent .panel-header {
    background: rgba(46, 204, 113, 0.1);
    border-bottom-color: rgba(46, 204, 113, 0.2);
}

.panel-section .panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.panel-section.pink-accent .panel-title {
    color: #e91e8c !important;
}

.panel-section.yellow-accent .panel-title {
    color: #ffd700 !important;
}

.panel-section.green-accent .panel-title {
    color: #2ecc71 !important;
}

.panel-section.blue-accent {
    border-color: rgba(52, 152, 219, 0.2);
}

.panel-section.blue-accent .panel-header {
    background: rgba(52, 152, 219, 0.1);
    border-bottom-color: rgba(52, 152, 219, 0.2);
}

.panel-section.blue-accent .panel-title {
    color: #3498db !important;
}

/* Article Styles */
.article-summary {
    padding: 1rem 1.25rem;
    background: rgba(233, 30, 140, 0.1);
    border-left: 3px solid #e91e8c;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
    font-family: "Fredoka", sans-serif;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.6;
}

.article-summary p {
    margin: 0;
}

.article-body {
    font-family: "Fredoka", sans-serif;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 1rem;
}

.panel-section .panel-body {
    padding: 1.25rem;
    height: auto !important;
    flex: none !important;
    flex-grow: 0 !important;
}

/* Feature Items */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateX(4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-icon.pink {
    background: rgba(233, 30, 140, 0.15);
    color: #e91e8c;
}

.feature-icon.yellow {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
}

.feature-icon.green {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.feature-icon.blue {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.feature-content h4 {
    font-family: "Fredoka", sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin: 0 0 0.25rem 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
}

.feature-content p {
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 991px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.step-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e91e8c, #c4177a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Fredoka", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 1rem;
}

.step-title {
    font-family: "Fredoka", sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin: 0 0 0.5rem 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
}

.step-desc {
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    margin: 0;
}

/* Deck Cards Grid */
.deck-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 991px) {
    .deck-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .deck-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.deck-card-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.deck-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.deck-card-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.1));
}

.deck-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.deck-card-item:hover .deck-card-image img {
    transform: scale(1.1);
}

.deck-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.1));
    color: rgba(46, 204, 113, 0.4);
    font-size: 2.5rem;
}

.deck-card-count {
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    color: #2ecc71;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.deck-card-count i {
    font-size: 0.65rem;
}

.panel-badge {
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* Testimonial Cards */
.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.testimonial-item {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border-left: 3px solid #ffd700;
}

.testimonial-text {
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e8c, #9b59b6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    color: #fff;
    font-size: 0.85rem;
}

.testimonial-name {
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.testimonial-handle {
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-question i {
    color: #e91e8c;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.faq-item.open .faq-answer {
    padding: 0 1.25rem 1rem;
    max-height: 200px;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #e91e8c, #c4177a);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: "Fredoka", sans-serif !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 0.75rem 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
}

.cta-subtitle {
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.5rem 0;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #e91e8c;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #c4177a;
}

/* Footer */
.page-footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 3rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-links a {
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e91e8c;
}

.footer-copyright {
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* =============================================
   Category Detail Page Styles
   ============================================= */

/* Category Two Column Layout */
.category-two-column {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    align-items: start !important;
}

@media (max-width: 992px) {
    .category-two-column {
        grid-template-columns: 1fr;
    }
}

/* Category Combined Card */
.category-combined-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-self: start;
}

.combined-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.combined-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.combined-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.85) 100%);
}

.combined-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
}

.combined-header {
    flex-shrink: 0;
}

.combined-header .category-hero-title {
    font-size: 2rem;
    margin: 0.75rem 0;
}

.combined-header .category-hero-stats {
    margin-bottom: 0.75rem;
}

.combined-header .category-hero-desc {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    max-width: 100%;
}

.combined-header .category-hero-cta {
    margin-bottom: 1rem;
}

.combined-subcategories {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 0.75rem;
}

.combined-subcategories .section-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.combined-subcategories .subcategories-grid {
    flex: 1;
    overflow-y: auto;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    padding-right: 4px;
}

.combined-subcategories .subcategories-grid::-webkit-scrollbar {
    width: 4px;
}

.combined-subcategories .subcategories-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.combined-subcategories .subcategories-grid::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 140, 0.5);
    border-radius: 4px;
}

.combined-subcategories .subcat-card {
    border-radius: 8px;
}

.combined-subcategories .subcat-card-info {
    padding: 0.4rem;
}

.combined-subcategories .subcat-card-title {
    font-size: 0.7rem;
}

.combined-subcategories .subcat-card-count {
    font-size: 0.6rem;
}

@media (max-width: 768px) {
    .combined-card-content {
        padding: 1rem;
    }

    .combined-header .category-hero-title {
        font-size: 1.5rem;
    }

    .combined-subcategories .subcategories-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
}

/* Right Column Article */
.category-article {
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.95) 0%, rgba(20, 20, 35, 0.98) 100%);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(233, 30, 140, 0.2);
    align-self: start;
}

.article-header {
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.article-title {
    font-family: "Fredoka", sans-serif;
    font-size: 1.75rem;
    color: #e91e8c;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    text-align: center;
}

.article-lead {
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content {
    flex: 1;
    overflow-y: auto;
    font-family: "Fredoka", sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content::-webkit-scrollbar {
    width: 4px;
}

.article-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.article-content::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 140, 0.5);
    border-radius: 4px;
}

@media (max-width: 992px) {
    .category-article {
        height: auto;
        min-height: auto;
    }
}

/* Category Hero Panel (legacy - keeping for backwards compatibility) */
.category-hero-panel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
}

.category-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.category-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.7) 40%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

.category-hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
}

.category-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.category-back-link:hover {
    color: #e91e8c;
}

.category-back-link i {
    font-size: 1rem;
}

.category-hero-title {
    font-family: "Fredoka", sans-serif !important;
    font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 1rem 0 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

.category-hero-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    opacity: 1 !important;
}

/* Force stat pills to be white and fully opaque */
.category-hero-stats .profile-stat-pill {
    opacity: 1 !important;
    color: #ffffff !important;
}

.category-hero-stats .profile-stat-pill * {
    opacity: 1 !important;
    color: #ffffff !important;
}

.category-hero-stats .profile-stat-pill .stat-label {
    opacity: 0.7 !important;
    color: #ffffff !important;
}

.category-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Fredoka", sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.category-stat i {
    color: #e91e8c;
    font-size: 1rem;
}

.category-hero-desc {
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .category-hero-desc {
        margin-bottom: 0;
    }
}

.category-hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Subcategory Grid */
.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.subcategory-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.15);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.subcategory-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(46, 204, 113, 0.3);
    transform: translateX(4px);
}

.subcategory-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(46, 204, 113, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2ecc71;
    font-size: 1rem;
    flex-shrink: 0;
}

.subcategory-info {
    flex: 1;
    min-width: 0;
}

.subcategory-name {
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subcategory-count {
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Make deck card items work as links */
a.deck-card-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

a.deck-card-item:hover {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 576px) {
    .category-hero-panel {
        min-height: 300px;
    }

    .category-hero-content {
        padding: 1.5rem;
    }

    .category-hero-stats {
        gap: 1rem;
    }

    .subcategory-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HYPERLOCAL CATEGORY PAGE STYLES
   ============================================ */

/* Combined Card - Header + Subcategories */
.category-combined-card {
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.95) 0%, rgba(20, 20, 35, 0.98) 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #fff !important;
    box-sizing: border-box;
    position: relative;
}

/* On mobile, ensure border only wraps the front card content, not container height */
@media (max-width: 991px) {
    .flip-card-container .flip-card-front.category-combined-card {
        border: 2px solid #fff !important;
        height: fit-content !important;
        min-height: auto !important;
        max-height: none !important;
    }
}

.combined-hero-section {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
}

@media (max-width: 767px) {
    .combined-hero-section {
        align-items: flex-end;
        min-height: auto;
    }
}

.combined-hero-section .category-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.combined-hero-section .category-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.combined-hero-section .category-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.combined-hero-section .category-hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
    opacity: 1 !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* Ensure stat pills are fully opaque and white */
.combined-hero-section .category-hero-content .profile-stat-pill,
.combined-hero-section .category-hero-content .profile-stat-pill * {
    opacity: 1 !important;
    color: #ffffff !important;
}

.combined-hero-section .category-hero-content .profile-stat-pill .stat-label {
    opacity: 0.7 !important;
    color: #ffffff !important;
}

.combined-subcategories-section {
    padding: 1.5rem 2rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    border-color: transparent !important;
    border-style: none !important;
    border-width: 0 !important;
}

#profileMapContainer,
#profileMapContainer *,
#profileMapContainer::before,
#profileMapContainer::after,
.combined-subcategories-section *,
.combined-subcategories-section *::before,
.combined-subcategories-section *::after,
#userLocationMap,
#userLocationMap *,
#userLocationMap::before,
#userLocationMap::after,
.profile-map,
.profile-map *,
.profile-map::before,
.profile-map::after {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    border-color: transparent !important;
    border-style: none !important;
    border-width: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

@media (max-width: 767px) {
    .combined-subcategories-section {
        padding: 1rem 1.25rem 1rem;
    }
}

.combined-subcategories-section .section-title {
    color: #e91e8c;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Category Hero Top Row - Back Link + Share Buttons */
.category-hero-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
}

/* Share Buttons - 5 per row */
.category-share-buttons {
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 0.5rem;
    justify-content: end;
}

.category-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    color: #fff;
}

.category-share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.category-share-btn.twitter {
    background: #000;
}

.category-share-btn.facebook {
    background: #1877f2;
}

.category-share-btn.linkedin {
    background: #0a66c2;
}

.category-share-btn.bluesky {
    background: #0085ff;
}

.category-share-btn.threads {
    background: #000;
}

.category-share-btn.whatsapp {
    background: #25d366;
}

.category-share-btn.telegram {
    background: #0088cc;
}

.category-share-btn.reddit {
    background: #ff4500;
}

.category-share-btn.pinterest {
    background: #e60023;
}

.category-share-btn.email {
    background: #ea4335;
}

/* SVG icons in buttons */
.category-share-btn svg {
    display: block;
}

/* Main Content */
.category-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Two Column Layout */
.category-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.left-column-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .category-two-column {
        grid-template-columns: 1fr;
    }
}

/* Article */
.category-article {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    border: 2px solid #fff;
    border-radius: 16px;
    padding: 2rem;
}

.article-header {
    margin-bottom: 1.5rem;
}

.article-title {
    font-family: "Fredoka", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #e91e8c;
    margin: 0;
    text-align: center;
}

.article-lead {
    font-family: "Fredoka", sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
    font-style: italic;
}

.article-content {
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    max-height: 400px;
    overflow-y: auto;
    padding-bottom: 1rem;
    mask-image: linear-gradient(to bottom, black 0%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 90%, transparent 100%);
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content p:last-child {
    margin-bottom: 0;
}

/* Category Section */
.category-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
}

.section-title {
    font-family: "Fredoka", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e91e8c;
    margin: 0 0 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Subcategories Grid */
.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    min-height: 400px;
    max-height: 400px;
    overflow-y: auto;
    align-content: start;
    padding-top: 1rem;
    padding-right: 0.75rem;
    mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
}

.subcategories-grid::-webkit-scrollbar {
    width: 4px;
}

.subcategories-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.subcategories-grid::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 140, 0.5);
    border-radius: 4px;
}

.subcat-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    border: 1px solid #fff;
}

.subcat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.subcat-card-image {
    aspect-ratio: 4/3;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
}

.subcat-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subcat-card-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
}

.subcat-card-info {
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.subcat-card-title {
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subcat-card-count {
    font-family: "Fredoka", sans-serif;
    font-size: 0.7rem;
    color: #e91e8c;
    background: rgba(233, 30, 140, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    flex-shrink: 0;
}

/* Trivia card info - title takes full width */
.trivia-card-info {
    justify-content: center;
}

.trivia-card-info .subcat-card-title {
    width: 100%;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
}

/* CTA Banner */
.category-cta {
    background: linear-gradient(135deg, #e91e8c 0%, #c4177a 100%);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 2px solid white;
}

.cta-inner h2 {
    font-family: "Fredoka", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.cta-inner p {
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.25rem 0;
}

.cta-button {
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    background: #fff;
    color: #e91e8c;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: #c4177a;
}

/* Other Categories */
.other-categories {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    border: 2px solid #e91e8c;
    border-radius: 16px;
    padding: 1.5rem;
}

.other-categories-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.other-cat-chip {
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    background: rgba(233, 30, 140, 0.1);
    border: 1px solid rgba(233, 30, 140, 0.2);
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.other-cat-chip:hover {
    background: rgba(233, 30, 140, 0.2);
    border-color: #e91e8c;
    color: #fff;
}

.other-cat-name {
    font-weight: 500;
}

.other-cat-count {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.page-footer {
    margin-top: 2rem;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Hyperlocal Category Mobile */
@media (max-width: 768px) {
    .category-hero-cta {
        display: none;
    }

    .category-hero-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .category-share-buttons {
        justify-self: end;
        gap: 0.4rem;
    }

    .category-share-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .category-share-btn svg {
        width: 14px;
        height: 14px;
    }

    .category-article {
        padding: 1.25rem;
    }

    .article-title {
        font-size: 1.25rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .subcategories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding-right: 0;
        min-height: 300px;
        max-height: 300px;
    }

    .subcat-card-info {
        padding: 0.4rem;
    }

    .subcat-card-title {
        font-size: 0.7rem;
        width: 100%;
    }

    .subcat-card-count {
        display: none;
    }

    .category-cta {
        padding: 1.75rem 1.25rem;
    }

    .other-cat-chip {
        font-size: 0.5rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 0.3rem 0.6rem;
    }

    .other-cat-count {
        font-size: 0.5rem;
    }
}

/* ============================================
   HYPERLOCAL MAIN PAGE STYLES
   ============================================ */

/* Badge in hero (replaces back link on main page) */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.3), rgba(233, 30, 140, 0.2));
    border: 1px solid rgba(233, 30, 140, 0.5);
    border-radius: 50px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: "Fredoka", sans-serif;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-badge:hover {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.5), rgba(233, 30, 140, 0.4));
    color: #fff;
    transform: translateY(-1px);
}

.category-badge i {
    color: #ffd700;
}

/* Step blocks for How It Works */
.hyperlocal-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.step-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(233, 30, 140, 0.1);
    border-radius: 12px;
    border-left: 3px solid #e91e8c;
}

.step-block .step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #e91e8c, #c4177a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    font-family: "Fredoka", sans-serif;
}

.step-block .step-content {
    flex: 1;
    text-align: left;
}

.step-block .step-content h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    font-family: "Fredoka", sans-serif;
    text-align: left;
}

.step-block .step-content p {
    font-family: "Fredoka", sans-serif;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
    text-align: left;
}

/* Simple feature list */
.feature-list-simple {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.feature-list-simple li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-list-simple li:last-child {
    border-bottom: none;
}

.feature-list-simple li i {
    color: #e91e8c;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.feature-list-simple li strong {
    color: #fff;
}

/* Simple FAQ */
.faq-simple {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item-simple {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid #e91e8c;
}

.faq-item-simple strong {
    font-family: "Fredoka", sans-serif;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.faq-item-simple p {
    font-family: "Fredoka", sans-serif;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Article content headers */
.article-content h3 {
    color: #e91e8c;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    font-family: "Fredoka", sans-serif;
}

.article-content h3:first-child {
    margin-top: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .category-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .step-block {
        padding: 0.75rem;
    }

    .step-block .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .step-block .step-content h3 {
        font-size: 0.9rem;
    }

    .step-block .step-content p {
        font-size: 0.85rem;
    }

    .feature-list-simple li {
        font-size: 0.85rem;
    }

    .faq-item-simple {
        padding: 0.75rem;
    }

    .faq-item-simple strong {
        font-size: 0.85rem;
    }

    .faq-item-simple p {
        font-size: 0.8rem;
    }
}

/* ============================================
   FLIP CARD STYLES (Mobile Only)
   ============================================ */

/* Desktop: Hide flip button, ensure normal display */
.flip-card-toggle-wrapper {
    display: none !important;
}

/* Desktop: Ensure flip card classes don't affect layout */
.flip-card-container .flip-card-front,
.flip-card-container .flip-card-back {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    backface-visibility: visible;
}

/* Mobile flip card styles - max-width: 991px to match category-two-column breakpoint */
@media (max-width: 991px) {
    /* Show flip button on mobile */
    .flip-card-toggle-wrapper {
        display: flex !important;
        justify-content: flex-end;
        position: fixed;
        bottom: 65px;
        right: 25px;
        z-index: 1001;
        margin-bottom: 0;
    }

    .flip-card-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 35px;
        height: 35px;
        padding: 0;
        background: linear-gradient(135deg, #e91e8c, #c4177a);
        border: 2px solid #fff;
        border-radius: 50%;
        color: #fff;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(233, 30, 140, 0.3);
    }

    .flip-card-toggle span {
        display: none !important;
    }

    .flip-card-toggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(233, 30, 140, 0.4);
    }

    .flip-card-toggle:active {
        transform: scale(0.98);
    }

    .flip-card-toggle i {
        font-size: 1.5rem;
        transition: transform 0.3s ease;
    }

    .flip-card-container.flipped .flip-card-toggle i {
        transform: rotate(180deg);
    }

    /* Flip card - use simple show/hide with animation */
    .flip-card-container .flip-card-front {
        display: block !important;
        animation: flipIn 0.4s ease forwards;
    }

    .flip-card-container .flip-card-back {
        display: none !important;
    }

    /* Aura home: Ensure back is hidden when not flipped */
    #aura-home-flip-container:not(.flipped) .flip-card-back {
        display: none !important;
    }

    /* Flipped state */
    .flip-card-container.flipped .flip-card-front {
        display: none !important;
    }

    .flip-card-container.flipped .flip-card-back {
        display: flex !important;
        flex-direction: column !important;
        animation: flipIn 0.4s ease forwards;
    }

    @keyframes flipIn {
        0% {
            opacity: 0;
            transform: rotateY(-90deg) scale(0.9);
        }
        100% {
            opacity: 1;
            transform: rotateY(0deg) scale(1);
        }
    }

    /* Mobile: Match both card heights */
    .flip-card-container .flip-card-front.category-combined-card {
        height: fit-content !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: hidden !important;
    }

    .flip-card-container .flip-card-back {
        max-height: calc(100vh - 180px) !important;
        overflow: hidden !important;
    }

    .flip-card-container .flip-card-front .quiz-cards-grid {
        flex: 1 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .flip-card-container.flipped .flip-card-back.category-article {
        max-height: calc(100vh - 180px) !important;
        overflow: hidden !important;
    }

    .flip-card-container.flipped .flip-card-back .completed-quizzes-list {
        flex: 1 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================
   NAV-AURA NAVBAR STYLES
   ============================================ */

/* Navbar Brand Styling */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-logo-text {
    max-height: 28px;
    width: auto;
}

/* Hide text logo on mobile */
@media (max-width: 768px) {
    .navbar-logo-text {
        display: none;
    }
}

/* Compact Navigation Styles - Courier Font Throughout */
.nav-compact {
    gap: 0.15rem !important;
}

.nav-compact .nav-link {
    font-size: 0.7rem !important;
    padding: 0.4rem 0.5rem !important;
    white-space: nowrap;
    font-family: "Courier New", Courier, monospace !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    color: #fff !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0.5rem !important;
}

.nav-compact .nav-link i {
    font-size: 0.8rem !important;
    margin-right: 0.2rem;
}

.nav-compact .nav-logout {
    padding: 0.4rem 0.6rem !important;
    margin-left: 0.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-compact .nav-logout i {
    margin-right: 0;
}

/* Guest Navigation Links */
.nav-compact .nav-guest-link {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
}

.nav-compact .nav-guest-link:hover {
    color: #ffd700 !important;
}

.nav-compact .nav-guest-link i {
    font-size: 0.9rem;
}

/* Guest Navigation Buttons */
.nav-compact .nav-guest-btn {
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    text-decoration: none !important;
}

.nav-compact .nav-guest-btn:not(.nav-signup-btn) {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

.nav-compact .nav-guest-btn:not(.nav-signup-btn):hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #e91e8c !important;
    color: #e91e8c !important;
}

.nav-compact .nav-signup-btn {
    background: linear-gradient(135deg, #e91e8c, #c4177a) !important;
    border: 1px solid #e91e8c !important;
    color: #fff !important;
    margin-left: 0.5rem !important;
}

.nav-compact .nav-signup-btn:hover {
    background: linear-gradient(135deg, #ff3aa0, #e91e8c) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.3) !important;
}

/* Mobile guest buttons */
.mobile-menu-dropdown .nav-guest-btn {
    display: flex !important;
    align-items: center;
    padding: 0.75rem 1rem !important;
    color: rgba(0, 0, 0, 0.8) !important;
}

.mobile-menu-dropdown .nav-guest-btn i {
    color: #e91e8c;
    margin-right: 0.5rem;
}

/* Active state for nav links - override the circle from gamifeye-styles.css */
.nav-compact .nav-link.active {
    background: rgba(233, 30, 140, 0.3) !important;
    color: #fff !important;
    border-radius: 0.5rem !important;
    width: auto !important;
    height: auto !important;
    display: inline-flex !important;
    padding: 0.4rem 0.5rem !important;
}

/* Mobile Menu Direct Nav Links */
.mobile-menu-dropdown > .nav-link {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    padding: 0.75rem 1rem !important;
    color: rgba(0, 0, 0, 0.8) !important;
    font-size: 0.85rem !important;
    font-family: "Courier New", Courier, monospace !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-decoration: none;
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
}

.mobile-menu-dropdown > .nav-link i {
    margin-right: 0.5rem;
    color: #e91e8c;
}

.mobile-menu-dropdown > .nav-link:hover {
    background: rgba(233, 30, 140, 0.2) !important;
    color: #000 !important;
}

.mobile-menu-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0.5rem 0;
}

.mobile-menu-dropdown > .nav-link.active {
    background: rgba(233, 30, 140, 0.2) !important;
    color: #000 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

/* Responsive adjustments for very wide screens */
@media (min-width: 1400px) {
    .nav-compact .nav-link {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.6rem !important;
    }
}

/* Hide some items on smaller desktop screens */
@media (max-width: 1200px) {
    .nav-compact .nav-link {
        font-size: 0.65rem !important;
        padding: 0.35rem 0.4rem !important;
    }

    .nav-compact .nav-link i {
        font-size: 0.75rem !important;
    }
}

/* Desktop Nav Stat Badges (Klout & Aura) */
.nav-stat-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: "Courier New", Courier, monospace;
    margin-right: 0.3rem;
}

.nav-stat-badge.klout {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.nav-stat-badge.aura {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2), rgba(40, 167, 69, 0.1));
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.nav-stat-badge i {
    font-size: 0.85rem;
}

.nav-stat-badge span {
    font-weight: 700;
}

.nav-stat-badge .stat-label {
    font-size: 0.55rem;
    opacity: 0.8;
    text-transform: uppercase;
    font-weight: 600;
}

/* Mobile Nav Stats (Top Bar) */
.mobile-nav-stats {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    margin-right: 0.5rem;
}

.mobile-nav-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.5rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: "Courier New", Courier, monospace;
}

.mobile-nav-stat.klout {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.15));
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
}

.mobile-nav-stat.aura {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.25), rgba(40, 167, 69, 0.15));
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #28a745;
}

.mobile-nav-stat i {
    font-size: 0.75rem;
}

/* Mobile Menu Stats Display */
.mobile-menu-stats {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.8));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    font-family: "Courier New", Courier, monospace;
    flex: 1;
    justify-content: center;
}

.mobile-menu-stat.klout {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.mobile-menu-stat.aura {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2), rgba(40, 167, 69, 0.1));
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.mobile-menu-stat i {
    font-size: 1rem;
}

.mobile-menu-stat .stat-value {
    font-size: 0.9rem;
    font-weight: 700;
}

.mobile-menu-stat .stat-label {
    font-size: 0.6rem;
    opacity: 0.8;
    text-transform: uppercase;
    font-weight: 600;
}

.mobile-menu-stat.tokens {
    background: linear-gradient(135deg, rgba(212, 169, 87, 0.2), rgba(212, 169, 87, 0.1));
    border: 1px solid rgba(212, 169, 87, 0.3);
    color: #d4a957;
    cursor: pointer;
}

/* Token Balance in Nav (Desktop) */
.nav-token-balance {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    background: linear-gradient(135deg, rgba(212, 169, 87, 0.2), rgba(212, 169, 87, 0.1));
    border: 1px solid rgba(212, 169, 87, 0.3);
    border-radius: 20px;
    color: #d4a957;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: "Courier New", Courier, monospace;
}

.nav-token-balance:hover {
    background: linear-gradient(135deg, rgba(212, 169, 87, 0.3), rgba(212, 169, 87, 0.2));
}

.nav-token-balance i.bi-hexagon-fill {
    font-size: 0.85rem;
}

.nav-token-balance #navTokenBalance {
    font-weight: 700;
}

.nav-buy-tokens {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(212, 169, 87, 0.3);
    border-radius: 50%;
    color: #d4a957;
    text-decoration: none;
    margin-left: 0.2rem;
    transition: all 0.2s;
}

.nav-buy-tokens:hover {
    background: rgba(212, 169, 87, 0.5);
    color: #fff;
    transform: scale(1.1);
}

.nav-buy-tokens i {
    font-size: 0.7rem;
}

/* Subscription Badge in Nav (Desktop) */
.nav-subscription-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: "Courier New", Courier, monospace;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.nav-subscription-badge i {
    font-size: 0.75rem;
}

.nav-subscription-badge.free {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.2), rgba(156, 163, 175, 0.1));
    border: 1px solid rgba(156, 163, 175, 0.3);
    color: #9ca3af;
}

.nav-subscription-badge.basic {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.nav-subscription-badge.pro {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(147, 51, 234, 0.1));
    border: 1px solid rgba(147, 51, 234, 0.3);
    color: #9333ea;
}

.nav-subscription-badge.premium {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.nav-subscription-badge:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

/* Referral Badge in Nav (Desktop) */
.nav-referral-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    color: #10b981;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: "Courier New", Courier, monospace;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.nav-referral-badge i {
    font-size: 0.75rem;
}

.nav-referral-badge:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
    color: #34d399;
}

/* Mobile Menu Subscription Link */
.mobile-menu-dropdown .subscription-link {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu-dropdown .subscription-link.free i {
    color: #9ca3af;
}

.mobile-menu-dropdown .subscription-link.basic i {
    color: #3b82f6;
}

.mobile-menu-dropdown .subscription-link.pro i {
    color: #9333ea;
}

.mobile-menu-dropdown .subscription-link.premium i {
    color: #ffd700;
}

/* Mobile Menu Referral Link */
.mobile-menu-dropdown .referral-link {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu-dropdown .referral-link i {
    color: #10b981;
}

/* Mobile Nav Stats Container (override) */
.mobile-nav-stats {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-right: 0.5rem;
}

.mobile-nav-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.5rem;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: "Fredoka", sans-serif;
    transition: all 0.2s;
}

.mobile-nav-stat.klout {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.15));
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
}

.mobile-nav-stat.klout i {
    font-size: 0.75rem;
}

.mobile-nav-stat.aura {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.25), rgba(40, 167, 69, 0.15));
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #28a745;
}

.mobile-nav-stat.aura i {
    font-size: 0.75rem;
}

.mobile-nav-stat.tokens {
    background: linear-gradient(135deg, rgba(212, 169, 87, 0.25), rgba(212, 169, 87, 0.15));
    border: 1px solid rgba(212, 169, 87, 0.4);
    color: #d4a957;
    cursor: pointer;
}

.mobile-nav-stat.tokens:active {
    transform: scale(0.95);
}

.mobile-nav-stat.tokens i.bi-hexagon-fill {
    font-size: 0.8rem;
}

.mobile-nav-stat.tokens .add-icon {
    font-size: 0.65rem;
    opacity: 0.8;
    margin-left: 0.1rem;
}

/* Hide on very small screens - show only tokens */
@media (max-width: 380px) {
    .mobile-nav-stat.klout,
    .mobile-nav-stat.aura {
        display: none;
    }
}

.mobile-nav-token-balance {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    background: linear-gradient(135deg, rgba(212, 169, 87, 0.25), rgba(212, 169, 87, 0.15));
    border: 1px solid rgba(212, 169, 87, 0.4);
    border-radius: 20px;
    color: #d4a957;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 0.5rem;
    transition: all 0.2s;
    font-family: "Fredoka", sans-serif;
}

.mobile-nav-token-balance:active {
    transform: scale(0.95);
}

.mobile-nav-token-balance i.bi-hexagon-fill {
    font-size: 0.9rem;
}

.mobile-nav-token-balance #navTokenBalanceMobile {
    font-weight: 700;
}

.mobile-nav-token-balance .add-icon {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Nav Token Purchase Modal */
.nav-token-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.nav-token-modal-overlay.active {
    display: flex;
}

.nav-token-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 950px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: navModalSlideIn 0.3s ease;
}

@keyframes navModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-token-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-token-modal-header h3 {
    margin: 0;
    color: #fff !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    font-family: "Fredoka", sans-serif !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-token-modal-header h3 i {
    color: #d4a957 !important;
}

.nav-token-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.nav-token-modal-close:hover {
    color: #fff;
}

.nav-token-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

/* Token Packages Grid */
.nav-token-modal .token-packages-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.nav-token-modal .token-package {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.875rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.nav-token-modal .token-package:hover {
    border-color: rgba(212, 169, 87, 0.5);
    transform: translateY(-2px);
}

.nav-token-modal .token-package.selected {
    border-color: #d4a957;
    background: rgba(212, 169, 87, 0.1);
}

.nav-token-modal .token-package.popular {
    border-color: rgba(155, 89, 182, 0.5);
}

.nav-token-modal .token-package.popular::before {
    content: "Popular";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.nav-token-modal .package-tokens {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4a957;
}

.nav-token-modal .package-tokens span {
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
}

.nav-token-modal .package-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    margin: 0.35rem 0;
}

.nav-token-modal .package-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.nav-token-modal .package-per-token {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.2rem;
}

/* Token Checkout Section */
.nav-token-modal .token-checkout-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
}

.nav-token-modal .checkout-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.nav-token-modal .checkout-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}

.nav-token-modal .checkout-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.nav-token-modal .checkout-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4a957;
}

.nav-token-modal .stripe-checkout-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #635bff, #5851ea);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.nav-token-modal .stripe-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 91, 255, 0.4);
}

.nav-token-modal .stripe-checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.nav-token-modal .stripe-badge {
    text-align: center;
    padding: 0.75rem 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.nav-token-modal .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: navSpinner 0.8s linear infinite;
}

@keyframes navSpinner {
    to {
        transform: rotate(360deg);
    }
}

/* Tablet - 3 columns */
@media (max-width: 900px) {
    .nav-token-modal .token-packages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .nav-token-modal .package-tokens {
        font-size: 1.75rem;
    }
    .nav-token-modal .package-price {
        font-size: 1.25rem;
    }
}

/* Mobile - 2 columns */
@media (max-width: 600px) {
    .nav-token-modal .token-packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    .nav-token-modal .token-package {
        padding: 0.75rem 0.4rem;
    }
    .nav-token-modal .package-tokens {
        font-size: 1.4rem;
    }
    .nav-token-modal .package-tokens span {
        font-size: 0.6rem;
    }
    .nav-token-modal .package-name {
        font-size: 0.7rem;
    }
    .nav-token-modal .package-price {
        font-size: 1rem;
    }
    .nav-token-modal .package-per-token {
        font-size: 0.6rem;
    }
}

/* Currency Selector */
.currency-selector-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.currency-selector-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: "Fredoka", sans-serif;
}

.currency-selector {
    position: relative;
    min-width: 140px;
}

.currency-selector select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    color: #fff;
    font-size: 0.85rem;
    font-family: "Fredoka", sans-serif;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}

.currency-selector select:hover {
    border-color: rgba(212, 169, 87, 0.4);
}

.currency-selector select:focus {
    outline: none;
    border-color: #d4a957;
    box-shadow: 0 0 0 2px rgba(212, 169, 87, 0.2);
}

.currency-selector select option {
    background: #1a1a2e;
    color: #fff;
    padding: 0.5rem;
}

.currency-selector::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

/* Payment Method Toggle */
.payment-method-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.payment-method-toggle .toggle-label {
    font-size: 0.85rem;
    font-weight: 600;
    font-family: "Fredoka", sans-serif;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

.payment-method-toggle .toggle-label.active {
    color: #fff;
}

#stripeLabel.active {
    color: #635bff;
}

#kloutLabel.active {
    color: #ffd700;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #635bff, #5851ea);
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #ffd700, #ffa500);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Klout Checkout Button */
.nav-token-modal .klout-checkout-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    border: none;
    border-radius: 8px;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1rem;
    font-family: "Fredoka", sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.nav-token-modal .klout-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.nav-token-modal .klout-checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.nav-token-modal .klout-badge {
    text-align: center;
    padding: 0.75rem 0;
    font-size: 0.85rem;
    color: #ffd700;
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* Klout price styling in packages */
.nav-token-modal .package-klout-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffd700;
    display: none;
}

.nav-token-modal .package-klout-price i {
    font-size: 0.8rem;
    margin-right: 0.15rem;
}

.nav-token-modal.klout-mode .package-price {
    display: none;
}

.nav-token-modal.klout-mode .package-klout-price {
    display: block;
}

.nav-token-modal.klout-mode .package-per-token {
    display: none;
}

/* Token Purchase Success Modal */
.token-success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: tokenSuccessFadeIn 0.3s ease;
}

@keyframes tokenSuccessFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.token-success-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    border: 1px solid rgba(212, 169, 87, 0.3);
    max-width: 420px;
    width: 100%;
    text-align: center;
    padding: 2.5rem 2rem;
    animation: tokenSuccessBounceIn 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes tokenSuccessBounceIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.token-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2), rgba(40, 167, 69, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 2px solid rgba(40, 167, 69, 0.4);
}

.token-success-icon i {
    font-size: 2.5rem;
    color: #28a745;
}

.token-success-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-family: "Fredoka", sans-serif;
}

.token-success-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-family: "Fredoka", sans-serif;
}

.token-success-amount {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 169, 87, 0.15);
    border: 1px solid rgba(212, 169, 87, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.token-success-amount i {
    color: #d4a957;
    font-size: 1.25rem;
}

.token-success-amount span {
    color: #d4a957;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: "Fredoka", sans-serif;
}

.token-success-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.8), rgba(40, 167, 69, 0.9));
    border: 1px solid rgba(40, 167, 69, 0.5);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: "Fredoka", sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.token-success-btn:hover {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.9), rgba(40, 167, 69, 1));
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

@keyframes tokenSuccessFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ============================================
   AURA TRIVIA PAGE STYLES
   ============================================ */

.quiz-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    padding: 0.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

@media (max-width: 767px) {
    .quiz-cards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.35rem !important;
        padding: 0.25rem !important;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

@media (min-width: 768px) {
    .quiz-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
}

/* Pink scrollbar for quiz cards grid (aura/trivia) */
.combined-subcategories-section .quiz-cards-grid::-webkit-scrollbar {
    width: 6px;
}

.combined-subcategories-section .quiz-cards-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.combined-subcategories-section .quiz-cards-grid::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 140, 0.5);
    border-radius: 3px;
}

.combined-subcategories-section .quiz-cards-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 30, 140, 0.7);
}

.quiz-card-item {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    width: 100% !important;
    min-width: 0;
}

.quiz-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.quiz-card-item.quiz-done {
    opacity: 0.7;
}

.quiz-card-item.quiz-done:hover {
    opacity: 1;
}

.quiz-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.quiz-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    z-index: 2;
}

.quiz-card-deck {
    font-family: "Fredoka", sans-serif;
    font-size: 0.65rem;
    color: #ffd645;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-align: center;
}

.quiz-card-name {
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: center;
}

.quiz-card-questions {
    font-family: "Fredoka", sans-serif;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
    text-align: right;
}

.quiz-card-per-answer {
    font-family: "Fredoka", sans-serif;
    font-size: 0.65rem;
    color: #ffd700;
    margin-top: 0.15rem;
    font-weight: 600;
    text-align: right;
}

/* Aura Trivia - Prize Badge */
.quiz-cards-grid .quiz-take-badge {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%) !important;
    padding: 12px 14px !important;
    border-radius: 12px 12px 0 0 !important;
    text-align: center !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: auto !important;
}

.quiz-cards-grid .quiz-take-text {
    font-family: "Fredoka", sans-serif !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    background: linear-gradient(90deg, #ffd700, #ffaa00, #ffd700) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: shimmerText 2s linear infinite !important;
}

@keyframes shimmerText {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.quiz-cards-grid .quiz-take-reward {
    font-family: "Fredoka", sans-serif !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    color: #ffd700 !important;
    animation: rewardGlow 2.5s ease-in-out infinite !important;
    display: inline-block !important;
}

@media (max-width: 767px) {
    .quiz-cards-grid .quiz-take-text {
        font-size: 8px !important;
        letter-spacing: 0.5px !important;
    }

    .quiz-cards-grid .quiz-take-reward {
        font-size: 10px !important;
    }

    .quiz-cards-grid .quiz-take-badge {
        padding: 6px 8px !important;
    }

    .quiz-cards-grid .quiz-card-deck {
        display: none !important;
    }

    .quiz-cards-grid .quiz-card-name {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important;
    }

    .quiz-cards-grid .quiz-card-questions {
        font-size: 0.5rem !important;
        text-align: center !important;
    }

    .quiz-cards-grid .quiz-card-per-answer {
        text-align: center !important;
    }
}

@keyframes rewardGlow {
    0%,
    100% {
        color: #ffd700;
        text-shadow:
            0 0 8px rgba(255, 215, 0, 0.5),
            0 0 15px rgba(255, 215, 0, 0.3);
        filter: brightness(1);
    }
    50% {
        color: #fff;
        text-shadow:
            0 0 12px rgba(255, 215, 0, 0.9),
            0 0 25px rgba(255, 215, 0, 0.6),
            0 0 40px rgba(255, 140, 0, 0.4);
        filter: brightness(1.2);
    }
}

.quiz-cards-grid .quiz-completed-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #ffd645;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
}

.quiz-cards-grid .quiz-completed-badge i {
    margin-right: 0.25rem;
}

.quiz-filter-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.quiz-toggle-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.quiz-toggle-slider {
    position: relative;
    width: 40px;
    height: 22px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 11px;
    transition: background 0.2s;
}

.quiz-toggle-switch input,
.aura-location-toggle-switch input {
    display: none;
}

.quiz-toggle-switch input:checked + .quiz-toggle-slider {
    background: #10b981;
}

.quiz-toggle-slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.quiz-toggle-switch input:checked + .quiz-toggle-slider::before {
    transform: translateX(18px);
}

.quiz-toggle-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.quiz-stats-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.quiz-stat-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
}

.quiz-stat-badge.trophy {
    background: rgba(255, 214, 69, 0.2);
    color: #ffd645;
}

.quiz-stat-badge.available {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.quiz-stat-badge.completed {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

/* Aura Trivia - Make both columns same height (desktop only) */
/* Aura Trivia Layout - Desktop: Fixed height with scrollable list */
@media (min-width: 992px) {
    .aura-trivia-layout .category-article {
        max-height: 800px !important;
        overflow: hidden !important;
    }

    .aura-trivia-layout .completed-quizzes-list {
        max-height: 680px !important;
        overflow-y: auto !important;
    }
}

/* Hyperlocal, Trivia, Aura Map, Stamps & Podcast Layout - Mobile: Fixed height with scrollable article */
@media (max-width: 991px) {
    #hyperlocal-flip-container.flipped .flip-card-back.category-article,
    #trivia-flip-container.flipped .flip-card-back.category-article,
    #aura-map-flip-container.flipped .flip-card-back.category-article,
    #aura-stamps-flip-container.flipped .flip-card-back.category-article,
    #podcast-flip-container.flipped .flip-card-back.category-article {
        max-height: calc(100vh - 180px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    #hyperlocal-flip-container .category-article::-webkit-scrollbar,
    #trivia-flip-container .category-article::-webkit-scrollbar,
    #aura-map-flip-container .category-article::-webkit-scrollbar,
    #podcast-flip-container .category-article::-webkit-scrollbar,
    #aura-stamps-flip-container .category-article::-webkit-scrollbar {
        width: 6px;
    }

    #hyperlocal-flip-container .category-article::-webkit-scrollbar-track,
    #trivia-flip-container .category-article::-webkit-scrollbar-track,
    #aura-map-flip-container .category-article::-webkit-scrollbar-track,
    #aura-stamps-flip-container .category-article::-webkit-scrollbar-track,
    #podcast-flip-container .category-article::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
    }

    #hyperlocal-flip-container .category-article::-webkit-scrollbar-thumb,
    #trivia-flip-container .category-article::-webkit-scrollbar-thumb,
    #aura-map-flip-container .category-article::-webkit-scrollbar-thumb,
    #aura-stamps-flip-container .category-article::-webkit-scrollbar-thumb,
    #podcast-flip-container .category-article::-webkit-scrollbar-thumb {
        background: rgba(233, 30, 140, 0.5);
        border-radius: 3px;
    }

    #hyperlocal-flip-container .category-article::-webkit-scrollbar-thumb:hover,
    #trivia-flip-container .category-article::-webkit-scrollbar-thumb:hover,
    #aura-map-flip-container .category-article::-webkit-scrollbar-thumb:hover,
    #aura-stamps-flip-container .category-article::-webkit-scrollbar-thumb:hover,
    #podcast-flip-container .category-article::-webkit-scrollbar-thumb:hover {
        background: rgba(233, 30, 140, 0.7);
    }
}

/* Completed Quizzes List */
.completed-quizzes-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-content: start;
    gap: 1rem;
    margin-top: 1rem;
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Pink scrollbar for completed quizzes list */
.completed-quizzes-list::-webkit-scrollbar {
    width: 6px;
}

.completed-quizzes-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.completed-quizzes-list::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 140, 0.5);
    border-radius: 3px;
}

.completed-quizzes-list::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 30, 140, 0.7);
}

@media (max-width: 767px) {
    .completed-quizzes-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

.completed-quiz-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: background 0.2s;
}

.completed-quiz-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.completed-quiz-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 2px solid #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.completed-quiz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.completed-quiz-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-size: 1.25rem;
}

.completed-quiz-title {
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}

.completed-quiz-prize {
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffd700;
}

.completed-quiz-date {
    font-family: "Fredoka", sans-serif;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.25rem;
}

.no-completed-quizzes {
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(255, 255, 255, 0.5);
    grid-column: 1 / -1;
}

.no-completed-quizzes i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.no-completed-quizzes p {
    margin: 0;
    font-size: 0.9rem;
}

/* User Avatar Marker on Map */
.user-map-avatar-marker {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 0px solid #ffd700;
    background-size: cover;
    background-position: center calc(50%);
    background-color: #1a1a2e;
    box-sizing: border-box;
    box-shadow: 0 0 15px 5px rgba(255, 215, 0, 0.6);
}

/* ===========================================
   STAMP STUDIO STYLES
   =========================================== */

@keyframes pulseRotate {
    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    50% {
        transform: scale(1) rotate(0deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

/* Custom Slider Styles */
.stamp-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.stamp-slider-pink {
    background: linear-gradient(90deg, rgba(233, 30, 140, 0.3) 0%, rgba(233, 30, 140, 0.5) 100%);
}

.stamp-slider-purple {
    background: linear-gradient(90deg, rgba(155, 89, 182, 0.3) 0%, rgba(155, 89, 182, 0.5) 100%);
}

.stamp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.stamp-slider-pink::-webkit-slider-thumb {
    background: linear-gradient(135deg, #e91e8c, #c4157a);
    border: 3px solid #fff;
}

.stamp-slider-purple::-webkit-slider-thumb {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    border: 3px solid #fff;
}

.stamp-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.stamp-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stamp-slider-pink::-moz-range-thumb {
    background: linear-gradient(135deg, #e91e8c, #c4157a);
}

.stamp-slider-purple::-moz-range-thumb {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.stamp-slider::-moz-range-track {
    height: 8px;
    border-radius: 4px;
}

/* Stamp Adjust Buttons */
.stamp-adjust-btn:hover {
    background: linear-gradient(135deg, rgba(255, 214, 69, 0.25), rgba(243, 156, 18, 0.15)) !important;
    border-color: rgba(255, 214, 69, 0.7) !important;
    transform: scale(1.05);
}

.stamp-adjust-btn:active {
    transform: scale(0.95);
}

/* Preset Buttons */
.stamp-preset-btn {
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: "Fredoka", sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.stamp-preset-btn:hover {
    background: rgba(255, 214, 69, 0.2);
    border-color: rgba(255, 214, 69, 0.5);
    color: #ffd645;
    transform: translateY(-2px);
}

.stamp-preset-btn:active {
    transform: translateY(0);
}

/* Hide number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* ============================================
   AURA HOME PAGE SPECIFIC STYLES
   ============================================ */

/* Ensure category-hero-top-row always stays on one row, including mobile */
#aura-home-flip-container .category-hero-top-row {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Combined hero section - fill entire card */
#aura-home-flip-container .combined-hero-section {
    position: relative;
    flex: 1;
    min-height: 0;
    border-radius: 20px;
}

/* Name section at top of card */
#aura-home-flip-container .category-hero-name-section {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 1.5rem;
    text-align: center;
}

#aura-home-flip-container .category-hero-name-section .category-hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0 0 0.5rem 0;
}

#aura-home-flip-container .category-hero-name-section .subscription-pill {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

#aura-home-flip-container .category-hero-name-section .subscription-pill .stat-value {
    line-height: 1.2 !important;
    display: block !important;
}

#aura-home-flip-container .category-hero-name-section .subscription-pill .tier-name {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

/* Hero stats positioned below name section */
#aura-home-flip-container .combined-hero-section > .category-hero-stats {
    position: absolute;
    top: 170px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

#aura-home-flip-container .combined-hero-section > .category-hero-stats .profile-stat-pill {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
}

#aura-home-flip-container .combined-hero-section > .category-hero-stats .profile-stat-pill .stat-value {
    white-space: nowrap;
}

/* Mobile: Split hero stats into two rows */
@media (max-width: 767px) {
    #aura-home-flip-container .combined-hero-section > .category-hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
        max-width: 280px;
        margin: 0 auto;
        padding: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    #aura-home-flip-container .combined-hero-section > .category-hero-stats .profile-stat-pill {
        justify-content: center;
        width: 100%;
    }
}

/* lg screens (992px-1199px): Split hero stats into two rows */
@media (min-width: 992px) and (max-width: 1199px) {
    #aura-home-flip-container .combined-hero-section > .category-hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
        max-width: 280px;
        margin: 0 auto;
        padding: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    #aura-home-flip-container .combined-hero-section > .category-hero-stats .profile-stat-pill {
        justify-content: center;
        width: 100%;
    }
}

/* Referral promo link positioning */
#aura-home-flip-container .combined-hero-section > .profile-tier-promo {
    position: absolute;
    top: 220px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    width: 90%;
}

/* Quiz Stats Row - Clean horizontal stats */
#aura-home-flip-container .combined-hero-section .quiz-stats-row {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.6rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.5rem 0.8rem;
    margin-bottom: 0;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

#aura-home-flip-container .combined-hero-section .quiz-stats-row:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: translateX(-50%) translateY(-2px);
}

#aura-home-flip-container .quiz-stats-title {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffd700;
    flex-shrink: 0;
}

#aura-home-flip-container .quiz-stats-title i {
    font-size: 0.85rem;
}

#aura-home-flip-container .quiz-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.05rem;
    flex-shrink: 0;
}

#aura-home-flip-container .quiz-stat-value {
    font-family: "Fredoka", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

#aura-home-flip-container .quiz-stat-item.quiz-stat-aura .quiz-stat-value {
    color: #ffd700;
}

#aura-home-flip-container .quiz-stat-label {
    font-family: "Fredoka", sans-serif;
    font-size: 0.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

#aura-home-flip-container .quiz-stat-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Avatar input label - match other badges exactly */
#aura-home-flip-container .category-hero-top-row label[for="avatarInput"] {
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.85rem !important;
    padding: 0.5rem 1rem !important;
    line-height: 1 !important;
}

#aura-home-flip-container .category-hero-top-row label[for="avatarInput"] span {
    font-size: 0.85rem !important;
}

/* Ensure all badges in top row have same height */
#aura-home-flip-container .category-hero-top-row .category-badge {
    padding: 0.5rem 1rem !important;
    line-height: 1 !important;
}

/* Avatar file input */
#avatarInput {
    display: none;
}

/* Badge container */
#aura-home-flip-container .category-hero-top-row > div:last-child {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

/* Verified badge */
#aura-home-flip-container .category-badge[title="Verified Account"] {
    background: #2ecc71;
    border-color: #fff;
}

#aura-home-flip-container .category-badge[title="Verified Account"] i {
    color: #fff;
}

/* Profile hero image */
#profileHeroImage {
    object-position: center top;
}

/* Profile name display */
#profileNameDisplay {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Profile name edit button */
.profile-name-edit-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-name-edit-btn i {
    font-size: 0.8rem;
}

/* Profile name edit form */
#profileNameEdit {
    display: none;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
}

#profileNameEdit.show {
    display: flex !important;
}

/* Profile name inputs */
.profile-name-input {
    flex: 1;
    padding: 0.5rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
}

/* Profile name save button */
.profile-name-save-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    background: #2ecc71;
    color: #fff;
    cursor: pointer;
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Profile name cancel button */
.profile-name-cancel-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    background: #e74c3c;
    color: #fff;
    cursor: pointer;
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Category hero title - center aligned */
#aura-home-flip-container .category-hero-title {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#aura-home-flip-container #profileNameDisplay {
    justify-content: center;
}

#aura-home-flip-container #profileNameEdit {
    justify-content: center;
}

/* Category hero stats - using profile-stat-pill styling */
#aura-home-flip-container .category-hero-stats {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* Pending referrals badge */
.category-stat span[style*="background: #e74c3c"] {
    background: #e74c3c;
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

/* Profile tier promo */
.profile-tier-promo {
    display: block;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: #ffd700;
    font-size: 0.85rem;
    font-family: "Fredoka", sans-serif;
}

/* Combined subcategories section */
.combined-subcategories-section {
    padding: 0;
}

/* Map container wrapper */
#aura-home-flip-container .combined-subcategories-section > div {
    position: relative;
    width: 100%;
}

/* Profile map container */
#profileMapContainer {
    width: 100%;
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* Desktop: Map fills remaining space */
@media (min-width: 992px) {
    #profileMapContainer {
        min-height: 200px;
    }

    #profileMapContainer #userLocationMap {
        width: 100% !important;
        height: 100% !important;
    }
}

/* MD devices (iPad portrait) */
@media (min-width: 768px) and (max-width: 991px) {
    #profileMapContainer {
        min-height: 200px;
    }

    #profileMapContainer #userLocationMap {
        width: 100% !important;
        height: 100% !important;
    }
}

/* Mobile: Ensure the map element fills container properly */
@media (max-width: 767px) {
    #profileMapContainer #userLocationMap {
        width: 100% !important;
        height: 100% !important;
    }
}

/* Map section in right column - fill remaining space */
.profile-map-section-right {
    margin-top: auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Right column article - ensure it uses flexbox to push map to bottom */
/* Desktop only - on mobile, display is controlled by flip card state */
@media (min-width: 992px) {
    #aura-home-flip-container .category-article.flip-card-back {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100%;
        padding: 0 !important; /* Remove padding so map takes full width */
        aspect-ratio: 2 / 3 !important;
        height: 100%;
    }
}

/* Front side of card - same aspect ratio as back */
#aura-home-flip-container .category-combined-card.flip-card-front {
    aspect-ratio: 2 / 3 !important;
}

/* ========================================
   Control Board - Fun Dashboard Design
   ======================================== */

#aura-home-flip-container .control-board {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

/* Animated Background */
.control-board-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.control-board-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(255, 214, 69, 0.12) 0%, transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(155, 89, 182, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(233, 30, 140, 0.08) 0%, transparent 50%);
    animation: boardPulse 10s ease-in-out infinite;
}

@keyframes boardPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* Header with Avatar */
.control-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    position: relative;
    z-index: 5;
}

.control-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    border: 3px solid rgba(255, 214, 69, 0.5);
    overflow: hidden;
    transition: all 0.3s ease;
}

.control-avatar:hover {
    border-color: #ffd645;
    transform: scale(1.05);
}

.control-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.control-avatar .avatar-edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.control-avatar:hover .avatar-edit-overlay {
    opacity: 1;
}

.control-avatar .avatar-edit-overlay i {
    color: #fff;
    font-size: 1.2rem;
}

.control-user-info {
    flex: 1;
    min-width: 0;
}

.control-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Fredoka", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
}

.control-name .edit-icon {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

.control-name:hover .edit-icon {
    color: #ffd645;
}

.control-name-edit {
    display: none;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.control-name-edit input {
    flex: 1;
    min-width: 80px;
    padding: 0.4rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
}

.control-name-edit button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
}

.control-name-edit button:first-of-type {
    background: #28a745;
    color: #fff;
}

.control-name-edit button:last-of-type {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.control-tier {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.tier-badge {
    font-family: "Fredoka", sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-badge.tier-free {
    background: rgba(108, 117, 125, 0.3);
    color: #adb5bd;
    border: 1px solid rgba(108, 117, 125, 0.4);
}

.tier-badge.tier-basic {
    background: rgba(52, 152, 219, 0.3);
    color: #5dade2;
    border: 1px solid rgba(52, 152, 219, 0.4);
}

.tier-badge.tier-pro {
    background: rgba(155, 89, 182, 0.3);
    color: #bb8fce;
    border: 1px solid rgba(155, 89, 182, 0.4);
}

.tier-badge.tier-premium {
    background: linear-gradient(135deg, rgba(255, 214, 69, 0.3), rgba(243, 156, 18, 0.3));
    color: #ffd645;
    border: 1px solid rgba(255, 214, 69, 0.4);
}

.verified-badge {
    color: #3498db;
    font-size: 0.85rem;
}

.join-date {
    font-family: "Fredoka", sans-serif;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Power-ups in header (top right) */
.control-powerups-header {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-left: auto;
    align-items: flex-end;
}

.powerup-mini {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-family: "Fredoka", sans-serif;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

.powerup-mini i {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
}

.powerup-mini.boost {
    background: rgba(255, 214, 69, 0.15);
}

.powerup-mini.boost i {
    color: #ffd645;
}

.powerup-mini.boost span {
    color: #ffd645;
}

/* Currency Display */
.control-currencies {
    display: flex;
    gap: 0.75rem;
    padding: 0 1rem;
    position: relative;
    z-index: 5;
}

.currency-card {
    flex: 1;
    padding: 0.85rem 0.75rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.currency-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    z-index: 0;
}

.currency-card > * {
    position: relative;
    z-index: 1;
}

.klout-card {
    background: linear-gradient(135deg, rgba(255, 214, 69, 0.15), rgba(243, 156, 18, 0.15));
    border: 1px solid rgba(255, 214, 69, 0.3);
}

.klout-card .currency-icon {
    color: #ffd645;
}

.aura-card {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15), rgba(142, 68, 173, 0.15));
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.aura-card .currency-icon {
    color: #bb8fce;
}

.currency-icon {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.currency-amount {
    font-family: "Fredoka", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.currency-label {
    font-family: "Fredoka", sans-serif;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stats Grid */
.control-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    position: relative;
    z-index: 5;
}

/* Stats Grid in back card */
.control-stats-grid.back-stats {
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin: 0 1rem 0.75rem;
}

/* Locations list header */
.locations-list-header {
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.locations-list-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* Embedded Map Section */
.control-map-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0.5rem 1rem;
    position: relative;
    z-index: 5;
    min-height: 0;
}

.control-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.6rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px 10px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
}

.map-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.map-aura-display {
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.map-focus-display {
    font-family: "Fredoka", sans-serif;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.15rem 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

.map-header-right {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.map-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    text-decoration: none;
}

.map-btn.share {
    background: rgba(155, 89, 182, 0.3);
    color: #bb8fce;
}

.map-btn.share:hover {
    background: rgba(155, 89, 182, 0.5);
}

.map-btn.reposition {
    background: rgba(52, 152, 219, 0.3);
    color: #5dade2;
}

.map-btn.reposition:hover {
    background: rgba(52, 152, 219, 0.5);
}

.map-btn.reset,
.map-btn.return {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.map-btn.reset:hover,
.map-btn.return:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.control-map-container {
    flex: 1;
    position: relative;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    min-height: 120px;
    aspect-ratio: 1 / 1;
}

.control-map {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Aura setup prompt inside control board */
.control-map-container .aura-setup-prompt {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 46, 0.95);
    padding: 1rem;
    text-align: center;
}

.control-map-container .aura-setup-icon {
    font-size: 2rem;
    color: #9b59b6;
    margin-bottom: 0.5rem;
}

.control-map-container .aura-setup-text {
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.control-map-container .aura-setup-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.control-map-container .aura-setup-btn:hover {
    filter: brightness(1.1);
}

/* Fine-tune overlay adjustments */
.control-map-container .aura-finetune-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.control-map-container .aura-finetune-message {
    font-family: "Fredoka", sans-serif;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.control-map-container .aura-set-location-btn {
    padding: 0.4rem 0.8rem;
    background: #28a745;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Mobile adjustments for map */
@media (max-width: 576px) {
    .control-map-section {
        margin: 0.4rem 0.75rem;
    }

    .control-map-header {
        padding: 0.3rem 0.5rem;
    }

    .map-aura-display {
        font-size: 0.75rem;
    }

    .map-focus-display {
        font-size: 0.55rem;
    }

    .map-btn {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
}

.control-stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.control-stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.control-stat-item .stat-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.control-stat-item.trivia .stat-icon {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.control-stat-item.stamps .stat-icon {
    background: rgba(233, 30, 140, 0.2);
    color: #e91e8c;
}

.control-stat-item.referrals .stat-icon {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.control-stat-item.locations .stat-icon {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.control-stat-item .stat-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    line-height: 1.1;
}

.control-stat-item .stat-value {
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.control-stat-item .stat-label {
    font-family: "Fredoka", sans-serif;
    font-size: 0.45rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.control-stat-item .stat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #e74c3c;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.control-stat-item .stat-badge.pulse {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Action Buttons */
.control-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    position: relative;
    z-index: 5;
    margin-top: auto;
}

.control-action-btn {
    flex: 1;
    min-width: calc(50% - 0.25rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-action-btn i {
    font-size: 0.9rem;
}

.control-action-btn.daily-bonus {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    flex-basis: 100%;
}

.control-action-btn.daily-bonus .streak-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    font-size: 0.65rem;
}

.control-action-btn.pulse-glow {
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%,
    100% {
        box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(231, 76, 60, 0.8);
    }
}

.control-action-btn.trivia-action {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
}

.control-action-btn.trivia-action .action-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
    font-size: 0.6rem;
}

.control-action-btn.upgrade-action {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: #fff;
}

.control-action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* To-Do List Section */
.control-todo-section {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding: 0 1rem 1rem;
    position: relative;
    z-index: 5;
}

.todo-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    font-family: "Fredoka", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.todo-header i {
    font-size: 0.75rem;
}

.todo-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 115px; /* 2 items visible */
    overflow-y: auto;
    padding-right: 0.25rem;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(233, 30, 140, 0.4) transparent;
}

.todo-list::-webkit-scrollbar {
    width: 4px;
}

.todo-list::-webkit-scrollbar-track {
    background: transparent;
}

.todo-list::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 140, 0.4);
    border-radius: 2px;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    width: 100%;
}

.todo-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(3px);
}

.todo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.todo-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.todo-title {
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.todo-subtitle {
    font-family: "Fredoka", sans-serif;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.todo-badge {
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    font-family: "Fredoka", sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

.todo-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.todo-item:hover .todo-arrow {
    transform: translateX(2px);
    color: rgba(255, 255, 255, 0.5);
}

/* First todo item highlight */
.todo-item:first-child {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Mobile adjustments for todo list */
@media (max-width: 576px) {
    .control-todo-section {
        padding: 0 0.75rem 0.75rem;
    }

    .todo-list {
        max-height: 100px; /* 2 items on mobile */
    }

    .todo-item {
        padding: 0.5rem 0.55rem;
        gap: 0.5rem;
    }

    .todo-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .todo-title {
        font-size: 0.75rem;
    }

    .todo-badge {
        font-size: 0.55rem;
        padding: 0.15rem 0.35rem;
    }
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .control-header {
        padding: 0.75rem;
    }

    .control-avatar {
        width: 50px;
        height: 50px;
    }

    .control-name {
        font-size: 1rem;
    }

    .control-currencies {
        padding: 0 0.75rem;
        gap: 0.5rem;
    }

    .currency-card {
        padding: 0.6rem 0.5rem;
    }

    .currency-amount {
        font-size: 1.1rem;
    }

    .control-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 0.4rem 0.75rem;
        gap: 0.25rem;
    }

    .control-stat-item {
        padding: 0.3rem 0.25rem;
        gap: 0.2rem;
    }

    .control-stat-item .stat-icon {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }

    .control-stat-item .stat-value {
        font-size: 0.65rem;
    }

    .control-stat-item .stat-label {
        font-size: 0.4rem;
    }

    .control-powerups-header {
        gap: 0.2rem;
    }

    .powerup-mini {
        padding: 0.15rem 0.35rem;
        font-size: 0.6rem;
    }

    .powerup-mini i {
        font-size: 0.55rem;
    }
}

/* Desktop: Always show front with flex */
@media (min-width: 992px) {
    #aura-home-flip-container .category-combined-card.flip-card-front {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* Article header - add padding back for header only */
#aura-home-flip-container .category-article.flip-card-back .article-header {
    padding: 2rem 2rem 1rem 2rem;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

/* Ensure cards section and empty state don't grow and have padding */
#aura-home-flip-container .real-world-empty {
    flex-shrink: 0;
    padding: 0 2rem;
}

/* Cards list should take remaining space and scroll */
/* Max height = card height - header height - map height */
/* Card height is determined by 9:16 aspect ratio */
/* Map height equals card width (1:1 aspect ratio) */
/* Using flexbox: flex: 1 makes it take remaining space after header and map */
#aura-home-flip-container .real-world-cards-list {
    flex: 1 1 0;
    min-height: 0;
    padding: 0 2rem;
    overflow-y: auto;
    width: 100%;
    /* The max-height is automatically calculated by flexbox as: */
    /* 100% (card height) - header height - map height (which equals card width) */
}

/* Mobile: Reduce padding and ensure full width */
@media (max-width: 991px) {
    /* Hide back side by default on mobile */
    /* Hide front when flipped */
    #aura-home-flip-container.flipped .category-combined-card.flip-card-front {
        display: none !important;
    }

    /* Hide back when NOT flipped */
    #aura-home-flip-container:not(.flipped) .category-article.flip-card-back {
        display: none !important;
    }

    /* Show back when flipped */
    #aura-home-flip-container.flipped .category-article.flip-card-back {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100%;
        padding: 0 !important;
        aspect-ratio: 2 / 3 !important;
        height: 100%;
    }

    /* Ensure front is visible when NOT flipped */
    #aura-home-flip-container:not(.flipped) .category-combined-card.flip-card-front {
        display: flex !important;
        flex-direction: column !important;
    }

    #aura-home-flip-container .category-article.flip-card-back {
        width: 100% !important;
        max-width: 100% !important;
    }

    #aura-home-flip-container .category-article.flip-card-back .article-header {
        padding: 1rem 1rem 0.5rem 1rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 1.5rem !important;
    }

    #aura-home-flip-container .real-world-empty {
        padding: 0 1rem;
    }

    #aura-home-flip-container .real-world-cards-list {
        padding: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        grid-template-columns: repeat(4, 1fr) !important;
    }

    /* Mobile: Ensure title appears below image, same as desktop - override general mobile styles */
    #aura-home-flip-container .real-world-card-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        aspect-ratio: unset !important;
        height: auto !important;
        padding-bottom: 0 !important;
        overflow: visible !important;
        position: relative !important;
    }

    #aura-home-flip-container .real-world-card-item > * {
        position: static !important;
    }

    #aura-home-flip-container .real-world-card-image-wrapper {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 60px !important;
        height: 60px !important;
    }

    #aura-home-flip-container .real-world-card-image {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    #aura-home-flip-container .real-world-card-title {
        position: static !important;
        color: #fff !important;
        font-weight: 500 !important;
        text-align: center !important;
        transform: none !important;
        width: auto !important;
        padding: 0 !important;
        text-shadow: none !important;
        pointer-events: auto !important;
    }
}

/* Map section takes full width */
#aura-home-flip-container .profile-map-section-right {
    margin-top: 0;
    width: 100%;
    padding: 0;
}

/* LG devices (iPad landscape): Remove auto margin to eliminate gap */
@media (min-width: 992px) and (max-width: 1199px) {
    #aura-home-flip-container .profile-map-section-right {
        margin-top: 0rem;
    }

    /* Reduce card aspect ratio on lg to prevent large gap */
    #aura-home-flip-container .category-article.flip-card-back {
        aspect-ratio: unset !important;
        height: auto !important;
        min-height: unset !important;
    }
}

/* Profile map */
.profile-map {
    width: 100%;
    height: 100%;
    min-height: 100%;
}

/* Profile map header */
.profile-map-header {
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    box-sizing: border-box;
}

.profile-map-title {
    flex-shrink: 0;
}

.profile-map-header > div:last-child {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

/* Ensure all header buttons have consistent height to prevent layout shift */
.profile-map-header button,
.profile-map-header a {
    height: 28px;
    box-sizing: border-box;
}

/* Initially hidden elements */
#auraCenterMarker,
#auraFineTuneOverlay,
#userLocationsEmpty,
#realWorldCardsList,
#scanResults,
#baseScanSummary,
#businessGoogleMapsBtn {
    display: none;
}

/* Hide reset/return buttons until needed */
#mapResetBtn,
#mapReturnBtn {
    display: none;
}

/* Quiz card item cursor */
.completed-quiz-card-item.quiz-pending {
    cursor: pointer;
}

/* Fix overflow issue on mobile - allow header to be visible */
#aura-home-flip-container .category-combined-card {
    overflow: visible !important;
}

@media (max-width: 768px) {
    #aura-home-flip-container .category-combined-card {
        overflow: visible !important;
    }

    #aura-home-flip-container .category-hero-top-row {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0.25rem !important;
        padding: 0.4rem 0.75rem !important;
    }

    /* Make badges smaller on mobile to fit - including the avatar label */
    #aura-home-flip-container .category-hero-top-row .category-badge,
    #aura-home-flip-container .category-hero-top-row label[for="avatarInput"] {
        font-size: 0.65rem !important;
        padding: 0.25rem 0.5rem !important;
        white-space: nowrap !important;
    }

    /* Make input boxes smaller on mobile */
    #aura-home-flip-container .profile-name-input {
        flex: 0 1 auto !important;
        width: 80px !important;
        max-width: 80px !important;
    }

    /* Hide "Change Avatar" text on very small screens, keep icon only */
    @media (max-width: 480px) {
        #aura-home-flip-container .category-hero-top-row label[for="avatarInput"] span {
            display: none;
        }
    }
}

/* Profile Map Share Button */
.profile-map-share {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    font-family: "Fredoka", sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #e91e8c;
    background: rgba(233, 30, 140, 0.15);
    border: 1px solid rgba(233, 30, 140, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.profile-map-share:hover {
    color: #fff;
    background: rgba(233, 30, 140, 0.3);
    border-color: #e91e8c;
    text-decoration: none;
}

.profile-map-share i {
    font-size: 0.75rem;
}

.profile-map-share.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.profile-map-share.disabled:hover {
    color: #e91e8c;
    background: rgba(233, 30, 140, 0.15);
    border-color: rgba(233, 30, 140, 0.3);
}

/* Reposition Aura Button */
.profile-map-reposition {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    font-family: "Fredoka", sans-serif;
    font-size: 0.7rem !important;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.profile-map-reposition:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

.profile-map-reposition i {
    font-size: 0.75rem;
}

.profile-map-reposition span,
.profile-map-reposition {
    font-size: 0.7rem !important;
    line-height: 1 !important;
}

.profile-map-reposition:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* User Locations Section - Full width outside flip-card */
#userLocationsSection {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Cards Collection Section - Full width outside flip-card */
.cards-collection-section {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Aura Setup Prompt - copied from home-new.css */
.aura-setup-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(22, 33, 62, 0.98) 100%);
    position: relative;
    overflow: hidden;
}

.aura-setup-prompt::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    transform: translate(-50%, -50%);
    animation: auraSetupPulse 3s ease-in-out infinite;
}

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

.aura-setup-icon {
    position: relative;
    z-index: 1;
    font-size: 3.5rem;
    color: #ffd700;
    margin-bottom: 1.25rem;
    animation: auraIconBounce 2s ease-in-out infinite;
}

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

.aura-setup-text {
    position: relative;
    z-index: 1;
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 260px;
}

.aura-setup-btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-family: "Fredoka", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a1a2e;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.aura-setup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.aura-setup-btn:active {
    transform: translateY(0);
}

.aura-setup-btn i {
    font-size: 1.1rem;
}

.aura-setup-btn i.spin {
    animation: spinIcon 1s linear infinite;
}

@keyframes spinIcon {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.aura-setup-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Center Marker for fine-tuning - copied from home-new.css */
.aura-center-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    z-index: 100;
    pointer-events: none;
    display: none;
}

.aura-center-marker > i {
    font-size: 2.5rem;
    color: #ffd700;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    animation: markerBounce 0.5s ease-out;
}

@keyframes markerBounce {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    50% {
        transform: translateY(5px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.aura-center-marker-pulse {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 6px;
    background: rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    animation: markerPulseShadow 1.5s ease-in-out infinite;
}

@keyframes markerPulseShadow {
    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translateX(-50%) scale(1.5);
        opacity: 0.2;
    }
}

/* Fine-tune overlay - copied from home-new.css */
.aura-finetune-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.95) 0%, rgba(26, 26, 46, 0.8) 60%, transparent 100%);
    z-index: 99;
}

.aura-finetune-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.aura-finetune-message i {
    font-size: 1rem;
    color: #ffd700;
    animation: pointBounce 1s ease-in-out infinite;
}

@keyframes pointBounce {
    0%,
    100% {
        transform: translateY(0) rotate(-10deg);
    }
    50% {
        transform: translateY(-3px) rotate(-10deg);
    }
}

.aura-set-location-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a1a2e;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.aura-set-location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.aura-set-location-btn:active {
    transform: translateY(0);
}

.aura-set-location-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.aura-set-location-btn i {
    font-size: 1rem;
}

/* Ensure map container is positioned relative for absolute children */
#profileMapContainer {
    position: relative;
}

/* ============================================
   FLOATING CARDS SIDEBAR
   ============================================ */

.floating-cards-sidebar {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 140px;
    height: 50vh;
    max-height: 50vh;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(22, 33, 62, 0.98) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-right: none;
    border-radius: 12px 0 0 12px;
    box-shadow:
        -4px 0 20px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(255, 215, 0, 0.1);
    z-index: 1000;
    display: none; /* Hidden by default on mobile, shown when flip card is flipped */
    flex-direction: column;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: "Fredoka", sans-serif;
}

/* Show floating sidebar when flip card is flipped (showing back/map side) */
.floating-cards-sidebar.visible {
    display: flex;
}

/* On desktop (where both columns are visible), always show the sidebar */
@media (min-width: 992px) {
    .floating-cards-sidebar {
        display: flex;
    }
}

.floating-cards-sidebar.collapsed {
    transform: translateY(-50%) translateX(calc(100% + 10px));
    opacity: 0;
    pointer-events: none;
}

.floating-cards-sidebar.collapsed .floating-cards-toggle i {
    transform: rotate(180deg);
}

/* Expand tab - visible when sidebar is collapsed */
.floating-cards-expand-tab {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 36px;
    height: 80px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(22, 33, 62, 0.98) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-right: none;
    border-radius: 10px 0 0 10px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.floating-cards-expand-tab:hover {
    width: 42px;
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}

.floating-cards-expand-tab i {
    color: #ffd700;
    font-size: 1.1rem;
}

/* Expand tab is hidden by default - only shown via .visible class */
/* The .visible class is added/removed by JavaScript based on flip state */
.floating-cards-expand-tab.visible {
    display: flex;
}

/* Subtle glow animation for expand tab */
@keyframes expandTabGlow {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
        border-color: rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
        border-color: rgba(255, 215, 0, 0.8);
    }
}

.floating-cards-expand-tab.pulsing {
    animation: expandTabGlow 0.4s ease-in-out 6;
}

.floating-cards-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.6rem;
    background: rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px 0 0 0;
    flex-shrink: 0;
}

.floating-cards-title {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: "Fredoka", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffd700;
}

.floating-cards-title i {
    font-size: 0.8rem;
}

.floating-cards-toggle {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.floating-cards-toggle:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
}

.floating-cards-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.floating-cards-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 0, 0.3) transparent;
}

.floating-cards-content::-webkit-scrollbar {
    width: 6px;
}

.floating-cards-content::-webkit-scrollbar-track {
    background: transparent;
}

.floating-cards-content::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

.floating-cards-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

.floating-cards-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-family: "Fredoka", sans-serif;
}

/* Ensure empty state doesn't block clicks when hidden */
.floating-cards-empty[style*="display: none"] {
    position: absolute !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.floating-cards-empty .empty-icon {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    opacity: 0.5;
}

.floating-cards-empty .empty-text {
    font-family: "Fredoka", sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
}

.floating-cards-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0;
    padding-top: 0;
}

/* Floating card item styling */
.floating-card-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.floating-card-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateX(-2px);
}

/* Active state for toggled cards */
.floating-card-item.active {
    background: rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.5);
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.3);
}

.floating-card-item.active .floating-card-name {
    color: #2ecc71;
}

.floating-card-item.active .floating-card-image {
    border-color: #2ecc71;
}

.floating-card-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #2ecc71;
    border-radius: 6px 0 0 6px;
}

.floating-card-image {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    object-fit: cover;
    border: 1px solid rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
}

.floating-card-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.floating-card-placeholder i {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.floating-card-info {
    flex: 1;
    min-width: 0;
}

.floating-card-name {
    font-family: "Fredoka", sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1px;
}

.floating-card-type {
    font-family: "Fredoka", sans-serif;
    font-size: 0.5rem;
    color: rgba(255, 215, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-card-aura {
    display: none; /* Hide aura to save space */
}

/* Hide cards in card on all screen sizes (shown in floating sidebar instead) */
.real-world-cards-mobile-only {
    display: none;
}

/* Mobile adjustments for floating sidebar */
@media (max-width: 768px) {
    .floating-cards-sidebar {
        width: 120px;
        height: 50vh;
        max-height: 50vh;
    }

    .floating-cards-sidebar.collapsed {
        transform: translateY(-50%) translateX(calc(100% - 24px));
    }
}

/* Adjust for smaller screens */
@media (min-width: 1201px) and (max-width: 1400px) {
    .floating-cards-sidebar {
        width: 130px;
    }
}

/* Large screens - slightly more space */
@media (min-width: 1600px) {
    .floating-cards-sidebar {
        width: 160px;
    }
}

/* ===========================================
   TRIVIA PAGE STYLES - Match home-new format
   =========================================== */

/* Front card aspect ratio - match home-new */
#aura-trivia-flip-container .category-combined-card.flip-card-front {
    aspect-ratio: 2 / 3 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Combined hero section - fill entire card */
#aura-trivia-flip-container .combined-hero-section {
    position: relative;
    flex: 1;
    min-height: 0;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

/* Top row positioning - always single row */
#aura-trivia-flip-container .category-hero-top-row {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0.75rem 1rem;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.5rem;
}

#aura-trivia-flip-container .category-hero-top-row .category-badge {
    font-size: 0.7rem !important;
    padding: 0.4rem 0.6rem !important;
    white-space: nowrap;
}

#aura-trivia-flip-container .category-hero-top-row .category-badge span {
    display: inline !important;
}

@media (max-width: 400px) {
    #aura-trivia-flip-container .category-hero-top-row .category-badge {
        font-size: 0.6rem !important;
        padding: 0.3rem 0.5rem !important;
    }

    #aura-trivia-flip-container .category-hero-top-row .category-badge i {
        font-size: 0.7rem !important;
    }
}

/* Name section positioning */
#aura-trivia-flip-container .category-hero-name-section {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 1.5rem;
    text-align: center;
}

#aura-trivia-flip-container .category-hero-name-section .category-hero-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

#aura-trivia-flip-container .category-hero-name-section .subscription-pill {
    display: inline-flex;
    margin: 0 auto;
}

/* Quiz stats row positioning */
#aura-trivia-flip-container .trivia-stats-row {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#aura-trivia-flip-container .trivia-stats-row .quiz-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

#aura-trivia-flip-container .trivia-stats-row .quiz-stat-value {
    font-family: "Fredoka", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffd700;
    line-height: 1;
}

#aura-trivia-flip-container .trivia-stats-row .quiz-stat-label {
    font-family: "Fredoka", sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#aura-trivia-flip-container .trivia-stats-row .quiz-stat-divider {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(255, 215, 0, 0.4), transparent);
}

@media (max-width: 400px) {
    #aura-trivia-flip-container .trivia-stats-row {
        padding: 0.5rem 0.75rem;
        gap: 0.6rem;
    }

    #aura-trivia-flip-container .trivia-stats-row .quiz-stat-value {
        font-size: 1rem;
    }

    #aura-trivia-flip-container .trivia-stats-row .quiz-stat-label {
        font-size: 0.55rem;
    }

    #aura-trivia-flip-container .trivia-stats-row .quiz-stat-divider {
        height: 24px;
    }
}

/* Hero content at bottom */
#aura-trivia-flip-container .category-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 1rem 1.5rem;
}

#aura-trivia-flip-container .category-hero-stats {
    justify-content: center;
    margin-bottom: 0.5rem;
}

#aura-trivia-flip-container .category-hero-desc {
    text-align: center;
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.8;
}

/* Front card completed section - max 1/3 of card height */
#aura-trivia-flip-container .front-card-completed {
    margin-top: 1rem;
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    #aura-trivia-flip-container .front-card-completed {
        max-height: 180px;
    }
}

@media (max-width: 400px) {
    #aura-trivia-flip-container .front-card-completed {
        max-height: 120px;
    }
}

#aura-trivia-flip-container .front-card-completed .trivia-section-title {
    font-size: 0.8rem;
    color: #2ecc71;
    margin-bottom: 0.75rem;
    justify-content: center;
}

#aura-trivia-flip-container .front-card-completed .completed-quizzes-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    max-height: none;
    overflow: visible;
    padding-bottom: 0.25rem;
}

#aura-trivia-flip-container .front-card-completed .completed-quiz-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 0.5rem;
    border: 1px solid rgba(46, 204, 113, 0.2);
    transition: all 0.2s ease;
}

#aura-trivia-flip-container .front-card-completed .completed-quiz-item:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(46, 204, 113, 0.4);
}

#aura-trivia-flip-container .front-card-completed .completed-quiz-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #2ecc71;
    margin-bottom: 0.4rem;
}

#aura-trivia-flip-container .front-card-completed .completed-quiz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#aura-trivia-flip-container .front-card-completed .completed-quiz-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.3) 0%, rgba(46, 204, 113, 0.1) 100%);
    color: #2ecc71;
    font-size: 1.5rem;
}

#aura-trivia-flip-container .front-card-completed .completed-quiz-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: #2ecc71;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.65rem;
    box-shadow: 0 2px 6px rgba(46, 204, 113, 0.5);
}

#aura-trivia-flip-container .front-card-completed .completed-quiz-info {
    width: 100%;
    text-align: center;
}

#aura-trivia-flip-container .front-card-completed .completed-quiz-title {
    font-family: "Fredoka", sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}

#aura-trivia-flip-container .front-card-completed .completed-quiz-prize {
    font-family: "Fredoka", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #2ecc71;
}

#aura-trivia-flip-container .front-card-completed .completed-quiz-date {
    font-family: "Fredoka", sans-serif;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.15rem;
}

/* Back card aspect ratio - match home-new */
@media (min-width: 992px) {
    #aura-trivia-flip-container .category-article.flip-card-back {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100%;
        padding: 0 !important;
        aspect-ratio: 2 / 3 !important;
    }

    #aura-trivia-flip-container .category-combined-card.flip-card-front {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* Mobile flip card behavior */
@media (max-width: 991px) {
    #aura-trivia-flip-container.flipped .category-combined-card.flip-card-front {
        display: none !important;
    }

    #aura-trivia-flip-container:not(.flipped) .category-article.flip-card-back {
        display: none !important;
    }

    #aura-trivia-flip-container.flipped .category-article.flip-card-back {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100%;
        padding: 0 !important;
        aspect-ratio: 2 / 3 !important;
    }

    #aura-trivia-flip-container:not(.flipped) .category-combined-card.flip-card-front {
        display: flex !important;
        flex-direction: column !important;
    }

    #aura-trivia-flip-container .category-article.flip-card-back {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Trivia stats row styling */
.trivia-stats-row {
    margin-top: auto;
    margin-bottom: 0.5rem;
}

/* Trivia quizzes section in back card */
.trivia-quizzes-section {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

.trivia-quizzes-section::-webkit-scrollbar {
    width: 6px;
}

.trivia-quizzes-section::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.trivia-quizzes-section::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 140, 0.5);
    border-radius: 3px;
}

.trivia-quizzes-section::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 30, 140, 0.7);
}

/* Quiz loading sentinel for infinite scroll */
.quiz-loading-sentinel {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    min-height: 40px;
}

.quiz-loading-spinner {
    color: rgba(233, 30, 140, 0.6);
    font-size: 1.25rem;
    animation: quizSpinnerRotate 1s linear infinite;
}

@keyframes quizSpinnerRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.trivia-quizzes-section .quiz-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

/* Quiz Infocards List - One per row style */
.quiz-infocards-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem;
}

.quiz-infocard {
    position: relative;
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Fredoka", sans-serif;
    min-height: 100px;
}

.quiz-infocard-image {
    position: relative;
    width: 100px;
    min-width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.quiz-infocard:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15);
}

.quiz-infocard-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quiz-infocard-content {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.quiz-infocard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.quiz-infocard-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.quiz-infocard-deck {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255, 215, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-infocard-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quiz-infocard-prize {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow:
        0 2px 10px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: prizePulse 2s ease-in-out infinite;
    position: relative;
    z-index: 15;
}

.quiz-infocard-prize .prize-amount {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #1a1a2e;
    font-weight: 800;
    font-size: 0.85rem;
    line-height: 1;
}

.quiz-infocard-prize .prize-amount i {
    font-size: 0.7rem;
    color: #1a1a2e;
}

.quiz-infocard-prize .prize-unit {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(26, 26, 46, 0.8);
}

@keyframes prizePulse {
    0%,
    100% {
        box-shadow:
            0 2px 10px rgba(255, 215, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 4px 20px rgba(255, 215, 0, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        transform: scale(1.02);
    }
}

.quiz-infocard-description {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quiz-infocard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.quiz-infocard-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
}

.quiz-infocard-stat i {
    color: #ffd700;
    font-size: 0.6rem;
}

.quiz-infocard-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #1a1a2e;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.quiz-infocard:hover .quiz-infocard-cta {
    background: linear-gradient(135deg, #ffdf40 0%, #ffb820 100%);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

/* Locked quiz infocard styles */
.quiz-infocard-locked {
    position: relative;
    cursor: not-allowed;
    opacity: 0.6;
    filter: grayscale(70%);
}

.quiz-infocard-locked:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.2);
    transform: none;
    box-shadow: none;
}

.quiz-infocard-locked .quiz-infocard-cta {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    color: #999;
}

.quiz-infocard-locked:hover .quiz-infocard-cta {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    box-shadow: none;
}

.quiz-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    gap: 0.5rem;
    z-index: 10;
    border-radius: 12px;
}

.quiz-locked-overlay i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.quiz-locked-overlay span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 0 1rem;
}

/* Mobile adjustments for quiz infocards */
@media (max-width: 767px) {
    .quiz-infocard-image {
        width: 80px;
        min-width: 80px;
    }

    .quiz-infocard-content {
        padding: 0.5rem;
    }

    .quiz-infocard-title {
        font-size: 0.8rem;
    }

    .quiz-infocard-description {
        font-size: 0.65rem;
        -webkit-line-clamp: 2;
    }

    .quiz-infocard-meta {
        gap: 0.3rem;
    }

    .quiz-infocard-stat {
        font-size: 0.55rem;
    }

    .quiz-infocard-cta {
        padding: 0.3rem 0.5rem;
        font-size: 0.6rem;
    }

    .quiz-infocard-prize {
        padding: 0.3rem 0.5rem;
        gap: 0.2rem;
    }

    .quiz-infocard-prize .prize-amount {
        font-size: 0.7rem;
    }

    .quiz-infocard-prize .prize-amount i {
        font-size: 0.55rem;
    }

    .quiz-infocard-prize .prize-unit {
        font-size: 0.5rem;
    }
}

/* Trivia completed section */
.trivia-completed-section {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    max-height: 200px;
    overflow-y: auto;
}

.trivia-section-title {
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2ecc71;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trivia-section-title i {
    font-size: 1rem;
}

/* Override quiz card items in trivia back card */
#aura-trivia-flip-container .category-article .quiz-card-item {
    aspect-ratio: 3 / 4;
    min-height: 120px;
}

#aura-trivia-flip-container .category-article .quiz-take-badge {
    padding: 0.3rem 0.5rem;
}

#aura-trivia-flip-container .category-article .quiz-take-text {
    font-size: 0.5rem;
}

#aura-trivia-flip-container .category-article .quiz-take-reward {
    font-size: 0.7rem;
}

#aura-trivia-flip-container .category-article .quiz-card-deck {
    font-size: 0.5rem;
}

#aura-trivia-flip-container .category-article .quiz-card-name {
    font-size: 0.7rem;
}

#aura-trivia-flip-container .category-article .quiz-card-questions {
    font-size: 0.55rem;
    margin-top: 0.25rem !important;
}

#aura-trivia-flip-container .category-article .quiz-card-per-answer {
    font-size: 0.5rem;
}

/* Article header for trivia */
#aura-trivia-flip-container .category-article.flip-card-back .article-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

#aura-trivia-flip-container .category-article.flip-card-back .article-title {
    font-size: 1.5rem;
    text-align: center;
}

@media (max-width: 767px) {
    #aura-trivia-flip-container .category-article.flip-card-back .article-title {
        font-size: 1.25rem;
    }

    #aura-trivia-flip-container .category-article.flip-card-back .article-header {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem 1rem 0 1rem !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
}

/* Available quizzes in trivia - aligned to bottom of CARD (front side) */
#aura-trivia-flip-container .quiz-infocards-list.trivia-bottom-list {
    position: absolute !important;
    bottom: 0 !important;
    top: 28% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 15 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 3rem 2rem !important;
    margin: 0 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(10px);
    border-radius: 0 0 20px 20px !important;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 92%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 92%, transparent 100%);
}

/* Mobile: reduce left/right padding */
@media (max-width: 991px) {
    #aura-trivia-flip-container .quiz-infocards-list.trivia-bottom-list {
        padding: 3rem 1rem !important;
    }
}

/* Quiz infocards within bottom list - ensure proper height */
#aura-trivia-flip-container .trivia-bottom-list .quiz-infocard {
    min-height: 120px !important;
    height: auto !important;
    flex-shrink: 0 !important;
}

#aura-trivia-flip-container .trivia-bottom-list .quiz-infocard-image {
    width: 100px !important;
    min-width: 100px !important;
    height: auto !important;
    min-height: 120px !important;
    flex-shrink: 0 !important;
}

#aura-trivia-flip-container .trivia-bottom-list .quiz-infocard-content {
    padding: 1rem 1.25rem !important;
    gap: 0.5rem !important;
    justify-content: center !important;
}

/* Show description and meta - truncate description to 2 lines */
#aura-trivia-flip-container .trivia-bottom-list .quiz-infocard-description {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 0.65rem !important;
}

#aura-trivia-flip-container .trivia-bottom-list .quiz-infocard-meta {
    display: flex !important;
}

#aura-trivia-flip-container .trivia-bottom-list .quiz-infocard-header {
    margin-bottom: 0.25rem !important;
}

#aura-trivia-flip-container .trivia-bottom-list .quiz-infocard-cta {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.7rem !important;
    margin-top: auto !important;
}

/* Pink scrollbar for front side quiz list */
#aura-trivia-flip-container .quiz-infocards-list.trivia-bottom-list::-webkit-scrollbar {
    width: 6px;
}

#aura-trivia-flip-container .quiz-infocards-list.trivia-bottom-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

#aura-trivia-flip-container .quiz-infocards-list.trivia-bottom-list::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 3px;
}

#aura-trivia-flip-container .quiz-infocards-list.trivia-bottom-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.7);
}

/* Stamp Add Card */
.quiz-infocard-add {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(233, 30, 140, 0.4);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-infocard-add:hover {
    background: rgba(233, 30, 140, 0.1);
    border-color: rgba(233, 30, 140, 0.7);
    transform: translateY(-2px);
}

.quiz-infocard-add-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(233, 30, 140, 0.8);
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
}

.quiz-infocard-add-content i {
    font-size: 1.5rem;
}

.quiz-infocard-add:hover .quiz-infocard-add-content {
    color: #e91e8c;
}

/* Stamps page pink scrollbar */
#aura-stamps-flip-container .quiz-infocards-list.trivia-bottom-list::-webkit-scrollbar {
    width: 6px;
}

#aura-stamps-flip-container .quiz-infocards-list.trivia-bottom-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

#aura-stamps-flip-container .quiz-infocards-list.trivia-bottom-list::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 140, 0.5);
    border-radius: 3px;
}

#aura-stamps-flip-container .quiz-infocards-list.trivia-bottom-list::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 30, 140, 0.7);
}

/* Stamps back card - ensure flex layout for scroll (desktop) */
@media (min-width: 992px) {
    #aura-stamps-flip-container .category-article.flip-card-back {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100%;
        padding: 0 !important;
        aspect-ratio: 2 / 3 !important;
    }

    #aura-stamps-flip-container .category-combined-card.flip-card-front {
        display: flex !important;
        flex-direction: column !important;
    }
}

#aura-stamps-flip-container .category-article.flip-card-back .article-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Stamps back card - circular markers style */
#aura-stamps-flip-container .stamps-markers-section {
    flex: 1;
    overflow: hidden;
    padding: 0 0.5rem 0.5rem 0.5rem;
    min-height: 0;
}

#aura-stamps-flip-container .stamps-markers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-height: calc(100% - 10px);
    overflow-y: auto;
    padding: 1rem 0.5rem 2rem 0.5rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 3%, black 95%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 3%, black 95%, transparent 100%);
}

/* Pink scrollbar for stamps grid */
#aura-stamps-flip-container .stamps-markers-grid::-webkit-scrollbar {
    width: 6px;
}

#aura-stamps-flip-container .stamps-markers-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

#aura-stamps-flip-container .stamps-markers-grid::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 140, 0.5);
    border-radius: 3px;
}

#aura-stamps-flip-container .stamps-markers-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 30, 140, 0.7);
}

/* Stamp Marker Item */
.stamp-marker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.stamp-marker-item:hover {
    transform: scale(1.05);
}

/* Circular Marker */
.stamp-marker-circle {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.3);
}

.stamp-marker-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.stamp-marker-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e8c, #9b59b6);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.stamp-marker-placeholder i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Progress Ring */
.stamp-progress-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    transform: rotate(-90deg);
    pointer-events: none;
}

.stamp-progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 4;
}

.stamp-progress-fill {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

/* Remaining Count Badge */
.stamp-remaining-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: linear-gradient(135deg, #e91e8c, #9b59b6);
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid rgba(26, 26, 46, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Stamp Info */
.stamp-marker-info {
    text-align: center;
    margin-top: 0.5rem;
}

.stamp-marker-title {
    font-family: "Fredoka", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

.stamp-marker-stats {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.stamp-marker-stats span {
    font-family: "Fredoka", sans-serif;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.stamp-marker-stats span i {
    font-size: 0.5rem;
    color: #e91e8c;
}

/* Add Stamps Button */
.add-stamps-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e8c, #9b59b6);
    border: 2px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(233, 30, 140, 0.4);
}

.add-stamps-btn i {
    font-size: 0.9rem;
    font-weight: 700;
}

.stamp-marker-item {
    position: relative;
}

.stamp-marker-item:hover .add-stamps-btn {
    opacity: 1;
    transform: scale(1);
}

.add-stamps-btn:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.6);
}

.add-stamps-btn:active {
    transform: scale(0.95) !important;
}

/* Always show on mobile/touch */
@media (hover: none) {
    .add-stamps-btn {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive stamps grid */
@media (max-width: 991px) {
    #aura-stamps-flip-container .stamps-markers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .stamp-marker-circle {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 576px) {
    #aura-stamps-flip-container .stamps-markers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stamp-marker-circle {
        width: 60px;
        height: 60px;
    }

    .stamp-marker-title {
        font-size: 0.6rem;
        max-width: 70px;
    }

    .stamp-marker-stats span {
        font-size: 0.5rem;
    }

    .stamp-remaining-badge {
        font-size: 0.55rem;
        min-width: 18px;
        height: 18px;
    }
}

/* ========================================
   Stamps Page Layout (matches Trivia)
   ======================================== */

/* ========================================
   Stamp Control Board - Fun Dashboard
   ======================================== */

#aura-stamps-flip-container .stamp-control-board {
    aspect-ratio: 2 / 3 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f0f1a 100%);
    padding: 0 !important;
}

/* Animated background pattern */
.stamp-board-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.stamp-board-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(233, 30, 140, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(155, 89, 182, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(255, 214, 69, 0.1) 0%, transparent 30%);
    animation: patternPulse 8s ease-in-out infinite;
}

@keyframes patternPulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Header */
.stamp-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    position: relative;
    z-index: 5;
}

.stamp-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.stamp-back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.stamp-board-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Fredoka", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.stamp-board-title i {
    color: #e91e8c;
    font-size: 1.2rem;
}

.stamp-tier-badge {
    background: linear-gradient(135deg, rgba(255, 214, 69, 0.2), rgba(243, 156, 18, 0.2));
    border: 1px solid rgba(255, 214, 69, 0.4);
    border-radius: 12px;
    padding: 0.25rem 0.75rem;
    font-family: "Fredoka", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffd645;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main Stats Panel */
.stamp-stats-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
    margin: 0 1rem;
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.15), rgba(155, 89, 182, 0.15));
    border: 1px solid rgba(233, 30, 140, 0.3);
    border-radius: 20px;
    position: relative;
    z-index: 5;
}

.stamp-big-stat {
    text-align: center;
}

.stamp-big-number {
    font-family: "Fredoka", sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e91e8c, #9b59b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    text-shadow: 0 0 30px rgba(233, 30, 140, 0.5);
}

.stamp-big-label {
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

.stamp-stat-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.stamp-mini-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stamp-mini-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Fredoka", sans-serif;
}

.stamp-mini-stat i {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    width: 18px;
}

.stamp-mini-stat .value {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.stamp-mini-stat .label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Rewards Panel */
.stamp-rewards-panel {
    margin: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 5;
}

.stamp-rewards-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.stamp-rewards-title i {
    color: rgba(255, 255, 255, 0.4);
}

.stamp-rewards-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.stamp-reward-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stamp-reward-item i {
    font-size: 1.25rem;
}

.stamp-reward-item .reward-value {
    font-family: "Fredoka", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.stamp-reward-item .reward-label {
    font-family: "Fredoka", sans-serif;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* Stamp Preview Section */
.stamp-preview-section {
    padding: 0 1rem;
    position: relative;
    z-index: 5;
}

.stamp-preview-title {
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    text-align: center;
}

.stamp-preview-carousel {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stamp-preview-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.stamp-preview-item:hover {
    transform: scale(1.1);
    border-color: #e91e8c;
    box-shadow: 0 0 15px rgba(233, 30, 140, 0.5);
}

.stamp-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stamp-preview-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e91e8c, #9b59b6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stamp-preview-placeholder i {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
}

.stamp-preview-count {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: linear-gradient(135deg, #e91e8c, #9b59b6);
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a1a2e;
}

.stamp-preview-more {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Action Buttons */
.stamp-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    margin-top: auto;
    position: relative;
    z-index: 5;
}

.stamp-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.stamp-action-btn.primary {
    background: linear-gradient(135deg, #e91e8c, #9b59b6);
    color: #fff;
    box-shadow: 0 4px 20px rgba(233, 30, 140, 0.4);
}

.stamp-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(233, 30, 140, 0.5);
}

.stamp-action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.stamp-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.stamp-action-btn.upgrade {
    background: linear-gradient(135deg, #ffd645, #f39c12);
    color: #1a1a2e;
    box-shadow: 0 4px 20px rgba(255, 214, 69, 0.4);
}

.stamp-action-btn.upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 214, 69, 0.5);
}

/* Balance Footer */
.stamp-balance-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 5;
}

.stamp-balance-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.stamp-balance-item i {
    font-size: 0.9rem;
}

.stamp-balance-item i.bi-hexagon-fill {
    color: #ffd645;
}

.stamp-balance-item i.bi-geo-alt-fill {
    color: #9b59b6;
}

.stamp-balance-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .stamp-board-header {
        padding: 0.75rem 1rem;
    }

    .stamp-board-title {
        font-size: 0.95rem;
    }

    .stamp-stats-panel {
        padding: 1rem 0.75rem;
        gap: 1rem;
        margin: 0 0.75rem;
    }

    .stamp-big-number {
        font-size: 2.5rem;
    }

    .stamp-rewards-panel {
        margin: 0.75rem;
        padding: 0.75rem;
    }

    .stamp-preview-item {
        width: 42px;
        height: 42px;
    }

    .stamp-actions {
        padding: 0.75rem;
        flex-direction: column;
    }

    .stamp-action-btn {
        padding: 0.75rem 1rem;
    }
}

/* Front card aspect ratio - match trivia */
#aura-stamps-flip-container .category-combined-card.flip-card-front {
    aspect-ratio: 2 / 3 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Combined hero section - fill entire card */
#aura-stamps-flip-container .combined-hero-section {
    position: relative;
    flex: 1;
    min-height: 0;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

/* Top row positioning - MUST override general mobile flex-direction: column rule */
#aura-stamps-flip-container .category-hero-top-row {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
}

#aura-stamps-flip-container .category-hero-top-row .category-badge {
    font-size: 0.7rem !important;
    padding: 0.4rem 0.6rem !important;
    white-space: nowrap;
}

#aura-stamps-flip-container .category-hero-top-row .category-badge span {
    display: inline !important;
}

@media (max-width: 400px) {
    #aura-stamps-flip-container .category-hero-top-row .category-badge {
        font-size: 0.6rem !important;
        padding: 0.3rem 0.5rem !important;
    }

    #aura-stamps-flip-container .category-hero-top-row .category-badge i {
        font-size: 0.7rem !important;
    }
}

/* Name section positioning */
#aura-stamps-flip-container .category-hero-name-section {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 1.5rem;
    text-align: center;
}

#aura-stamps-flip-container .category-hero-name-section .category-hero-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

/* Background image as backdrop */
#aura-stamps-flip-container .category-hero-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
}

#aura-stamps-flip-container .category-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#aura-stamps-flip-container .category-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 30%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

/* Stamps list at bottom */
#aura-stamps-flip-container .quiz-infocards-list.trivia-bottom-list {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    max-height: 55%;
    overflow-y: auto;
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 100%);
}

/* Style adjustments for stamps infocards */
#aura-stamps-flip-container .quiz-infocard {
    min-height: 80px;
}

#aura-stamps-flip-container .quiz-infocard-image {
    width: 70px;
    height: 70px;
}

@media (max-width: 767px) {
    #aura-stamps-flip-container .category-hero-name-section {
        top: 45px;
        padding: 0 1rem;
    }

    #aura-stamps-flip-container .category-hero-name-section .category-hero-title {
        font-size: 1.4rem;
    }

    #aura-stamps-flip-container .quiz-infocards-list.trivia-bottom-list {
        max-height: 50%;
        padding: 0.75rem 1rem 1rem;
    }
}

/* Mobile flip card behavior for stamps - match trivia pattern */
@media (max-width: 991px) {
    #aura-stamps-flip-container.flipped .category-combined-card.flip-card-front {
        display: none !important;
    }

    #aura-stamps-flip-container:not(.flipped) .category-article.flip-card-back {
        display: none !important;
    }

    #aura-stamps-flip-container.flipped .category-article.flip-card-back {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100%;
        padding: 0 !important;
        aspect-ratio: 2 / 3 !important;
    }

    #aura-stamps-flip-container:not(.flipped) .category-combined-card.flip-card-front {
        display: flex !important;
        flex-direction: column !important;
    }

    #aura-stamps-flip-container .category-article.flip-card-back {
        width: 100% !important;
        max-width: 100% !important;
    }

    #aura-stamps-flip-container .category-article.flip-card-back .article-header {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Achievements section on back side of trivia card */
.trivia-achievements-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* Quiz Decks Section */
.trivia-decks-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 1rem;
}

.trivia-decks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: min-content;
    gap: 1rem;
    overflow-y: auto;
    padding: 0.5rem;
    align-items: start;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 3%, black 95%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 3%, black 95%, transparent 100%);
}

@media (max-width: 991px) {
    .trivia-decks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .trivia-decks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* Trivia Deck Cards - Fresh Start - Using !important to override gamifeye-styles.css */
.trivia-deck-card {
    position: relative !important;
    aspect-ratio: 3 / 4 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #1a1a2e !important;
}

.trivia-deck-card .deck-card-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.trivia-deck-card .deck-card-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.95) 100%) !important;
    padding: 0 !important;
}

.trivia-deck-card .deck-card-locked {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.75) !important;
    z-index: 20 !important;
}

.trivia-deck-card .deck-card-locked i {
    font-size: 1.5rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.trivia-deck-card .deck-card-locked span {
    font-family: "Fredoka", sans-serif !important;
    font-size: 0.6rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-top: 0.5rem !important;
    text-align: center !important;
    padding: 0 0.5rem !important;
    line-height: 1.4 !important;
}

.trivia-deck-card .deck-card-locked .deck-locked-tap {
    font-size: 0.55rem !important;
    color: #ffd700 !important;
    margin-top: 0.75rem !important;
    padding: 0.3rem 0.6rem !important;
    background: rgba(255, 215, 0, 0.2) !important;
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
    border-radius: 12px !important;
}

.trivia-deck-card .deck-card-locked:hover {
    cursor: pointer !important;
    background: rgba(0, 0, 0, 0.8) !important;
}

.trivia-deck-card .deck-card-locked:hover .deck-locked-tap {
    background: rgba(255, 215, 0, 0.3) !important;
    border-color: rgba(255, 215, 0, 0.6) !important;
}

.trivia-deck-card .deck-card-content {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: auto !important;
    padding: 0.4rem !important;
    z-index: 5 !important;
    display: flex !important;
    flex-direction: column !important;
}

.trivia-deck-card .deck-card-title {
    font-family: "Fredoka", sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin-bottom: 0.2rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
    order: 1 !important;
}

.trivia-deck-card .deck-card-progress {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    margin-top: 0 !important;
    margin-bottom: 0.3rem !important;
    order: 2 !important;
}

.trivia-deck-card .deck-card-stats {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.15rem !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    order: 3 !important;
}

.trivia-deck-card .deck-stat {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: rgba(0, 0, 0, 0.5) !important;
    padding: 0.2rem 0.25rem !important;
    border-radius: 3px !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.trivia-deck-card .deck-stat-label,
.trivia-deck-card .deck-stat-value {
    font-size: 0.45rem !important;
    font-family: "Fredoka", sans-serif !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    line-height: 1.2 !important;
    display: flex !important;
    align-items: center !important;
}

.trivia-deck-card .deck-stat-label {
    color: rgba(255, 255, 255, 0.7) !important;
    text-transform: uppercase !important;
}

.trivia-deck-card .deck-stat-value {
    font-weight: 600 !important;
    color: #ffd700 !important;
}

.trivia-deck-card .deck-card-progress {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    margin-top: 0.2rem !important;
}

.trivia-deck-card .deck-progress-bar {
    flex: 1 !important;
    height: 3px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 2px !important;
    overflow: hidden !important;
}

.trivia-deck-card .deck-progress-fill {
    height: 100% !important;
    background: #10b981 !important;
}

.trivia-deck-card .deck-progress-text {
    font-size: 0.5rem !important;
    color: #10b981 !important;
}

.trivia-deck-card.locked {
    opacity: 0.6 !important;
}

/* Completed quizzes list on back side - with feathering and scrolling */
#aura-trivia-flip-container .achievements-bottom-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    align-content: start !important;
    gap: 1rem !important;
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 1rem !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Pink scrollbar for achievements list on back */
#aura-trivia-flip-container .achievements-bottom-list::-webkit-scrollbar,
#aura-trivia-flip-container .trivia-decks-grid::-webkit-scrollbar {
    width: 6px;
}

#aura-trivia-flip-container .achievements-bottom-list::-webkit-scrollbar-track,
#aura-trivia-flip-container .trivia-decks-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

#aura-trivia-flip-container .achievements-bottom-list::-webkit-scrollbar-thumb,
#aura-trivia-flip-container .trivia-decks-grid::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 140, 0.5);
    border-radius: 3px;
}

#aura-trivia-flip-container .achievements-bottom-list::-webkit-scrollbar-thumb:hover,
#aura-trivia-flip-container .trivia-decks-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 30, 140, 0.7);
}

@media (max-width: 767px) {
    #aura-trivia-flip-container .achievements-bottom-list {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }
}

/* Legacy: Completed quizzes in trivia - aligned to bottom of CARD (kept for backwards compatibility) */
#aura-trivia-flip-container .completed-quizzes-list.trivia-bottom-list {
    position: absolute !important;
    bottom: 0 !important;
    top: 50% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 15 !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.5rem !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0.75rem 1rem !important;
    margin: 0 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(10px);
    border-radius: 0 0 20px 20px !important;
}

#aura-trivia-flip-container .category-hero-name-section .completed-quiz-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

#aura-trivia-flip-container .completed-quiz-image {
    width: 60px;
    height: 60px;
}

#aura-trivia-flip-container .completed-quiz-title {
    font-size: 0.6rem;
}

#aura-trivia-flip-container .completed-quiz-prize {
    font-size: 0.65rem;
}

#aura-trivia-flip-container .completed-quiz-date {
    font-size: 0.5rem;
}

/* ============================================
   PUBLIC TRIVIA PAGE - DECK INFOCARDS
   ============================================ */

/* Remove padding from category-article on public trivia page */
#trivia-flip-container .category-article {
    padding: 0;
}

#trivia-flip-container .article-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
}

/* Public trivia front card aspect ratio */
#trivia-flip-container .category-combined-card.flip-card-front {
    aspect-ratio: 2 / 3 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Desktop: Always show front */
@media (min-width: 992px) {
    #trivia-flip-container .category-combined-card.flip-card-front {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* Mobile flip card behavior */
@media (max-width: 991px) {
    #trivia-flip-container.flipped .category-combined-card.flip-card-front {
        display: none !important;
    }

    #trivia-flip-container:not(.flipped) .category-article.flip-card-back {
        display: none !important;
    }

    #trivia-flip-container.flipped .category-article.flip-card-back {
        display: flex !important;
        flex-direction: column !important;
        aspect-ratio: 2 / 3 !important;
    }

    #trivia-flip-container:not(.flipped) .category-combined-card.flip-card-front {
        display: flex !important;
        flex-direction: column !important;
    }

    #trivia-flip-container .category-article.flip-card-back {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Public trivia hero section positioning */
#trivia-flip-container .combined-hero-section {
    position: relative;
    flex: 1;
    min-height: 0;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

#trivia-flip-container .category-hero-top-row {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0.75rem 1rem;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
}

#trivia-flip-container .category-hero-top-row .category-badge {
    font-size: 0.7rem !important;
    padding: 0.4rem 0.6rem !important;
    white-space: nowrap;
}

#trivia-flip-container .category-hero-top-row .category-badge span {
    display: inline !important;
}

@media (max-width: 400px) {
    #trivia-flip-container .category-hero-top-row .category-badge {
        font-size: 0.6rem !important;
        padding: 0.3rem 0.5rem !important;
    }

    #trivia-flip-container .category-hero-top-row .category-badge i {
        font-size: 0.7rem !important;
    }
}

#trivia-flip-container .category-hero-name-section {
    position: relative;
    z-index: 10;
    padding: 3.5rem 1.5rem 1.5rem;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

#trivia-flip-container .category-hero-title {
    font-family: "Slackey", cursive;
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin: 0;
    line-height: 1.2;
}

#trivia-flip-container .category-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#trivia-flip-container .category-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 2;
}

/* Podcast feature on front card */
.trivia-podcast-feature {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 10;
}

.podcast-feature-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: "Fredoka", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.podcast-feature-label i {
    font-size: 0.8rem;
}

/* Podcast episodes list container */
.podcast-episodes-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 320px;
    overflow-y: auto;
}

.podcast-episodes-list::-webkit-scrollbar {
    width: 4px;
}

.podcast-episodes-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.podcast-episodes-list::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.4);
    border-radius: 2px;
}

.podcast-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 0.6rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.podcast-feature-card:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 215, 0, 0.6);
    transform: translateX(4px);
}

.podcast-feature-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.podcast-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podcast-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.5), rgba(255, 215, 0, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

.podcast-feature-content {
    flex: 1;
    min-width: 0;
}

.podcast-feature-header {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 0.2rem;
}

.podcast-episode-code {
    font-family: "Fredoka", sans-serif;
    font-size: 0.55rem;
    font-weight: 600;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.podcast-feature-title {
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podcast-feature-description {
    font-family: "Fredoka", sans-serif;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin: 0.2rem 0 0.3rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podcast-feature-meta {
    font-family: "Fredoka", sans-serif;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
}

.podcast-feature-meta span {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.podcast-feature-meta i {
    font-size: 0.55rem;
    color: rgba(255, 215, 0, 0.7);
}

.podcast-feature-play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    align-self: center;
}

.podcast-feature-card:hover .podcast-feature-play {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Podcast subscribe pulse animation - quick pulse every 5 seconds */
.podcast-subscribe-pulse {
    text-decoration: none;
    animation: podcastPulse 5s ease-in-out infinite;
}

@keyframes podcastPulse {
    0%,
    90%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
    93% {
        transform: scale(1.08);
        box-shadow: 0 0 20px 5px rgba(255, 215, 0, 0.5);
    }
    96% {
        transform: scale(0.98);
        box-shadow: 0 0 10px 2px rgba(255, 215, 0, 0.3);
    }
}

@media (max-width: 768px) {
    #trivia-flip-container .category-hero-title {
        font-size: 1.4rem;
    }

    #trivia-flip-container .category-hero-name-section {
        padding: 2.5rem 1rem 1rem;
    }

    #trivia-flip-container .article-header {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .trivia-podcast-feature {
        bottom: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
    }

    .podcast-episodes-list {
        max-height: 180px;
        gap: 0.4rem;
    }

    .podcast-feature-card {
        padding: 0.4rem;
        gap: 0.5rem;
    }

    .podcast-feature-image {
        width: 40px;
        height: 40px;
    }

    .podcast-image-placeholder {
        font-size: 1rem;
    }

    .podcast-episode-code {
        font-size: 0.5rem;
    }

    .podcast-feature-title {
        font-size: 0.7rem;
    }

    .podcast-feature-meta {
        font-size: 0.5rem;
        gap: 0.35rem;
    }

    .podcast-feature-play {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
}

/* =====================================================
   PODCAST PAGE FLIP CONTAINER
   ===================================================== */

/* Front card aspect ratio */
#podcast-flip-container .category-combined-card.flip-card-front {
    aspect-ratio: 2 / 3 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Desktop: Always show front */
@media (min-width: 992px) {
    #podcast-flip-container .category-combined-card.flip-card-front {
        display: flex !important;
        flex-direction: column !important;
    }

    #podcast-flip-container .category-article.flip-card-back {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* Mobile: Flip card behavior */
@media (max-width: 991px) {
    #podcast-flip-container.flipped .category-article.flip-card-back {
        display: flex !important;
        flex-direction: column !important;
        aspect-ratio: 2 / 3 !important;
    }

    #podcast-flip-container:not(.flipped) .category-combined-card.flip-card-front {
        display: flex !important;
        flex-direction: column !important;
    }

    #podcast-flip-container:not(.flipped) .category-article.flip-card-back {
        display: none !important;
    }

    #podcast-flip-container.flipped .category-combined-card.flip-card-front {
        display: none !important;
    }
}

#podcast-flip-container .combined-hero-section {
    position: relative;
    flex: 1;
    min-height: 0;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#podcast-flip-container .category-hero-top-row {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0.75rem 1rem;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
}

#podcast-flip-container .category-hero-name-section {
    position: relative;
    z-index: 10;
    padding: 3.5rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

#podcast-flip-container .category-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#podcast-flip-container .category-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#podcast-flip-container .category-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 2;
}

#podcast-flip-container .category-hero-top-row .category-badge {
    font-size: 0.7rem !important;
    padding: 0.4rem 0.6rem !important;
}

#podcast-flip-container .category-article {
    padding: 0 !important;
}

#podcast-flip-container .article-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
}

#podcast-flip-container .article-title {
    font-family: "Fredoka", sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#podcast-flip-container .article-title i {
    color: #ffd700;
}

#podcast-flip-container .trivia-quizzes-section {
    padding: 1rem 1.5rem 0;
    flex: 1;
    overflow: hidden;
}

@media (max-width: 768px) {
    #podcast-flip-container .category-hero-name-section {
        padding: 2rem 1rem 1rem;
    }

    #podcast-flip-container .article-header {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #podcast-flip-container .category-hero-top-row .category-badge {
        font-size: 0.6rem !important;
        padding: 0.3rem 0.5rem !important;
    }
}

/* Deck infocard - extends quiz-infocard styling */
.deck-infocard {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
    color: inherit;
    font-family: "Fredoka", sans-serif;
}

.deck-infocard:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15);
}

.deck-infocard .quiz-infocard-image {
    position: relative;
    width: 100px;
    min-width: 100px;
    aspect-ratio: 1;
    overflow: hidden;
}

.deck-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 107, 107, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 215, 0, 0.7);
    font-size: 2rem;
}

.deck-count-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%) !important;
}

.deck-count-badge .prize-amount {
    color: #1a1a2e !important;
}

.deck-count-badge .prize-amount i {
    color: #1a1a2e !important;
}

.deck-count-badge .prize-unit {
    color: rgba(26, 26, 46, 0.8) !important;
}

/* Public trivia front card styles */
.trivia-front-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.trivia-front-stats .profile-stat-pill {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trivia-front-stats .profile-stat-pill i {
    color: #ffd700;
    font-size: 1rem;
}

.trivia-front-stats .stat-value {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.trivia-front-description {
    font-family: "Fredoka", sans-serif;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 1.25rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.trivia-front-cta {
    margin-top: 1.5rem;
}

.trivia-front-cta .hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #1a1a2e;
    font-weight: 700;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.trivia-front-cta .hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
}

.trivia-front-cta .hero-btn-primary i {
    font-size: 1.2rem;
}

/* Info section below cards */
.trivia-info-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trivia-info-section .hyperlocal-steps {
    margin: 0;
}

.trivia-info-section .step-block {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.trivia-info-section .step-block:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .deck-infocard .quiz-infocard-image {
        width: 80px;
        min-width: 80px;
    }

    .deck-image-placeholder {
        font-size: 1.5rem;
    }

    .trivia-front-stats {
        gap: 0.5rem;
    }

    .trivia-front-stats .profile-stat-pill {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .trivia-front-stats .stat-value {
        font-size: 0.8rem;
    }

    .trivia-front-description {
        font-size: 0.9rem;
        margin-top: 1rem;
    }

    .trivia-front-cta .hero-btn-primary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .trivia-info-section {
        padding: 1rem;
    }

    .trivia-info-section .step-block {
        padding: 0.75rem;
    }
}

/* ========================================
   Podcast Page Styles
   ======================================== */

/* Podcast Hero Artwork */
.podcast-hero-artwork {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e91e8c;
    margin: 0 auto 1.5rem;
    position: relative;
    cursor: pointer;
}

.podcast-hero-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podcast-hero-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.podcast-hero-play-overlay i {
    font-size: 3.5rem;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.podcast-hero-artwork:hover .podcast-hero-play-overlay {
    background: rgba(233, 30, 140, 0.5);
}

.podcast-hero-artwork:hover .podcast-hero-play-overlay i {
    transform: scale(1.15);
}

.podcast-hero-artwork.playing .podcast-hero-play-overlay {
    background: rgba(233, 30, 140, 0.6);
}

.podcast-hero-artwork.playing .podcast-hero-play-overlay i {
    animation: playPulse 1s ease-in-out infinite;
}

@keyframes playPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.podcast-hero-artwork-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Podcast Hero Content */
.podcast-hero-title {
    font-family: "Fredoka", sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin: 0 0 0.75rem 0;
    line-height: 0.95;
}

.podcast-hero-description {
    font-family: "Fredoka", sans-serif;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.podcast-hero-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.podcast-hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.podcast-hero-meta i {
    color: #ffd700;
}

/* Subscribe Buttons */
.subscribe-buttons {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-apple {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
}

.btn-spotify {
    background: linear-gradient(135deg, #1db954, #1ed760);
    color: white;
}

.btn-rss {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    color: white;
}

/* Episodes List Container */
.episodes-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 100%;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.episodes-list-container::-webkit-scrollbar {
    width: 4px;
}

.episodes-list-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.episodes-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.4);
    border-radius: 2px;
}

/* Now Playing Bar */
.now-playing {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    padding: 1rem 0;
    display: none;
    backdrop-filter: blur(20px);
    z-index: 1000;
}

.now-playing.show {
    display: block;
}

.now-playing-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.now-playing-info {
    flex: 1;
    min-width: 0;
    font-family: "Fredoka", sans-serif;
}

.now-playing-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.now-playing-audio {
    flex: 2;
    min-width: 200px;
}

.now-playing-audio audio {
    width: 100%;
    height: 40px;
}

.close-player {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.close-player:hover {
    color: #fff;
}

/* Podcast Page Responsive */
@media (max-width: 768px) {
    .podcast-hero-artwork {
        width: 140px;
        height: 140px;
    }

    .podcast-hero-play-overlay i {
        font-size: 2.5rem;
    }

    .podcast-hero-title {
        font-size: 1.5rem;
    }

    .podcast-hero-description {
        font-size: 0.9rem;
    }

    .podcast-hero-meta {
        font-size: 0.8rem;
        gap: 1rem;
    }

    .subscribe-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .now-playing-content {
        flex-wrap: wrap;
    }

    .now-playing-audio {
        width: 100%;
        order: 3;
    }
}

/* Episode Code Badge */
.episode-code-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-family: "Fredoka", sans-serif;
}

/* Episode Flip Container Styles */
#episode-flip-container .category-combined-card.flip-card-front {
    aspect-ratio: 2 / 3 !important;
}

#episode-flip-container.flipped .category-article.flip-card-back {
    aspect-ratio: 2 / 3 !important;
}

#episode-flip-container .category-hero-top-row {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

#episode-flip-container .category-hero-top-row .category-share-buttons {
    max-width: 180px;
}

@media (max-width: 768px) {
    #episode-flip-container .category-hero-top-row .category-share-buttons {
        max-width: 140px;
    }

    #episode-flip-container .category-hero-top-row .category-share-btn {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
}

/* Episode Flip Container Z-Index Layering */
#episode-flip-container .category-hero-image {
    z-index: 1;
}

#episode-flip-container .category-hero-overlay {
    z-index: 2;
}

#episode-flip-container .category-hero-top-row {
    z-index: 10;
    position: relative;
}

#episode-flip-container .category-hero-name-section {
    z-index: 10;
    position: relative;
}

#episode-flip-container .trivia-quizzes-section {
    padding: 1rem 1.5rem 0;
}

/* ========================================
   Episode Page Flip Container Styles
   ======================================== */

/* Front card aspect ratio */
#episode-flip-container .category-combined-card.flip-card-front {
    aspect-ratio: 2 / 3 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Desktop: Always show both cards */
@media (min-width: 992px) {
    #episode-flip-container .category-combined-card.flip-card-front {
        display: flex !important;
        flex-direction: column !important;
    }

    #episode-flip-container .category-article.flip-card-back {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* Mobile: Flip card behavior */
@media (max-width: 991px) {
    #episode-flip-container.flipped .category-article.flip-card-back {
        display: flex !important;
        flex-direction: column !important;
        aspect-ratio: 2 / 3 !important;
    }

    #episode-flip-container:not(.flipped) .category-combined-card.flip-card-front {
        display: flex !important;
        flex-direction: column !important;
    }

    #episode-flip-container:not(.flipped) .category-article.flip-card-back {
        display: none !important;
    }

    #episode-flip-container.flipped .category-combined-card.flip-card-front {
        display: none !important;
    }
}

#episode-flip-container .combined-hero-section {
    position: relative;
    flex: 1;
    min-height: 0;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#episode-flip-container .category-hero-top-row {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0.75rem 1rem;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
}

#episode-flip-container .category-hero-name-section {
    position: relative;
    z-index: 10;
    padding: 3.5rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

#episode-flip-container .category-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#episode-flip-container .category-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#episode-flip-container .category-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 2;
}

#episode-flip-container .category-hero-top-row .category-badge {
    font-size: 0.7rem !important;
    padding: 0.4rem 0.6rem !important;
}

#episode-flip-container .category-article {
    padding: 0 !important;
}

#episode-flip-container .article-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
}

#episode-flip-container .article-title {
    font-family: "Fredoka", sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#episode-flip-container .article-title i {
    color: #ffd700;
}

#episode-flip-container .trivia-quizzes-section {
    padding: 1rem 1.5rem 0;
    flex: 1;
    overflow: hidden;
}

#episode-flip-container .category-hero-top-row .category-share-buttons {
    max-width: 180px;
}

@media (max-width: 768px) {
    #episode-flip-container .category-hero-name-section {
        padding: 2rem 1rem 1rem;
    }

    #episode-flip-container .article-header {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #episode-flip-container .category-hero-top-row .category-badge {
        font-size: 0.6rem !important;
        padding: 0.3rem 0.5rem !important;
    }

    #episode-flip-container .category-hero-top-row .category-share-buttons {
        max-width: 140px;
    }

    #episode-flip-container .category-hero-top-row .category-share-btn {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
}

/* Info section hyperlocal-steps fixed height with scroll */
#episode-flip-container + .trivia-info-section .hyperlocal-steps {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

#episode-flip-container + .trivia-info-section .hyperlocal-steps::-webkit-scrollbar {
    width: 4px;
}

#episode-flip-container + .trivia-info-section .hyperlocal-steps::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

#episode-flip-container + .trivia-info-section .hyperlocal-steps::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.4);
    border-radius: 2px;
}

@media (max-width: 768px) {
    #episode-flip-container + .trivia-info-section .hyperlocal-steps {
        max-height: 250px;
    }
}

/* Episode back card - align hyperlocal-steps to bottom with scroll */
#episode-flip-container .category-article.flip-card-back {
    display: flex;
    flex-direction: column;
}

#episode-flip-container .category-article.flip-card-back .article-header {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

#episode-flip-container .category-article.flip-card-back .hyperlocal-steps {
    margin-top: 0;
    flex: 1 !important;
    min-height: 0;
    max-height: none !important;
    overflow-y: auto;
    padding-right: 0.5rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#episode-flip-container .category-article.flip-card-back .hyperlocal-steps::-webkit-scrollbar {
    width: 4px;
}

#episode-flip-container .category-article.flip-card-back .hyperlocal-steps::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

#episode-flip-container .category-article.flip-card-back .hyperlocal-steps::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.4);
    border-radius: 2px;
}

@media (max-width: 768px) {
    #episode-flip-container .category-article.flip-card-back .hyperlocal-steps {
        flex: 1;
        max-height: none;
    }
}

/* Episode page - article-content fits to content */
#episode-flip-container .article-content {
    max-height: none;
    height: auto;
    flex: 0 0 auto;
    overflow-y: visible;
    mask-image: none;
    -webkit-mask-image: none;
}

/* ==========================================
   3D EXPLORER OVERLAY (MAPBOX)
   ========================================== */

.explore3d-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a1a;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.explore3d-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Header */
.explore3d-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(15, 52, 96, 0.98) 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    z-index: 10;
}

.explore3d-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.explore3d-close:hover {
    background: rgba(233, 30, 140, 0.3);
    border-color: #e91e8c;
    transform: scale(1.05);
}

.explore3d-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Fredoka", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffd700;
}

.explore3d-title i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #ffd700, #e91e8c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.explore3d-controls {
    display: flex;
    gap: 8px;
}

.explore3d-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.explore3d-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
    color: #ffd700;
}

.explore3d-btn.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(233, 30, 140, 0.25) 100%);
    border-color: #ffd700;
    color: #ffd700;
}

.explore3d-btn i {
    font-size: 1rem;
}

/* Map Container */
.explore3d-map {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 300px;
    position: relative;
}

#mapbox3dContainer {
    width: 100% !important;
    height: 100% !important;
}

/* Footer */
.explore3d-footer {
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(15, 52, 96, 0.98) 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.explore3d-stats {
    display: flex;
    gap: 20px;
}

.explore3d-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    color: #fff;
}

.explore3d-stat i {
    color: #ffd700;
    font-size: 1rem;
}

.explore3d-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.explore3d-hint i {
    font-size: 1rem;
}

/* Error State */
.explore3d-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.5);
    font-family: "Fredoka", sans-serif;
    gap: 10px;
}

.explore3d-error i {
    font-size: 3rem;
    color: #e94560;
}

/* 3D Aura Marker - Enhanced (Pink) */
.mapbox3d-aura-marker {
    position: relative;
    width: 80px;
    height: 100px;
    pointer-events: none;
}

.mapbox3d-aura-marker .marker-pulse {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: radial-gradient(ellipse, rgba(233, 30, 140, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    animation: markerPulse 2s ease-out infinite;
}

.mapbox3d-aura-marker .marker-pin {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.mapbox3d-aura-marker .marker-pin::before {
    content: "";
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #e91e8c 0%, #9b59b6 50%, #e91e8c 100%);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow:
        0 0 20px rgba(233, 30, 140, 0.6),
        0 0 40px rgba(233, 30, 140, 0.3),
        inset 0 -5px 15px rgba(0, 0, 0, 0.2),
        inset 0 5px 15px rgba(255, 255, 255, 0.3);
    animation: markerFloat 3s ease-in-out infinite;
}

.mapbox3d-aura-marker .marker-pin::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, #e91e8c, transparent);
}

@keyframes markerPulse {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.6;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translateX(-50%) scale(4);
        opacity: 0;
    }
}

@keyframes markerFloat {
    0%,
    100% {
        transform: rotate(-45deg) translateY(0);
    }
    50% {
        transform: rotate(-45deg) translateY(-5px);
    }
}

/* 3D Avatar Marker (like Google Maps) */
.mapbox3d-avatar-marker {
    position: relative;
    width: 70px;
    height: 70px;
    pointer-events: auto;
    cursor: pointer;
}

.mapbox3d-avatar-marker .avatar-marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(233, 30, 140, 0.4) 0%, transparent 70%);
    animation: avatarPulse 2s ease-out infinite;
}

.mapbox3d-avatar-marker .avatar-marker-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #e91e8c;
    box-shadow:
        0 0 15px 5px rgba(233, 30, 140, 0.5),
        inset 0 0 10px rgba(233, 30, 140, 0.3);
    animation: avatarRingPulse 2s ease-in-out infinite;
}

.mapbox3d-avatar-marker .avatar-marker-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    border: 2px solid #ffd700;
    box-shadow:
        0 0 10px rgba(255, 215, 0, 0.5),
        inset 0 0 5px rgba(0, 0, 0, 0.3);
}

@keyframes avatarPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

@keyframes avatarRingPulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow:
            0 0 15px 5px rgba(233, 30, 140, 0.5),
            inset 0 0 10px rgba(233, 30, 140, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow:
            0 0 25px 8px rgba(233, 30, 140, 0.7),
            inset 0 0 15px rgba(233, 30, 140, 0.4);
    }
}

/* Location Markers - Enhanced 3D Style */
.mapbox3d-location-marker {
    cursor: pointer;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 8px 16px rgba(233, 30, 140, 0.4));
}

.mapbox3d-location-marker:hover {
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 12px 24px rgba(233, 30, 140, 0.6));
}

/* 3D Business Markers */
.mapbox3d-business-marker {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.mapbox3d-business-marker:hover {
    transform: scale(1.1) translateY(-3px);
}

.mapbox3d-business-marker .business-marker-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.5);
    overflow: hidden;
}

.mapbox3d-business-marker .business-marker-icon.has-image {
    background: #fff;
    padding: 0;
}

.mapbox3d-business-marker .business-marker-icon.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.mapbox3d-business-marker .business-marker-label {
    margin-top: 4px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 11px;
    font-family: "Fredoka", sans-serif;
    border-radius: 10px;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 3D Business Popup */
.mapbox3d-business-popup {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 35, 0.95);
    border: 1px solid rgba(233, 30, 140, 0.3);
    border-radius: 12px;
    padding: 0;
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.mapbox3d-business-popup .business-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #e91e8c 0%, #9b59b6 100%);
    border-radius: 12px 12px 0 0;
}

.mapbox3d-business-popup .business-popup-name {
    font-family: "Fredoka", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.mapbox3d-business-popup .business-popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.mapbox3d-business-popup .business-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mapbox3d-business-popup .business-popup-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.mapbox3d-business-popup .business-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mapbox3d-business-popup .business-popup-image .business-popup-type {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(233, 30, 140, 0.9);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-family: "Fredoka", sans-serif;
    text-transform: capitalize;
}

.mapbox3d-business-popup .business-popup-body {
    padding: 12px 16px;
}

.mapbox3d-business-popup .business-popup-body > div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mapbox3d-business-popup .business-popup-body > div:last-child,
.mapbox3d-business-popup .business-popup-body > a:last-child {
    border-bottom: none;
}

.mapbox3d-business-popup .business-popup-body i {
    color: #e91e8c;
    width: 16px;
}

.mapbox3d-business-popup .business-popup-rating i {
    color: #f1c40f;
}

.mapbox3d-business-popup .business-popup-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: #3498db;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.mapbox3d-business-popup .business-popup-link:hover {
    color: #e91e8c;
}

.mapbox3d-business-popup .business-popup-link i {
    color: inherit;
}

/* Hex Toast Message */
.hex-toast {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20, 20, 35, 0.9);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-family: "Fredoka", sans-serif;
    font-size: 14px;
    border: 1px solid rgba(233, 30, 140, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
}

.hex-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.location-marker-inner {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #e91e8c 0%, #9b59b6 50%, #e91e8c 100%);
    border: 4px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 15px rgba(233, 30, 140, 0.5),
        inset 0 -3px 10px rgba(0, 0, 0, 0.2),
        inset 0 3px 10px rgba(255, 255, 255, 0.2);
    animation: locationFloat 4s ease-in-out infinite;
}

.location-marker-inner::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 20px;
    height: 6px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.location-marker-number {
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    transform: rotate(45deg);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@keyframes locationFloat {
    0%,
    100% {
        transform: rotate(-45deg) translateY(0);
    }
    50% {
        transform: rotate(-45deg) translateY(-4px);
    }
}

/* Popup Styles */
.mapbox3d-popup {
    padding: 8px 12px;
    font-family: "Fredoka", sans-serif;
}

.mapbox3d-popup strong {
    display: block;
    font-size: 0.9rem;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.mapbox3d-popup span {
    font-size: 0.8rem;
    color: #666;
}

/* Mapbox/MapLibre default styles override */
.mapboxgl-popup-content,
.maplibregl-popup-content {
    padding: 0 !important;
    border-radius: 10px !important;
    overflow: hidden;
}

.mapboxgl-popup-tip,
.maplibregl-popup-tip {
    border-top-color: #fff !important;
}

/* MapLibre control styling */
.maplibregl-ctrl-group {
    background: rgba(26, 26, 46, 0.9) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
}

.maplibregl-ctrl-group button {
    background-color: transparent !important;
}

.maplibregl-ctrl-group button:hover {
    background-color: rgba(255, 215, 0, 0.2) !important;
}

.maplibregl-ctrl-group button span {
    filter: invert(1);
}

/* 3D Map Particles */
.map3d-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 10;
}

.map3d-particle {
    position: absolute;
    background: radial-gradient(circle, #ffd700 0%, #e91e8c 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
    animation: particleTwinkle 2s ease-in-out infinite;
}

@keyframes particleTwinkle {
    0%,
    100% {
        transform: scale(1);
        filter: blur(1px) brightness(1);
    }
    50% {
        transform: scale(1.3);
        filter: blur(0px) brightness(1.5);
    }
}

/* Style toggle buttons */
.explore3d-style-btn.active {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.3) 0%, rgba(155, 89, 182, 0.3) 100%) !important;
    border-color: #e91e8c !important;
}

/* Explore 3D button in map header */
.map-btn.explore3d {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(233, 30, 140, 0.2) 100%);
    border-color: rgba(255, 215, 0, 0.5);
    color: #ffd700;
}

.map-btn.explore3d:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4) 0%, rgba(233, 30, 140, 0.4) 100%);
    border-color: #ffd700;
    transform: scale(1.1);
}

.map-btn.explore3d i {
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .explore3d-header {
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .explore3d-title {
        font-size: 1rem;
        order: 2;
        flex: 1;
        justify-content: center;
    }

    .explore3d-close {
        width: 36px;
        height: 36px;
        order: 1;
    }

    .explore3d-controls {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .explore3d-btn span {
        display: none;
    }

    .explore3d-btn {
        padding: 10px 14px;
    }

    .explore3d-footer {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }

    .explore3d-stats {
        gap: 15px;
    }

    .explore3d-stat {
        font-size: 0.8rem;
    }

    .explore3d-hint {
        font-size: 0.7rem;
        text-align: center;
    }
}

/* CSS Custom Properties for consistent theming */
:root {
    --primary-yellow: #ffd645;
    --primary-black: #000000;
    --text-shadow: 2px 2px 8px rgba(0, 0, 0, 1);
    --border-dashed: 2px dashed var(--primary-yellow);
    --backdrop-blur: backdrop-filter: blur(10px);
    --transition-smooth: all 0.3s ease;
    --box-shadow-light: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.main-content {
    padding: 2rem;
    min-height: 100vh;
    background-color: transparent;
    width: 100%;
    padding-top: 100px;
}

.main-content .container-fluid {
    max-width: 100%;
    width: 100%;
}

@media (max-width: 991.98px) {
    .main-content {
        padding: 1rem;
        padding-top: 120px;
    }
}

/* Language Dropdown Styles */
.dropdown-toggle {
    border-color: #ffd645 !important;
    color: #ffd645 !important;
}

.dropdown-toggle-no-border {
    border: unset;
}

.dropdown-toggle:hover {
    background-color: #ffd645 !important;
    color: #000 !important;
}

.dropdown-toggle .fi {
    font-size: 1.2rem;
}

.dropdown-menu {
    background: rgba(0, 0, 0, 0.95) !important;
    border: 1px solid #ffd645 !important;
    border-radius: 8px !important;
}

.dropdown-item {
    color: white !important;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 214, 69, 0.2) !important;
    color: #ffd645 !important;
}

.dropdown-item .fi {
    font-size: 1rem;
}

.card {
    border: none;
    box-shadow: 0 0 35px 0 rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Custom styles for the guest template */

/* Standard heading styling - SCOPED to map overlay elements only */
#map-overlay h1,
#map-overlay h2,
#map-overlay h3,
#map-overlay h4,
#map-overlay h5,
#map-overlay h6,
.map-overlay h1,
.map-overlay h2,
.map-overlay h3,
.map-overlay h4,
.map-overlay h5,
.map-overlay h6,
#level-message-display h1,
#level-message-display h2,
#level-message-display h3,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: "Slackey", sans-serif;
    color: var(--primary-yellow) !important;
    -webkit-text-stroke: 0.5px var(--primary-black);
    text-shadow: var(--text-shadow);
    line-height: 1;
    text-transform: uppercase !important;
}

.hero-section {
    padding: 60px 0;
    background-color: #000;
}

.hero-section-bgimg {
    padding: 60px 0;
    background-color: #000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 767px) {
    .hero-section-bgimg {
        padding: 30px 0;
        aspect-ratio: 16/9;
    }
}

.hero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.mobile-hide-text {
    display: inline;
}

@media (max-width: 767px) {
    .mobile-hide-text {
        display: none;
    }
}

/* Remove drop shadow and outline from specific h2 */
.ls-tight-header {
    -webkit-text-stroke: 0 !important;
    text-stroke: 0 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    padding-top: 30px;
    margin-top: 60px;
    margin-bottom: 20px;
    font-size: 5rem !important;
    font-weight: bold;
    color: #ffd700;
    text-transform: uppercase;
    font-family: "Slackey", sans-serif;
    line-height: 1 !important;
    text-align: center;
}

.ls-tight-header-small {
    -webkit-text-stroke: 0 !important;
    text-stroke: 0 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    padding-top: 30px;
    margin-top: 60px;
    margin-bottom: 20px;
    font-size: 3rem !important;
    font-weight: bold;
    color: #ffd700;
    text-transform: uppercase;
    font-family: "Slackey", sans-serif;
    line-height: 1 !important;
    text-align: center;
}

@media (max-width: 767px) {
    .ls-tight-header {
        font-size: 3rem !important;
    }

    .font-courier-prime-header {
        text-align: center;
    }
}

.font-courier-prime-header {
    font-family: "Fredoka", sans-serif !important;
    color: #fff;
    line-height: 1.1;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    margin-bottom: 20px;
}

.btn-custom-yellow {
    background: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: "Slackey", sans-serif;
    text-transform: uppercase;
    box-shadow: var(--box-shadow-light);
    display: block;
    margin: 0 auto;
    width: fit-content;
}

.btn-custom-yellow:hover {
    background: #e6c13e;
    /* Darker yellow */
    color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 214, 69, 0.3);
}

.btn-yellow {
    background-color: #ffd700 !important;
    border: 2px solid black !important;
    color: black !important;
    font-family: "Fredoka", sans-serif !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
}

.btn-yellow:hover {
    background-color: black !important;
    border: 2px solid black !important;
    color: #ffd700 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

.timeline-item .btn-custom-yellow {
    line-height: 1;
}

/* Timeline button drop shadow */
.btn-custom-yellow {
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.8)) !important;
}

.deck-ui-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
    gap: 30px;
    padding: 20px 0;
    justify-content: center;
    place-items: center;
}

.deck-ui-card {
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 215, 0, 0.5);
    position: relative;
    aspect-ratio: 3/4;
}

.deck-ui-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
}

.deck-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.deck-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.deck-ui-card:hover .deck-card-image img {
    transform: scale(1.1);
}

.deck-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.3));
}

.deck-card-content {
    padding: 25px;
}

.deck-card-title {
    color: #ffd700;
    font-family: "Slackey", cursive;
    font-weight: bold;
    font-size: 1.4rem !important;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
}

.deck-card-description {
    color: #ffffff;
    font-family: "Fredoka", sans-serif;
    margin-bottom: 15px;
    line-height: 1.4;
}

.deck-card-stats {
    margin-bottom: 20px;
}

.deck-stat {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-family: "Fredoka", sans-serif;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.deck-card-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-family: "Fredoka", sans-serif;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.deck-card-button:hover {
    background: linear-gradient(45deg, #ffed4e, #ffd700);
    transform: translateX(5px);
    color: #000;
    text-decoration: none;
}

.deck-card-button i {
    transition: transform 0.3s ease;
}

.deck-card-button:hover i {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .deck-ui-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 180px));
        max-width: 400px;
        margin: 0 auto;
        gap: 15px;
        padding: 10px;
        justify-content: center;
        place-items: center;
    }

    .deck-card-content {
        padding: 5px;
    }

    .deck-ui-card {
        display: flex;
        flex-direction: column;
    }

    .deck-card-image {
        order: 2;
    }

    .deck-card-content {
        order: 1;
        padding: 5px;
    }

    .deck-card-title {
        font-size: 1rem !important;
        margin-top: 0;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .deck-mobile-hide {
        display: none;
    }

    .pagination-info-mobile {
        font-size: 1.5rem !important;
    }
}

/* Pagination Styles */
.pagination {
    margin: 0;
}

.pagination .page-link {
    background-color: transparent;
    border: 2px solid rgba(255, 215, 0, 0.5);
    color: #ffffff;
    padding: 10px 15px;
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: "Fredoka", sans-serif;
    font-weight: bold;
}

.pagination .page-link:hover {
    background-color: var(--primary-yellow);
    color: #000000;
    border-color: var(--primary-yellow);
    transform: translateY(-2px);
}

.pagination .page-item.active .pagination-link-active {
    background-color: var(--primary-yellow);
    color: #000000;
    border-color: var(--primary-yellow);
    border: 2px solid var(--primary-yellow);
    padding: 10px 15px;
    margin: 0 2px;
    border-radius: 8px;
    font-family: "Fredoka", sans-serif;
    font-weight: bold;
}

.pagination .page-item.disabled .page-link {
    background-color: transparent;
    border-color: rgba(255, 215, 0, 0.3);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.pagination .page-item.disabled .page-link:hover {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 215, 0, 0.3);
    transform: none;
}

/* Override for timeline headings */
.timeline-item h3,
.timeline-item h4,
.timeline-item h5 {
    color: white !important;
    text-shadow: var(--text-shadow) !important;
    -webkit-text-stroke: 0 !important;
}

.timeline-item p {
    text-shadow: var(--text-shadow) !important;
}

/* Override for modal titles */
.modal .modal-title {
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
}

/* Custom Modal Styles for Timeline */
.timeline-image-modal .modal-content {
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    border: 2px solid var(--primary-yellow);
    background-color: transparent;
    border-radius: 0.5rem;
    /* Match BS default */
    overflow: hidden;
    /* Ensure background doesn't bleed */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    /* For positioning the footer */
}

.timeline-image-modal .modal-body {
    padding-bottom: 5rem;
    /* Add padding for footer overlay */
}

@media (min-width: 769px) {
    .timeline-image-modal .modal-dialog {
        max-width: none;
        /* Allow content to determine width */
        justify-content: center;
        /* Center the modal-content inside */
    }

    .timeline-image-modal .modal-content {
        height: 90vh;
        /* Taller to fit image */
        width: calc(90vh * (1290 / 2796));
        /* Calculate width based on 90vh height and aspect ratio */
    }
}

.timeline-image-modal .modal-header {
    border-bottom: none;
    background-color: transparent;
    box-shadow: none;
    /* Match parent's border-radius, accounting for the border width */
    border-top-left-radius: calc(0.5rem - 2px);
    border-top-right-radius: calc(0.5rem - 2px);
}

.timeline-image-modal .modal-footer {
    border-top: none;
    background-color: transparent;
    /* Transparent by default */
    /* Match parent's border-radius, accounting for the border width */
    border-bottom-left-radius: calc(0.5rem - 2px);
    border-bottom-right-radius: calc(0.5rem - 2px);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transition: background-color 0.3s ease;
    /* Smooth transition */
}

.timeline-image-modal .modal-footer.footer-expanded {
    background-color: rgba(0, 0, 0, 0.8);
    /* Darker background when expanded */
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.7);
    border-top: 2px dashed var(--primary-yellow);
}

.timeline-image-modal .modal-footer p {
    font-size: 0.9rem;
    line-height: 1.3;
    margin: 0;
    text-shadow: var(--text-shadow);
    text-align: left;
}

.toggle-footer {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    cursor: pointer;
    text-transform: uppercase;
    text-shadow:
        2px 2px 0px #000000,
        -2px -2px 0px #000000,
        2px -2px 0px #000000,
        -2px 2px 0px #000000,
        0 0 10px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2);
    font-family: "Slackey", sans-serif;
}

.toggle-footer:hover {
    color: #e6c13e;
    /* Darker yellow */
    text-decoration: none;
}

/* Styles for the "Less..." state of the toggle link */
.toggle-footer.less-state {
    color: var(--primary-yellow);
    text-shadow: var(--text-shadow);
}

.modal-footer div {
    width: 100%;
    text-align: right;
}

.font-courier-prime {
    font-size: 1.1rem !important;
}

/* Mobile font size for Courier Prime */
@media (max-width: 768px) {
    .font-courier-prime {
        font-size: 1rem !important;
    }
}

.font-courier-prime-timeline {
    font-family: "Fredoka", sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.1 !important;
}

/* Mobile font size for Courier Prime */
@media (max-width: 768px) {
    .font-courier-prime-timeline {
        font-size: 0.9rem !important;
    }
}

/* Timeline description specific styling */
.timeline-content-overlay .font-courier-prime {
    line-height: 1.1 !important;
    text-opacity: 1 !important;
}

/* Timeline headline and description drop shadows */
.timeline-content-overlay h4,
.timeline-content-overlay .font-courier-prime {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9) !important;
}

/* Mobile font size for timeline description */
@media (max-width: 768px) {
    .timeline-content-overlay .font-courier-prime {
        font-size: 1.2rem !important;
    }
}

/* Timeline title color */
.timeline-content-overlay h4 {
    color: var(--primary-yellow) !important;
}

/* Modal highlight paragraphs styling */
.modal-highlight-text {
    font-family: "Fredoka", sans-serif !important;
    font-size: 1.1rem !important;
    line-height: 1 !important;
    text-shadow:
        1px 1px 0px #000000,
        -1px -1px 0px #000000,
        1px -1px 0px #000000,
        -1px 1px 0px #000000 !important;
}

/* Cookie consent text styling */
.cookie-consent-text {
    font-family: "Fredoka", sans-serif !important;
    font-size: 0.9rem !important;
    line-height: 1.1 !important;
}

/* Cookie consent buttons styling */
.btn-accept,
.btn-reject {
    font-family: "Slackey", sans-serif !important;
    text-transform: uppercase !important;
}

/* Styles for Modal Navigation Arrows */
.modal-nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 5rem;
    color: var(--primary-yellow);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    text-decoration: none;
    opacity: 1;
    transition:
        opacity 0.2s ease,
        color 0.2s ease,
        visibility 0.2s ease;
    z-index: 1060;
    /* Higher than modal z-index (1055) */
    visibility: hidden;
    /* Hidden by default */
    -webkit-text-stroke: 2px var(--primary-yellow);
    /* Thicker arrows */
}

.modal-nav-arrow.visible {
    visibility: visible;
}

.modal-nav-arrow:hover {
    opacity: 1;
    color: #e6c13e;
    /* Darker yellow */
}

.modal-nav-arrow.prev-arrow {
    left: 30px;
}

.modal-nav-arrow.next-arrow {
    right: 30px;
}

/* Modal backdrop styling */
.modal-backdrop {
    background-color: #000 !important;
    opacity: 1 !important;
}

.modal-backdrop.show {
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .modal-nav-arrow {
        font-size: 3rem;
        /* Smaller arrows on mobile */
    }

    .modal-nav-arrow.prev-arrow {
        left: 10px;
        /* Closer to the edge on mobile */
    }

    .modal-nav-arrow.next-arrow {
        right: 10px;
        /* Closer to the edge on mobile */
    }
}

/* Style for the yellow close button in the modal */
.timeline-image-modal .btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffd645'%3e%3cpath stroke='%23ffd645' stroke-width='2' d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.7));
    opacity: 0.8;
}

.timeline-image-modal .btn-close:hover {
    opacity: 1;
}

/* Make h1 same size as map overlay heading on non-mobile devices */
/* SCOPED: Only applies to map overlay elements, not all pages */
@media (min-width: 769px) {
    #map-overlay h1,
    #map-overlay .h1,
    .map-overlay h1,
    .map-overlay .h1,
    #level-message-display h1,
    #level-message-display .h1 {
        font-size: 6rem !important;
        line-height: 0.9 !important;
    }

    #map-overlay h2,
    #map-overlay .h2,
    .map-overlay h2,
    .map-overlay .h2,
    #level-message-display h2,
    #level-message-display .h2 {
        font-size: 4rem !important;
        line-height: 0.9 !important;
    }

    #map-overlay h3,
    #map-overlay .h3,
    .map-overlay h3,
    .map-overlay .h3,
    #level-message-display h3,
    #level-message-display .h3 {
        font-size: 3rem !important;
        line-height: 0.9 !important;
    }
}

/* Mobile responsive info box */
@media (max-width: 767.98px) {
    #info_box_top_right {
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: 0 !important;
        border-radius: 10px;
        border-left: none;
        border-right: none;
        border-bottom: none;
        margin: 20px;
    }

    /* Mobile paragraph styling */
    .lead.text-white.text-opacity-75.mt-5 {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        text-align: left !important;
    }

    /* Specific paragraph styling - same font size on all views */
    .lead.text-white.text-opacity-75.mt-5.mb-5 {
        font-size: 0.9rem !important;
    }

    /* Override Bootstrap lead class for specific paragraph */
    p.lead.text-white.text-opacity-75.mt-5.mb-5 {
        font-size: 0.9rem !important;
    }
}

/* Logo overlay on map */
#logo-overlay {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    pointer-events: none;
}

.map-logo {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
    transform: scale(0.75);
}

/* Section bottom borders - REMOVED: was causing unwanted yellow dashed borders */
/* Map container bottom border - REMOVED: was causing unwanted yellow dashed borders */

/* Moved inline styles to stylesheet */
.map-container {
    position: relative;
}

.hexagon-map {
    margin-top: 76px;
    width: 100%;
    height: 40vw;
}

/* Show map overlay on desktop/tablet */
.map-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
    pointer-events: none;
}

.info-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #fff;
    text-align: center;
}

#total_area_display {
    font-family: Arial, sans-serif !important;
    font-weight: 900 !important;
    text-shadow: var(--text-shadow);
}

#level-message-display {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: white;
    font-size: 1rem;
    text-align: center;
    width: 80%;
    font-weight: bold;
    text-shadow: var(--text-shadow);
    text-transform: uppercase;
    font-family: "Fredoka", sans-serif;
    line-height: 1;
}

@media (min-width: 769px) {
    #level-message-display {
        font-size: 1.5rem;
    }
}

.info-box-top-right {
    position: absolute;
    bottom: 20px;
    right: 15px;
    z-index: 2;
    width: 300px;
    background: rgba(255, 214, 69, 0.95);
    backdrop-filter: blur(10px);
    border: 2px dashed var(--primary-black);
    box-shadow: var(--box-shadow-light);
}

.info-message-text {
    color: #000;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: bold;
}

.lead-text-spacing {
    line-height: 1.1;
}

.promo-card {
    min-height: 30vh;
}

.text-spacing-medium {
    line-height: 1.2;
}

.hidden-input {
    display: none;
}

.testimonial-card-header {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem 1rem 0 0;
}

.testimonial-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
}

.testimonial-avatar-container {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-author-image {
    object-fit: cover;
}

/* Pulsating animation for "Free" text */
@keyframes pulsate {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.pulsate-free {
    color: #ffd645 !important;
    animation: pulsate 2s ease-in-out infinite;
    display: inline-block;
}

/* Reusable pulsating animation class */
.pulsating-effect {
    animation: pulsate 2s ease-in-out infinite;
    display: inline-block;
}

/* Area Coverage header styling - same font as headline */
#info_level_top_right {
    font-family: "Slackey", sans-serif;
    font-weight: normal !important;
    line-height: 0.9;
    color: #000000 !important;
    text-shadow: none !important;
}

/* Bottom left info box header styling - same as top right */
#info_level {
    font-family: "Slackey", sans-serif;
    font-weight: normal !important;
    line-height: 0.9;
    color: #000000 !important;
    text-shadow: none !important;
}

/* Map marker icon styling - same as navbar icons */
.map-marker-icon {
    color: #ffd645 !important;
    -webkit-text-stroke: 1px black;
    text-stroke: 1px black;
    font-size: 1.5rem !important;
    text-shadow: none;
    transform: rotate(-20deg) !important;
    display: inline-block;
}

/* Bottom left info box icon styling */
#info_box .bi-gift {
    color: #000000 !important;
    -webkit-text-stroke: none;
    text-stroke: none;
    text-shadow: none;
    font-size: 1.5rem !important;
    transform: rotate(-20deg) !important;
    display: inline-block;
}

/* Area calculation styling - same font as Area Coverage header */
#total_area_display {
    font-family: "Slackey", sans-serif;
    font-weight: 900 !important;
}

/* Remove shadow and outline from specific h3 heading */
h3.h3.text-white.mb-4 {
    text-shadow: none !important;
    -webkit-text-stroke: 0px !important;
    text-stroke: 0px !important;
    font-weight: normal !important;
}

/* Remove drop shadow from map center heading */
#rotating-message {
    text-shadow: none !important;
}

/* Styling for rotating icon in top-left overlay */
#info_icon {
    font-size: 1.5rem !important;
    text-shadow: none !important;
    -webkit-text-stroke: none !important;
    text-stroke: none !important;
    color: #000000 !important;
    display: inline-block;
    margin-bottom: -0.5rem !important;
}

/* Mobile responsive promo section */
@media (max-width: 767.98px) {
    #promo-one {
        height: 56vw !important;
    }
}

/* Promo section styling */
#promo-one {
    background-image: url("https://images.unsplash.com/photo-1611095973763-414019e72400?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1200&h=800&q=80");
    height: 11vw;
    border-top: 2px dashed #fff;
    border-bottom: 2px dashed #fff;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Promo overlay */
.promo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Promo container */
.promo-container {
    position: relative;
    z-index: 2;
}

/* Rotating message overlay on map */
#rotating-message-overlay {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 10;
    text-align: center;
    color: #ffff00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    width: 70%;
}

#rotating-message-overlay h2,
#rotating-message {
    font-size: 8rem !important;
    font-weight: 900 !important;
    font-family: "Slackey", sans-serif;
    margin: 0;
    line-height: 0.9;
    color: white !important;
    -webkit-text-stroke: 0.5px var(--primary-black);
}

/* Smaller font size for level 1 message */
#rotating-message.level-1-message {
    font-size: 4rem !important;
    text-transform: uppercase !important;
}

/* Make level 1 message container narrower */
#rotating-message-overlay:has(.level-1-message) {
    width: 60% !important;
}

/* GamifEYE brand colors in rotating message */
.gamif-white {
    color: white !important;
    -webkit-text-stroke: 0.5px var(--primary-black);
}

.eye-yellow {
    color: var(--primary-yellow) !important;
    -webkit-text-stroke: 0.5px var(--primary-black);
}

/* Make GamifEYE branding larger on level 2+ messages */
#rotating-message:not(.level-1-message) .gamif-white,
#rotating-message:not(.level-1-message) .eye-yellow {
    font-size: 10rem;
}

/* Make the rotating text smaller after GamifEYE for level 2+ */
#rotating-message:not(.level-1-message) {
    font-size: 6rem !important;
}

/* Make font smaller for levels 6 and 7 specifically */
#rotating-message.level-6-message,
#rotating-message.level-7-message {
    font-size: 4rem !important;
}

/* Mobile styles for map elements */
@media (max-width: 768px) {
    #level-message-display {
        line-height: 1;
    }

    #rotating-message-overlay h2,
    #rotating-message {
        font-size: 2rem !important;
        -webkit-text-stroke: 2px var(--primary-black) !important;
        font-weight: 900;
    }

    /* Smaller font size for level 1 message on mobile */
    #rotating-message.level-1-message {
        font-size: 1.5rem !important;
        text-transform: uppercase !important;
    }

    /* Make level 1 message container narrower on mobile */
    #rotating-message-overlay:has(.level-1-message) {
        width: 90% !important;
    }

    /* Make the rotating text smaller after GamifEYE for level 2+ on mobile */
    #rotating-message:not(.level-1-message) {
        font-size: 1.5rem !important;
    }

    /* Make font smaller for levels 6 and 7 specifically on mobile */
    #rotating-message.level-6-message,
    #rotating-message.level-7-message {
        font-size: 1.2rem !important;
    }

    /* Mobile text outline for GamifEYE branding */
    .gamif-white,
    .eye-yellow {
        -webkit-text-stroke: 2px var(--primary-black) !important;
    }

    /* Make GamifEYE branding larger on level 2+ messages on mobile */
    #rotating-message:not(.level-1-message) .gamif-white,
    #rotating-message:not(.level-1-message) .eye-yellow {
        font-size: 2.5rem;
    }

    /* Remove outline but keep drop shadow on rotating message on mobile */
    #rotating-message-overlay h2,
    #rotating-message,
    #rotating-message .gamif-white,
    #rotating-message .eye-yellow {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
        -webkit-text-stroke: 0 !important;
        -webkit-text-stroke-width: 0 !important;
        -webkit-text-stroke-color: transparent !important;
    }

    /* Move rotating message to top on mobile */
    #rotating-message-overlay {
        top: 10% !important;
        transform: translate(-50%, 0) !important;
    }

    /* Mobile-only map overlay */
    .map-overlay {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 70vw;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10;
        pointer-events: none;
    }

    #rotating-message-overlay {
        width: 90%;
    }

    .map-logo {
        max-height: 60px;
    }

    #logo-overlay {
        top: 42%;
    }

    /* Promo section height */
    #promo-one {
        height: 56vw !important;
    }

    /* Hide info box message on mobile */
    #info_level {
        display: none !important;
    }

    /* Make level text same size as area text on mobile */
    #info_level_text {
        font-size: 0.9rem !important;
    }

    .timeline-image-modal .modal-dialog {
        width: 72vw;
        /* Reduced by 20% from 90vw */
        margin: 1.75rem auto;
    }

    .timeline-image-modal .modal-content {
        aspect-ratio: 1290 / 2796;
        height: auto;
    }

    .timeline-image-modal .modal-body {
        min-height: unset;
        padding-bottom: 3rem;
    }

    .timeline-image-modal .modal-footer p {
        font-size: 0.8rem;
    }
}

/* Timeline Styles - Exact CodePen Implementation */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: "";
    position: absolute;
    width: 6px;
    background: repeating-linear-gradient(
        to bottom,
        var(--primary-yellow) 0,
        var(--primary-yellow) 8px,
        transparent 8px,
        transparent 16px
    );
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
    z-index: 1;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    z-index: 5;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    background-color: var(--primary-yellow);
    top: 15px;
    z-index: 10;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: 0 0 0 2px var(--primary-black);
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd)::after {
    right: -12.5px;
}

.timeline-item:nth-child(even)::after {
    left: -11.5px;
}

.timeline-content {
    padding: 0;
    /* Padding moved to the overlay */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 6px;
    border: 2px dotted var(--primary-yellow);
    transition: var(--transition-smooth);
}

.timeline-content-overlay {
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    height: 100%;
    border-radius: 4px;
    /* Match parent minus border */
}

.timeline-content::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    top: 15px;
    border: medium solid transparent;
    display: none;
    /* Hide the arrows */
}

.timeline-item:nth-child(odd) .timeline-content::after {
    border-left-color: rgba(255, 255, 255, 0.1);
    right: 100%;
    border-width: 10px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    border-right-color: rgba(255, 255, 255, 0.1);
    left: 100%;
    border-width: 10px;
}

/* Staggered animation delays */
.timeline-item:nth-child(1) {
    transition-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    transition-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    transition-delay: 0.3s;
}

.timeline-item:nth-child(4) {
    transition-delay: 0.4s;
}

.timeline-item:nth-child(5) {
    transition-delay: 0.5s;
}

.timeline-item:nth-child(6) {
    transition-delay: 0.6s;
}

.timeline-item:nth-child(7) {
    transition-delay: 0.7s;
}

.timeline-item:nth-child(8) {
    transition-delay: 0.8s;
}

/* Hover effects */
.timeline-item:hover .timeline-content {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 214, 69, 0.3);
}

/* Timeline line animation */
.timeline::after {
    animation: timelineGrow 2s ease-out 0.5s both;
}

@keyframes timelineGrow {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}

/* Mobile responsive timeline */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .timeline-item::after {
        left: 15px;
        right: auto;
    }

    .timeline-item:nth-child(even)::after {
        left: 15px;
    }

    .timeline-content::after {
        border-left-color: rgba(255, 255, 255, 0.1);
        right: 100%;
        left: auto;
        border-width: 10px;
    }

    .timeline-item:nth-child(even) .timeline-content::after {
        border-left-color: rgba(255, 255, 255, 0.1);
        right: 100%;
        left: auto;
        border-width: 10px;
    }

    /* Mobile-specific heading size for all timeline items */
    .timeline-item h3,
    .timeline-item h4 {
        font-size: 1.2rem !important;
    }

    /* Mobile-specific timeline paragraph text size */
    p.lead.text-opacity-75 {
        font-size: 0.9rem !important;
        text-align: left !important;
    }

    /* Mobile-specific timeline item paragraph text size */
    p.text-white.text-opacity-75 {
        font-size: 0.8rem !important;
    }

    /* Mobile-specific timeline hexagon positioning */
    .timeline-item::after {
        left: 19px !important;
        /* 15px + 4px = 19px */
    }
}

/* Testimonials Styles */
.testimonials-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 375px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .testimonials-container {
        height: 450px;
    }
}

.testimonial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s ease-in-out;
}

.testimonial.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-content {
    text-align: center;
    padding: 2rem;
}

.quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--primary-yellow);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.author {
    margin-top: 2rem;
}

.author-avatar {
    margin-bottom: 1rem;
}

.avatar-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid var(--primary-yellow);
    object-fit: cover;
}

.testimonial .author .author-name,
.testimonial .author .author-name h3,
.testimonial .author .author-name h3.h3 {
    font-size: 1.5rem !important;
    font-weight: bold;
    color: var(--primary-yellow) !important;
    margin-bottom: unset;
    -webkit-text-stroke: 0 !important;
    text-shadow: 0 0 0 transparent !important;
}

.author-title {
    font-size: 1rem;
    color: #cccccc;
}

.testimonial-dots {
    text-align: center;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #666;
    margin: 0 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary-yellow);
}

.dot:hover {
    background-color: var(--primary-yellow);
}

.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 20px 40px 20px;
    border-radius: 8px;
    z-index: 9999;
    max-width: 350px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: var(--box-shadow-light);
    border: 1px solid var(--primary-yellow);
    transform: translateX(-110%);
    transition: transform 0.3s ease-in-out;
    backdrop-filter: blur(10px);
}

.cookie-consent.show {
    transform: translateX(0);
}

.cookie-consent h4 {
    color: var(--primary-yellow);
    margin: 0 0 8px 0;
    font-family: "Slackey", sans-serif;
    font-size: 16px;
    -webkit-text-stroke: unset;
    text-shadow: unset;
}

.cookie-consent p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.cookie-consent .cookie-buttons {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-consent .btn {
    padding: 6px 12px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.cookie-consent .btn-accept {
    background: var(--primary-yellow);
    color: var(--primary-black);
}

.cookie-consent .btn-accept:hover {
    background: #e6c13e;
    transform: translateY(-1px);
}

.cookie-consent .btn-reject {
    background: transparent;
    color: var(--primary-yellow);
    border: 1px solid var(--primary-yellow);
}

.cookie-consent .btn-reject:hover {
    background: var(--primary-yellow);
    color: var(--primary-black);
}

@media (max-width: 768px) {
    .cookie-consent {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        transform: translateY(110%);
    }

    .cookie-consent.show {
        transform: translateY(0);
    }

    .cookie-consent .cookie-buttons {
        justify-content: center;
    }
}

/* Fixed mobile app download message */
@media (max-width: 768px) {
    .mobile-app-download {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #1a1a1a;
        color: white;
        padding: 1rem;
        text-align: center;
        z-index: 1000;
        border-top: 2px dashed #ffd700;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.8);
    }

    .mobile-app-download .btn {
        border: 2px solid rgba(255, 215, 0, 0.5) !important;
        background-color: #ffd700 !important;
        color: #1a1a1a !important;
        transition: border-color 0.3s ease;
    }

    .mobile-app-download .btn:active {
        border: 2px solid #ffd700 !important;
    }

    .mobile-app-download .btn {
        font-family: "Fredoka", sans-serif !important;
        text-transform: uppercase !important;
    }
}

/* Download Modal Styles */
.download-modal-header {
    background-color: #1a1a1a;
    color: white;
    border: 1px solid #333;
}

.download-modal-title {
    text-shadow: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-text-stroke: none !important;
    text-stroke: none !important;
    -webkit-text-fill-color: inherit !important;
    border: none !important;
    -webkit-text-stroke-width: 0 !important;
    color: black !important;
    font-size: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    font-weight: bold;
}

.download-modal-description {
    font-family: "Fredoka", sans-serif;
    line-height: 1.1;
    font-size: 0.9rem;
}

/* Leaderboard Styles */
.clickable-card {
    cursor: pointer;
}

.avatar-image {
    object-fit: cover;
    border-radius: 10px;
}

.custom-modal-dialog {
    max-width: 400px;
    width: 90vw;
    margin: 0 auto;
}

.modal-body-relative {
    position: relative;
}

.landmark-map {
    height: 600px;
    width: 100%;
}

.landmark-marker {
    color: #ff0000;
    font-weight: bold;
}

.aura-marker {
    color: #ffd700;
    font-weight: bold;
}

.ratio-text {
    color: #ffffff;
    font-weight: bold;
    margin-top: 5px;
    text-align: right;
}

.map-key-content {
    line-height: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.map-key-item {
    margin-left: 20px;
}

.leaderboard-rank-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffd700;
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 10;
    border: 3px solid #000;
}

/* Leaderboard Modal Styles */
.leaderboard-modal-content {
    border: 2px solid #ffd700;
}

.leaderboard-modal-header {
    border-bottom: 2px dashed #ffd700;
}

.leaderboard-modal-title {
    color: #ffd700;
    line-height: 1.1;
}

.map-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ff0000;
    font-family: "Fredoka", sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow:
        2px 0 0 #000,
        -2px 0 0 #000,
        0 2px 0 #000,
        0 -2px 0 #000,
        2px 2px 0 #000,
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        3px 3px 6px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.map-disclaimer {
    font-weight: bold;
    position: absolute;
    bottom: -25px;
    left: 10px;
    right: 10px;
    color: white;
    font-family: "Fredoka", sans-serif;
    font-size: 0.7rem;
    text-align: center;
    text-transform: uppercase;
    z-index: 1000;
    display: none;
}

.map-key {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #ffd700;
    z-index: 1000;
    display: none;
}

.map-overlay-visible {
    display: block !important;
}

/* Leaderboard Mobile Responsive */
@media (max-width: 768px) {
    .map-key {
        font-size: 0.7rem !important;
    }

    .leaderboard-modal-dialog {
        margin: 0 auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
}

/* Template Styles */
/* Problem/Solution Card Styles */
.problem-card {
    border: 2px solid #666666 !important;
    background-color: rgba(20, 20, 20, 0.9) !important;
}

.problem-title {
    color: #cc6666 !important;
}

.problem-list {
    color: #cccccc !important;
    font-family: "Fredoka", sans-serif !important;
    line-height: 1.3 !important;
}

.problem-icon {
    color: #cc6666 !important;
}

.solution-card {
    border: 2px solid #00ff00 !important;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.15), rgba(0, 200, 0, 0.25)) !important;
}

.solution-title {
    color: #00ff00 !important;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5) !important;
}

.solution-list {
    color: #ffffff !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3) !important;
    font-family: "Fredoka", sans-serif !important;
    line-height: 1.3 !important;
}

.solution-icon {
    color: #00ff00 !important;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.6) !important;
}

/* Timeline Styles */
.timeline-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Template Deck Card Styles */
.template-deck-description-no-margin {
    margin-bottom: 0;
}

.template-deck-multiplier {
    text-transform: lowercase;
    font-size: 1rem;
}

/* Modal Background Styles */
.modal-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* JavaScript Card Tooltip Styles */
.card-tooltip {
    font-family: "Fredoka", sans-serif;
    text-align: center;
    padding: 10px;
    min-width: 200px;
}

.card-tooltip-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-bottom: 10px;
    object-fit: cover;
}

.card-tooltip-title {
    color: #ffd700;
    margin: 0;
    font-size: 1rem;
}

.card-tooltip-rarity {
    margin: 5px 0;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    font-weight: bold;
}

.card-tooltip-description {
    color: #999;
}

/* CSS from decks.blade.php */
.search-term-highlight {
    color: #fff;
}

.pagination-highlight {
    color: #ffd700;
}

.deck-multiplier-small {
    text-transform: lowercase;
    font-size: 1rem;
}

.deck-description-compact {
    margin-bottom: 0;
}

/* CSS from deck-detail.blade.php */
.deck-detail-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.empty-deck-title {
    text-shadow: none !important;
}

.empty-deck-description {
    font-family: "Fredoka", sans-serif;
    font-weight: bold;
    line-height: 1;
}

/* No results message styling for grid layouts */
.no-results-message {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* CSS from card-detail.blade.php */
.accordion-body {
    padding: unset;
}

.accordion-button {
    background-color: #ffd700 !important;
    color: #000 !important;
    border-color: #ffd700 !important;
}

.accordion-button:not(.collapsed) {
    background-color: #ffed4e !important;
    color: #000 !important;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button:focus {
    border-color: #ffd700 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25) !important;
}

.accordion-button::after {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%)
        contrast(100%);
}

.card-detail-deck-ui-card {
    aspect-ratio: 3/4;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid #ffd700;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.deck-ui-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.card-detail-deck-card-title {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    width: auto !important;
    max-width: none !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-family: "Fredoka", sans-serif !important;
    font-size: 16px !important;
    font-weight: normal !important;
    text-align: left !important;
    text-transform: none !important;
    z-index: 1000 !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    text-stroke: 0 !important;
    white-space: nowrap !important;
    border: 2px solid #ffd700 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5) !important;
    margin: 0 !important;
    display: inline-block;
}

.card-aura-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: "Fredoka", sans-serif;
    font-size: 16px;
    z-index: 1000;
    white-space: nowrap;
    border: 2px solid #ffd700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

@media (min-width: 769px) {
    .card-detail-deck-card-title {
        font-size: 16px !important;
    }
}

.card-detail-deck-card-image {
    position: absolute;
    top: calc(35px + 3rem + 80px);
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 10;
    border: 3px solid #ffd700;
}

.overlay-line-1 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 0.8;
}

.overlay-line-2 {
    font-size: 3.6rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #ffd700;
    line-height: 0.8;
}

.overlay-line-3 {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 0.8;
}

.card-detail-deck-card-description {
    position: relative;
    margin-top: 20px;
    left: 5%;
    width: 90%;
    color: white;
    text-align: left;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 1rem;
    font-family: "Fredoka", sans-serif;
    line-height: 1.4;
}

.card-detail-deck-card-description.stats-view {
    margin-top: 20px !important;
}

.card-detail-hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

.card-detail-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.container-relative {
    border-bottom: unset;
    position: relative;
    z-index: 2;
}

.accordion-button-content {
    width: 100%;
}

.deck-name-subtitle {
    font-family: "Fredoka", sans-serif;
    text-align: right;
    display: block;
    padding-right: 20px;
}

.deck-card-image-dashed {
    border-bottom: 2px dashed #ffd700;
}

.holder-avatar {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.card-stats-list {
    text-align: left;
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
}

.map-container {
    border-bottom: unset;
    position: relative;
}

.country-map {
    border-bottom: unset;
    height: 400px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.country-overlay {
    position: absolute;
    bottom: 13px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: "Fredoka", sans-serif;
    font-size: 16px;
    display: none;
    z-index: 1000;
    white-space: nowrap;
    border: 2px solid #ffd700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.overlay-country {
    font-weight: bold;
}

.overlay-holders {
    color: #ccc;
}

.description-text {
    white-space: pre-line;
}

/* Custom Video Player Styling */
.custom-video-player {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    cursor: pointer;
    box-shadow:
        rgba(0, 0, 0, 0.09) 0px 2px 1px,
        rgba(0, 0, 0, 0.09) 0px 4px 2px,
        rgba(0, 0, 0, 0.09) 0px 8px 4px,
        rgba(0, 0, 0, 0.09) 0px 16px 8px,
        rgba(0, 0, 0, 0.09) 0px 32px 16px;
    border-bottom: 2px dashed #ffd700;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 215, 0, 0.9);
    border-radius: 50%;
    border: 2px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}

.play-button:hover {
    background: rgba(255, 215, 0, 1);
    transform: scale(1.1);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.8);
}

.play-button i {
    font-size: 2rem;
    color: #000;
    margin-left: 4px;
}

.video-title-overlay {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 60%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px 15px 15px;
    z-index: 5;
}

.video-title-overlay h5 {
    margin: 0;
    font-size: 1.1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.video-iframe {
    width: 100%;
    height: 100%;
}

.youtube-embed {
    border: none !important;
    border-radius: 0 !important;
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 768px) {
    .card-detail-deck-ui-card {
        aspect-ratio: 5/8 !important;
    }

    .custom-video-player {
        aspect-ratio: 16/9 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .video-thumbnail {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .video-thumbnail img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 10px 10px 0 0 !important;
    }

    .video-iframe {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .youtube-embed {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: auto !important;
        border: none !important;
        border-radius: 10px 10px 0 0 !important;
    }

    .card-detail-deck-card-title {
        font-size: 16px !important;
        padding-left: 40px;
        padding-right: 40px;
    }

    .card-detail-deck-card-image {
        width: 200px !important;
        height: 200px !important;
        top: calc(35px + 1.5rem + 60px) !important;
    }

    .card-detail-deck-card-description {
        margin-top: 20px !important;
        font-size: 0.9rem !important;
    }

    .overlay-line-1 {
        font-size: 1rem !important;
        font-weight: bold !important;
        line-height: 0.8 !important;
    }

    .overlay-line-2 {
        font-size: 2.8rem !important;
        color: #ffd700 !important;
        font-weight: bold !important;
        line-height: 0.8 !important;
    }

    .overlay-line-3 {
        font-size: 1rem !important;
        font-weight: bold !important;
        line-height: 0.8 !important;
    }
}

/* Aura Dashboard Header */
.aura-dashboard-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

.aura-dashboard-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #e91e8c, #ffd700);
}

.aura-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.aura-welcome h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: "Fredoka", sans-serif;
}

.aura-subtitle {
    margin: 0.25rem 0 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-family: "Fredoka", sans-serif;
}

.aura-header-stats {
    display: flex;
    gap: 1.5rem;
}

.aura-header-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.aura-header-stat i {
    font-size: 1.5rem;
    color: #ffd700;
}

.aura-header-stat .stat-info {
    display: flex;
    flex-direction: column;
}

.aura-header-stat .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    font-family: "Fredoka", sans-serif;
}

.aura-header-stat .stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

/* Aura Cards */
.aura-card {
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.aura-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    color: #ffd700;
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aura-card-header i {
    font-size: 1.1rem;
}

.aura-card-body {
    padding: 1.25rem;
    min-height: 150px;
    color: rgba(255, 255, 255, 0.8);
    font-family: "Fredoka", sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
    .aura-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .aura-header-stats {
        flex-wrap: wrap;
        width: 100%;
    }

    .aura-header-stat {
        flex: 1;
        min-width: 120px;
    }
}

/* Remove horizontal scrolling */
body {
    overflow-x: hidden;
}

@media (max-width: 767px) {
    body {
        overflow-y: hidden;
        height: 100vh;
    }

    main {
        margin-bottom: 0 !important;
    }
}

/* Front card layout - matching stamps page */
#aura-quests-flip-container .category-hero-top-row {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
}

#aura-quests-flip-container .category-hero-top-row .category-badge {
    font-size: 0.7rem !important;
    padding: 0.4rem 0.6rem !important;
    white-space: nowrap;
}

#aura-quests-flip-container .category-hero-top-row .category-badge span {
    display: inline !important;
}

@media (max-width: 400px) {
    #aura-quests-flip-container .category-hero-top-row .category-badge {
        font-size: 0.6rem !important;
        padding: 0.3rem 0.5rem !important;
    }

    #aura-quests-flip-container .category-hero-top-row .category-badge i {
        font-size: 0.7rem !important;
    }
}

#aura-quests-flip-container .category-hero-name-section {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 1.5rem;
    text-align: center;
}

#aura-quests-flip-container .category-hero-name-section .category-hero-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

#aura-quests-flip-container .quiz-infocards-list {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 1rem;
    max-height: 45%;
    overflow-y: auto;

    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: rgba(233, 30, 140, 0.5) rgba(255, 255, 255, 0.1);
}

#aura-quests-flip-container .quiz-infocards-list::-webkit-scrollbar {
    width: 6px;
}

#aura-quests-flip-container .quiz-infocards-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

#aura-quests-flip-container .quiz-infocards-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e91e8c, #9b59b6);
    border-radius: 3px;
}

#aura-quests-flip-container .quiz-infocards-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff2a9d, #a855f7);
}

/* Override todo-list styles for this page */
#aura-quests-flip-container .control-todo-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 1rem;
    padding-top: 0;
    margin-top: 0;
    max-height: 50%;
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 80%, transparent 100%);
    scrollbar-width: thin;
    scrollbar-color: rgba(233, 30, 140, 0.5) rgba(255, 255, 255, 0.1);
}

#aura-quests-flip-container .control-todo-section::-webkit-scrollbar {
    width: 6px;
}

#aura-quests-flip-container .control-todo-section::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

#aura-quests-flip-container .control-todo-section::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e91e8c, #9b59b6);
    border-radius: 3px;
}

#aura-quests-flip-container .todo-header {
    position: sticky;
    top: 0;
    background: transparent;
    padding-bottom: 0.5rem;
    z-index: 5;
    transition: opacity 0.3s ease;
}

#aura-quests-flip-container .todo-header.scrolled {
    opacity: 0;
    pointer-events: none;
}

#aura-quests-flip-container .todo-list,
#aura-quests-flip-container .control-todo-section .todo-list {
    max-height: none !important;
    overflow-y: visible !important;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

#aura-quests-flip-container .todo-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#aura-quests-flip-container .todo-item:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
}

#aura-quests-flip-container .todo-item:first-child {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

#aura-quests-flip-container .todo-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

/* Avatar Upload Button */
.aura-avatar-upload {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    border: 3px solid rgba(255, 214, 69, 0.5);
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
}

.aura-avatar-upload:hover {
    border-color: #ffd645;
    transform: scale(1.05);
}

.aura-avatar-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aura-avatar-upload .avatar-camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aura-avatar-upload:hover .avatar-camera-overlay {
    opacity: 1;
}

.aura-avatar-upload .avatar-camera-overlay i {
    color: #fff;
    font-size: 1rem;
}

/* Avatar Crop Modal */
.avatar-crop-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.avatar-crop-modal-overlay.active {
    display: flex;
}

.avatar-crop-modal {
    background: #1a1a2e;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-crop-modal h3 {
    font-family: "Fredoka", sans-serif;
    color: #fff;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.avatar-crop-area {
    width: 100%;
    max-height: 400px;
    background: #0d0d1a;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.avatar-crop-area img {
    max-width: 100%;
    display: block;
}

.avatar-crop-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    position: relative;
    z-index: 10;
}

.avatar-crop-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 11;
}

.avatar-crop-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.avatar-crop-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.avatar-crop-btn.save {
    background: linear-gradient(135deg, #e91e8c, #9b59b6);
    color: #fff;
}

.avatar-crop-btn.save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.4);
}

.avatar-crop-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Toast Notification */
.reward-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    border: 1px solid rgba(255, 214, 69, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.reward-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.reward-toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd645, #ffaa00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #1a1a2e;
}

.reward-toast-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.reward-toast-title {
    font-family: "Fredoka", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.reward-toast-amount {
    font-family: "Fredoka", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd645;
}

#aura-quests-flip-container .category-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 30%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 1;
}

#aura-quests-flip-container .category-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#aura-quests-flip-container .category-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#aura-quests-flip-container .combined-hero-section {
    position: relative;
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Front card - fill container with proper aspect ratio */
#aura-quests-flip-container .category-combined-card.flip-card-front {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 3 / 4;
}

/* Mobile: fill available height instead of fixed aspect ratio */
@media (max-width: 991px) {
    #aura-quests-flip-container .category-combined-card.flip-card-front {
        aspect-ratio: unset !important;
        min-height: calc(100vh - 270px) !important;
        height: auto !important;
    }

    /* Remove bottom gap on mobile */
    main.public-main {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
        min-height: auto !important;
    }

    .hyperlocal-page {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
        min-height: auto !important;
    }

    .hyperlocal-page .container-fluid {
        padding-bottom: 0 !important;
    }

    .hyperlocal-page .row {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    main.category-content {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    #aura-quests-flip-container {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* Ensure hero section fills the entire front card */
#aura-quests-flip-container .category-combined-card.flip-card-front .combined-hero-section {
    flex: 1;
    min-height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

/* Desktop: Always show front with flex */
@media (min-width: 992px) {
    #aura-quests-flip-container .category-combined-card.flip-card-front {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Back card should match front card height on desktop */
    #aura-quests-flip-container .category-article.flip-card-back {
        display: flex !important;
        flex-direction: column !important;
        aspect-ratio: 3 / 4;
        padding: 0 !important;
        position: relative !important;
        min-height: 400px;
    }

    /* Ensure empty state overlay is properly contained in the right card */
    #aura-quests-flip-container .category-article.flip-card-back .aura-empty-state-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        max-width: 320px;
        padding: 2rem;
    }
}

/* Mobile flip card behavior */
@media (max-width: 991px) {
    #aura-quests-flip-container.flipped .category-combined-card.flip-card-front {
        display: none !important;
    }

    #aura-quests-flip-container:not(.flipped) .category-article.flip-card-back {
        display: none !important;
    }

    #aura-quests-flip-container.flipped .category-article.flip-card-back {
        display: flex !important;
        flex-direction: column !important;
        min-height: calc(100vh - 270px) !important;
        max-height: calc(100vh - 270px) !important;
        height: calc(100vh - 270px) !important;
        padding: 0 !important;
        aspect-ratio: unset !important;
        overflow: hidden;
    }

    #aura-quests-flip-container:not(.flipped) .category-combined-card.flip-card-front {
        display: flex !important;
        flex-direction: column !important;
    }

    #aura-quests-flip-container .category-article.flip-card-back {
        width: 100% !important;
        max-width: 100% !important;
    }

    #aura-quests-flip-container .category-hero-name-section {
        top: 60px;
    }

    #aura-quests-flip-container .quiz-infocards-list {
        max-height: 40%;
    }

    #aura-quests-flip-container .control-todo-section {
        padding: 0.75rem;
        max-height: 45%;
        bottom: 0;
    }

    #aura-quests-flip-container .todo-list {
        max-height: none !important;
        overflow-y: visible !important;
    }

    #aura-quests-flip-container .todo-item {
        padding: 0.5rem 0.6rem;
    }

    #aura-quests-flip-container .todo-icon {
        width: 30px;
    }
}

@media (max-width: 576px) {
    #aura-quests-flip-container .control-todo-section {
        max-height: 40%;
    }

    #aura-quests-flip-container .todo-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    #aura-quests-flip-container .todo-icon {
        width: 28px;
        height: 30px;
    }
}

/* Quest Marker Styles - matching stamps */
.quests-markers-section {
    padding: 1rem;
    overflow-y: auto;
    max-height: calc(100vh - 300px);
    position: relative;
}

.quests-markers-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
}

.quest-marker-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem;
    width: 100%;
}

.quest-marker-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(233, 30, 140, 0.3);
}

.quest-marker-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.quest-marker-circle img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(233, 30, 140, 0.3);
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.3);
}

.quest-marker-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.3), rgba(155, 89, 182, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(233, 30, 140, 0.3);
}

.quest-marker-placeholder i {
    font-size: 1.5rem;
    color: rgba(233, 30, 140, 0.6);
}

.quest-progress-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.quest-progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 4;
}

.quest-progress-fill {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s ease;
}

.quest-remaining-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: linear-gradient(135deg, #e91e8c, #9b59b6);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: "Fredoka", sans-serif;
    padding: 3px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(233, 30, 140, 0.4);
    min-width: 24px;
    text-align: center;
}

.quest-status-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #2ecc71;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    font-family: "Fredoka", sans-serif;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
}

.quest-status-badge.draft {
    background: #f39c12;
}

.quest-status-badge.paused {
    background: #95a5a6;
}

.quest-status-badge.completed {
    background: #3498db;
}

.quest-marker-info {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.quest-marker-title {
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.quest-marker-description {
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.quest-marker-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: "Fredoka", sans-serif;
    margin-bottom: 0.5rem;
}

.quest-marker-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.quest-marker-stats i {
    color: #e91e8c;
    font-size: 0.65rem;
}

.quest-marker-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.quest-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.65rem;
    font-family: "Fredoka", sans-serif;
    color: rgba(255, 255, 255, 0.8);
}

.quest-meta-badge i {
    font-size: 0.6rem;
}

.quest-meta-badge.participants i {
    color: #3498db;
}
.quest-meta-badge.offline i {
    color: #f39c12;
}
.quest-meta-badge.social i {
    color: #e91e8c;
}

/* Social Blaster Modal Styles */
.social-blaster-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.social-blaster-overlay.active {
    display: flex;
}

.social-blaster-modal {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    position: relative;
    border: 2px solid rgba(233, 30, 140, 0.3);
    box-shadow: 0 20px 60px rgba(233, 30, 140, 0.2);
}

.social-blaster-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s;
}

.social-blaster-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.social-blaster-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.social-blaster-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.2), rgba(155, 89, 182, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #e91e8c;
}

.social-blaster-title {
    font-family: "Fredoka", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.25rem 0;
}

.social-blaster-subtitle {
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.social-blaster-message {
    margin-bottom: 1.5rem;
}

.social-blaster-message label {
    display: block;
    font-family: "Fredoka", sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.social-blaster-message textarea {
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    resize: none;
    outline: none;
}

.copy-message-btn {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #e91e8c, #9b59b6);
    border: 2px solid #fff;
    border-radius: 20px;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.copy-message-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.4);
}

.copy-message-btn.copied {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.copy-message-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

.copy-hint {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: "Fredoka", sans-serif;
}

.social-blaster-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-family: "Fredoka", sans-serif;
}

.social-btn i,
.social-btn svg {
    font-size: 1.25rem;
}

.social-btn span {
    font-size: 0.65rem;
    opacity: 0.7;
}

.social-btn:hover {
    transform: translateY(-2px);
}

.social-btn.twitter:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: #000;
}
.social-btn.facebook:hover {
    background: rgba(24, 119, 242, 0.2);
    border-color: #1877f2;
}
.social-btn.linkedin:hover {
    background: rgba(10, 102, 194, 0.2);
    border-color: #0a66c2;
}
.social-btn.bluesky:hover {
    background: rgba(0, 133, 255, 0.2);
    border-color: #0085ff;
}
.social-btn.threads:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: #000;
}
.social-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25d366;
}
.social-btn.telegram:hover {
    background: rgba(0, 136, 204, 0.2);
    border-color: #0088cc;
}
.social-btn.copy:hover {
    background: rgba(233, 30, 140, 0.2);
    border-color: #e91e8c;
}

/* Make the social badge clickable */
.quest-meta-badge.social {
    cursor: pointer;
    transition: all 0.2s;
}

.quest-meta-badge.social:hover {
    background: rgba(233, 30, 140, 0.3);
    transform: scale(1.05);
}

/* Common Reusable Classes */
.aura-gradient-button {
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #e91e8c, #9b59b6);
    border: 2px solid #fff;
    border-radius: 20px;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.aura-gradient-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.6);
    text-decoration: none;
    color: #fff;
}

.aura-description-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-top: 0.75rem;
    font-family: "Fredoka", sans-serif;
}

.aura-reward-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 214, 69, 0.15);
    border: 1px solid rgba(255, 214, 69, 0.3);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    margin-top: 0.5rem;
}

.aura-reward-badge i {
    color: #ffd645;
}

.aura-reward-badge span {
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    color: #ffd645;
    font-weight: 600;
}

.aura-title-no-margin {
    margin-bottom: 0;
}

.aura-empty-state-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 20;
}

.aura-empty-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.2), rgba(155, 89, 182, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aura-empty-icon-wrapper i {
    font-size: 2rem;
    color: rgba(233, 30, 140, 0.6);
}

.aura-empty-state-title {
    font-family: "Fredoka", sans-serif;
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.aura-empty-state-description {
    font-family: "Fredoka", sans-serif;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 1rem 0;
    font-size: 0.85rem;
    max-width: 280px;
}

.aura-empty-state-reward {
    font-family: "Fredoka", sans-serif;
    color: #ffd645;
    margin: 0 0 1rem 0;
    font-size: 0.75rem;
    font-weight: 600;
}

.aura-transparent-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
}

.aura-transparent-button:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: #fff;
}

.hide-element {
    display: none;
}

.full-width-important {
    width: 100% !important;
}

.relative-position {
    position: relative;
}

/* Ensure card has minimum height when showing empty state overlay */
.category-article.flip-card-back:has(.aura-empty-state-overlay) {
    min-height: 400px;
}

/* Fallback for browsers that don't support :has() - apply to quests page specifically */
#aura-quests-flip-container .category-article.flip-card-back.relative-position {
    min-height: 400px;
}

/* Empty state styles - already used in empty state overlay */
.aura-empty-state-overlay .aura-empty-state-title,
.aura-empty-state-overlay .aura-empty-state-description,
.aura-empty-state-overlay .aura-empty-state-reward {
    /* Already defined above */
}

/* Empty State Overlay */
.aura-empty-state-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 20;
}

.aura-empty-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.2), rgba(155, 89, 182, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aura-empty-state-title {
    font-family: "Fredoka", sans-serif;
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.aura-empty-state-description {
    font-family: "Fredoka", sans-serif;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 1rem 0;
    font-size: 0.85rem;
    max-width: 280px;
}

.aura-empty-state-reward {
    font-family: "Fredoka", sans-serif;
    color: #ffd645;
    margin: 0 0 1rem 0;
    font-size: 0.75rem;
    font-weight: 600;
}

.aura-transparent-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
}

/* Stamp modal specific styles */
.stamp-modal-slide {
    font-family: "Fredoka", sans-serif;
}

.stamp-modal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.stamp-modal-row-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stamp-modal-row-gap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stamp-modal-button-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.stamp-modal-button-row-wide {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stamp-image-hidden {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
}

.stamp-image-visible {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
}

/* ===== Stamp Modal - Slide 1 Styles ===== */
.stamp-modal-icon-pink {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.2), rgba(155, 89, 182, 0.2));
    border-color: rgba(233, 30, 140, 0.5);
}

.stamp-modal-title-pink {
    color: #e91e8c;
    font-size: 1.5rem;
}

.stamp-modal-title-yellow {
    color: #ffd645;
    font-size: 1.5rem;
}

.stamp-modal-title-green {
    color: #2ecc71;
    font-size: 1.5rem;
}

.stamp-modal-field-group {
    margin-bottom: 1rem;
}

.stamp-modal-field-group-lg {
    margin-bottom: 1.25rem;
}

.stamp-modal-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stamp-modal-label-sm {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.stamp-modal-hint {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.stamp-modal-hint-sm {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.stamp-modal-count {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.icon-pink {
    color: #e91e8c;
}
.icon-purple {
    color: #9b59b6;
}
.icon-yellow {
    color: #ffd645;
}
.icon-orange {
    color: #f39c12;
}
.icon-green {
    color: #2ecc71;
}
.icon-green-dark {
    color: #27ae60;
}
.icon-red {
    color: #e74c3c;
}

.icon-pink-mr {
    color: #e91e8c;
    margin-right: 0.25rem;
}
.icon-purple-mr {
    color: #9b59b6;
    margin-right: 0.25rem;
}
.icon-yellow-mr {
    color: #ffd645;
    margin-right: 0.25rem;
}

.icon-lg {
    font-size: 1rem;
}
.icon-xl {
    font-size: 2.5rem;
    color: rgba(155, 89, 182, 0.6);
}

.stamp-name-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(233, 30, 140, 0.4);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    outline: none;
    text-align: center;
}

.stamp-name-input:focus {
    border-color: rgba(233, 30, 140, 0.8);
    box-shadow: 0 0 15px rgba(233, 30, 140, 0.3);
}

.stamp-image-upload-area {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15), rgba(142, 68, 173, 0.1));
    border: 2px dashed rgba(155, 89, 182, 0.5);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
}

.stamp-image-placeholder {
    text-align: center;
}

.stamp-image-placeholder-text {
    margin: 0.5rem 0 0 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.stamp-description-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 214, 69, 0.4);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    outline: none;
    resize: none;
    line-height: 1.5;
}

.stamp-description-input:focus {
    border-color: rgba(255, 214, 69, 0.8);
    box-shadow: 0 0 15px rgba(255, 214, 69, 0.3);
}

.stamp-desc-warning {
    display: none;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #e74c3c;
}

.stamp-btn-disabled {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    opacity: 0.5;
    cursor: not-allowed;
}

.hidden-input {
    display: none;
}

/* ===== Stamp Modal - Slide 2 Styles ===== */
.stamp-modal-icon-yellow {
    background: linear-gradient(135deg, rgba(255, 214, 69, 0.2), rgba(243, 156, 18, 0.2));
    border-color: rgba(255, 214, 69, 0.5);
    overflow: hidden;
}

.stamp-config-box {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(30, 30, 40, 0.3));
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stamp-config-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stamp-count-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stamp-count-input-wrapper {
    flex: 1;
    position: relative;
}

.stamp-count-input {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 214, 69, 0.15), rgba(243, 156, 18, 0.1));
    border: 2px solid rgba(255, 214, 69, 0.5);
    border-radius: 12px;
    padding: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd645;
    text-align: center;
    font-family: "Fredoka", sans-serif;
    outline: none;
}

.stamp-slider-value {
    font-size: 1rem;
    font-weight: 700;
}

.stamp-slider-value-pink {
    color: #e91e8c;
}
.stamp-slider-value-purple {
    color: #9b59b6;
}

/* ===== Stamp Modal - Running Total Box ===== */
.stamp-total-box {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.15), rgba(155, 89, 182, 0.15));
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    border: 2px solid rgba(233, 30, 140, 0.3);
}

.stamp-total-section {
    text-align: center;
}

.stamp-total-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stamp-total-value-pink {
    color: #e91e8c;
}
.stamp-total-value-purple {
    color: #9b59b6;
}

.stamp-total-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.stamp-total-divider {
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.stamp-balance-warning {
    display: none;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: rgba(231, 76, 60, 0.2);
    border-radius: 8px;
}

.stamp-balance-warning-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.stamp-balance-warning-text {
    font-size: 0.8rem;
    color: #e74c3c;
}

.stamp-continue-btn {
    display: none;
    background: linear-gradient(135deg, #ffd645 0%, #f39c12 100%);
    border: 2px solid rgba(255, 214, 69, 0.5);
}

/* ===== Stamp Modal - Slide 3 Styles ===== */
.stamp-modal-icon-green {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.2));
    border-color: rgba(46, 204, 113, 0.5);
    overflow: hidden;
}

.stamp-summary-box {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(39, 174, 96, 0.15));
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid rgba(46, 204, 113, 0.3);
}

.stamp-summary-grid {
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stamp-summary-value {
    font-size: 1.3rem;
    font-weight: 700;
}

.stamp-summary-value-yellow {
    color: #ffd645;
}
.stamp-summary-value-pink {
    color: #e91e8c;
}
.stamp-summary-value-purple {
    color: #9b59b6;
}

.stamp-summary-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.stamp-summary-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.stamp-create-btn {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.4);
}

.stamp-warning-box {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(231, 76, 60, 0.15);
    border-radius: 10px;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.stamp-warning-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.stamp-warning-icon {
    color: #e74c3c;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.stamp-warning-text {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.stamp-warning-text strong {
    color: #e74c3c;
}

.stamp-back-btn {
    margin-top: 0.75rem;
    width: 100%;
    padding: 0.6rem;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
}

/* ===== Stamp Crop Modal Styles ===== */
.stamp-crop-modal {
    max-width: 400px;
}

.stamp-crop-close {
    z-index: 100;
}

.stamp-crop-content {
    font-family: "Fredoka", sans-serif;
}

.stamp-crop-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stamp-crop-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.stamp-crop-area {
    width: 100%;
    max-height: 300px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.stamp-crop-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.stamp-crop-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 10px;
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    cursor: pointer;
}

.stamp-crop-btn-cancel {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.stamp-crop-btn-apply {
    border: none;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: #fff;
}

/* ===== Misc Utility Styles ===== */
.text-center {
    text-align: center;
}

.aura-description-text-mt {
    margin-top: 0.5rem;
}

.todo-section-padding {
    padding: 1rem;
}

.todo-icon-image-style {
    background: transparent;
    padding: 0;
    overflow: hidden;
}

.todo-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.todo-icon-locked {
    position: relative;
}

.todo-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.todo-lock-overlay i {
    font-size: 1.2rem;
    color: #fff;
    opacity: 0.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.article-header-padding {
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.empty-state-icon {
    font-size: 2rem;
    color: rgba(233, 30, 140, 0.6);
}

.share-label-hint {
    font-weight: 400;
    opacity: 0.6;
}

.avatar-crop-image {
    max-width: 100%;
}

.icon-animate-rotate {
    animation: pulseRotate 2s ease-in-out infinite;
}

/* Stamp adjust buttons */
.stamp-adjust-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid rgba(255, 214, 69, 0.4);
    background: linear-gradient(135deg, rgba(255, 214, 69, 0.1), rgba(243, 156, 18, 0.05));
    color: #ffd645;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Crop modal icon size */
.icon-crop-lg {
    font-size: 1.25rem;
}

/* Crop image max width */
.crop-image {
    max-width: 100%;
}

/* ===== Bottom Navigation Menu ===== */
/* Hide footer for all Aura-related pages */
.main-footer {
    display: none !important;
}

/* Bottom Navigation Menu */
.bottom-navigation {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    width: 90%;
    max-width: 400px;
    height: 70px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    padding: 0 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transform-origin: center center;
}

.bottom-navigation .nav-list-wrap {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.bottom-navigation .nav-list-wrap .nav-item {
    width: 70px;
    height: 70px;
    position: relative;
    z-index: 1;
}

.bottom-navigation .nav-list-wrap .nav-item a {
    text-decoration: none;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    font-weight: 500;
    width: 100%;
    height: 100%;
}

.bottom-navigation .nav-list-wrap .nav-item a:hover {
    text-decoration: none;
}

.bottom-navigation .nav-list-wrap .nav-item a .nav-icon {
    position: relative;
    display: block;
    line-height: 75px;
    text-align: center;
    transition: 0.5s;
    color: rgba(255, 255, 255, 0.5);
}

.bottom-navigation .nav-list-wrap .nav-item a .nav-icon i {
    font-size: 2.2rem;
}

.bottom-navigation .nav-list-wrap .nav-item a .nav-text {
    position: absolute;
    color: #fff;
    font-weight: 500;
    font-family: "Fredoka", sans-serif;
    letter-spacing: 0.05em;
    transition: 0.5s;
    transform: translateY(20px);
    opacity: 0;
    z-index: 1;
    font-size: 0.75rem;
}

.bottom-navigation .nav-list-wrap .nav-item.active a .nav-icon,
.bottom-navigation .nav-list-wrap .nav-item:active a .nav-icon {
    color: #fff;
    transform: translateY(-32px);
    opacity: 0;
}

.bottom-navigation .nav-list-wrap .nav-item.active a .nav-text,
.bottom-navigation .nav-list-wrap .nav-item:active a .nav-text {
    opacity: 1;
    transform: translateY(10px);
}

.bottom-navigation .nav-list-wrap .nav-indicator {
    position: absolute;
    width: 70px;
    height: 70px;
    top: -50%;
    left: 0;
    border-radius: 50%;
    border: 6px solid rgba(26, 26, 46, 0.95);
    background: linear-gradient(135deg, #e91e8c, #9b59b6);
    background-size: cover;
    background-position: center;
    transition:
        transform 0.3s ease,
        background-image 0.3s ease;
    z-index: 0;
    will-change: transform;
}

.bottom-navigation .nav-list-wrap .nav-indicator:before,
.bottom-navigation .nav-list-wrap .nav-indicator:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: transparent;
}

.bottom-navigation .nav-list-wrap .nav-indicator:after {
    right: -22px;
    box-shadow: -1px -10px 0 0 rgba(26, 26, 46, 0.95);
    border-top-left-radius: 20px;
}

.bottom-navigation .nav-list-wrap .nav-indicator:before {
    left: -22px;
    box-shadow: 1px -10px 0 0 rgba(26, 26, 46, 0.95);
    border-top-right-radius: 20px;
}

.bottom-navigation .nav-list-wrap .nav-item:nth-child(1).active ~ .nav-indicator {
    transform: translateX(0);
}

.bottom-navigation .nav-list-wrap .nav-item:nth-child(2).active ~ .nav-indicator {
    transform: translateX(90px);
}

.bottom-navigation .nav-list-wrap .nav-item:nth-child(3).active ~ .nav-indicator {
    transform: translateX(180px);
}

.bottom-navigation .nav-list-wrap .nav-item:nth-child(4).active ~ .nav-indicator {
    transform: translateX(270px);
}

/* Adjust body padding to accommodate bottom nav */
body {
    padding-bottom: 110px;
}
/* ======================================== */
/* Language Switcher Dropdown Styles        */
/* ======================================== */

.nav-lang-dropdown {
    position: relative;
    display: inline-block;
}

.nav-lang-btn {
    display: flex !important;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.4rem 0.75rem !important;
}

.nav-lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.nav-lang-code {
    font-size: 0.85rem;
    font-weight: 600;
}

.nav-lang-chevron {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.nav-lang-dropdown.open .nav-lang-chevron {
    transform: rotate(180deg);
}

.nav-lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 160px;
    background: rgba(30, 30, 35, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    padding: 0.5rem !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 9999 !important;
}

.nav-lang-dropdown.open .nav-lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-lang-option {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem !important;
    border-radius: 6px;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem;
    transition: all 0.15s ease;
    background: transparent !important;
}

.nav-lang-option:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.nav-lang-option.active {
    background: rgba(99, 102, 241, 0.2) !important;
    color: #a5b4fc !important;
}

.nav-lang-option .bi-check2 {
    margin-left: auto;
    color: #10b981;
}

.nav-lang-name {
    flex: 1;
}

/* Mobile adjustments */
.mobile-lang-switcher .nav-lang-dropdown {
    width: 100%;
}

.mobile-lang-switcher .nav-lang-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem 1rem !important;
}

.mobile-lang-switcher .nav-lang-menu {
    position: relative;
    top: 0;
    margin-top: 0.5rem;
    width: 100%;
}

.mobile-lang-switcher .nav-lang-dropdown.open .nav-lang-menu {
    position: relative;
}
