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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a0000 0%, #4a0000 50%, #000000 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(139, 0, 0, 0.5);
    border: 1px solid #4a0000;
}

h1 {
    color: #ff6b6b;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5em;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

h2 {
    color: #ff9999;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.subtitle {
    text-align: center;
    color: #cccccc;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.hidden {
    display: none !important;
}

/* Landing Page / Hero Section */
#landingPage {
    max-width: 800px;
    margin: 0 auto;
}

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

.hero-title {
    font-size: 2.2em;
    color: #ff6b6b;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.hero-description {
    font-size: 1.2em;
    color: #ff9999;
    line-height: 1.6;
    margin-bottom: 50px;
}

.hero-description strong {
    color: #ff6b6b;
    font-weight: bold;
}

.how-it-works {
    margin: 50px 0;
    padding: 40px;
    background: #0d0d0d;
    border-radius: 15px;
    border: 1px solid #4a0000;
}

.how-it-works h3 {
    color: #ff6b6b;
    font-size: 1.8em;
    margin-bottom: 30px;
}

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

.step {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step h4 {
    color: #ff6b6b;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.step p {
    color: #ff9999;
    font-size: 0.95em;
    line-height: 1.5;
}

.benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #0d0d0d;
    border-radius: 10px;
    border: 1px solid #3a0000;
    text-align: left;
}

.benefit-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.benefit-item strong {
    color: #ff6b6b;
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}

.benefit-item p {
    color: #ff9999;
    font-size: 0.95em;
    margin: 0;
}

.cta-button {
    padding: 20px 50px;
    font-size: 1.3em;
    background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 30px rgba(220, 20, 60, 0.5);
    margin: 30px 0;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(220, 20, 60, 0.7);
}

.trust-text {
    color: #ff9999;
    font-size: 0.9em;
    margin-top: 20px;
}

.trust-text small {
    color: #ff9999;
}

/* Age Verification Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a0000 100%);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(139, 0, 0, 0.8);
    border: 2px solid #8b0000;
}

.modal-content h2 {
    color: #ff6b6b;
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 15px;
    color: #cccccc;
    font-size: 1.1em;
}

.modal-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn-yes, .btn-no {
    padding: 15px 40px;
    font-size: 1.1em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-yes {
    background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220, 20, 60, 0.6);
}

.btn-no {
    background: #2a2a2a;
    color: #cccccc;
    border: 1px solid #4a4a4a;
}

.btn-no:hover {
    background: #3a3a3a;
}

/* Partner Selection */
#partnerSelection {
    text-align: center;
}

.code-entry-section {
    background: #0d0d0d;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #4a0000;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.code-prompt {
    color: #ff9999;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.code-input-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.code-input-container input[type="text"] {
    padding: 15px 20px;
    font-size: 1.3em;
    border: 2px solid #4a0000;
    border-radius: 10px;
    background: #1a1a1a;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
    width: 200px;
    transition: all 0.3s ease;
}

.code-input-container input[type="text"]:focus {
    outline: none;
    border-color: #dc143c;
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.4);
}

.code-input-container input[type="text"]::placeholder {
    color: #666;
    font-size: 0.8em;
    letter-spacing: 1px;
}

.btn-code {
    padding: 15px 30px;
    font-size: 1.1em;
    background: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 100%);
    color: #ffffff;
    border: 2px solid #666;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-code:hover {
    background: linear-gradient(135deg, #5a5a5a 0%, #3a3a3a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-create-session {
    padding: 18px 50px;
    font-size: 1.2em;
    background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(220, 20, 60, 0.4);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.btn-create-session:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(220, 20, 60, 0.6);
}

.info-text-small {
    color: #999;
    font-size: 0.9em;
    font-style: italic;
    margin-top: 15px;
}

.divider-with-text {
    margin: 30px 0;
    position: relative;
    text-align: center;
}

