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

:root {
    --primary-color: #6b7280;
    --primary-hover: #4b5563;
    --bg-color: #ffffff;
    --card-bg: #f8fafc;
    --text-color: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --success: #10b981;
}

[data-theme="dark"] {
    --primary-color: #9ca3af;
    --primary-hover: #6b7280;
    --bg-color: #1a1a1a;
    --card-bg: #2a2a2a;
    --text-color: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: #3a3a3a;
    --success: #10b981;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
    animation: fadeIn 0.5s ease-in;
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Header */
header {
    background: var(--bg-color);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    animation: slideDown 0.4s ease-out;
}

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

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
    padding: 0 48px;
    max-width: 100%;
}


.logo {
    flex-shrink: 0;
}

.logo a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.logo a:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.header-dash {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin: 0 0.25rem;
}

.header-quote-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.donate-btn {
    color: #10b981;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    transition: all 0.3s ease;
    opacity: 0.7;
    cursor: pointer;
    position: relative;
}

.donate-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #10b981;
    transition: width 0.3s ease;
}

.donate-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.donate-btn:hover::after {
    width: 100%;
}

/* Donate Panel Overlay */
.donate-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
    animation: fadeIn 0.3s ease;
}

.donate-panel {
    width: 450px;
    max-width: 90vw;
    height: 100%;
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideInFromRight 0.3s ease;
    overflow-y: auto;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.donate-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--card-bg);
    z-index: 10;
}

.donate-panel-header h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.donate-panel-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.donate-panel-close:hover {
    background: var(--bg-secondary);
}

.donate-panel-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-y: auto;
}

.donate-form-section {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.donate-form-section h3,
.donate-leaderboard-section h3,
.donate-recent-section h3 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
    font-size: 1.125rem;
    font-weight: 600;
}

.donate-amount-group {
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 10;
}

.donate-amount-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.donate-amount-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    overflow: visible;
    min-height: 120px;
    cursor: text;
    position: relative;
    margin: 1rem 0;
}

.donate-currency-display {
    display: none;
}

.donate-amount-input {
    position: relative;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 4.5rem;
    font-weight: 700;
    outline: none;
    text-align: center;
    z-index: 2;
    letter-spacing: -0.02em;
}

.donate-amount-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.3;
}

.donate-amount-input:focus {
    background: transparent;
}

.donate-quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.donate-quick-btn {
    padding: 0.625rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.donate-quick-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--text-color);
    transform: translateY(-1px);
}

.donate-quick-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.donate-payment-info {
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.donate-info-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    text-align: center;
}

