/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #1f2937;
    line-height: 1.6;
}

/* Landing Page Styles */
body.landing-page {
    background: #ffffff;
    color: #1f2937;
}

/* Header */
.landing-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.landing-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    gap: 5rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin: 0;
}

.nav {
    display: flex;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: #667eea;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.highlight {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

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

/* Cards Preview */
.cards-preview {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    perspective: 1000px;
}

.card-item {
    width: 80px;
    height: 120px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.card-item:nth-child(2) { animation-delay: 0.5s; }
.card-item:nth-child(3) { animation-delay: 1s; }
.card-item:nth-child(4) { animation-delay: 1.5s; }
.card-item:nth-child(5) { animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: rotateY(-15deg) rotateX(5deg) translateY(0px); }
    50% { transform: rotateY(-15deg) rotateX(5deg) translateY(-10px); }
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background: #f8fafc;
}

.steps {
    display: grid;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.step.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.step-content p {
    color: #6b7280;
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    padding: 5rem 0;
    background: white;
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefit-item {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.benefit-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.benefit-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.benefit-item p {
    color: #6b7280;
    line-height: 1.6;
}

/* Chart Mockup */
.chart-mockup {
    display: flex;
    align-items: end;
    gap: 1rem;
    height: 200px;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 0.5rem;
    display: flex;
    align-items: end;
    justify-content: center;
    color: white;
    font-weight: 600;
    padding-bottom: 0.5rem;
    animation: growUp 1s ease-out;
}

@keyframes growUp {
    from { height: 0; }
    to { height: var(--height); }
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta .btn-primary {
    background: white;
    color: #667eea;
}

.cta .btn-primary:hover {
    background: #f8fafc;
}

/* Footer */
.landing-footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

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

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

/* Auth Section Styles */
.auth-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
}

.auth-btn {
    background: #4285f4 !important;
    color: white !important;
    border: 1px solid #4285f4 !important;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-btn:hover {
    background: #3367d6;
    border-color: #3367d6;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.auth-btn.logout {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.3);
}

.auth-btn.logout:hover {
    background: rgba(255, 0, 0, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Plan Info Styles */
.plan-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.plan-info-landing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-btn:hover {
    background: #f0f0f0;
}

.modal-body {
    padding: 30px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.plan-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.plan-card:hover {
    border-color: #6c5ce7;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.2);
}

.plan-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.plan-price {
    font-size: 32px;
    font-weight: bold;
    color: #6c5ce7;
    margin-bottom: 20px;
}

.plan-price span {
    font-size: 16px;
    color: #666;
    font-weight: normal;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.plan-features li {
    padding: 8px 0;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.plan-features li:last-child {
    border-bottom: none;
}

.select-plan-btn {
    background: #6c5ce7;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.select-plan-btn:hover {
    background: #5a4fcf;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.upgrade-btn-main {
    background: #6c5ce7;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.upgrade-btn-main:hover {
    background: #5a4fcf;
    transform: translateY(-1px);
}

.cancel-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* Plan Badge Styles */
.plan-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.plan-badge.plan-public {
    background: #95a5a6;
    color: white;
}

.plan-badge.plan-free {
    background: #3498db;
    color: white;
}

.plan-badge.plan-basic {
    background: #f39c12;
    color: white;
}

.plan-badge.plan-pro {
    background: #9b59b6;
    color: white;
}

.plan-badge.plan-enterprise {
    background: #2c3e50;
    color: white;
}

.plan-badge.plan-login-required {
    background: #e74c3c;
    color: white;
}

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

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

.plan-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-badge.plan-public {
    background: linear-gradient(135deg, #ffeaa7, #fab1a0);
    color: #2d3436;
}

.plan-badge.plan-free {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
}

.plan-badge.plan-basic {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
}

.participants-limit {
    color: #636e72;
    font-size: 14px;
    font-weight: 500;
}

.upgrade-btn {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(232, 67, 147, 0.3);
}

.upgrade-btn:hover {
    transform: translateY(-2px);
}

/* Header Upgrade Button */
.upgrade-btn-header {
    display: inline-block;
    margin-left: 10px;
}

.upgrade-btn-header .upgrade-btn-main {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(232, 67, 147, 0.2);
}

.upgrade-btn-header .upgrade-btn-main:hover {
    background: linear-gradient(135deg, #e84393, #d63384);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(232, 67, 147, 0.3);
}

@media (max-width: 768px) {
    .upgrade-btn-header {
        margin-left: 5px;
    }
    
    .upgrade-btn-header .upgrade-btn-main {
        padding: 4px 8px;
        font-size: 11px;
    }
}

.header-session-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: #374151;
    border: 1px solid #d1d5db;
}

.header-session-info strong {
    color: #2980b9;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

#copy-session-id-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#copy-session-id-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
}

#share-url-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-left: 0.5rem;
}

#share-url-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
}

.session-selection {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.session-selection h2 {
    margin-bottom: 20px;
    text-align: center;
    color: #2c3e50;
}

.session-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#create-session-btn {
    width: 200px;
    padding: 12px;
    font-size: 1rem;
}

.or-divider {
    font-size: 1rem;
    color: #9ca3af;
    font-weight: 500;
    margin: 0.75rem 0;
    position: relative;
}

.or-divider::before,
.or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 3rem;
    height: 1px;
    background: #d1d5db;
}

.or-divider::before {
    left: -4rem;
}

.or-divider::after {
    right: -4rem;
}

.join-existing {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

#session-id-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.current-session-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.current-session-info p {
    margin-bottom: 10px;
}

#session-id-display, #session-url {
    font-weight: bold;
    color: #3498db;
    word-break: break-all;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

header h1 {
    color: #111827;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-input {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.user-input input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex: 1;
    font-size: 1rem;
}

.participants {
    flex: 1;
    margin-left: 20px;
}

.participants h2 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #2c3e50;
}

#participants-list {
    list-style-type: none;
}

#participants-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.voting-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.voting-section h2 {
    margin-bottom: 20px;
    text-align: center;
    color: #2c3e50;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.card {
    width: 5rem;
    height: 7.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
}

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

.card.selected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    border-color: #065f46;
}

.card.selected::before {
    opacity: 1;
}

button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

button:hover {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.4);
}

button:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#vote-btn, #reset-btn, #show-results-btn {
    display: inline-block;
    margin: 0.75rem 0.375rem;
    width: auto;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 8rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#leave-session-btn {
    display: inline-block;
    margin: 0.75rem 0.375rem;
    width: auto;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#vote-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

#vote-btn:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

#vote-btn:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0.6;
}

#show-results-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

#show-results-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

#show-results-btn:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0.6;
}