.divider-with-text span {
    background: #1a1a1a;
    padding: 0 20px;
    color: #666;
    font-weight: bold;
    font-size: 0.9em;
    position: relative;
    z-index: 1;
}

.divider-with-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #4a0000;
}

.name-input-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 600px;
    margin: 0 auto 30px;
}

.name-input-box-inline {
    background: #0d0d0d;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #4a0000;
    text-align: center;
}

.name-input-box-inline label {
    display: block;
    color: #ff9999;
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: bold;
}

.name-input-box-inline input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    font-size: 1.1em;
    border: 2px solid #4a0000;
    border-radius: 10px;
    background: #1a1a1a;
    color: #ffffff;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.name-input-box-inline input[type="text"]:focus {
    outline: none;
    border-color: #dc143c;
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.3);
}

.name-input-box-inline input[type="text"]::placeholder {
    color: #666;
}

.name-input-box {
    background: #0d0d0d;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #4a0000;
}

.name-input-box label {
    display: block;
    color: #ff9999;
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: bold;
}

.name-input-box input[type="text"] {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: 2px solid #4a0000;
    border-radius: 10px;
    background: #1a1a1a;
    color: #ffffff;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.name-input-box input[type="text"]:focus {
    outline: none;
    border-color: #dc143c;
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.3);
}

.name-input-box input[type="text"]::placeholder {
    color: #666;
}

.divider {
    text-align: center;
    color: #666;
    font-weight: bold;
    font-size: 1.2em;
    position: relative;
    padding: 10px 0;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #4a0000;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.partner-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.partner-btn {
    padding: 15px 40px;
    font-size: 1.1em;
    background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.partner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.6);
}

.info-text {
    color: #999;
    font-style: italic;
    font-size: 0.95em;
}

/* Interest Selection */
.partner-label {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 30px;
}

.category-header {
    font-size: 1.2em;
    font-weight: bold;
    color: #ff6b6b;
    padding: 15px;
    background: #2a0000;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #dc143c;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.interests-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    background: #0d0d0d;
    border-radius: 10px;
    border: 1px solid #4a0000;
}

.interest-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #1a1a1a;
    border: 2px solid #3a0000;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.interest-item:hover {
    border-color: #8b0000;
    background: #2a0000;
}

.interest-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #dc143c;
}

.interest-item span {
    color: #cccccc;
    font-size: 0.95em;
}

.interest-item input[type="checkbox"]:checked + span {
    font-weight: bold;
    color: #ff6b6b;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-submit, .btn-secondary {
    padding: 15px 40px;
    font-size: 1.1em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-submit {
    background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220, 20, 60, 0.6);
}

.btn-secondary {
    background: #2a2a2a;
    color: #cccccc;
    border: 1px solid #4a4a4a;
}

.btn-secondary:hover {
    background: #3a3a3a;
}

/* Results */
.match-list {
    background: #0d0d0d;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #4a0000;
}

.match-count {
    font-size: 1.3em;
    color: #ff6b6b;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.matches {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.matches li {
    background: #1a1a1a;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #dc143c;
    color: #cccccc;
}

.no-matches {
    text-align: center;
    color: #999;
    font-size: 1.1em;
    padding: 20px;
}

/* Scrollbar Styling */
.interests-grid::-webkit-scrollbar {
    width: 10px;
}

.interests-grid::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

.interests-grid::-webkit-scrollbar-thumb {
    background: #8b0000;
    border-radius: 10px;
}

.interests-grid::-webkit-scrollbar-thumb:hover {
    background: #dc143c;
}

/* Code Display Section */
#codeDisplay, #sessionCreated {
    text-align: center;
}

/* Ad Containers */
.ad-container {
    margin: 30px 0;
    padding: 20px;
    background: #0d0d0d;
    border: 1px dashed #4a0000;
    border-radius: 10px;
    text-align: center;
    display: block; /* NOW VISIBLE - AdSense enabled! */
}

.ad-container-small {
    margin: 20px 0;
}