/* Stripe Card Element */
.stripe-card-element {
    padding: 0.875rem 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.stripe-card-errors {
    color: #ef4444;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    min-height: 20px;
}

.donate-submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.donate-submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.donate-submit-btn:active {
    transform: translateY(0);
}

.donate-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Leaderboard Section */
.donate-leaderboard-section {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.donate-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.donate-leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.leaderboard-rank {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.125rem;
    min-width: 24px;
}

.leaderboard-rank-gold {
    color: #FFD700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.leaderboard-rank-silver {
    color: #C0C0C0 !important;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.5);
}

.leaderboard-rank-bronze {
    color: #CD7F32 !important;
    text-shadow: 0 0 8px rgba(205, 127, 50, 0.5);
}

.leaderboard-name {
    flex: 1;
    color: var(--text-color);
    font-weight: 500;
}

.leaderboard-amount {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
}

/* Recent Donations Section */
.donate-recent-section {
    flex: 1;
}

.donate-recent-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.donate-recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    gap: 1rem;
}

.recent-name {
    color: var(--text-color);
    font-weight: 500;
    flex: 1;
}

.recent-amount {
    color: var(--text-color);
    font-weight: 600;
}

.recent-time {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.logo h1 {
    font-size: 1.25rem;
    color: var(--text-color);
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.02em;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0.5rem;
    background: none;
    color: var(--text-color);
    border: none;
    border-radius: 0;
    font-size: 1.25rem;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: none;
}

.theme-toggle-btn:hover {
    opacity: 0.7;
    transform: rotate(15deg) scale(1.1);
}

.theme-toggle-btn:active {
    opacity: 0.5;
    transform: rotate(0deg) scale(0.95);
}

.theme-icon {
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover .theme-icon {
    opacity: 0.7;
}

/* Info Button */
.info-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.01em;
    text-decoration: none;
    display: inline-block;
}

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

.info-btn:active {
    opacity: 0.7;
    transform: translateY(0);
}

/* Profile Picture in Header */
.profile-picture-header {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    text-decoration: none;
}

.profile-picture-header:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-picture-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-picture-header span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

[data-theme="light"] .profile-picture-header span {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: #000000;
}

/* Info Modal Content */
.info-content {
    padding: 1rem 0;
}

.info-content h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.info-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.info-content ul, .info-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.info-content li {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.info-content li strong {
    color: var(--primary-color);
}

.info-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.info-footer p {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Rooms Section */
/* Search Section */
.search-section {
    padding: 1.5rem 0;
}

.search-bar-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.room-search-input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1.25rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.2s ease;
    font-family: inherit;
}

.room-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.room-search-input::placeholder {
    color: var(--text-secondary);
}

.clear-search-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    transition: color 0.2s ease;
    border-radius: 4px;
}

.clear-search-btn:hover {
    color: var(--text-color);
    background: var(--border-color);
}

/* Sponsored Section */
.sponsored-section {
    padding: 2rem 0;
}

.sponsored-section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.sponsored-section-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
}

.sponsored-line {
    flex: 1;
    height: 1px;
    background: #3b82f6;
}

.sponsored-label {
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.sponsored-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    min-height: 100px;
}

.sponsored-rooms-grid:empty::before {
    content: '';
    display: block;
}

.rooms-section {
    padding: 2rem 0 4rem;
}

/* Footer */
.site-footer {
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: auto;
    position: relative;
    flex-shrink: 0;
}

[data-theme="dark"] .site-footer {
    background: #0f0f0f;
}

[data-theme="light"] .site-footer {
    background: #e2e8f0;
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.25rem 0;
    position: relative;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.2s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-separator {
    color: var(--text-secondary);
    opacity: 0.4;
    font-size: 0.875rem;
    margin: 0 0.25rem;
}

@media (max-width: 768px) {
    /* Allow vertical scrolling, prevent unwanted horizontal scrolling */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
        overflow-y: auto;
    }
    
    /* Ensure main content can scroll */
    main {
        overflow-x: hidden;
        overflow-y: visible;
    }
    
    /* Footer - full width, left/right layout */
    .footer-wrapper {
        max-width: 100%;
        padding: 0 1.5rem;
        width: 100%;
    }
    
    .site-footer {
        padding: 1rem 0;
        width: 100%;
    }
    
    .footer-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    .footer-left {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        flex: 0 0 auto;
    }
    
    .footer-right {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        flex: 0 0 auto;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .footer-link {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .footer-separator {
        display: inline;
        font-size: 0.75rem;
        margin: 0 0.25rem;
    }
    
    /* News slideshow - smaller on mobile */
    .news-slideshow-section {
        margin-bottom: 1.5rem;
        padding: 0;
    }
    
    .news-slideshow {
        height: 200px;
    }
    
    .news-slide-content {
        padding: 1rem;
    }
    
    .news-slide-title {
        font-size: 0.875rem !important;
        margin-bottom: 0.5rem;
    }
    
    .news-slide-description {
        font-size: 0.75rem !important;
        margin-bottom: 0.75rem;
    }
    
    .news-slide-link {
        font-size: 0.6875rem !important;
        padding: 0.375rem 0.75rem;
    }
    
    /* Header - smaller text and hide quote */
    header {
        padding: 0.5rem 0;
    }
    
    .header-container {
        padding: 0 1.5rem;
        gap: 0.75rem;
    }
    
    header .container {
        padding: 0 1.5rem;
    }
    
    .logo h1 {
        font-size: 0.875rem !important;
        line-height: 1.2;
    }
    
    /* Hide quote text on mobile */
    .header-quote-text {
        display: none !important;
    }
    
    .header-dash {
        display: none !important;
    }
    
    /* Header actions - smaller buttons */
    .header-actions {
        gap: 0.375rem;
        flex-shrink: 0;
    }
    
    .donate-btn {
        font-size: 0.6875rem !important;
        padding: 0.3125rem 0.625rem;
        white-space: nowrap;
    }
    
    .btn-primary {
        font-size: 0.6875rem !important;
        padding: 0.3125rem 0.625rem;
        white-space: nowrap;
    }
    
    .theme-toggle-btn {
        padding: 0.3125rem;
        width: 28px;
        height: 28px;
    }
    
    .theme-toggle-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .profile-picture-header {
        width: 28px;
        height: 28px;
    }
    
    /* Search bar smaller */
    .room-search-input {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.75rem;
    }
    
    /* Sponsored section */
    .sponsored-label {
        font-size: 0.6875rem !important;
    }
    
    .start-conversation-btn {
        font-size: 0.75rem !important;
        padding: 0.5rem 1rem;
    }
    
    /* Category sections */
    .category-section-title {
        font-size: 1rem !important;
    }
    
    .view-all-btn {
        font-size: 0.6875rem !important;
        padding: 0.375rem 0.75rem;
    }
    
    .section-header-top,
    .category-section-header {
        padding: 0 0.75rem;
    }
    
    /* Room cards - 2 per row on mobile with horizontal scroll */
    .rooms-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.75rem;
        padding: 0 0.75rem;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }
    
    .rooms-grid::-webkit-scrollbar {
        height: 4px;
    }
    
    .rooms-grid::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .rooms-grid::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 2px;
    }
    
    .room-card {
        flex: 0 0 auto;
        width: calc((100vw - 2.25rem) / 2);
        min-width: calc((100vw - 2.25rem) / 2);
        aspect-ratio: 1;
        scroll-snap-align: start;
    }
    
    /* Make room card inner content smaller */
    .room-card-inner {
        padding: 0.75rem;
    }
    
    .room-card-participant-count {
        font-size: 0.5rem !important;
        top: 0.5rem;
        left: 0.5rem;
    }
    
    .room-card-pfps-container {
        top: 2.5rem;
        left: 0.75rem;
    }
    
    .participant-pfp {
        width: 10px;
        height: 10px;
        margin-left: -6px;
    }
    
    .room-card-category {
        bottom: 0.75rem;
        right: 0.75rem;
    }
    
    .category-badge {
        font-size: 0.4375rem !important;
        padding: 0.125rem 0.25rem;
    }
    
    /* Room card title - ensure visibility */
    .room-card-title-below {
        font-size: 0.625rem !important;
        margin-top: 0.5rem !important;
        line-height: 1.3 !important;
        padding: 0 !important;
        display: block !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .room-card-participant-count {
        font-size: 0.5625rem !important;
    }
    
    .participant-pfp {
        width: 12px;
        height: 12px;
    }
    
    .category-badge {
        font-size: 0.5rem !important;
        padding: 0.125rem 0.25rem;
    }
    
    /* Tabs smaller */
    .tabs {
        padding: 0 0.75rem;
        gap: 0.375rem;
    }
    
    .tab {
        font-size: 0.6875rem !important;
        padding: 0.375rem 0.75rem;
    }
    
    /* Sponsored section - fix blue line and spacing */
    .sponsored-section {
        padding: 1.5rem 0;
    }
    
    .sponsored-section-header {
        padding: 0 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .sponsored-section-footer {
        padding: 0 1.5rem;
        margin-top: 1.5rem;
    }
    
    /* Sponsored rooms grid - 2 per row, centered, no cut-off */
    .sponsored-rooms-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        justify-items: center;
        padding: 0 1.5rem;
        overflow: visible;
        max-width: 100%;
        row-gap: 1.5rem;
    }
    
    .sponsored-rooms-grid .room-card {
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
        aspect-ratio: 1;
        margin-bottom: 2rem;
    }
    
    .sponsored-rooms-grid .room-card-inner {
        width: 100% !important;
        height: 100% !important;
    }
    
    .sponsored-rooms-grid .room-card-title-below {
        margin-top: 0.5rem;
        padding: 0 0.25rem;
        line-height: 1.3;
        min-height: 2.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Category rooms grid (view all) - 2 per row, centered, no cut-off */
    #categoryRoomsGrid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        justify-items: center;
        padding: 0 1.5rem !important;
        overflow: visible !important;
        max-width: 100% !important;
        row-gap: 1.5rem;
    }
    
    #categoryRoomsGrid .room-card {
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
        aspect-ratio: 1;
        margin-bottom: 2rem;
    }
    
    #categoryRoomsGrid .room-card-inner {
        width: 100% !important;
        height: 100% !important;
    }
    
    #categoryRoomsGrid .room-card-title-below {
        margin-top: 0.5rem;
        padding: 0 0.25rem;
        line-height: 1.3;
        min-height: 2.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Question text - 12px */
    .conversation-question label {
        font-size: 0.75rem !important; /* 12px */
    }
    
    .form-question label {
        font-size: 0.75rem !important; /* 12px */
    }
}

