/* ============================================
   GAME UI CSS - Mini Games, Chat, Achievements
   ============================================ */

/* Chat Panel */
.chat-panel {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 500px;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    border-top-left-radius: 20px;
    border: 2px solid var(--gold-color);
    display: flex;
    flex-direction: column;
    z-index: 2000;
    box-shadow: -4px -4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.chat-panel.hidden {
    transform: translateY(100%);
}

.chat-header {
    padding: 15px 20px;
    background: var(--accent-color);
    border-bottom: 2px solid var(--gold-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 18px;
}

.chat-header h3 {
    color: var(--gold-color);
    font-size: 20px;
}

.chat-guest-note {
    font-size: 13px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: var(--gold-color);
    transform: rotate(90deg);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border-left: 3px solid var(--gold-color);
    animation: message-slide 0.3s ease;
}

@keyframes message-slide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.message-username {
    font-weight: bold;
    color: var(--gold-color);
}

.message-streak {
    background: var(--danger-color);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

.message-badges {
    display: flex;
    gap: 5px;
}

.badge-icon {
    font-size: 16px;
}

.message-text {
    margin-top: 5px;
    line-height: 1.5;
}

.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.7;
}

.message-likes {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.message-likes:hover {
    color: var(--gold-color);
}

.message-likes.liked {
    color: var(--danger-color);
}

.chat-input-container {
    padding: 15px;
    border-top: 2px solid var(--gold-color);
    display: flex;
    gap: 10px;
    background: var(--secondary-color);
    border-bottom-left-radius: 18px;
}

#chat-input {
    flex: 1;
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 14px;
}

#chat-input:focus {
    outline: none;
    border-color: var(--gold-color);
}

#chat-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-send {
    padding: 10px 20px;
    background: var(--accent-color);
    border: 2px solid var(--gold-color);
    border-radius: 8px;
    color: var(--text-light);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-send:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.btn-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* AI Counselor Modal */
.ai-modal {
    max-width: 700px;
}

.ai-chat-container {
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-message {
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 10px;
    border-left: 4px solid var(--gold-color);
    animation: ai-message-appear 0.5s ease;
}

@keyframes ai-message-appear {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ai-message.user {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-left-color: var(--voxel-blue);
    margin-left: auto;
    max-width: 80%;
}

.ai-message p {
    margin: 0;
    line-height: 1.6;
}

.ai-input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#ai-input {
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

#ai-input:focus {
    outline: none;
    border-color: var(--gold-color);
}

#ai-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai-guest-note {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    font-size: 14px;
    color: #ffecb3;
    margin-bottom: 12px;
}

.ai-playbooks {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.ai-playbooks-header {
    margin-bottom: 10px;
}

.ai-playbooks-header small {
    color: rgba(255, 255, 255, 0.7);
}

.playbook-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.playbook-button {
    flex: 1 1 45%;
    min-width: 180px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.playbook-button h5 {
    margin-bottom: 6px;
    color: var(--gold-color);
    font-size: 15px;
}

.playbook-button p {
    font-size: 13px;
    opacity: 0.8;
}

.playbook-button:hover {
    transform: translateY(-2px);
    border-color: var(--gold-color);
}

.ai-suggestions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-suggestions p {
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.suggestion-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.suggestion-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--gold-color);
    border-radius: 20px;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-btn:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

/* Game Modal */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    backdrop-filter: blur(5px);
}

.game-modal.hidden {
    display: none;
}

.game-modal-content {
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    border: 3px solid var(--gold-color);
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.close-game-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(244, 67, 54, 0.8);
    border: none;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.close-game-btn:hover {
    background: var(--danger-color);
    transform: rotate(90deg) scale(1.1);
}

#game-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

/* Achievement Notification */
.achievement-notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    animation: achievement-slide 0.5s ease;
}

.achievement-notification.hidden {
    display: none;
}

@keyframes achievement-slide {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.achievement-content {
    background: linear-gradient(135deg, var(--gold-color), #ffed4e);
    padding: 20px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 3px solid var(--text-light);
    animation: achievement-glow 2s ease-in-out infinite;
}

@keyframes achievement-glow {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(255, 215, 0, 0.6);
    }
    50% {
        box-shadow: 0 10px 60px rgba(255, 215, 0, 1);
    }
}

.achievement-icon {
    font-size: 64px;
    animation: achievement-spin 2s ease-in-out infinite;
}

@keyframes achievement-spin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(1.1); }
}

.achievement-text {
    color: var(--text-dark);
}

.achievement-text h3 {
    font-size: 24px;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.achievement-text p {
    font-size: 18px;
    font-weight: bold;
}

/* Check-in Modal */
.checkin-modal {
    text-align: center;
}

.checkin-message {
    font-size: 24px;
    color: var(--gold-color);
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 2px solid var(--gold-color);
    animation: checkin-pulse 1s ease-in-out;
}

@keyframes checkin-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.checkin-stats {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
}

.checkin-stat {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkin-label {
    font-size: 14px;
    opacity: 0.8;
}

.checkin-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--gold-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.btn-large {
    padding: 15px 40px;
    font-size: 20px;
    margin-top: 20px;
}

/* Profile Modal */
.profile-modal {
    max-width: 800px;
}

.profile-info {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar {
    margin: 20px 0;
}

.avatar-3d {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--voxel-green), var(--voxel-blue));
    border-radius: 50%;
    border: 4px solid var(--gold-color);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    animation: avatar-rotate 10s linear infinite;
}

@keyframes avatar-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: var(--gold-color);
}

.profile-achievements,
.profile-badges {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
}

.profile-achievements h3,
.profile-badges h3 {
    margin-bottom: 20px;
    color: var(--gold-color);
}

.achievements-grid,
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.achievement-item,
.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.achievement-item:hover,
.badge-item:hover {
    transform: scale(1.1);
    border-color: var(--gold-color);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.achievement-item.locked,
.badge-item.locked {
    opacity: 0.3;
    filter: grayscale(100%);
}

.achievement-icon-large,
.badge-icon-large {
    font-size: 48px;
    margin-bottom: 10px;
}

.achievement-name,
.badge-name {
    font-size: 12px;
    text-align: center;
    color: var(--text-light);
}

/* Mini Game Styles */
.game-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Meditation Game Styles */
.meditation-image-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid var(--gold-color);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.meditation-image {
    max-width: 100%;
    max-height: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.meditation-guidance {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 2px solid var(--gold-color);
    text-align: center;
}

.meditation-guidance p {
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.6;
}

.meditation-guidance .guidance-main {
    font-weight: 600;
}

.meditation-guidance .guidance-warning {
    margin-top: 8px;
    font-size: 14px;
    opacity: 0.85;
    font-style: italic;
    color: #ffecb3;
}

.meditation-progress {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

/* Loading dots animation */
.loading-dots::after {
    content: '...';
    animation: loading-dots 1.5s steps(4, end) infinite;
}

@keyframes loading-dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.game-title {
    font-size: 32px;
    color: var(--gold-color);
    margin-bottom: 30px;
    text-align: center;
}

.game-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.game-stat {
    text-align: center;
}

.game-stat-label {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.game-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold-color);
}

.game-area {
    width: 100%;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid var(--gold-color);
}

.game-controls {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.game-btn-action {
    padding: 12px 24px;
    background: var(--accent-color);
    border: 2px solid var(--gold-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-btn-action:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.game-btn-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Login Encouragement Notification */
.login-encouragement-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10004;
    background: linear-gradient(135deg, var(--gold-color), #ffed4e);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.6);
    border: 3px solid var(--text-light);
    animation: slideUp 0.5s ease;
    max-width: 400px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.encouragement-content {
    text-align: center;
    color: var(--text-dark);
}

.encouragement-content p {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
}

.btn-encourage-login,
.btn-encourage-close {
    padding: 10px 20px;
    margin: 5px;
    border: 2px solid var(--text-dark);
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-encourage-login {
    background: var(--text-dark);
    color: var(--gold-color);
}

.btn-encourage-login:hover {
    background: #333;
    transform: scale(1.05);
}

.btn-encourage-close {
    background: transparent;
    color: var(--text-dark);
}

.btn-encourage-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Milestone Celebration */
.milestone-celebration {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10005;
    animation: celebrationAppear 0.5s ease;
}

@keyframes celebrationAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.celebration-content {
    background: linear-gradient(135deg, var(--gold-color), #ffed4e);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 4px solid var(--text-light);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.8);
    color: var(--text-dark);
}

.celebration-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: celebrationBounce 1s ease-in-out infinite;
}

@keyframes celebrationBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

.celebration-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.celebration-content p {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.celebration-subtitle {
    font-size: 16px;
    opacity: 0.8;
    font-style: italic;
}

/* Therapy Tools Section */
.therapy-tools-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
}

.therapy-tools-section h4 {
    color: var(--gold-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.therapy-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.therapy-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(76, 175, 80, 0.1));
    border: 2px solid #4caf50;
    border-radius: 10px;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.therapy-btn:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.4), rgba(76, 175, 80, 0.2));
}

.therapy-icon {
    font-size: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .chat-panel {
        width: 100%;
        height: 70vh;
        border-radius: 20px 20px 0 0;
    }
    
    .game-modal-content {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid,
    .badges-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .meditation-image-container {
        min-height: 300px;
        padding: 15px;
    }
    
    .meditation-image {
        max-height: 300px;
    }
}

/* ============================================
   SIMPLE MODE - TRẢI NGHIỆM DỄ DÀNG
   ============================================ */

body.simple-mode #game-canvas {
    display: none;
}

body.simple-mode .side-panel {
    display: none;
}

body.simple-mode #simple-mode-panel {
    display: block;
}

body.immersive-mode #game-canvas {
    display: block;
}

body.immersive-mode .side-panel {
    display: block;
}

.experience-toggle {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 20px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-mode-btn {
    border: none;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffd54f, #ff9800);
    color: #1a1a2e;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toggle-mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 152, 0, 0.25);
}

.toggle-hint {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.simple-mode-panel {
    display: none;
    margin: 0 20px 30px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(15, 15, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

.simple-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.simple-hero h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: #fff;
}

.simple-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
}

.simple-breathing {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.calm-action {
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.calm-action.primary {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
}

.calm-action:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.feedback-section {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-family: inherit;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    border-color: var(--gold-color);
    outline: none;
}

.feedback-form textarea {
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-row input {
    flex: 1;
    min-width: 180px;
}

.tam-quy-vow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.tam-quy-vow input {
    width: auto;
}

.feedback-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.feedback-status {
    font-size: 14px;
    min-height: 18px;
    color: #ffecb3;
}

.feedback-status.success {
    color: #8bc34a;
}

.feedback-status.error {
    color: #ff8a80;
}

.simple-card {
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.simple-card h3 {
    margin: 0;
    font-size: 18px;
    color: #ffd54f;
}

.simple-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.simple-card ul {
    margin: 0;
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.sos-btn {
    border: none;
    border-radius: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #ff5252, #ff1744);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(255, 23, 68, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sos-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(255, 23, 68, 0.5);
}

.ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .experience-toggle {
        margin: 10px;
        padding: 12px;
    }
    
    .simple-mode-panel {
        margin: 0 10px 20px;
        padding: 18px;
    }
    
    .simple-hero h1 {
        font-size: 22px;
    }
    
    .simple-breathing {
        justify-content: flex-start;
    }
}

.simple-hero-text {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inline-dharma-quote {
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid #ffb74d;
    padding: 12px 16px;
    border-radius: 12px;
}

.inline-dharma-quote .quote {
    font-style: italic;
    margin-bottom: 6px;
}

.inline-dharma-quote .source {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.simple-card strong {
    color: #fff;
}

.simple-card ul li {
    margin-bottom: 4px;
}

.simple-card ul li:last-child {
    margin-bottom: 0;
}

.simple-card p + button {
    margin-top: 8px;
}

body.immersive-mode #simple-mode-panel {
    display: none;
}

body.immersive-mode .experience-toggle {
    position: absolute;
    top: 100px;
    right: 20px;
    margin: 0;
    width: auto;
    z-index: 900;
    max-width: 260px;
}

body.immersive-mode .experience-toggle .toggle-hint {
    display: none;
}

.dharma-popup {
    position: fixed;
    bottom: 30px;
    left: 30px;
    max-width: 360px;
    background: rgba(17, 17, 34, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    animation: popup-slide 0.4s ease;
    z-index: 1200;
}

.dharma-popup h4 {
    margin-bottom: 10px;
    color: #ffd54f;
}

.dharma-popup p {
    margin-bottom: 6px;
    line-height: 1.5;
}

.dharma-popup .popup-source {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.dharma-popup .popup-close {
    margin-top: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
}

.dharma-popup .popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

@keyframes popup-slide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dharma-popup.fade-out {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

