/* Mini Dashboard */
.mini-dashboard {
    position: fixed;
    bottom: 20px;
    left: calc(var(--nav-width) + 20px + 350px + 20px + 350px + 20px + 350px + 20px);
    width: 350px;
    height: 50vh;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(calc(100% + 40px));
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.mini-dashboard.active {
    transform: translateY(0);
}

.mini-dashboard-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.mini-dashboard-content::-webkit-scrollbar {
    width: 8px;
}

.mini-dashboard-content::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.mini-dashboard-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.mini-dashboard-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.mini-dashboard-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.mini-dashboard-nav-section {
    position: sticky;
    top: 44px; /* Height of header */
    z-index: 9;
    background-color: var(--bg-secondary);
}

.mini-dashboard-minimize {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    transition: opacity 0.2s;
}

.mini-dashboard-minimize:hover {
    opacity: 0.7;
}

.mini-dashboard-body {
    display: flex;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mini-dashboard-body:hover {
    background-color: var(--bg-primary);
}

.mini-dashboard-poster {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.mini-dashboard-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mini-dashboard-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.mini-dashboard-show-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.mini-dashboard-cta {
    font-size: 13px;
    color: var(--text-primary);
}

.mini-dashboard-recommendation {
    display: flex;
    flex-direction: column;
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-top: 1px solid var(--border-color);
    text-decoration: none;
}

.mini-dashboard-recommendation:hover {
    background-color: var(--bg-primary);
}

.mini-dashboard-recommendation-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mini-dashboard-poster-left,
.mini-dashboard-poster-right {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.mini-dashboard-arrow {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 20px solid var(--text-primary);
    opacity: 0.6;
}

.mini-dashboard-recommendation-text {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    color: var(--text-primary);
    text-align: center;
}

.mini-dashboard-recommendation-text .highlight {
    font-style: italic;
    font-weight: 600;
}

.mini-dashboard-learn {
    display: flex;
    flex-direction: column;
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-top: 1px solid var(--border-color);
    text-decoration: none;
}

.mini-dashboard-learn:hover {
    background-color: var(--bg-primary);
}

.mini-dashboard-learn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.mini-dashboard-learn-text {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    color: var(--text-primary);
    text-align: center;
}

.mini-dashboard-learn-text .highlight {
    font-style: italic;
    font-weight: 600;
}

.mini-dashboard-recommend-friend {
    display: flex;
    flex-direction: row-reverse;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-top: 1px solid var(--border-color);
}

.mini-dashboard-recommend-friend:hover {
    background-color: var(--bg-primary);
}

.mini-dashboard-recommend-friend .mini-dashboard-info {
    text-align: right;
}

.mini-dashboard-recommend-friend-text {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    color: var(--text-primary);
}

.mini-dashboard-recommend-friend-text .highlight {
    font-style: italic;
    font-weight: 600;
}

.mini-dashboard-placeholder {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.mini-dashboard-placeholder-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.mini-dashboard-placeholder-text {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    color: var(--text-secondary);
}

.mini-dashboard-body-recommendation {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid var(--border-color);
    text-decoration: none;
}

/* Scavenger Hunt Box */
.scavenger-hunt-box {
    position: fixed;
    bottom: 20px;
    left: calc(var(--nav-width) + 20px + 350px + 20px + 350px + 20px);
    width: 350px;
    height: 50vh;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(calc(100% + 40px));
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.scavenger-hunt-box.active {
    transform: translateY(0);
}

.scavenger-hunt-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.scavenger-hunt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    border-bottom: 1px solid var(--border-color);
}

.scavenger-hunt-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.scavenger-hunt-header-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scavenger-hunt-header-icon {
    font-size: 20px;
}

.scavenger-hunt-help {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}

.scavenger-hunt-help:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.scavenger-hunt-minimize {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    transition: opacity 0.2s;
}

.scavenger-hunt-minimize:hover {
    opacity: 0.7;
}

.scavenger-hunt-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.scavenger-hunt-clue {
    background-color: var(--bg-primary);
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid var(--accent-color);
}

.scavenger-hunt-clue-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0.7;
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
}

.scavenger-hunt-clue-text {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: var(--text-primary);
    font-style: italic;
}

.scavenger-hunt-claim-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2),
                0 2px 4px rgba(0, 0, 0, 0.1),
                inset 0 -2px 4px rgba(0, 0, 0, 0.2),
                inset 0 2px 4px rgba(255, 255, 255, 0.2);
    margin-top: 4px;
    position: relative;
    overflow: hidden;
}

.scavenger-hunt-claim-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.scavenger-hunt-claim-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25),
                0 3px 6px rgba(0, 0, 0, 0.15),
                inset 0 -2px 4px rgba(0, 0, 0, 0.2),
                inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.scavenger-hunt-claim-btn:hover::before {
    left: 100%;
}

.scavenger-hunt-claim-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
                0 1px 3px rgba(0, 0, 0, 0.1),
                inset 0 -1px 2px rgba(0, 0, 0, 0.2),
                inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.scavenger-hunt-claim-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    font-size: 13px;
    letter-spacing: 0.3px;
}