.section-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-color);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.02em;
}

/* Tabs - 3D Design */
.tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    position: relative;
}

.tabs::-webkit-scrollbar {
    height: 6px;
}

.tabs::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 3px;
}

.tabs::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 3px;
}

.tab {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(145deg, var(--card-bg), var(--bg-color));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transform-style: preserve-3d;
    perspective: 1000px;
}

[data-theme="dark"] .tab {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
}

/* Debate tab - Always Gold */
.tab[data-category="debate"] {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    border-color: #eab308;
    color: white;
    box-shadow: 0 2px 4px rgba(234, 179, 8, 0.2);
}

/* Hot Takes tab - Always Red */
.tab[data-category="hot-takes"] {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #ef4444;
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

/* Chilling tab - Always Blue */
.tab[data-category="chilling"] {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    opacity: 0;
    transition: opacity 0.3s;
}

.tab:hover {
    border-color: var(--border-color);
    color: var(--text-color);
    transform: translateY(-2px) rotateX(5deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Hover effects for colored tabs */
.tab[data-category="debate"]:hover {
    border-color: #eab308;
    transform: translateY(-2px) rotateX(5deg);
    box-shadow: 0 8px 16px rgba(234, 179, 8, 0.3);
}

.tab[data-category="hot-takes"]:hover {
    border-color: #ef4444;
    transform: translateY(-2px) rotateX(5deg);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

.tab[data-category="chilling"]:hover {
    border-color: #3b82f6;
    transform: translateY(-2px) rotateX(5deg);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.tab:hover::before {
    opacity: 1;
}

/* Don't show the white overlay on colored tabs */
.tab[data-category="debate"]::before,
.tab[data-category="hot-takes"]::before,
.tab[data-category="chilling"]::before {
    display: none;
}

.tab.active {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    border-color: #6b7280;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.3), 0 0 0 2px rgba(107, 114, 128, 0.1);
    animation: tabPulse 2s ease-in-out infinite;
}

/* Debate tab - Enhanced Gold when active */
.tab.active[data-category="debate"] {
    background: linear-gradient(135deg, #fbbf24, #eab308);
    border-color: #fbbf24;
    box-shadow: 0 8px 20px rgba(234, 179, 8, 0.4), 0 0 0 2px rgba(234, 179, 8, 0.2);
    animation: tabPulseDebate 2s ease-in-out infinite;
    transform: translateY(-2px);
}

/* Hot Takes tab - Enhanced Red when active */
.tab.active[data-category="hot-takes"] {
    background: linear-gradient(135deg, #f87171, #ef4444);
    border-color: #f87171;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4), 0 0 0 2px rgba(239, 68, 68, 0.2);
    animation: tabPulseHotTakes 2s ease-in-out infinite;
    transform: translateY(-2px);
}

/* Chilling tab - Enhanced Blue when active */
.tab.active[data-category="chilling"] {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    border-color: #60a5fa;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4), 0 0 0 2px rgba(59, 130, 246, 0.2);
    animation: tabPulseChilling 2s ease-in-out infinite;
    transform: translateY(-2px);
}

.tab.active::before {
    opacity: 0;
}

@keyframes tabPulse {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(107, 114, 128, 0.3), 0 0 0 2px rgba(107, 114, 128, 0.1);
    }
    50% {
        box-shadow: 0 8px 24px rgba(107, 114, 128, 0.4), 0 0 0 3px rgba(107, 114, 128, 0.15);
    }
}

@keyframes tabPulseDebate {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(234, 179, 8, 0.3), 0 0 0 2px rgba(234, 179, 8, 0.1);
    }
    50% {
        box-shadow: 0 8px 24px rgba(234, 179, 8, 0.4), 0 0 0 3px rgba(234, 179, 8, 0.15);
    }
}

@keyframes tabPulseHotTakes {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3), 0 0 0 2px rgba(239, 68, 68, 0.1);
    }
    50% {
        box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4), 0 0 0 3px rgba(239, 68, 68, 0.15);
    }
}

@keyframes tabPulseChilling {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3), 0 0 0 2px rgba(59, 130, 246, 0.1);
    }
    50% {
        box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4), 0 0 0 3px rgba(59, 130, 246, 0.15);
    }
}