.ad-label {
    color: #666;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.ad-placeholder {
    min-height: 250px;
    background: #1a1a1a;
    border: 2px dashed #3a0000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ad-placeholder-horizontal {
    min-height: 90px;
}

.ad-instruction {
    color: #666;
    font-style: italic;
    font-size: 0.9em;
}

/* When actual ads are added, hide the instruction */
.ad-placeholder:has(ins) .ad-instruction {
    display: none;
}

#waitingScreen {
    text-align: center;
    padding: 40px 20px;
}

.waiting-message {
    color: #cccccc;
    font-size: 1.2em;
    margin-bottom: 30px;
}

.spinner {
    border: 4px solid #1a1a1a;
    border-top: 4px solid #dc143c;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 30px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.code-instruction {
    color: #cccccc;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.code-display-box {
    background: #0d0d0d;
    padding: 40px;
    border-radius: 15px;
    border: 3px solid #dc143c;
    margin-bottom: 30px;
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.3);
}

.code-text {
    font-size: 3em;
    font-weight: bold;
    color: #ff6b6b;
    letter-spacing: 8px;
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    font-family: 'Courier New', monospace;
}

.btn-copy {
    padding: 15px 40px;
    font-size: 1.1em;
    background: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 100%);
    color: #ffffff;
    border: 2px solid #666;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: linear-gradient(135deg, #5a5a5a 0%, #3a3a3a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.code-info {
    color: #999;
    font-size: 0.95em;
    font-style: italic;
    margin-bottom: 30px;
}

/* Affiliate Recommendations */
.recommendations-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #4a0000;
}

.recommendations-section h3 {
    color: #ff6b6b;
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 15px;
}

.recommendations-intro {
    text-align: center;
    color: #cccccc;
    margin-bottom: 30px;
    font-size: 1.1em;
}

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

.product-card {
    background: #0d0d0d;
    border: 2px solid #4a0000;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: #dc143c;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #1a1a1a;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-name {
    color: #ff9999;
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: bold;
}

.product-description {
    color: #cccccc;
    font-size: 0.95em;
    margin-bottom: 15px;
    line-height: 1.4;
}

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

.product-price {
    color: #ff6b6b;
    font-size: 1.3em;
    font-weight: bold;
}

.product-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.product-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

/* Footer */
.site-footer {
    background: #0d0d0d;
    border-top: 2px solid #4a0000;
    padding: 30px 20px;
    margin-top: 50px;
    text-align: center;
}

.affiliate-disclosure {
    color: #999;
    font-size: 0.85em;
    margin-bottom: 15px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.affiliate-disclosure strong {
    color: #cccccc;
}

.powered-by {
    color: #666;
    font-size: 0.9em;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    .hero-title {
        font-size: 1.6em;
    }

    .hero-description {
        font-size: 1em;
    }

    .how-it-works {
        padding: 25px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .cta-button {
        width: 100%;
        padding: 18px 30px;
        font-size: 1.1em;
    }

    .code-entry-section {
        padding: 20px;
    }

    .code-input-container {
        flex-direction: column;
    }

    .code-input-container input[type="text"] {
        width: 100%;
    }

    .btn-create-session {
        width: 100%;
        padding: 15px 30px;
    }

    .code-display-box {
        padding: 25px;
    }

    .code-text {
        font-size: 2em;
        letter-spacing: 5px;
    }

    .name-input-container {
        gap: 20px;
    }

    .name-input-box, .name-input-box-inline {
        padding: 20px;
    }

    .partner-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .category-items {
        grid-template-columns: 1fr;
    }

    .interests-grid {
        max-height: 400px;
    }

    .matches {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .ad-container {
        padding: 15px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-submit, .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.6em;
    }

    .code-text {
        font-size: 1.5em;
        letter-spacing: 3px;
    }

    .modal-content {
        padding: 25px;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-yes, .btn-no {
        width: 100%;
    }
}
