/* 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(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    padding: 16px;
    max-height: 350px;
    overflow-y: auto;
}

.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 {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15) 0%, rgba(39, 174, 96, 0.1) 100%);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.real-world-card-item:hover {
    transform: translateY(-4px);
    border-color: rgba(46, 204, 113, 0.6);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.2);
}

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

.real-world-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%);
}

.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(3, 1fr) !important;
        gap: 8px !important;
        padding: 12px !important;
        overflow-x: hidden !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;
}

/* 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: center;
}

.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;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.profile-stat-pill .stat-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* 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);
    }
}

/* 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.3rem 0.7rem;
    border-radius: 6px;
    font-family: "Fredoka", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    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.3rem 0.7rem;
    border-radius: 6px;
    font-family: "Fredoka", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    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 0 4px 4px;
    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;
}

.business-marker-aura 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 */

/* Remove all dashed borders from profile card */
.profile-hero-card,
.profile-hero-card *,
.profile-hero-map,
.profile-hero-map *,
.profile-map-container,
.profile-map-container *,
.profile-map,
.profile-map * {
    border-bottom: none !important;
    outline: none !important;
}

.col-md-4 .profile-hero-card,
.col-md-4 .profile-hero-card * {
    border-bottom: none !important;
}

/* Override bg-dark dashed border specifically */
.profile-hero-card .bg-dark,
.profile-map-container .bg-dark,
.profile-map.bg-dark {
    border-bottom: none !important;
}

/* Nuclear option - remove ALL borders from map area */
#userLocationMap,
#userLocationMap *,
#userLocationMap div,
#userLocationMap canvas,
.profile-map,
.profile-map div,
.profile-map canvas,
.gm-style,
.gm-style * {
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
}

.profile-hero-map::after,
.profile-map-container::after,
.profile-map::after {
    display: none !important;
    content: none !important;
}

/* Scan Area Button */
.scan-area-btn-container {
    z-index: 100;
}

.scan-area-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    white-space: nowrap;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.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;
}

.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 */
.base-scan-summary {
    position: relative;
    z-index: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    align-items: center;
}

.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: nowrap;
    animation: cardsReveal 0.6s ease-out 0.4s both;
}

/* 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;
}

.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-aura {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    margin-bottom: 20px;
}

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

.business-card-aura .aura-value {
    font-family: "Fredoka", sans-serif;
    font-size: 2.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.85rem;
    color: #aaa;
    margin-top: 4px;
}

.business-claim-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    border: none;
    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-google-maps-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 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: 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);
}

/* 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);
}

.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 {
        padding: 1.5rem;
        max-width: 320px;
    }

    .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;
    }
}

/* ========================== */
/* 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 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.quiz-toggle-switch input {
    display: none;
}

.quiz-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 {
    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 {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
}

.quiz-toggle-switch input:checked + .quiz-toggle-slider::before {
    transform: translateX(16px);
    background: #fff;
}

.quiz-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 {
    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-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    padding: 2.5rem 0.75rem 0.75rem;
}

.deck-card-title {
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.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;
}

.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;
}

.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;
}

.combined-hero-section {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

@media (max-width: 767px) {
    .combined-hero-section {
        align-items: flex-start;
        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%;
}

.combined-subcategories-section {
    padding: 1.5rem 2rem 2rem;
    background: rgba(0, 0, 0, 0.3);
}

@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 #e91e8c;
    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;
}

.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;
}

.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: center;
        position: fixed;
        bottom: 20px;
        left: 0;
        right: 0;
        width: 100%;
        padding: 0 1rem;
        z-index: 1000;
        margin-bottom: 0;
    }

    .flip-card-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.75rem 1.5rem;
        background: linear-gradient(135deg, #e91e8c, #c4177a);
        border: 2px solid #fff;
        border-radius: 50px;
        color: #fff;
        font-size: 0.9rem;
        font-weight: 600;
        font-family: "Fredoka", sans-serif;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(233, 30, 140, 0.3);
        text-align: center;
    }

    .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.1rem;
        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;
    }

    /* 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 {
        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 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-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 {
    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 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 {
        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,
    #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 {
        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 {
        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 {
        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;
}