/* News Slideshow */
.news-slideshow-section {
    margin-bottom: 3rem;
    padding: 0;
    width: 100%;
}

.news-slideshow {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 0;
    overflow: hidden;
    background: var(--card-bg);
    border: none;
    border-bottom: 1px solid var(--border-color);
}

.news-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-color) 100%);
    background-size: cover;
    background-position: center;
}

.news-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

[data-theme="dark"] .news-slide-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
}

.news-slide.active {
    opacity: 1;
    z-index: 1;
    animation: fadeIn 0.8s ease-in;
}

.news-slide-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.news-slide-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.news-slide-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.news-slide-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.news-slide-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.news-slideshow-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.news-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.news-indicator.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 4px;
}

/* Category Section */
.category-section {
    margin-bottom: 3rem;
}

.category-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 4px;
}

.category-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.02em;
}

/* Category text colors */
.category-section-title.category-hot-takes-text {
    color: #ef4444;
}

.category-section-title.category-debate-text {
    color: #eab308;
}

.category-section-title.category-chilling-text {
    color: #3b82f6;
}

.view-all-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.view-all-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Rooms Grid - Horizontal Scroll */
.rooms-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.rooms-grid::-webkit-scrollbar {
    height: 6px;
}

.rooms-grid::-webkit-scrollbar-track {
    background: transparent;
}

