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

:root {
    --primary-color: #00C0F3;
    --primary-hover: #00A8D6;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --border-color: #2a2a3e;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0f0f1e;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--dark-bg);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
  }


.logo-roulette {
    color: var(--text-light);
}

.logo sup {
    font-size: 12px;
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-selector {
    position: relative;
    display: inline-block;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s;
    font-family: inherit;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.flag-img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

.language-text {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-arrow {
    font-size: 10px;
    opacity: 0.7;
    margin-left: -2px;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--darker-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    min-width: 200px;
    z-index: 10000;
    overflow: hidden;
    animation: slideDown 0.25s ease;
    padding: 8px 0;
}

.language-dropdown.show {
    display: block;
}

.language-selector:hover .language-dropdown,
.language-dropdown:hover {
    display: block;
}

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

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    cursor: pointer;
}

.language-option:hover {
    background-color: rgba(0, 192, 243, 0.15);
    padding-left: 20px;
}

.language-option.active {
    background-color: rgba(0, 192, 243, 0.25);
    color: var(--primary-color);
    font-weight: 600;
}

.language-option.active::before {
    content: '✓';
    margin-right: -8px;
    margin-left: -4px;
    color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

.login-link:hover {
    color: var(--text-light);
}

.login-link strong {
    color: var(--primary-color);
}

.btn-create-account {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-create-account:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 192, 243, 0.3);
}

/* Main Content */
.main-content {
    padding: 30px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Video Section */
.video-section {
    position: relative;
}

.video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background-color: var(--darker-bg);
}

/* Live Feed Container */
#live-feed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    /*min-height: 400px;*/ /* Hauteur minimale pour garantir la visibilité */
    background: #000;
    border-radius: 15px;
    overflow: hidden;
}

/* Stream Container - pour l'iframe */
.stream-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 5;  /* Au-dessus du background, en dessous des contrôles */
}

/* Iframe du stream vidéo */
.cam-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
    display: block !important;  /* Force l'affichage */
    opacity: 1 !important;      /* Force l'opacité */
    visibility: visible !important;  /* Force la visibilité */
    pointer-events: auto !important;  /* Permet les interactions */
}

/* Indicateur Live */
.model-status-live {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #ff0000;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    z-index: 100;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.5);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(0.98);
    }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;  /* Caché par défaut */
    align-items: center;
    justify-content: center;
    z-index: 10;  /* Au-dessus de tout */
}

.overlay-content {
    text-align: center;
    padding: 40px;
}

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

.overlay-content h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.username {
    color: var(--primary-color);
    font-weight: 700;
}

.btn-continue {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 15px 60px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 192, 243, 0.4);
}

.btn-continue:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 192, 243, 0.6);
}

