/**
 * Missions Tab Styles
 * Gamification System UI
 */

/* Missions Header - Level Progress */
.gm-missions-header {
    margin-bottom: 30px;
}

.gm-level-card {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.gm-level-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gm-level-info {
    flex: 1;
}

.gm-level-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.gm-level-title h2 {
    font-size: 28px;
    margin: 0;
    color: #1a1a1a;
}

.gm-level-number {
    background: #6c757d;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.gm-level-description {
    color: #6c757d;
    margin: 0 0 16px 0;
    font-size: 15px;
}

.gm-level-progress-container {
    margin-top: 12px;
}

.gm-level-progress-bar {
    height: 10px;
    background: #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.gm-level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    transition: width 0.5s ease;
    border-radius: 10px;
}

.gm-level-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6c757d;
}

.gm-level-progress-text .gm-next-level {
    color: #28a745;
    font-weight: 600;
}

.gm-level-max {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffc107;
    font-size: 18px;
    font-weight: 600;
    margin-top: 12px;
}

/* Level Condition Warning */
.gm-level-condition-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #fff3cd 0%, #fff0a8 100%);
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 13px;
    color: #856404;
    line-height: 1.5;
}

.gm-level-condition-warning i {
    color: #ffc107;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.gm-level-condition-warning span {
    flex: 1;
}

.gm-level-condition-warning strong {
    color: #664d03;
    font-weight: 700;
}

/* Missions Section */
.gm-missions-section {
    margin-bottom: 40px;
}

.gm-missions-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.gm-missions-section h3 i {
    color: #007bff;
}

/* Daily Missions Grid */
.gm-missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.gm-mission-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gm-mission-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.gm-mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #007bff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gm-mission-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.15);
}

.gm-mission-card:hover::before {
    opacity: 1;
}

.gm-mission-card.gm-completed {
    border-color: #28a745;
    background: #f8fff9;
}

.gm-mission-card.gm-completed::before {
    background: #28a745;
    opacity: 1;
}

.gm-mission-card.gm-claimed {
    opacity: 0.7;
    background: #f8f9fa;
}

.gm-mission-icon {
    font-size: 30px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.gm-mission-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.gm-mission-content h4 {
    margin: 0;
    font-size: 16px;
    color: #1a1a1a;
}

.gm-mission-content p {
    margin: 0;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
}

.gm-mission-progress {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gm-progress-text {
    font-size: 13px;
    color: #495057;
    font-weight: 600;
    text-align: left;
    position: static;
    display: block;
}

.gm-reward-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.gm-mission-action {
    display: flex;
    align-items: center;
    justify-content: flex-start;
        gap: 15px;
}

.gm-mission-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.gm-mission-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gm-mission-btn.gm-claim-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.gm-mission-btn.gm-claim-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
}

.gm-mission-btn.gm-quiz-start-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.gm-mission-btn.gm-wheel-spin-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
}