.rooms-grid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.rooms-grid::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Room Card Animations */
.room-card {
    animation: fadeInUp 0.5s ease-out backwards;
}

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

.room-card:nth-child(1) { animation-delay: 0.1s; }
.room-card:nth-child(2) { animation-delay: 0.2s; }
.room-card:nth-child(3) { animation-delay: 0.3s; }
.room-card:nth-child(4) { animation-delay: 0.4s; }
.room-card:nth-child(5) { animation-delay: 0.5s; }
.room-card:nth-child(n+6) { animation-delay: 0.6s; }

.room-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    flex-shrink: 0;
    width: 200px;
    animation: fadeInUp 0.5s ease-out backwards;
}

.room-card:nth-child(1) { animation-delay: 0.1s; }
.room-card:nth-child(2) { animation-delay: 0.2s; }
.room-card:nth-child(3) { animation-delay: 0.3s; }
.room-card:nth-child(4) { animation-delay: 0.4s; }
.room-card:nth-child(5) { animation-delay: 0.5s; }
.room-card:nth-child(n+6) { animation-delay: 0.6s; }

.room-card-inner {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

[data-theme="dark"] .room-card-inner {
    background: var(--card-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.room-card:hover .room-card-inner {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.room-card.hidden {
    display: none;
}

/* Room Card - Square Layout */
.room-card-inner {
    position: relative;
    padding: 1rem;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
}

/* Participant Count - Top Left */
.room-card-participant-count {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: none;
    color: #4b5563;
    padding: 0;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 400;
    font-style: italic;
    z-index: 3;
    white-space: nowrap;
}

[data-theme="dark"] .room-card-participant-count {
    color: #9ca3af;
}

/* PFPs Container - Start from top left under participant count */
.room-card-pfps-container {
    position: absolute;
    top: 3.5rem; /* Below participant count */
    left: 1rem;
    right: 1rem;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-content: flex-start;
}

/* Category Badge - Bottom Right */
.room-card-category {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 2;
}

.category-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Room Participants Profile Pictures - Overlapping */
.room-participants-pfps {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: flex-start;
    justify-content: flex-start;
}

.participant-pfp {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.65rem;
    border: 2px solid var(--card-bg);
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    margin-left: -8px; /* Overlap effect */
}

.participant-pfp:first-child {
    margin-left: 0; /* First one doesn't need negative margin */
}

.participant-pfp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.participant-pfp:hover {
    transform: scale(1.1);
    z-index: 10;
}

.participant-pfp.more {
    background: linear-gradient(135deg, #64748b, #475569);
    font-size: 0.75rem;
}

.no-participants {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    opacity: 0.6;
}

/* Room Card Title - Below the square */
.room-card-title-below {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    margin: 0.75rem 0 0 0;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}


/* Buttons */
/* Button Animations */
.btn-primary, .btn-secondary {
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #6b7280;
    color: white;
}

.btn-primary:hover {
    background: #4b5563;
}

.start-conversation-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
}

.start-conversation-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-color);
    transition: width 0.3s ease;
}

.start-conversation-btn:hover {
    text-decoration: none;
}

.start-conversation-btn:hover::after {
    width: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

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


/* Category badges - Simple Design */
/* Debate - Gold */
.category-badge.category-debate {
    background: rgba(234, 179, 8, 0.2);
    color: #ca8a04;
}

[data-theme="dark"] .category-badge.category-debate {
    background: rgba(234, 179, 8, 0.3);
    color: #eab308;
}

/* Hot Takes - Red */
.category-badge.category-hot-takes {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

[data-theme="dark"] .category-badge.category-hot-takes {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Chilling - Blue */
.category-badge.category-chilling {
    background: rgba(59, 130, 246, 0.2);
    color: #2563eb;
}

[data-theme="dark"] .category-badge.category-chilling {
    background: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

/* All other categories - Grey */
.category-badge.category-technology,
.category-badge.category-entertainment,
.category-badge.category-science,
.category-badge.category-politics,
.category-badge.category-sports,
.category-badge.category-lifestyle,
.category-badge.category-education,
.category-badge.category-gaming,
.category-badge.category-general {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}

[data-theme="dark"] .category-badge.category-technology,
[data-theme="dark"] .category-badge.category-entertainment,
[data-theme="dark"] .category-badge.category-science,
[data-theme="dark"] .category-badge.category-politics,
[data-theme="dark"] .category-badge.category-sports,
[data-theme="dark"] .category-badge.category-lifestyle,
[data-theme="dark"] .category-badge.category-education,
[data-theme="dark"] .category-badge.category-gaming,
[data-theme="dark"] .category-badge.category-general {
    background: rgba(107, 114, 128, 0.25);
    color: #9ca3af;
}

/* Modal */
/* Create Conversation Form - No Modal */
.create-conversation-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.create-conversation-form form {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.conversation-step {
    display: none;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

.conversation-step.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.conversation-question {
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    transition: none;
    text-align: center;
}

.conversation-question:hover {
    background: none;
    transform: none;
    box-shadow: none;
}

.conversation-question label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    display: block;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

.conversation-answer {
    width: 100%;
    margin-top: 0.5rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.conversation-answer input,
.conversation-answer textarea,
.conversation-answer select {
    flex: 1;
    padding: 1rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.conversation-answer textarea {
    min-height: 120px;
    resize: vertical;
}

.answer-nav-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.conversation-answer input:focus,
.conversation-answer textarea:focus,
.conversation-answer select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
    transform: none;
}

.conversation-answer textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.conversation-pagination {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.nav-arrow:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.nav-arrow:disabled:hover {
    background: var(--card-bg);
    border-color: var(--border-color);
    transform: none;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-dot.active {
    background: var(--primary-color);
    width: 12px;
    height: 12px;
}

.pagination-dot:hover {
    background: var(--text-secondary);
}

.conversation-submit-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.conversation-submit-btn {
    padding: 1.25rem 3rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    max-width: 400px;
}

.conversation-submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.conversation-submit-btn:active {
    transform: translateY(0);
}

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

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

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

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

/* Multi-step Modal */
.multi-step-modal {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: 90vh;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
}

.modal-header .close {
    float: none;
    margin: 0;
}

/* Steps Indicator */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.step-item.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step-item.completed .step-number {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: white;
}

.step-item.completed .step-number::after {
    content: '✓';
    font-size: 1.2rem;
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.step-item.active .step-label {
    color: var(--text-color);
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    margin: 0 1rem;
    position: relative;
    top: -20px;
}

.step-item.completed ~ .step-line {
    background: var(--accent-green);
}

/* Step Content */
.step-content {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
    flex: 1;
    overflow-y: auto;
}

.step-content.active {
    display: block;
}

/* Form Question/Answer Layout - Floating separately like notes */
.form-question-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-question {
    position: relative;
    margin-bottom: 0.75rem;
    z-index: 1;
}

.form-question label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    display: block;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s;
    cursor: default;
}

.form-question label:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
}

.form-answer {
    position: relative;
    z-index: 0;
    margin-top: 0.5rem;
}

.form-answer input,
.form-answer textarea,
.form-answer select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.3s;
}

.form-answer input:focus,
.form-answer textarea:focus,
.form-answer select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

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

/* Review Section */
.review-section {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.review-section h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.review-item {
    margin-bottom: 1.5rem;
}

.review-item:last-child {
    margin-bottom: 0;
}

.review-item label {
    display: block;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-item p {
    margin: 0;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

/* Step Buttons */
.step-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

.form-help-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s;
}

.checkbox-label:hover {
    background: #f8fafc;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 1rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding: 1.5rem 2rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 0 0 20px 20px;
    flex-shrink: 0;
}

/* Footer */
footer {
    background: var(--card-bg);
    padding: 3rem 0;
    margin-top: 6rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    transition: background 0.3s, border-color 0.3s;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    nav {
        gap: 1rem;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        gap: 0.375rem;
    }
    
    .tab {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
}