/* Barre nom du modèle */
.model-name-bar {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 25px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.model-name-bar span:not(.status-dot) {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.video-controls {
    display: flex;
    gap: 10px;
    padding: 15px;
    background-color: var(--dark-bg);
    align-items: center;
}

.btn-next {
    background: linear-gradient(135deg, #00C0F3 0%, #0099CC 100%);
    color: var(--text-light);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-next:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 192, 243, 0.3);
}

.btn-start-cam {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-start-cam:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Bouton Volume */
.btn-volume {
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--border-color);
    color: var(--text-light);
    cursor: pointer;
    padding: 10px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn-volume:hover {
    background-color: rgba(0, 0, 0, 0.9);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.btn-volume.mute {
    border-color: var(--danger-color);
}

.btn-volume .sound-icon,
.btn-volume .mute-icon {
    position: absolute;
    transition: opacity 0.3s ease, display 0.3s ease;
}

.btn-volume .sound-icon {
    fill: var(--success-color);
}

.btn-volume .mute-icon {
    fill: var(--danger-color);
}

/* Chat Section */
.chat-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.chat-container {
    background-color: var(--dark-bg);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 700px;
}

.chat-welcome {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0099CC 100%);
    padding: 20px;
    text-align: center;
}

.chat-welcome p {
    margin: 5px 0;
}

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

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

.chat-messages::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--text-gray);
}

.chat-message {
    display: flex;
    gap: 12px;
    padding: 15px;
    border-radius: 10px;
    background-color: var(--darker-bg);
}

.message-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.status-icon {
    background-color: var(--success-color);
    color: var(--text-light);
}

.info-icon {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.vibe-icon {
    background-color: var(--danger-color);
    color: var(--text-light);
}

.message-content {
    flex: 1;
}

.message-content strong {
    display: block;
    margin-bottom: 5px;
}

.message-content p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 3px 0;
}

.message-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.message-content a:hover {
    text-decoration: underline;
}

.chat-input {
    display: flex;
    padding: 15px;
    background-color: var(--darker-bg);
    border-top: 1px solid var(--border-color);
}

.chat-input input {
    flex: 1;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 12px 15px;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.chat-input input:focus {
    border-color: var(--primary-color);
}

.chat-input input::placeholder {
    color: var(--text-gray);
}

.btn-send {
    background-color: var(--primary-color);
    border: none;
    color: var(--text-light);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: all 0.3s;
}

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

/* Categories */
.categories {
    background-color: var(--dark-bg);
    padding: 20px 0;
    margin-top: 30px;
    border-radius: 15px;
    width: 100%;
    overflow: visible;
}

.categories .container {
    overflow: visible;
}

.categories-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    width: 100%;
}

.categories-scroll::-webkit-scrollbar {
    height: 8px;
}

.categories-scroll::-webkit-scrollbar-track {
    background: var(--darker-bg);
    border-radius: 10px;
}

.categories-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.category-btn {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-color);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.category-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

/* Models Grid Section */
.models-grid-section {
    padding: 40px 0;
    background-color: var(--dark-bg);
    margin-top: 40px;
}

.models-grid-section .section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.model-card {
    background-color: var(--darker-bg);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 192, 243, 0.3);
}

.model-card.active {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 192, 243, 0.5);
}

.model-card.active::after {
    content: '▶';
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 10;
}

.model-card-image {
    width: 100%;
    aspect-ratio: 5/4;
    object-fit: cover;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    transition: opacity 0.3s ease;
}

.model-card-image:not([src]),
.model-card-image[src=""] {
    opacity: 0;
}

/* Skeleton loading animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.model-card-image.loading {
    background: linear-gradient(90deg, #1a1a2e 0%, #2a2a3e 50%, #1a1a2e 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

.model-card-info {
    padding: 12px;
}

.model-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-gray);
}

.model-card-status .status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.model-card-live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff0000;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.models-grid-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
    font-size: 18px;
}

.models-grid-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--danger-color);
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--dark-bg);
    font-size: 14px;
    min-width: 700px;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0099CC 100%);
}

.comparison-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.comparison-table th:first-child {
    border-top-left-radius: 12px;
}

.comparison-table th:last-child {
    border-top-right-radius: 12px;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.comparison-table tbody tr:hover {
    background-color: rgba(0, 192, 243, 0.05);
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table td {
    padding: 16px 15px;
    color: var(--text-light);
}

.comparison-table td:first-child {
    color: var(--text-light);
    font-weight: 500;
}

.comparison-table .highlight-column {
    background-color: rgba(0, 192, 243, 0.1);
    border-left: 3px solid var(--primary-color);
    border-right: 3px solid var(--primary-color);
    font-weight: 500;
}

.comparison-table thead .highlight-column {
    background-color: rgba(255, 255, 255, 0.15);
    position: relative;
}

.comparison-table thead .highlight-column::after {
    content: '⭐';
    margin-left: 8px;
    font-size: 16px;
}

/* Responsive table */
@media (max-width: 768px) {
    .comparison-table-wrapper {
        margin: 20px -20px;
        border-radius: 0;
    }
    
    .comparison-table {
        font-size: 12px;
        min-width: 650px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 10px;
    }
    
    .comparison-table th {
        font-size: 11px;
    }
}