.scavenger-hunt-claim-btn:disabled::before {
    display: none;
}

.scavenger-hunt-skip-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.8;
}

.scavenger-hunt-skip-btn:hover {
    opacity: 1;
    border-color: var(--text-primary);
    background: var(--bg-primary);
}

.scavenger-hunt-skip-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.scavenger-hunt-stats {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.scavenger-hunt-stat {
    flex: 1;
    background-color: var(--bg-primary);
    padding: 10px 12px;
    border-radius: 6px;
    text-align: center;
}

.scavenger-hunt-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px 0;
}

.scavenger-hunt-stat-label {
    font-size: 11px;
    color: var(--text-primary);
    opacity: 0.7;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scavenger-hunt-difficulty {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
}

.scavenger-hunt-difficulty.easy {
    background-color: var(--bg-primary);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.scavenger-hunt-difficulty.medium {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    opacity: 0.8;
}

.scavenger-hunt-difficulty.hard {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

/* Daily Minutes Section in Scavenger Hunt */
.scavenger-hunt-daily-minutes-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: var(--bg-primary);
    border-top: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.scavenger-hunt-daily-minutes-section:hover {
    background-color: var(--bg-secondary);
    transform: translateY(-2px);
}

.scavenger-hunt-daily-minutes-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scavenger-hunt-daily-minutes-icon svg {
    width: 100%;
    height: 100%;
}

.scavenger-hunt-daily-minutes-info {
    flex: 1;
}

.scavenger-hunt-daily-minutes-text {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    color: var(--text-primary);
}

.scavenger-hunt-daily-minutes-text .highlight {
    font-weight: 700;
    color: var(--accent-color);
}

/* Minimized button for scavenger hunt */
.scavenger-hunt-minimized-btn {
    position: fixed;
    bottom: 146px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-primary);
    transition: all 0.3s;
    z-index: 998;
    opacity: 0;
    transform: translateY(20px);
}

.scavenger-hunt-minimized-btn.active {
    opacity: 1;
    transform: translateY(0);
    animation: float 3.5s ease-in-out infinite;
}

.scavenger-hunt-minimized-btn.active:hover {
    transform: translateY(-6px) scale(1.1);
}

/* Hide minimized button when scavenger hunt box is open */
.scavenger-hunt-box.active ~ .scavenger-hunt-minimized-btn {
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   Chat Dashboard Styles
   ============================================================ */

.chat-dashboard {
    position: fixed;
    bottom: 20px;
    left: calc(var(--nav-width) + 20px + 350px + 20px);
    width: 350px;
    height: 50vh;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(calc(100% + 40px));
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.chat-dashboard.active {
    transform: translateY(0);
}

.chat-dashboard-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
    background-color: var(--bg-primary);
}

.chat-dashboard-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.chat-dashboard-header-icon {
    width: 20px;
    height: 20px;
}

.chat-dashboard-minimize {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-primary);
    opacity: 0.6;
    transition: opacity 0.2s;
}

.chat-dashboard-minimize:hover {
    opacity: 1;
}

.chat-dashboard-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.chat-dashboard-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-dashboard-messages::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.chat-dashboard-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.chat-dashboard-messages::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.chat-dashboard-loading,
.chat-dashboard-empty,
.chat-dashboard-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
    opacity: 0.7;
}

.chat-dashboard-error {
    color: #dc2626;
    opacity: 1;
}

.chat-dashboard-message {
    display: flex;
    gap: 10px;
    animation: fadeInMessage 0.2s ease-in;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-dashboard-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.chat-dashboard-message-content {
    flex: 1;
    min-width: 0;
}

.chat-dashboard-message-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.chat-dashboard-message-username {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.chat-dashboard-message-username:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.chat-dashboard-message-time {
    font-size: 0.75rem;
    color: var(--text-primary);
    opacity: 0.5;
}

.chat-dashboard-message-text {
    color: var(--text-primary);
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-wrap;
    font-size: 0.9rem;
}

.chat-dashboard-message-mention {
    color: #667eea;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    padding: 0 4px;
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-dashboard-message-mention:hover {
    background: rgba(102, 126, 234, 0.2);
    text-decoration: underline;
}

/* Own messages (right-aligned) */
.chat-dashboard-message-own {
    flex-direction: row-reverse;
}

.chat-dashboard-message-own .chat-dashboard-message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 8px 12px;
}

.chat-dashboard-message-own .chat-dashboard-message-header {
    flex-direction: row-reverse;
}

.chat-dashboard-message-own .chat-dashboard-message-username {
    color: rgba(255, 255, 255, 0.95);
}

.chat-dashboard-message-own .chat-dashboard-message-username:hover {
    color: rgba(255, 255, 255, 0.95);
}

.chat-dashboard-message-own .chat-dashboard-message-time {
    color: rgba(255, 255, 255, 0.7);
}

.chat-dashboard-message-own .chat-dashboard-message-text {
    color: rgba(255, 255, 255, 0.95);
}

.chat-dashboard-message-own .chat-dashboard-message-mention {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.2);
}

.chat-dashboard-message-own .chat-dashboard-message-mention:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.3);
}