.gm-mission-btn.gm-claimed {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.gm-mission-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Standalone [misiuni_zilnice] shortcode footer button */
.gm-missions-standalone-footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.gm-missions-standalone-footer .gm-mission-btn {
    display: inline-flex;
    width: auto;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2B6CB0 0%, #215387 100%);
    color: #fff;
    text-decoration: none;
}

.gm-missions-standalone-footer .gm-mission-btn:hover {
    background: linear-gradient(135deg, #215387 0%, #1a4066 100%);
}

/* Streak Card */
.gm-streak-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(255,107,107,0.3);
}

.gm-streak-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.gm-streak-current {
    display: flex;
    flex-direction: column;
}

.gm-streak-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.gm-streak-label {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
}

.gm-streak-best {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.gm-streak-progress {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.gm-streak-day {
    flex: 1;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.gm-streak-day.gm-active {
    background: white;
    color: #ff6b6b;
    transform: scale(1.05);
}

.gm-claim-streak-btn {
    width: 100%;
    background: white;
    color: #ff6b6b;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gm-claim-streak-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

.gm-streak-claimed {
    text-align: center;
    padding: 14px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 15px;
}

.gm-streak-next {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.85;
}

.gm-streak-message {
    text-align: center;
    padding: 14px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    font-size: 15px;
}

/* Referral Card */
.gm-referral-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
}

.gm-referral-code-section {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
}

.gm-referral-code-box label,
.gm-referral-link-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
    font-size: 14px;
}

.gm-code-display {
    display: flex;
    gap: 10px;
}

.gm-code-display input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    font-family: monospace;
    background: #f8f9fa;
}

.gm-copy-btn {
    padding: 12px 24px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.gm-copy-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.gm-copy-btn.gm-copied {
    background: #28a745;
}

.gm-referral-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
}

.gm-stat-item {
    text-align: center;
    color: white;
}

.gm-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.gm-stat-label {
    display: block;
    font-size: 13px;
    opacity: 0.9;
}

.gm-claim-referral-btn {
    width: 100%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.gm-claim-referral-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

.gm-referral-list {
    margin-top: 24px;
    border-top: 2px solid #e9ecef;
    padding-top: 20px;
}

.gm-referral-list h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gm-referral-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.gm-referral-item:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.1);
}

.gm-referral-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gm-referral-avatar i {
    font-size: 40px;
    color: #007bff;
}

.gm-referral-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gm-referral-name {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
}

.gm-referral-date {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gm-referral-stats {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
}

.gm-referral-level {
    display: flex;
    align-items: center;
}

.gm-referral-earnings {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gm-earned-spins {
    font-size: 13px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gm-earned-spins i {
    color: #ffc107;
    font-size: 14px;
}

.gm-earned-spins strong {
    color: #fff;
    font-size: 15px;
}

.gm-level-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gm-level-badge i {
    font-size: 12px;
}

.gm-pending-badge {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gm-referral-empty {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.gm-referral-empty i {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 16px;
}

.gm-referral-empty p {
    font-size: 16px;
    color: #495057;
    font-weight: 600;
    margin-bottom: 8px;
}

.gm-referral-empty small {
    font-size: 13px;
    color: #6c757d;
}

/* Modals */
.gm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    /* 10000 era deja peste bara sticky de jos (9980) și chat (9990/9991) pe hârtie,
       dar tot apărea sub ele - semn că un ancestor din markup crea un stacking context
       propriu. Ridicăm mult valoarea, la fel ca .modal-overlay/.modal-content din
       style.css (999999/1000000), ca să nu mai conteze contextul local. */
    z-index: 999999;
    padding: 20px;
}

.gm-modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 0px;
    border-bottom: 2px solid #e9ecef;
}

.gm-modal-header h3 {
    margin: 0;
    font-size: 24px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gm-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.gm-modal-close:hover {
    background: #e9ecef;
    color: #1a1a1a;
}

/* Quiz Modal */
.gm-quiz-container {
    min-height: 300px;
}

.gm-quiz-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.gm-question-counter {
    font-weight: 600;
    color: #495057;
}

.gm-quiz-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #007bff;
    font-weight: 700;
    font-size: 16px;
}

.gm-quiz-question h4 {
    font-size: 20px;
    margin-bottom: 24px;
    color: #1a1a1a;
    line-height: 1.5;
}

.gm-quiz-answers {
    display: grid;
    gap: 12px;
}

.gm-quiz-answer {
    padding: 16px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    text-align: left;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.gm-quiz-answer:hover:not(:disabled) {
    border-color: #007bff;
    background: #f0f7ff;
    color: #1a1a1a;
    transform: translateX(4px);
}

.gm-quiz-answer:disabled {
    cursor: not-allowed;
}

.gm-quiz-answer.gm-correct {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #1a1a1a;
    animation: correctPulse 0.5s ease;
}

.gm-quiz-answer.gm-incorrect {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #1a1a1a;
    animation: incorrectShake 0.5s ease;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes incorrectShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.gm-quiz-result {
    text-align: center;
    padding: 32px;
}

.gm-quiz-result .gm-result-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    animation: resultPopIn 0.5s ease;
}

@keyframes resultPopIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.gm-quiz-result .gm-result-icon.gm-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.gm-quiz-result .gm-result-icon.gm-fail {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.gm-quiz-result .gm-result-title {
    font-size: 28px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.gm-quiz-result .gm-result-message {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 24px;
    line-height: 1.6;
}

.gm-close-quiz-btn,
.gm-close-wheel-btn {
    width: 100%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gm-close-quiz-btn:hover,
.gm-close-wheel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* Wheel Modal */
.gm-wheel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.gm-wheel-wrapper {
    position: relative;
    margin: 0 auto;
}

#gm-wheel-canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 500px;
    max-height: 500px;
}

.gm-wheel-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 35px solid #ff5722;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.3));
    z-index: 10;
}

.gm-wheel-spin-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    border: 8px solid white;
    box-shadow: 
        0 0 0 2px #ffc107,
        0 8px 20px rgba(0,0,0,0.3),
        inset 0 2px 10px rgba(255,255,255,0.3);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    user-select: none;
}

.gm-wheel-spin-button:hover:not(:disabled) {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 
        0 0 0 2px #ffc107,
        0 10px 25px rgba(0,0,0,0.4),
        inset 0 2px 10px rgba(255,255,255,0.3);
}

.gm-wheel-spin-button:active:not(:disabled) {
    transform: translate(-50%, -50%) scale(0.98);
}

.gm-wheel-spin-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.gm-wheel-spin-button::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #ff5722;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.3));
    z-index: 10;
}

.gm-wheel-spin-button i {
    font-size: 24px;
    margin-bottom: 4px;
}

.gm-wheel-spin-button .gm-spin-text {
    display: none;
}

.gm-wheel-animation {
    text-align: center;
    padding: 60px;
    display: none;
}

.gm-wheel-animation i {
    font-size: 120px;
    color: #ffc107;
    animation-duration: 2s !important;
}

.gm-wheel-result {
    text-align: center;
    padding: 0px;
    display: none;
    margin: 0 auto;
}

.gm-wheel-result .gm-result-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    animation: resultPopIn 0.5s ease;
}

.gm-wheel-result .gm-result-icon.gm-success {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
}

.gm-wheel-result .gm-result-icon:not(.gm-success) {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.gm-wheel-result h3 {
    font-size: 28px;
    margin: 0 !important;
    color: #1a1a1a;
}

.gm-wheel-result p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Memory Game Modal ("Comoara Ascunsă") */
.gm-memory-modal-content {
    background: linear-gradient(180deg, #0d2c63, #031029);
    color: #cfe0ff;
    max-width: 420px;
    padding: 24px;
}
.gm-memory-modal-content .gm-modal-header { border-bottom-color: rgba(120,180,255,.25); margin-bottom: 14px; }
.gm-memory-modal-content .gm-modal-header h3 { color: #fff; }
.gm-memory-sub { color: #a9c1e8; font-size: 13px; margin: 0 0 12px; }

.gm-memory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 300px;
    margin: 0 auto 14px;
}
.gm-memory-card { aspect-ratio: 3/4; perspective: 1200px; cursor: pointer; }
.gm-memory-card.gm-memory-disabled { cursor: default; }
.gm-memory-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform .6s cubic-bezier(.2,.8,.25,1);
    transform-style: preserve-3d;
}
.gm-memory-card.gm-flipped .gm-memory-card-inner { transform: rotateY(180deg); }
.gm-memory-card.gm-memory-disabled:not(.gm-flipped) .gm-memory-card-inner { opacity: .35; filter: grayscale(.4); }

/* Glow animat pe .gm-memory-card (elementul din AFARA contextului 3D), nu pe
   .gm-memory-card-inner: un filter/box-shadow animat pe elementul care face flip-ul 3D
   (cel cu backface-visibility:hidden) provoacă flicker între fețele cărții. */
.gm-memory-card.gm-memory-matched { border-radius: 16px; animation: gmMemoryMatchPulse 1s ease infinite; }
@keyframes gmMemoryMatchPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(255,201,77,0); }
    50% { box-shadow: 0 0 24px 6px rgba(255,201,77,.65); }
}

.gm-memory-card-face {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gm-memory-card-back {
    background: radial-gradient(circle at 50% 38%, #3f8fe0 0%, #1c5bab 32%, #0f3572 60%, #071c42 100%);
    border: 2px solid #4fa2ff;
}
.gm-memory-qmark { font-weight: 800; font-size: 40px; color: #ffc94d; }
.gm-memory-card-front {
    transform: rotateY(180deg);
    background: linear-gradient(160deg, #1c4f9c 0%, #0a2c63 60%, #051a3f 100%);
    border: 2px solid #ffc94d;
}
.gm-memory-value { font-weight: 800; font-size: 26px; color: #ffe9a8; }

.gm-memory-status {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 13px;
    color: #b9cdf2;
    border: 1px dashed rgba(120,180,255,.3);
    background: rgba(3,16,41,.4);
}
.gm-memory-status.gm-memory-win {
    border: 1px solid #ffc94d;
    color: #ffe9a8;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(255,201,77,.16), rgba(255,201,77,.05));
}

/* Mines Modal ("Gambler Mines") */
.gm-mines-modal-content {
    background: linear-gradient(180deg, #0b2a20, #061a12);
    color: #f2e8d2;
    max-width: 440px;
    padding: 24px;
}
.gm-mines-modal-content .gm-modal-header { border-bottom-color: rgba(212,175,55,.3); margin-bottom: 12px; }
.gm-mines-modal-content .gm-modal-header h3 { color: #f6d976; }
.gm-mines-sub { color: #b9ae94; font-size: 13px; margin: 0 0 14px; line-height: 1.5; }

.gm-mines-attempts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}
.gm-mines-attempts-label {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #b9ae94;
    font-weight: 700;
}
.gm-mines-hearts { display: flex; gap: 6px; }
.gm-mines-hearts .fa-heart { color: #ff5468; filter: drop-shadow(0 0 3px rgba(255,84,104,.5)); font-size: 15px; }
.gm-mines-hearts .fa-heart.gm-mines-heart-used { color: transparent; -webkit-text-stroke: 1.5px #8a8578; opacity: .55; filter: none; }

.gm-mines-vault {
    position: relative;
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(160deg, #12331f, #0a1f15);
    border: 1px solid rgba(212,175,55,.35);
}
.gm-mines-vault-figs { display: flex; justify-content: center; gap: 26px; }
.gm-mines-fig { text-align: center; }
.gm-mines-fig .gm-mines-num { font-size: 24px; font-weight: 800; color: #f6d976; line-height: 1.1; }
.gm-mines-fig .gm-mines-lbl-sm { font-size: 10px; color: #b9ae94; letter-spacing: .08em; margin-top: 2px; }
.gm-mines-risk-line {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(212,175,55,.25);
    font-size: 11.5px;
    color: #b9ae94;
    display: flex;
    justify-content: space-between;
}
.gm-mines-risk-line b { color: #ff5468; font-weight: 700; }

.gm-mines-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
    margin-bottom: 14px;
}
.gm-mines-tile {
    all: unset;
    position: relative;
    aspect-ratio: 1 / 1;
    display: block;
    cursor: pointer;
    border-radius: 9px;
    background: linear-gradient(155deg, #175a3f, #123527);
    border: 1px solid #1c4a35;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 3px 6px rgba(0,0,0,.35);
    transition: filter .15s ease, opacity .2s ease;
}
.gm-mines-tile:hover:not(.gm-mines-flipped) { filter: brightness(1.15); }
.gm-mines-tile.gm-mines-loading { opacity: .6; cursor: wait; }
.gm-mines-tile-back, .gm-mines-tile-front {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.gm-mines-tile-back { color: #d4af37; font-weight: 800; font-size: 15px; opacity: .7; }
.gm-mines-tile-front { display: none; gap: 1px; font-size: 9.5px; font-weight: 700; text-align: center; color: #f2e8d2; padding: 2px; }
.gm-mines-tile-front .gm-mines-ic { font-size: 17px; line-height: 1; }
.gm-mines-tile.gm-mines-flipped .gm-mines-tile-back { display: none; }
.gm-mines-tile.gm-mines-flipped .gm-mines-tile-front { display: flex; }
.gm-mines-tile.gm-mines-flipped.gm-mines-safe {
    background: linear-gradient(155deg, #1c4a33, #0f2e20);
    border-color: rgba(212,175,55,.5);
}
.gm-mines-tile.gm-mines-flipped.gm-mines-bomb-hit {
    background: linear-gradient(155deg, #5a1622, #2a0a10);
    border-color: #ff5468;
}
.gm-mines-tile.gm-mines-dim { opacity: .45; filter: grayscale(.3); }

.gm-mines-message {
    text-align: center;
    min-height: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #b9ae94;
}
.gm-mines-message.gm-mines-win { color: #f6d976; }
.gm-mines-message.gm-mines-lose { color: #ff5468; }

.gm-mines-controls { display: flex; gap: 10px; }
.gm-mines-modal-content .gm-mission-btn {
    flex: 1;
    justify-content: center;
    background: linear-gradient(160deg, #f6d976, #d4af37 60%, #a9822b);
    color: #241a04;
}
.gm-mines-final-note {
    text-align: center;
    font-size: 11.5px;
    color: #b9ae94;
    margin: 10px 0 0;
}

/* Notification Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .gm-level-card {
        flex-direction: column;
        text-align: center;
    }
    
    .gm-level-icon {
        margin: 0 auto;
    }
    
    .gm-level-title {
        flex-direction: column;
        gap: 8px;
    }
    
    .gm-missions-grid {
        grid-template-columns: 1fr;
    }
    
    .gm-mission-card {
        flex-direction: column;
    }

    .gm-mission-content {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .gm-mission-action {
        width: 100%;
        margin-left: 0;
        justify-content: center;
        flex-direction: column;
    }
    
    .gm-mission-btn {
        width: 100%;
        margin: 0 auto;
    }
    
    .gm-referral-stats {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .gm-referral-code-section {
        grid-template-columns: 1fr;
    }
    
    .gm-code-display {
        flex-direction: column;
    }
    
    .gm-copy-btn {
        width: 100%;
        justify-content: center;
    }
    
    .gm-referral-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .gm-modal-content {
        padding: 24px;
        max-width: 100%;
        margin: 0 10px;
    }
    
    .gm-modal-header h3 {
        font-size: 20px;
    }
    
    .gm-quiz-question h4 {
        font-size: 18px;
    }
    
    .gm-wheel-animation {
        padding: 40px;
    }
    
    .gm-wheel-animation i {
        font-size: 80px;
    }
    
    .gm-wheel-container {
        padding: 10px;
        min-height: auto;
    }
    
   

    
    .gm-wheel-spin-button {
        width: 70px;
        height: 70px;
        font-size: 0;
        border: 6px solid white;
    }
    
    .gm-wheel-spin-button i {
        font-size: 28px;
        margin-bottom: 0;
    }
    
    .gm-wheel-spin-button .gm-spin-text {
        display: none;
    }
    
    .gm-wheel-arrow {
        border-left-width: 15px;
        border-right-width: 15px;
        border-top-width: 25px;
    }

    .gm-mission-progress {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
}
