/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    /* Accessibility improvements */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Skip to main content for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #667eea;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background: #000;
        color: #fff;
    }
    
    .welcome-container,
    .profile-container,
    .waiting-container,
    .chat-container {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
}

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

/* Legal Footer */
.legal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 0;
    font-size: 0.8rem;
    z-index: 100;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-info {
    text-align: right;
    color: #999;
}

.footer-info p {
    margin: 2px 0;
    font-size: 0.75rem;
}

/* Legal Modals */
.legal-modal .modal-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.legal-content {
    line-height: 1.6;
}

.legal-content h4 {
    color: #667eea;
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
}

.legal-content h4:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content ul, .legal-content ol {
    margin: 10px 0 15px 20px;
}

.legal-content li {
    margin-bottom: 5px;
}

.legal-content strong {
    color: #333;
}

/* Report Modal */
#report-form .form-group {
    margin-bottom: 20px;
}

#report-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

#report-form select,
#report-form input,
#report-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#report-form select:focus,
#report-form input:focus,
#report-form textarea:focus {
    border-color: #667eea;
    outline: none;
}

#report-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* App Container */
#app {
    min-height: 100vh;
    position: relative;
}

/* Screen Management */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.screen.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Welcome Screen */
.welcome-container {
    text-align: center;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    margin-bottom: 30px;
}

.logo i {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 20px;
    display: block;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.beta-badge {
    position: absolute;
    top: -10px;
    right: -40px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: pulse-beta 2s infinite;
}

@keyframes pulse-beta {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    }
}

.beta-note {
    font-size: 0.875rem;
    color: #666;
    margin-top: 8px;
    font-style: italic;
    opacity: 0.8;
}

.tagline {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
}

.stat i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 10px;
    display: block;
}

.stat span {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    display: block;
}

.stat label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: 2px solid #667eea;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Profile Screen */
.profile-container {
    max-width: 500px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2); 
}

.profile-container h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
    font-size: 1.8rem;
}

