* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 1rem;
}

.hero {
    text-align: center;
    margin-bottom: 1.9rem;
    padding: 1.4rem 0;
}

.warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.24rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.36rem 0.72rem;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.52rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

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

.warning-icon {
    font-size: 0.64rem;
}

.main-title {
    font-size: clamp(1.28rem, 4.5vw, 2.56rem);
    font-weight: 700;
    color: #2c3e50;
    margin: 0.48rem 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: clamp(0.48rem, 1.8vw, 0.8rem);
    color: #34495e;
    font-weight: 400;
}

.content-section {
    background: white;
    border-radius: 10px;
    padding: 1.28rem;
    margin-bottom: 1.28rem;
    box-shadow: 0 5px 14px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.content-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 19px rgba(0,0,0,0.15);
}

.warning-section {
    background: linear-gradient(135deg, #fff5f5, #ffe8e8);
    border-left: 4px solid #e74c3c;
}

.red-flags {
    background: linear-gradient(135deg, #fff0f0, #ffe0e0);
    border-left: 4px solid #c0392b;
}

.protect-section {
    background: linear-gradient(135deg, #f0fff4, #e0ffe0);
    border-left: 4px solid #27ae60;
}

.section-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.48rem;
}

.section-header h2 {
    font-size: clamp(0.88rem, 2.8vw, 1.28rem);
    font-weight: 700;
    color: #2c3e50;
}

.text-content {
    font-size: clamp(0.56rem, 1.8vw, 0.88rem);
    line-height: 1.8;
    color: #2c3e50;
}

.text-content p {
    margin-bottom: 0.64rem;
}

.highlight {
    background: linear-gradient(120deg, #ffeaa7, #fdcb6e);
    padding: 0.08rem 0.24rem;
    border-radius: 4px;
    font-weight: 600;
}

.highlighted-sentence {
    background: linear-gradient(120deg, #74b9ff, #0984e3);
    color: white;
    padding: 0.16rem 0.32rem;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(116, 185, 255, 0.3);
}

.danger {
    color: #e74c3c;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shame {
    color: #8e44ad;
    font-weight: 600;
    font-style: italic;
}

.red-flags-grid, .protection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(144px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.red-flag-item, .protection-item {
    background: rgba(255,255,255,0.8);
    padding: 1rem;
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.red-flag-item {
    border-color: rgba(231, 76, 60, 0.2);
}

.protection-item {
    border-color: rgba(39, 174, 96, 0.2);
}

.red-flag-item:hover, .protection-item:hover {
    transform: translateY(-2px);
}

.flag-icon, .protect-icon {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.48rem;
}

.red-flag-item p, .protection-item p {
    font-size: clamp(0.52rem, 1.6vw, 0.72rem);
    color: #2c3e50;
    margin: 0;
}

.final-message {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-align: center;
    padding: 1.9rem 1.4rem;
    border-radius: 10px;
    box-shadow: 0 7px 17px rgba(102, 126, 234, 0.3);
}

.final-message .section-header h2 {
    color: white;
}

.final-message .text-content {
    color: white;
}

.share-message {
    font-size: clamp(0.48rem, 1.6vw, 0.6rem);
    opacity: 0.9;
    margin-top: 1rem;
}

.scammer-callout {
    background: linear-gradient(135deg, #2d1b1b, #3d2222);
    color: #ff6b6b;
    border-left: 4px solid #e74c3c;
    border: 2px solid #c0392b;
}

.scammer-callout .section-header h2 {
    color: #ff4757;
}

.scammer-callout .text-content {
    color: #ff6b6b;
}

.websim-criticism {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #ffa502;
    border-left: 4px solid #ff6348;
    border: 2px solid #ff4757;
}

.websim-criticism .section-header h2 {
    color: #ff6348;
}

.websim-criticism .text-content {
    color: #ffa502;
}

.engagement-warning {
    background: linear-gradient(135deg, #4a0e4e, #81004e);
    color: #ff9ff3;
    border-left: 4px solid #e91e63;
    border: 2px solid #ad1457;
}

.engagement-warning .section-header h2 {
    color: #ff4081;
}

.engagement-warning .text-content {
    color: #ff9ff3;
}

.call-to-action {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: #a5d6a7;
    border-left: 4px solid #4caf50;
    border: 2px solid #388e3c;
}

.call-to-action .section-header h2 {
    color: #66bb6a;
}

.call-to-action .text-content {
    color: #a5d6a7;
}

.hashtag {
    background: linear-gradient(120deg, #ff4081, #e91e63);
    color: white;
    padding: 0.16rem 0.48rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.72em;
    letter-spacing: 0.4px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 6px rgba(233, 30, 99, 0.3);
}

.dark-mode-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1001;
}

.dark-toggle-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

.dark-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 13px rgba(0, 0, 0, 0.2);
}

/* Dark mode styles */
body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
}

body.dark-mode .dark-toggle-btn {
    background: rgba(30, 30, 30, 0.9);
    color: #ffd700;
}

body.dark-mode .content-section {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.dark-mode .content-section h2 {
    color: #ffffff;
}

body.dark-mode .text-content {
    color: #e0e0e0;
}

body.dark-mode .red-flag-item,
body.dark-mode .protection-item {
    background: rgba(40, 40, 40, 0.8);
    color: #e0e0e0;
}

body.dark-mode .main-title {
    color: #ffffff;
}

body.dark-mode .subtitle {
    color: #b0b0b0;
}

.user-profile-display {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.64rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.64rem 1rem;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

body.dark-mode .user-profile-display {
    background: rgba(30, 30, 30, 0.9);
    color: #e0e0e0;
}

.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

body.dark-mode .user-avatar {
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-username {
    font-weight: 600;
    font-size: 0.72rem;
    color: #2c3e50;
}

body.dark-mode .user-username {
    color: #e0e0e0;
}

.live-chat {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 256px;
    height: 320px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 13px;
    box-shadow: 0 6px 26px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: move;
}

body.dark-mode .live-chat {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header {
    padding: 0.8rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 13px 13px 0 0;
    cursor: move;
    user-select: none;
}

.chat-header h3 {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    flex: 1;
}

.chat-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.online-count {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.64rem;
    opacity: 0.9;
}

.online-dot {
    width: 6px;
    height: 6px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chat-messages {
    flex: 1;
    padding: 0.8rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

body.dark-mode .chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.message {
    background: rgba(102, 126, 234, 0.1);
    padding: 0.4rem 0.64rem;
    border-radius: 10px;
    font-size: 0.64rem;
    line-height: 1.4;
    word-wrap: break-word;
    border: 1px solid rgba(102, 126, 234, 0.2);
    margin-bottom: 0.4rem;
    display: flex;
    flex-direction: column;
}

body.dark-mode .message {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #e0e0e0;
}

.message.own {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    align-self: flex-end;
    max-width: 80%;
}

.message.other {
    align-self: flex-start;
    max-width: 80%;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.24rem;
}

.message-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.message .username {
    font-weight: 600;
    font-size: 0.56rem;
    opacity: 0.8;
}

.message-text {
    font-size: 0.64rem;
}

.system-message {
    background: rgba(255, 193, 7, 0.1);
    color: #ff6b35;
    padding: 0.4rem;
    border-radius: 6px;
    font-size: 0.56rem;
    text-align: center;
    font-style: italic;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

body.dark-mode .system-message {
    background: rgba(255, 193, 7, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.chat-input-container {
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 0.4rem;
}

body.dark-mode .chat-input-container {
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#chatInput {
    flex: 1;
    padding: 0.64rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 0.64rem;
    background: white;
    outline: none;
    transition: all 0.3s ease;
}

body.dark-mode #chatInput {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

#chatInput:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#sendButton {
    padding: 0.64rem 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.64rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#sendButton:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

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

.live-chat.minimized {
    height: 48px;
}

.live-chat.minimized .chat-content {
    display: none;
}

.chat-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 19px;
    height: 19px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .container {
        padding: 0.48rem;
    }
    
    .content-section {
        padding: 1rem 0.72rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .red-flags-grid, .protection-grid {
        grid-template-columns: 1fr;
    }
    
    .live-chat {
        width: calc(100vw - 24px);
        right: 12px;
        bottom: 12px;
        height: 280px;
    }
    
    .dark-mode-toggle {
        top: 12px;
        right: 12px;
    }
    
    .dark-toggle-btn {
        width: 36px;
        height: 36px;
        font-size: 1.04rem;
    }
    
    .user-profile-display {
        top: 12px;
        left: 12px;
        padding: 0.48rem 0.8rem;
        gap: 0.48rem;
    }
    
    .user-avatar {
        width: 22px;
        height: 22px;
    }
    
    .user-username {
        font-size: 0.64rem;
    }
}

/* Remove all audio-related styles */
.global-audio-control,
.audio-btn,
.audio-progress,
.progress-bar,
.section-indicator {
    display: none !important;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section-counter {
    font-size: 0.6rem;
    color: #667eea;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
    display: inline-block;
}