/* Info Section */
.info-section {
    padding: 60px 0;
    background-color: var(--darker-bg);
    margin-top: 40px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.info-subtitle {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-content {
    max-width: 1200px;
    margin: 0 auto;
}

.info-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* Styled Lists for Features/FAQ */
.info-content h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.info-content h4 {
    font-size: 20px;
    color: var(--text-light);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.info-content ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.info-content ul li {
    position: relative;
    padding: 20px 25px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, rgba(0, 192, 243, 0.08) 0%, rgba(0, 153, 204, 0.05) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.info-content ul li:hover {
    background: linear-gradient(135deg, rgba(0, 192, 243, 0.12) 0%, rgba(0, 153, 204, 0.08) 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 192, 243, 0.15);
}

.info-content ul li b {
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.info-content ul li::before {
    content: '✓';
    position: absolute;
    left: -12px;
    top: 20px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 192, 243, 0.4);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    background-color: var(--dark-bg);
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.feature p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    color: var(--text-gray);
    font-size: 12px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--dark-bg);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

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

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-gray);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-light);
}

.modal-content h2 {
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

.modal-content p {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 30px 0;
    padding: 0 20px;
}

#signupModal .modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 40px;
}

#signupModal .modal-content h2 {
    margin-bottom: 20px;
    font-size: 28px;
}

#signupModal .modal-content p {
    margin-bottom: 35px;
    max-width: 400px;
}

#signupModal .btn-create-account {
    margin-top: 10px;
}