.profile-container > p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input[type="checkbox"] {
    margin-right: 10px;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.interest-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.interest-item:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.interest-item input[type="checkbox"] {
    margin-right: 8px;
}

/* Waiting Screen */
.waiting-container {
    text-align: center;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.loading-animation {
    margin-bottom: 30px;
}

.pulse {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    margin: 0 auto;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.waiting-container h2 {
    margin-bottom: 15px;
    color: #333;
}

.waiting-container p {
    color: #666;
    margin-bottom: 20px;
}

#waiting-status {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.queue-info {
    background: rgba(102, 126, 234, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    color: #667eea;
    font-weight: 600;
}

/* Chat Screen */
.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    padding-bottom: 80px; /* Add padding to account for fixed footer */
}

.chat-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.partner-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.partner-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.partner-details h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.partner-details p {
    color: #666;
    font-size: 0.9rem;
}

.chat-controls {
    display: flex;
    gap: 10px;
}

.btn-control {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: #f8f9fa;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.btn-control:hover {
    background: #e9ecef;
    transform: scale(1.1);
}

.btn-control.next {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-control.next:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Video Container */
.video-container {
    flex: 1;
    padding: 20px;
    background: #000;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 100%;
}

.video-item {
    position: relative;
    background: #2a2a2a;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.video-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Chat Area */
.chat-area {
    height: 100%; /* Use viewport height minus header and footer */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    position: relative; /* Ensure proper positioning */
    z-index: 10; /* Keep chat area above other elements */
    overflow-y: auto;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    padding-bottom: 20px; /* Reduced padding since input is now sticky */
    overflow-y: auto;
    min-height: 0; /* Allow flex shrinking */
    max-height: none; /* Remove max-height constraint */
    scroll-behavior: smooth; /* Smooth scrolling */
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.system {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    text-align: center;
    margin: 0 auto 15px;
    font-style: italic;
}

.message.received {
    background: #f1f3f4;
    color: #333;
    align-self: flex-start;
}

.message.sent {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.chat-input {
    padding: 12px 20px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #e1e5e9;
    background: rgba(255, 255, 255, 0.95); /* Ensure input area is visible */
    position: sticky; /* Make input fixed to viewport */
    bottom: 1px; /* Position above the footer */
    left: 0;
    right: 0;
    z-index: 1000; /* Higher z-index to ensure visibility */
    width: 100%; /* Full width */
    box-sizing: border-box; /* Include padding in width */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Add shadow for visibility */
    height: 50px; /* Reduced height to make it more compact */
    align-items: center; /* Center items vertically */
    overflow: hidden; /* Prevent any content from spilling out */
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input input:focus {
    border-color: #667eea;
}

.btn-send {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.btn-send:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Disconnected Screen */
.disconnected-container {
    text-align: center;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.disconnected-container i {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.disconnected-container h2 {
    margin-bottom: 15px;
    color: #333;
}

.disconnected-container p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Notifications */
#notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Welcome Screen Mobile */
    .welcome-container,
    .profile-container,
    .waiting-container,
    .disconnected-container {
        margin: 15px;
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .logo i {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .stats {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .stat span {
        font-size: 1.5rem;
    }
    
    .stat i {
        font-size: 1.5rem;
    }
    
    .btn-primary {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    /* Video Grid Mobile */
    .video-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 15px;
    }
    
    .video-container {
        padding: 15px;
    }
    
    /* Chat Area Mobile */
    .chat-area {
        height: calc(100vh - 250px);
        z-index: 10;
    }
    
    .chat-messages {
        min-height: 0;
        padding: 15px;
        padding-bottom: 20px;
    }
    
    .chat-input {
        position: fixed;
        bottom: 60px;
        height: 50px;
        overflow: hidden;
        z-index: 1000;
        padding: 10px 15px;
    }
    
    .chat-input input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn-send {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .chat-area {
        margin-bottom: 70px;
    }
    
    .chat-container {
        padding-bottom: 70px;
    }
    
    /* Profile Screen Mobile */
    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .interest-item {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    /* Chat Header Mobile */
    .chat-header {
        padding: 12px 15px;
    }
    
    .partner-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .partner-details h3 {
        font-size: 1rem;
    }
    
    .partner-details p {
        font-size: 0.8rem;
    }
    
    .btn-control {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Messages Mobile */
    .message {
        padding: 8px 12px;
        font-size: 0.9rem;
        max-width: 85%;
    }
    
    /* Video Labels Mobile */
    .video-label {
        font-size: 0.8rem;
        padding: 4px 10px;
        bottom: 10px;
        left: 10px;
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile Devices */
    .welcome-container,
    .profile-container,
    .waiting-container,
    .disconnected-container {
        margin: 10px;
        padding: 25px 15px;
    }
    
    .logo h1 {
        font-size: 1.6rem;
    }
    
    .logo i {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Chat Header Extra Small */
    .chat-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 10px;
    }
    
    .chat-controls {
        justify-content: center;
        gap: 8px;
    }
    
    .partner-info {
        gap: 10px;
    }
    
    .partner-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .partner-details h3 {
        font-size: 0.9rem;
    }
    
    .partner-details p {
        font-size: 0.75rem;
    }
    
    .btn-control {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* Video Container Extra Small */
    .video-container {
        padding: 8px;
    }
    
    .video-grid {
        gap: 10px;
    }
    
    .video-label {
        font-size: 0.75rem;
        padding: 3px 8px;
        bottom: 8px;
        left: 8px;
    }
    
    /* Chat Area Extra Small */
    .chat-messages {
        padding: 12px;
    }
    
    .message {
        padding: 6px 10px;
        font-size: 0.85rem;
        max-width: 90%;
    }
    
    .chat-input {
        padding: 8px 12px;
        height: 45px;
    }
    
    .chat-input input {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .btn-send {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* Profile Extra Small */
    .interests-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .interest-item {
        padding: 6px;
        font-size: 0.85rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

/* Mobile Responsive for Legal Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-links {
        justify-content: center;
        gap: 15px;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .legal-modal .modal-content {
        margin: 10px;
        max-height: 90vh;
    }
    
    .legal-content {
        font-size: 14px;
    }
    
    .legal-content h4 {
        font-size: 1rem;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .welcome-container,
    .profile-container,
    .waiting-container,
    .disconnected-container {
        padding: 20px;
        margin: 10px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 2.5rem;
    }
    
    .stats {
        flex-direction: row;
        gap: 20px;
    }
    
    .video-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
    }
    
    .chat-area {
        height: calc(100vh - 200px);
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    /* Increase touch targets */
    .btn-primary,
    .btn-secondary,
    .btn-control,
    .btn-send {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better touch feedback */
    .btn-primary:active,
    .btn-secondary:active,
    .btn-control:active,
    .btn-send:active {
        transform: scale(0.95);
    }
    
    /* Prevent zoom on input focus */
    .chat-input input,
    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group select {
        font-size: 16px;
    }
    
    /* Smooth scrolling for iOS */
    .chat-messages {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better modal handling on mobile */
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-body {
        padding: 20px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: 60vh;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    max-width: 300px;
    animation: notificationSlideIn 0.3s ease;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Promotional Banner */
.promo-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.promo-banner.show {
    transform: translateY(0);
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.promo-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 120px;
}

.promo-logo img {
    height: 40px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
}

.brand-placeholder {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    min-width: 120px;
    justify-content: center;
}

.brand-placeholder i {
    font-size: 16px;
    opacity: 0.8;
}

.promo-text {
    flex: 1;
    text-align: center;
    margin: 0 20px;
}

.promo-text h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.promo-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.promo-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.promo-cta i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.promo-cta:hover i {
    transform: translateX(2px);
}

.promo-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0.7;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(1.1);
}

/* Adjust main content when promo banner is shown */
.promo-banner.show + .main-content {
    margin-top: 80px;
}

/* Responsive design for promo banner */
@media (max-width: 768px) {
    .promo-content {
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
    }
    
    .promo-logo {
        min-width: auto;
    }
    
    .brand-placeholder {
        min-width: 100px;
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .promo-text {
        margin: 0;
        text-align: center;
    }
    
    .promo-text h3 {
        font-size: 14px;
    }
    
    .promo-text p {
        font-size: 12px;
    }
    
    .promo-cta {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .promo-close {
        position: absolute;
        top: 8px;
        right: 8px;
        font-size: 16px;
        min-width: 32px;
        height: 32px;
    }
    
    .promo-banner.show + .main-content {
        margin-top: 120px;
    }
}

@media (max-width: 480px) {
    .promo-content {
        padding: 12px 16px;
    }
    
    .brand-placeholder {
        min-width: 80px;
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .promo-text h3 {
        font-size: 13px;
    }
    
    .promo-text p {
        font-size: 11px;
    }
    
    .promo-banner.show + .main-content {
        margin-top: 140px;
    }
}

/* Animation for promo banner entrance */
@keyframes promoSlideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.promo-banner.show {
    animation: promoSlideDown 0.4s ease-out;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .promo-banner {
        background: #000;
        border-bottom: 2px solid #fff;
    }
    
    .brand-placeholder {
        background: #333;
        border-color: #fff;
    }
    
    .promo-cta {
        background: #333;
        border-color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .promo-banner {
        transition: none;
    }
    
    .promo-banner.show {
        animation: none;
    }
    
    .promo-cta {
        transition: none;
    }
    
    .promo-close {
        transition: none;
    }
}

/* Permission Help Modal */
.permission-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.permission-buttons .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.permission-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.permission-buttons .btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #dee2e6;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.permission-buttons .btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.modal-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.modal-body ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.modal-body h4 {
    color: #333;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.modal-body h4:first-of-type {
    margin-top: 1rem;
}