.chat-dashboard-input-container {
    border-top: 2px solid var(--border-color);
    padding: 12px;
    background-color: var(--bg-primary);
}

.chat-dashboard-input {
    width: 100%;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 8px;
    font-family: var(--font-family-body);
    font-size: 0.9rem;
    resize: none;
    min-height: 50px;
    max-height: 100px;
    margin-bottom: 8px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.chat-dashboard-input:focus {
    outline: none;
    border-color: #667eea;
}

.chat-dashboard-input-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-dashboard-char-count {
    font-size: 0.75rem;
    color: var(--text-primary);
    opacity: 0.6;
}

.chat-dashboard-send-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-family: var(--font-family-heading);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-dashboard-send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.chat-dashboard-send-button:active {
    transform: translateY(0);
}

.chat-dashboard-send-button:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Chat Input Flash Animation */
@keyframes chatInputFlash {
    0%, 100% {
        background-color: var(--bg-secondary);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
    25% {
        background-color: rgba(102, 126, 234, 0.08);
        box-shadow: 0 0 20px 0 rgba(102, 126, 234, 0.3);
    }
    50% {
        background-color: rgba(102, 126, 234, 0.05);
        box-shadow: 0 0 15px 0 rgba(102, 126, 234, 0.2);
    }
    75% {
        background-color: rgba(102, 126, 234, 0.08);
        box-shadow: 0 0 20px 0 rgba(102, 126, 234, 0.3);
    }
}

.chat-input-flash {
    animation: chatInputFlash 2s ease-in-out;
}

.chat-dashboard-minimized-btn {
    position: fixed;
    bottom: 216px; /* Above mini dashboard minimized button */
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-primary);
    transition: all 0.3s;
    z-index: 998;
    opacity: 0;
    transform: translateY(20px);
}

.chat-dashboard-minimized-btn.active {
    opacity: 1;
    transform: translateY(0);
    animation: float 3.5s ease-in-out infinite;
}

.chat-dashboard-minimized-btn.active:hover {
    transform: translateY(-6px) scale(1.1);
}

/* Hide minimized button when chat dashboard is open */
.chat-dashboard.active ~ .chat-dashboard-minimized-btn {
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   Ad Dashboard Styles
   ============================================================ */

.ad-dashboard {
    position: fixed;
    bottom: 20px;
    left: calc(var(--nav-width) + 20px);
    width: 350px;
    height: 50vh;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(calc(100% + 40px));
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.ad-dashboard.active {
    transform: translateY(0);
}

.ad-dashboard-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ad-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
    background-color: var(--bg-primary);
}

.ad-dashboard-header-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.ad-dashboard-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    color: var(--text-primary);
    font-size: 28px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.ad-dashboard-close:hover {
    opacity: 1;
}

.ad-dashboard-body {
    flex: 1;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


/* ============================================================
   Minimize All Button
   ============================================================ */

.minimize-all-dashboards-btn {
    position: fixed;
    bottom: 286px; /* Above chat dashboard minimized button */
    right: 20px;
    padding: 10px 16px;
    border-radius: 20px;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s;
    z-index: 997;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.minimize-all-dashboards-btn.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.minimize-all-dashboards-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   Shared Styles
   ============================================================ */

.caret-down {
    width: 20px;
    height: 20px;
    position: relative;
}

.caret-down::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--text-primary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Minimized button */
.mini-dashboard-minimized-btn {
    position: fixed;
    bottom: -60px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: bottom 0.3s ease-in-out, transform 0.2s, opacity 0.3s;
    z-index: 1000;
}

.mini-dashboard-minimized-btn.active {
    bottom: 20px;
    animation: float 3.5s ease-in-out infinite;
}

/* Hide minimized button when dashboard is open */
.mini-dashboard.active ~ .mini-dashboard-minimized-btn {
    opacity: 0;
    pointer-events: none;
}

.mini-dashboard-minimized-btn.active:hover {
    transform: translateY(-6px) scale(1.1);
}

@keyframes glow {
    0% { box-shadow: 0 0 0 0 rgba(81, 147, 193, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(81, 147, 193, 0); }
    100% { box-shadow: 0 0 0 0 rgba(81, 147, 193, 0); }
}

.glow-animation {
    animation: glow 2s infinite;
    border-radius: 50%;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

/* ============================================================
   Mobile Responsive Styles
   ============================================================ */

@media (max-width: 768px) {
    .mini-dashboard {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 10px;
        height: 50vh;
    }
    
    .mini-dashboard-minimized-btn {
        right: 20px;
        left: auto;
        bottom: 20px;
        width: 56px;
        height: 56px;
    }
    
    .scavenger-hunt-box {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 10px;
        height: 50vh;
    }
    
    .scavenger-hunt-box.active {
        bottom: 90px;
    }
    
    .scavenger-hunt-minimized-btn {
        right: 20px;
        left: auto;
        bottom: 86px;
        width: 56px;
        height: 56px;
    }
    
    .chat-dashboard {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 10px;
        height: 50vh;
    }
    
    .chat-dashboard.active {
        bottom: 90px;
    }
    
    .chat-dashboard-minimized-btn {
        right: 20px;
        left: auto;
        bottom: 156px; /* Stack above scavenger hunt */
        width: 56px;
        height: 56px;
    }

    .ad-dashboard {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: auto;
        top: 50%;
        height: 25vh; /* Half height on mobile */
        transform: translateY(calc(-50% + 100% + 40px));
    }
    
    .ad-dashboard.active {
        transform: translateY(-50%); /* Centered vertically on mobile */
    }

    .minimize-all-dashboards-btn {
        bottom: 226px; /* Stack above chat */
        right: 20px;
        left: auto;
    }

    .mini-dashboard-learn-text, 
    .mini-dashboard-recommendation-text,
    .mini-dashboard-recommend-friend-text {
        font-size: 11px;
        line-height: 1.3;
        text-align: left !important;
    }

    .mini-dashboard-learn-icon,
    .mini-dashboard-recommendation-images {
        justify-content: flex-start;
    }

    .mini-dashboard-recommend-friend .mini-dashboard-info {
        text-align: left;
    }
}