.login-form,
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form input,
.signup-form input {
    background-color: var(--darker-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.login-form input:focus,
.signup-form input:focus {
    border-color: var(--primary-color);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-wrapper label {
    font-size: 14px;
    color: var(--text-gray);
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 192, 243, 0.3);
}

.forgot-password {
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr 350px;
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .chat-section {
        position: relative;
        top: 0;
    }

    .chat-container {
        height: auto;
    }
}

@media (max-width: 768px) {
    /* Info content responsive */
    .info-content h3 {
        font-size: 20px;
        margin-top: 30px;
    }
    
    .info-content h4 {
        font-size: 18px;
        margin-top: 25px;
    }
    
    .info-content ul li {
        padding: 15px 20px;
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .info-content ul li b {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .info-content ul li::before {
        left: -10px;
        width: 20px;
        height: 20px;
        font-size: 12px;
        top: 15px;
    }
    
    /* Models grid responsive */
    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .models-grid-section .section-title {
        font-size: 24px;
    }
    
    .model-card-name {
        font-size: 14px;
    }
    
    .model-card-status {
        font-size: 12px;
    }
    
    /* Header optimizations */
    .header {
        padding: 10px 0;
        display: block !important;
        visibility: visible !important;
    }
    
    .header-content {
        flex-direction: column;
        gap: 12px;
        display: flex !important;
    }
    
    .logo {
        text-align: center;
        width: 100%;
        display: block !important;
    }

    
    .logo h1 {
        font-size: 24px;
        display: flex !important;
        justify-content: center;
    }

    .header-right {
        width: 100%;
        display: flex !important;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .language-selector {
        order: -1;
        display: inline-block !important;
        visibility: visible !important;
        position: relative;
        flex-shrink: 0;
    }
    
    .language-btn {
        display: flex !important;
        visibility: visible !important;
    }
    
    .language-dropdown {
        right: auto;
        left: 0;
        min-width: 150px;
    }
    
    .auth-buttons {
        display: flex;
        gap: 8px;
        flex: 1;
        justify-content: flex-end;
    }
    
    .login-link {
        font-size: 9px;
        padding: 6px 10px;
    }
    
    .login-link span {
        display: none;
    }
    
    .btn-create-account {
        padding: 8px 12px;
        font-size: 11px;
        white-space: nowrap;
    }
    
    /* Live feed optimizations */
    .live-feed {
        /*min-height: 400px;*/
        max-height: 60vh;
    }
    
    .cam-video-player {
        min-height: 400px !important;
        max-height: 60vh !important;
    }
    
    .model-status-live {
        padding: 4px 12px;
        font-size: 11px;
        top: 8px;
        left: 8px;
    }
    
    .model-name-bar {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* Video controls optimizations */
    .video-controls {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .btn-next {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        order: 2;
    }
    
    .btn-start-cam {
        width: 100%;
        padding: 15px;
        font-size: 14px;
        order: 1;
    }
    
    .btn-volume {
        position: absolute;
        bottom: 80px;
        right: 15px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        z-index: 10;
        order: 3;
    }
    
    /* Chat optimizations */
    .chat-section {
        max-height: 400px;
    }
    
    .chat-welcome {
        padding: 12px;
        font-size: 13px;
    }
    
    .chat-messages {
        max-height: 250px;
        padding: 12px;
    }
    
    .chat-message {
        font-size: 13px;
    }
    
    .chat-input input {
        font-size: 14px;
        padding: 12px;
    }
    
    /* Categories optimizations */
    .categories {
        padding: 15px 0;
        display: block !important;
        visibility: visible !important;
        margin-top: 20px;
        position: relative;
        z-index: 1;
        width: 100%;
    }
    
    .categories .container {
        overflow: visible;
        padding: 0 15px;
    }
    
    .categories-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 5px;
        display: flex !important;
        gap: 8px;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 13px;
        white-space: nowrap;
        display: inline-block;
        flex-shrink: 0;
    }
    
    /* Overlay optimizations */
    .overlay-content h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .overlay-content h3 {
        font-size: 14px;
    }

    .btn-continue {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    /* Info section */
    .info-section {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .info-subtitle {
        font-size: 18px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Footer */
    .footer {
        padding: 30px 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .copyright {
        font-size: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Models grid extra compact */
    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .models-grid-section {
        padding: 30px 0;
    }
    
    .models-grid-section .section-title {
        font-size: 20px;
    }
    
    .model-card-name {
        font-size: 12px;
    }
    
    .model-card-status {
        font-size: 11px;
    }
    
    .model-card-info {
        padding: 8px;
    }
    
    .model-card-live-badge {
        padding: 3px 8px;
        font-size: 10px;
        top: 8px;
        left: 8px;
    }
    
    /* Extra small devices */
    .container {
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .logo sup {
        font-size: 8px;
    }

    .btn-create-account {
        padding: 6px 10px;
        font-size: 10px;
    }

    .login-link {
        font-size: 8px;
        padding: 6px 8px;
    }
    
    .login-link strong {
        font-size: 9px;
    }
    
    /* Language selector compact */
    .language-selector {
        display: inline-block !important;
        visibility: visible !important;
        position: relative;
        z-index: 1000;
    }
    
    .language-btn {
        padding: 6px 10px;
        font-size: 11px;
        display: flex !important;
        visibility: visible !important;
    }
    
    .flag-img {
        width: 16px;
        height: 12px;
    }
    
    .language-text {
        font-size: 10px;
    }
    
    .dropdown-arrow {
        font-size: 8px;
    }
    
    .language-dropdown {
        right: auto;
        left: 0;
        min-width: 140px;
        font-size: 12px;
    }
    
    .language-option {
        padding: 8px 12px;
    }
    
    /* Live feed extra compact */
    .live-feed {
        /*min-height: 300px;*/
        max-height: 50vh;
    }
    
    .cam-video-player {
        min-height: 300px !important;
        max-height: 50vh !important;
    }
    
    .model-name-bar {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .btn-volume {
        width: 45px;
        height: 45px;
        bottom: 70px;
    }
    
    /* Video controls extra compact */
    .video-controls {
        padding: 12px;
        gap: 8px;
    }
    
    .btn-next,
    .btn-start-cam {
        padding: 12px;
        font-size: 13px;
    }
    
    /* Chat extra compact */
    .chat-welcome p {
        font-size: 12px;
    }
    
    .chat-message {
        font-size: 12px;
    }
    
    .chat-input input {
        font-size: 13px;
        padding: 10px;
    }
    
    .btn-send {
        width: 40px;
        height: 40px;
    }
    
    /* Categories extra compact */
    .categories {
        display: block !important;
        visibility: visible !important;
        margin-top: 15px;
        position: relative;
        z-index: 1;
        width: 100%;
    }
    
    .categories .container {
        overflow: visible;
        padding: 0 10px;
    }
    
    .categories-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 5px;
        display: flex !important;
        gap: 6px;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 12px;
        display: inline-block;
        flex-shrink: 0;
    }
    
    /* Overlay extra compact */
    .overlay-content {
        padding: 15px;
    }
    
    .overlay-content h2 {
        font-size: 18px;
    }
    
    .overlay-content h3 {
        font-size: 12px;
    }
    
    .btn-continue {
        padding: 10px 25px;
        font-size: 13px;
    }

    /* Modal extra compact */
    .modal-content {
        padding: 20px;
        max-width: 95%;
    }
    
    .modal-content h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .modal-content p {
        font-size: 14px;
        padding: 0 10px;
    }
    
    #signupModal .modal-content {
        padding: 30px 20px;
    }
}

