:root {
    --bg-color: #131314;
    --text-primary: #e3e3e3;
    --text-secondary: #9aa0a6;
    --text-tertiary: #5f6368;
    --accent-green: #81c995;
    --border-color: #3c4043;
    --font-serif: 'Lora', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 680px;
    padding: 40px 24px;
    width: 100%;
}

h1 {
    font-family: var(--font-serif);
    color: var(--text-primary);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.action-container {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
}

/* Join Button Glow Styles */
.join-btn-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 99px;
    background: linear-gradient(90deg, #b83280, #3182ce, #805ad5);
    background-size: 200% 200%;
    padding: 2px;
    box-shadow: 0 0 15px rgba(184, 50, 128, 0.4), 0 0 30px rgba(49, 130, 206, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.join-btn-wrapper:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(184, 50, 128, 0.6), 0 0 45px rgba(49, 130, 206, 0.4);
}

.join-btn {
    background-color: var(--bg-color);
    color: white;
    border: none;
    border-radius: 99px;
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    display: block;
    outline: none;
}

/* Success Box Styles */
.status-box {
    margin-top: 3.5rem;
    padding: 20px 24px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: rgba(255, 255, 255, 0.01);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.status-box:hover {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: #5f6368;
}

.status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.status-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-title {
    color: var(--accent-green);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.status-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.twitter-link {
    color: var(--text-secondary);
    text-decoration: underline;
    text-decoration-color: var(--border-color);
    text-underline-offset: 4px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.twitter-link:hover {
    color: var(--text-primary);
    text-decoration-color: var(--text-secondary);
}

/* Modal Overlay & Container */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(2px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #2d2d2d;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: #fff;
    font-family: var(--font-sans);
}

.close-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.close-btn:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.05);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Custom Scrollbar for Modal Body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/* Survey Form Styles */
.question-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.question-title {
    color: #e3e3e3;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 4px;
}

.question-title span {
    color: #777;
    font-size: 0.85rem;
    display: block;
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.checkbox-label input {
    appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1px solid #555;
    border-radius: 3px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    display: grid;
    place-content: center;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.checkbox-label input:checked {
    background-color: #a872ff;
    border-color: #a872ff;
}

.checkbox-label input:checked::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(1);
    box-shadow: inset 1em 1em var(--bg-color);
    background-color: var(--bg-color);
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.checkbox-label:hover {
    color: #e3e3e3;
}

.checkbox-label:hover input:not(:checked) {
    border-color: #888;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #2d2d2d;
    display: flex;
    justify-content: flex-end;
}

.submit-btn {
    background-color: #3f3f5a;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 24px;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: #4e4e6d;
}

/* Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .status-box {
        flex-direction: column;
        gap: 12px;
    }
    
    .status-icon {
        margin-top: 0;
    }
}