#reset-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

#reset-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

#reset-btn:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0.6;
}

.voting-section {
    text-align: center;
}

.results-section {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.results-section h2 {
    margin-bottom: 2rem;
    text-align: center;
    color: #1f2937;
    font-size: 2rem;
    font-weight: 700;
}

#results-display {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.vote-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.5rem;
    border-radius: 1rem;
    min-width: 120px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vote-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.vote-result .name {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
}

.vote-result .value {
    font-size: 2rem;
    font-weight: 800;
    color: #6366f1;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#stats {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 1.5rem;
    border-radius: 1rem;
    font-size: 1.25rem;
    border: 1px solid #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

#stats div {
    font-weight: 700;
    color: #374151;
}

#stats span {
    color: #d97706;
    font-weight: 800;
}

/* Session Interface Layout */
.session-interface {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.participants-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.voting-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.participants {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.participants h3 {
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 0.5rem;
    text-align: center;
}

.participant {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.participant.voted {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    color: white;
    border: 1px solid #065f46;
}

.participant.voted::after {
    content: '✓';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.participant:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vote-distribution {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-top: 1.5rem;
}

.vote-distribution h3 {
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 0.5rem;
    text-align: center;
}

.distribution-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.distribution-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.distribution-value {
    font-weight: 700;
    color: #6366f1;
    font-size: 1.125rem;
}

.distribution-count {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 2rem;
    text-align: center;
}

.results {
    margin-top: 2rem;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.results h3 {
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 0.5rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 0.75rem;
    border: 1px solid #f59e0b;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.result-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

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

/* Home Page Styles */
.home-page {
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.welcome-section {
    max-width: 42rem;
    margin: 0 auto;
}

.welcome-section h2 {
    color: #111827;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-section p {
    color: #6b7280;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 400;
}

.home-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
}

.primary-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    min-width: 16rem;
    position: relative;
    overflow: hidden;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
}

.primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.primary-btn:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 5px 15px rgba(156, 163, 175, 0.2);
}

.primary-btn:disabled:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(156, 163, 175, 0.2);
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

.secondary-btn {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.secondary-btn:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Leave Session Button - specific background color */
#leave-session-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

#leave-session-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

/* Header Improvements */
.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-left h1 {
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    color: #1f2937;
    font-size: 1.875rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-left h1:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Session Setup Styles */
.session-setup {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 100%);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.session-setup h2 {
    color: #111827;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.setup-section h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.875rem;
    font-weight: 700;
}

.setup-section p {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1.125rem;
    line-height: 1.6;
}

.scale-presets {
    margin-bottom: 2.5rem;
}

.scale-presets h4 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.preset-btn {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid #d1d5db;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.preset-btn:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.preset-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: #5b21b6;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.custom-scale {
    margin-bottom: 2.5rem;
}

.custom-scale h4 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.available-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.value-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: pointer;
}

.value-option:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.value-option input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    margin: 0;
    accent-color: #6366f1;
}

.value-option label {
    cursor: pointer;
    font-weight: 500;
    color: #374151;
    flex: 1;
    font-size: 0.875rem;
}

.setup-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

/* Session Info Styles */
.session-info {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.session-info p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.session-info span {
    font-weight: bold;
    color: #2980b9;
}

/* Updated join-existing styles */
.join-existing {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.join-existing input {
    padding: 12px 16px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 200px;
}

.join-existing button {
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.join-existing button:hover {
    background: #229954;
    transform: translateY(-1px);
}

/* Ad Containers Styles */
.ad-container {
    margin: 10px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.ad-container:empty {
    display: none;
}

.header-ad {
    max-width: 728px;
    margin: 10px auto;
    min-height: 90px;
}

.sidebar-ad {
    margin: 20px 0;
    min-height: 250px;
    max-width: 300px;
}

.footer-ad {
    max-width: 728px;
    margin: 20px auto;
    min-height: 90px;
}

/* Ad loading state */
.ad-container::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: adLoading 1.5s infinite;
    border-radius: 4px;
}

.ad-container:not(:empty)::before {
    display: none;
}

@keyframes adLoading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Hide ads in certain contexts */
.no-ads .ad-container {
    display: none !important;
}

/* Premium/ad-free styling */
.premium-user .ad-container {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .cards {
        grid-template-columns: repeat(auto-fit, minmax(4rem, 1fr));
        gap: 0.75rem;
        max-width: 100%;
    }
    
    .card {
        width: 4rem;
        height: 6rem;
        font-size: 1.25rem;
    }
    
    .session-options {
        flex-direction: column;
        gap: 15px;
    }
    
    .join-existing {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-session-info {
        flex-direction: column;
        gap: 5px;
        font-size: 0.8rem;
    }
    
    .home-actions {
        flex-direction: column;
        gap: 1rem;
        padding: 0 10px;
    }
    
    .primary-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.125rem;
    }
    
    .setup-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .secondary-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.125rem;
    }
    
    .session-interface {
         flex-direction: column;
         gap: 1.5rem;
     }
     
     .participants-sidebar {
         width: 100%;
         order: -1;
     }
     
     .participants {
         position: static;
         margin-bottom: 1.5rem;
     }
     
     .voting-actions {
         flex-direction: column;
         align-items: center;
     }
     
     .voting-actions button {
         width: 100%;
         max-width: 300px;
     }
     
     .participants, .results, .results-section {
         padding: 1rem;
         margin: 1rem 0;
     }
     
     .participant, .result-item {
         padding: 0.75rem;
         font-size: 0.875rem;
     }
    
    .vote-result {
        min-width: 100px;
        padding: 1rem;
    }
    
    .vote-result .value {
        font-size: 1.5rem;
    }
    
    #stats {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    header {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .welcome-section h2 {
        font-size: 2rem;
    }
    
    .welcome-section p {
        font-size: 1rem;
    }
    
    .setup-section h2 {
        font-size: 1.75rem;
    }
    
    .available-values {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    /* Ad responsive behavior */
    .header-ad,
    .footer-ad {
        max-width: 320px;
        min-height: 50px;
    }
    
    .sidebar-ad {
        max-width: 100%;
        min-height: 100px;
    }
    
    /* Landing page responsive styles */
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
    }
    
    .nav {
        display: none;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .cards-preview {
        margin-top: 2rem;
    }
    
    .card-item {
        width: 60px;
        height: 90px;
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features,
    .how-it-works,
    .benefits,
    .cta {
        padding: 3rem 0;
    }
    
    /* Modal responsive styles */
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
}